Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2032] Android: Stack traces in 1.5 don't show line numbers

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:57:52.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M01
ComponentsAndroid
Labelsandroid, defect
ReporterBill Dawson
AssigneeMarshall Culpepper
Created2011-04-15T03:08:37.000+0000
Updated2011-04-17T01:57:52.000+0000

Description

Example trace (this is with JS compiling off):


E/AndroidRuntime(  453): Uncaught handler: thread kroll$5 exiting due to uncaught exception
E/AndroidRuntime(  453): java.lang.VerifyError: ti.modules.titanium.network.TiHTTPClient
E/AndroidRuntime(  453):    at ti.modules.titanium.network.HTTPClientProxy.<init>(Unknown Source)
E/AndroidRuntime(  453):    at ti.modules.titanium.network.NetworkModuleBindingGen$1.invoke(Unknown Source)
E/AndroidRuntime(  453):    at org.appcelerator.kroll.KrollMethod.call(Unknown Source)
E/AndroidRuntime(  453):    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)
E/AndroidRuntime(  453):    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
E/AndroidRuntime(  453):    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
E/AndroidRuntime(  453):    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
E/AndroidRuntime(  453):    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
E/AndroidRuntime(  453):    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
E/AndroidRuntime(  453):    at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
E/AndroidRuntime(  453):    at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown Source)
E/AndroidRuntime(  453):    at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown Source)
E/AndroidRuntime(  453):    at org.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown Source)
E/AndroidRuntime(  453):    at android.os.Handler.dispatchMessage(Handler.java:95)
E/AndroidRuntime(  453):    at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  453):    at org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown Source)

Comments

  1. Bill Dawson 2011-04-15

    (from [04cd3d0fd7def7e1b771302c27bde81da49564f8]) [#2032] A simple test method for throwing a throwabe http://github.com/appcelerator/titanium_mobile/commit/04cd3d0fd7def7e1b771302c27bde81da49564f8"> http://github.com/appcelerator/titanium_mobile/commit/04cd3d0fd7def...

  2. Bill Dawson 2011-04-15

    You can test with a simple app.js now:

       Titanium.testThrow();
       

    Produces...

       
       E/AndroidRuntime( 1003): Uncaught handler: thread kroll$1 exiting due to uncaught exception
       E/AndroidRuntime( 1003): java.lang.Error: Testing throwing throwables
       E/AndroidRuntime( 1003):    at ti.modules.titanium.TitaniumModule.testThrow(Unknown Source)
       E/AndroidRuntime( 1003):    at ti.modules.titanium.TitaniumModuleBindingGen$10.invoke(Unknown Source)
       E/AndroidRuntime( 1003):    at org.appcelerator.kroll.KrollMethod.call(Unknown Source)
       E/AndroidRuntime( 1003):    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)
       E/AndroidRuntime( 1003):    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
       E/AndroidRuntime( 1003):    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
       E/AndroidRuntime( 1003):    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
       E/AndroidRuntime( 1003):    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
       E/AndroidRuntime( 1003):    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
       E/AndroidRuntime( 1003):    at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
       E/AndroidRuntime( 1003):    at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(Unknown Source)
       E/AndroidRuntime( 1003):    at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(Unknown Source)
       E/AndroidRuntime( 1003):    at org.appcelerator.titanium.kroll.KrollContext.handleMessage(Unknown Source)
       E/AndroidRuntime( 1003):    at android.os.Handler.dispatchMessage(Handler.java:95)
       E/AndroidRuntime( 1003):    at android.os.Looper.loop(Looper.java:123)
       E/AndroidRuntime( 1003):    at org.appcelerator.titanium.kroll.KrollHandlerThread.run(Unknown Source)
       
  3. Bill Dawson 2011-04-15

    Tested ok with 1.5.0 408f5ab under 1.6 and 2.2 emulators:

       E/AndroidRuntime(  289): java.lang.Error: Testing throwing throwables
       E/AndroidRuntime(  289):    at ti.modules.titanium.TitaniumModule.testThrow(TitaniumModule.java:83)
       E/AndroidRuntime(  289):    at ti.modules.titanium.TitaniumModuleBindingGen$10.invoke(TitaniumModuleBindingGen.java:361)
       E/AndroidRuntime(  289):    at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:46)
       E/AndroidRuntime(  289):    at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1711)
       E/AndroidRuntime(  289):    at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
       E/AndroidRuntime(  289):    at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
       E/AndroidRuntime(  289):    at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
       E/AndroidRuntime(  289):    at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3161)
       E/AndroidRuntime(  289):    at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
       E/AndroidRuntime(  289):    at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
       E/AndroidRuntime(  289):    at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:193)
       E/AndroidRuntime(  289):    at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:218)
       E/AndroidRuntime(  289):    at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:115)
       E/AndroidRuntime(  289):    at android.os.Handler.dispatchMessage(Handler.java:95)
       E/AndroidRuntime(  289):    at android.os.Looper.loop(Looper.java:123)
       
  4. Don Thorp 2011-04-15

    just adding a responsible party. Nothing's changed.

JSON Source