Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8414] Android: Debugger - On V8, JNIUtil error messages appear when debugging with breakpoints

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-04-05T20:10:31.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sRelease 2.1.0, Sprint 2012-07
ComponentsAndroid
Labelsapi, qe-and031912, regression
ReporterWilson Luu
AssigneeJosh Roesslein
Created2012-03-29T10:37:16.000+0000
Updated2012-06-20T14:46:27.000+0000

Description

Steps to reproduce: 1. Unzip and import attachment 2. From https://wiki.appcelerator.org/display/tp/Debugger+Test+Plan, execute test case 1013 Actual: After step 9, the following error messages appear:
E/JNIUtil (  398): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!!
E/JNIUtil (  398): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!!
E/JNIUtil (  398): !!! Unable to convert unknown Java object class 'org.appcelerator.kroll.KrollRuntime$1' to Js value !!!
Even though these error messages appear, it does not seem to affect the debugger i.e. the debugger does not terminate and I am still getting expected results from the debugger test plan. Expected: Error messages should not appear. Note: * The error messages do not appear in 1.8.2 * Only tested in v8. Did not test in rhino. * The error messages appear only when using breakpoints.

Attachments

FileDateSize
debug_test.zip2012-03-29T10:37:16.000+00003658758

Comments

  1. Josh Roesslein 2012-04-04

    The issue is actually appears outside of the debugger test case as well. Here's another test case that replicates the error messages in the log: Expected: There should be no JNIUtil error messages.
       
       var win = Ti.UI.createWindow();
       
       var view = Ti.UI.createView();
       win.add(view);
       
       Ti.API.info("Center => " + view.center);
       
       win.open();
       
  2. Josh Roesslein 2012-04-04

    Submitted PR [#1920](https://github.com/appcelerator/titanium_mobile/pull/1920) to resolve issue.
  3. Michael Pettiford 2012-06-20

    Closing issue Tested with Ti Studio build 2.1.0.201206200844 Ti Mobile SDK 2.1.0.v20120619172256 hash rd3a84b13 OSX Lion 10.7.3 Android Emulator 2.2 The expected behavior is shown

JSON Source