Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6530] Android: Rhino: drillbit test for include can result in too deep recursion error

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-02-10T18:46:08.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2012-03, Release 2.0.0, Release 1.8.2
ComponentsDrillbit
Labelslook1
ReporterOpie Cyrus
AssigneeStephen Tramer
Created2011-12-09T10:48:45.000+0000
Updated2017-03-20T18:16:47.000+0000

Description

Running the drillbit include test with 1.8.0.1 under rhino can result in a "too deep recursion" error.

Comments

  1. Ping Wang 2012-02-03

    The error log is
       D/Module  ( 8876): Loading module: counter -> Resources/counter.js
       D/dalvikvm( 8876): GC_CONCURRENT freed 420K, 37% free 4697K/7431K, external 0K/0K, paused 5ms+3ms
       I/dalvikvm( 8876): threadid=9: stack overflow on call to Lorg/mozilla/javascript/Parser;.unaryExpr:L
       I/dalvikvm( 8876):   method requires 40+20+20=80 bytes, fp is 0x455d0318 (24 left)
       I/dalvikvm( 8876):   expanding stack end (0x455d0300 to 0x455d0000)
       I/dalvikvm( 8876): Shrank stack (to 0x455d0300, curFrame is 0x455d0590)
       E/TiJSError( 8876): (main) [2514,2514] ----- Titanium Javascript Runtime Error -----
       E/TiJSError( 8876): (main) [0,2514] - In counter.js:4,0
       E/TiJSError( 8876): (main) [1,2515] - Message: Too deep recursion while parsing
       E/TiJSError( 8876): (main) [0,2515] - Source: null
       
    Community discussion http://developer.appcelerator.com/question/116828/too-deep-recursion-while-parsing-when-including-files-on-android
  2. Lee Morris 2017-03-20

    Closing ticket as fixed.

JSON Source