Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Too deep recursion while parsing - Fix?

Whenever I build my App for Android, I get this "Runtime Error" on the first startup:

Runtime Error

Is there any way to fix this? I'd like for my app to be available on both Android and iOS and this is sort of killing that.

— asked November 20th 2010 by Colton Arabsky
  • android
0 Comments

8 Answers

  • I don't know , pastie more code, maybe is not there the problem

    — answered November 21st 2010 by Dan Tamas
    permalink
    2 Comments
    • How large are the files you are using. It's the complexity of the source that's the problem, not what the source is doing. This has been addressed in 1.5 and is app configurable via a tiapp.xml setting to up the stack size. Simplification of the source is the best approach, but in some instances, you'll have to up the stack.

      — commented November 21st 2010 by Don Thorp
    • The files are pretty big. I have 3 files that are being used that are all 500 - 1000 lines of code.

      I don't use 1.5.0 right now, cause it gives errors (As seen in this thread). But that is for iOS, so I'll try it for Android. Thanks, Don :)

      — commented November 21st 2010 by Colton Arabsky
  • The line it says (441) is a simple "if… then" for an emailDialog.

    — answered November 20th 2010 by Colton Arabsky
    permalink
    0 Comments
  • put a pastie with the code

    — answered November 20th 2010 by Dan Tamas
    permalink
    0 Comments
  • It's not even an EmailDialog, it's an EventListener for a button of a toolbar on a WebView.

    http://pastie.org/private/zlsmurocp8gt9yhgs3hcsq

    — answered November 20th 2010 by Colton Arabsky
    permalink
    1 Comment
    • Line 441 is the setTimeout line.

      — commented November 20th 2010 by Colton Arabsky
  • I you remove the timeout?( even with the risk on not hiding the actind, for test of course )

    — answered November 20th 2010 by Dan Tamas
    permalink
    0 Comments
  • I have about 4 of those. If I remove all of them, I get the same error about ~50 lines down at a "if… then" statement, which I can't really take out since if I did, it would cause havoc as it is an optionDialog and without the if, thens… Clicking one thing would do everything.

    — answered November 20th 2010 by Colton Arabsky
    permalink
    0 Comments
  • Thank you for your answer, Don, and everyone else.

    I'm thinking of just creating another project, or atleast a different folder and re-doing my source files and making use of the Ti.Android.OptionMenu APIs. They look a lot cleaner than using a TabGroup.

    — answered November 21st 2010 by Colton Arabsky
    permalink
    0 Comments
  • You have a loop somewhere making nasty stuff.

    — answered November 20th 2010 by Dan Tamas
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.