Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3160] The evalJS Function in Android's WebView Crashes the Application

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2011-10-11T18:40:23.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, crash, evaljs, webview
ReporterRyan Asleson
AssigneePaul Dowsett
Created2011-09-27T07:56:11.000+0000
Updated2016-03-08T07:48:14.000+0000

Description

Attachments

FileDateSize
app.js2011-09-27T07:57:31.000+0000900
bug.html2011-09-27T07:57:31.000+0000287
bug.js2011-09-27T07:57:31.000+000049

Comments

  1. Ryan Asleson 2011-09-30

    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): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
       
       
  2. Ryan Asleson 2011-10-07

    OK, nevermind. Turns out the Android 2.3 simulator is horribly broken. It works fine on the 2.2 simulator.
  3. Paul Dowsett 2011-10-11

    Thanks for the update, Ryan.
  4. Paul Dowsett 2011-12-27

    Ticket resolved and not updated since last curator action.

JSON Source