StackOverflowError

Discussion in 'Developer Support' started by Hakuna Matata, Nov 21, 2014.

  1. Hakuna Matata

    Joined:
    Oct 12, 2014
    Messages:
    174
    Likes Received:
    37
    Trying to make this script bot work but I can't seem to figure out what triggers this StackOverflowError.
    I don't think it's something in my script bot that does it.

    Code (Text):
    1.  
    2. Exception in thread "Bot-Script" (07:44:20) java.lang.StackOverflowError
    3. (07:44:20)    at a.lPt1.<init>(oq:102)
    4. (07:44:20)    at a.cE.<init>(ax:6)
    5. (07:44:20)    at a.Ld.<init>(bv:15)
    6. (07:44:20)    at a.vc.<init>(iab:42)
    7. (07:44:20)    at a.HC.<init>(vy:5)
    8. (07:44:20)    at a.Nd.class(pr:103)
    9. (07:44:20)    at a.Nd.final(pr:42)
    10. (07:44:20)    at a.cE.true(ax:147)
    11. (07:44:20)    at a.cE.short(ax:91)
    12. (07:44:20)    at a.oh.super(lz:729)
    13. (07:44:20)    at a.oh.for(lz:331)
    14. (07:44:20)    at a.oh.if(lz:943)
    15. (07:44:20)    at a.wE.do(ar:71)
    16. (07:44:20)    at a.oh.super(lz:673)
    17. (07:44:20)    at a.dP.super(wxb:676)
    18. (07:44:20)    at a.dP.do(wxb:443)
    19. (07:44:20)    at a.dP.super(wxb:675)
    20. (07:44:20)    at a.Vp.do(iob:209)
    21. (07:44:20)    at a.SP.super(cqb:147)
    22. (07:44:20)    at a.xq.super(hvb:39)
    23. (07:44:20)    at a.xq.super(hvb:253)
    24. (07:44:20)    at a.xq.super(hvb:253)
    25. (07:44:20)    at a.xq.super(hvb:253)
    26. (07:44:20)    at a.xq.super(hvb:253)
    27. (07:44:20)    at a.xq.super(hvb:253)
    28. (07:44:20)    at a.xq.super(hvb:253)
    29. (07:44:20)    at a.xq.super(hvb:253)
    30. (07:44:20)    at a.xq.super(hvb:253)
    31. (07:44:20)    at a.xq.super(hvb:253)
    32. (07:44:20)    at a.xq.super(hvb:253)
    33. (07:44:20)    at a.xq.super(hvb:253)
    34. (07:44:20)    at a.xq.super(hvb:253)
    35. (07:44:20)    at a.xq.super(hvb:253)
    36. (07:44:20)    at a.xq.super(hvb:253)
    37. (07:44:20)    at a.xq.super(hvb:253)
    38. (07:44:20)    at a.xq.super(hvb:253)
    39. (07:44:20)    at a.xq.super(hvb:253)
    40. (07:44:20)    at a.xq.super(hvb:253)
    41. (07:44:20)    at a.xq.super(hvb:253)
    42. (07:44:20)    at a.xq.super(hvb:253)
    43. (07:44:20)    at a.xq.super(hvb:253)
    44. (07:44:20)    at a.xq.super(hvb:253)
    45. (07:44:20)    at a.xq.super(hvb:253)
    46. (07:44:20)    at a.xq.super(hvb:253)
    47. (07:44:20)    at a.xq.super(hvb:253)
    48. (07:44:20)    at a.xq.super(hvb:253)
    49. (07:44:20)    at a.xq.super(hvb:253)
    50. (07:44:20)    at a.xq.super(hvb:253)
    51. (07:44:20)    at a.xq.super(hvb:253)
    52. (07:44:20)    at a.xq.super(hvb:253)
    53. (07:44:20)    at a.xq.super(hvb:253)
    54. (07:44:20)    at a.xq.super(hvb:253)
    55. (07:44:20)    at a.xq.super(hvb:253)
    56. (07:44:20)    at a.xq.super(hvb:253)
    57. (07:44:20)    at a.xq.super(hvb:253)
    58. (07:44:20)    at a.xq.super(hvb:253)
    59. (07:44:20)    at a.xq.super(hvb:253)
    60.  
    The "at a.xq.super(hvb:253)" keeps going and going.
    It might have something to do with Inventory.getSelectedItem() or Inventory.getFirstItem("").interact("").
     
  2. Cloud

    Cloud Just another one...

    Joined:
    Jul 28, 2013
    Messages:
    2,412
    Likes Received:
    795
    Show us the line that sets it off.
     
  3. Hakuna Matata

    Joined:
    Oct 12, 2014
    Messages:
    174
    Likes Received:
    37
    Not sure but it should be this.
    Code (Text):
    1.  
    2. if(Inventory.getSelectedItem() != null)
    3. {
    4.        GameObjects.getLoaded("Fountain").nearest().click();
    5. }
    6. else
    7. {
    8.       Inventory.getFirstItem("Vial").interact("Use");
    9. }
    10.  
    Oh and no item is selected.
     
  4. Hakuna Matata

    Joined:
    Oct 12, 2014
    Messages:
    174
    Likes Received:
    37
    Aaand this happens when the scripts bots is stopped (it's hard to stop it tho because the client is lagging badly).

    Code (Text):
    1.  
    2. Exception in thread "Bot-Script" (09:21:34) java.lang.OutOfMemoryError: Java heap space
    3. (09:21:34)    at java.util.Arrays.copyOf(Unknown Source)
    4. (09:21:34)    at java.util.ArrayList.grow(Unknown Source)
    5. (09:21:34)    at java.util.ArrayList.ensureExplicitCapacity(Unknown Source)
    6. (09:21:34)    at java.util.ArrayList.ensureCapacityInternal(Unknown Source)
    7. (09:21:34)    at java.util.ArrayList.addAll(Unknown Source)
    8. (09:21:34)    at a.Vp.do(iob:209)
    9. (09:21:34)    at a.SP.super(cqb:147)
    10. (09:21:34)    at a.xq.super(hvb:39)
    11. (09:21:34)    at a.xq.super(hvb:253)
    12. (09:21:34)    at a.xq.super(hvb:253)
    13. (09:21:34)    at a.xq.super(hvb:253)
    14. (09:21:34)    at a.xq.super(hvb:253)
    15. (09:21:34)    at a.xq.super(hvb:253)
    16. (09:21:34)    at a.xq.super(hvb:253)
    17. (09:21:34)    at a.xq.super(hvb:253)
    18. (09:21:34)    at a.xq.super(hvb:253)
    19. (09:21:34)    at a.xq.super(hvb:253)
    20. (09:21:34)    at a.xq.super(hvb:253)
    21. (09:21:34)    at a.xq.super(hvb:253)
    22. (09:21:34)    at a.xq.super(hvb:253)
    23. (09:21:34)    at a.xq.super(hvb:253)
    24. (09:21:34)    at a.xq.super(hvb:253)
    25. (09:21:34)    at a.xq.super(hvb:253)
    26. (09:21:34)    at a.xq.super(hvb:253)
    27. (09:21:34)    at a.xq.super(hvb:253)
    28. (09:21:34)    at a.xq.super(hvb:253)
    29. (09:21:34)    at a.xq.super(hvb:253)
    30. (09:21:34)    at a.xq.super(hvb:253)
    31. (09:21:34)    at a.xq.super(hvb:253)
    32. (09:21:34)    at a.xq.super(hvb:253)
    33. (09:21:34)    at a.xq.super(hvb:253)
    34. (09:21:34)    at a.xq.super(hvb:253)
    35.  
     
  5. Cloud

    Cloud Just another one...

    Joined:
    Jul 28, 2013
    Messages:
    2,412
    Likes Received:
    795
    The error is thrown from within a third party library so can you please post the stuff that occurs before
    Code (Text):
    1.  
    2. a.xq.super(hvb:253)
    3.  
     
  6. Hakuna Matata

    Joined:
    Oct 12, 2014
    Messages:
    174
    Likes Received:
    37
    I don't know, that's the full error log.
    It -should- happen at the part of the script bot that I posted. It starts lagging very bad and then it throws those two errors.
     
  7. Cloud

    Cloud Just another one...

    Joined:
    Jul 28, 2013
    Messages:
    2,412
    Likes Received:
    795
    There's more too it somewhere, and unfortunately without it I can't even begin to look into it.
     
  8. Hakuna Matata

    Joined:
    Oct 12, 2014
    Messages:
    174
    Likes Received:
    37
    I can send the script bot to you in a PM and lend you an account which has the required items.
     
  9. Cloud

    Cloud Just another one...

    Joined:
    Jul 28, 2013
    Messages:
    2,412
    Likes Received:
    795
    Sure that would be fine.
     

Share This Page

Loading...