[AC-3160] The evalJS Function in Android's WebView Crashes the Application
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2011-10-11T18:40:23.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | android, crash, evaljs, webview |
| Reporter | Ryan Asleson |
| Assignee | Paul Dowsett |
| Created | 2011-09-27T07:56:11.000+0000 |
| Updated | 2016-03-08T07:48:14.000+0000 |
Description
Attachments
| File | Date | Size |
|---|---|---|
| app.js | 2011-09-27T07:57:31.000+0000 | 900 |
| bug.html | 2011-09-27T07:57:31.000+0000 | 287 |
| bug.js | 2011-09-27T07:57:31.000+0000 | 49 |
This is the relevant part of the error stack that is shown in the console:
D/TiWebViewBinding( 980): (main) [9,4904] getJSValue:javascript:_TiReturn.setValue((function(){try{return isThisWorking()+"";}catch(ti_eval_err){return '';}})()); W/dalvikvm( 980): JNI WARNING: jarray 0x405ca4d0 points to non-array object (Ljava/lang/String;) I/dalvikvm( 980): "WebViewCoreThread" prio=5 tid=13 NATIVE I/dalvikvm( 980): | group="main" sCount=0 dsCount=0 obj=0x4060b940 self=0x2b5830 I/dalvikvm( 980): | sysTid=993 nice=0 sched=0/0 cgrp=default handle=2629136 I/dalvikvm( 980): | schedstat=( 608123061 2066374196 150 ) I/dalvikvm( 980): at android.webkit.BrowserFrame.stringByEvaluatingJavaScriptFromString(Native Method) I/dalvikvm( 980): at android.webkit.BrowserFrame.stringByEvaluatingJavaScriptFromString(Native Method) I/dalvikvm( 980): at android.webkit.BrowserFrame.loadUrl(BrowserFrame.java:246) I/dalvikvm( 980): at android.webkit.WebViewCore.loadUrl(WebViewCore.java:1570) I/dalvikvm( 980): at android.webkit.WebViewCore.access$1400(WebViewCore.java:53) I/dalvikvm( 980): at android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:956) I/dalvikvm( 980): at android.os.Handler.dispatchMessage(Handler.java:99) I/dalvikvm( 980): at android.os.Looper.loop(Looper.java:123) I/dalvikvm( 980): at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:629) I/dalvikvm( 980): at java.lang.Thread.run(Thread.java:1019) I/dalvikvm( 980): E/dalvikvm( 980): VM aborting I/DEBUG ( 468): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***OK, nevermind. Turns out the Android 2.3 simulator is horribly broken. It works fine on the 2.2 simulator.
Thanks for the update, Ryan.
Ticket resolved and not updated since last curator action.