Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2974] Ti.App.fireEvent() form webView crash App in Android 2.3.3

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2011-08-10T13:34:12.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, event, javascript, webview
ReporterAdrien Mas
AssigneeTony Guntharp
Created2011-08-10T08:14:11.000+0000
Updated2016-03-08T07:47:58.000+0000

Description

This piece of code use to work in Android 2.2 and below. I have a webview with a piece of script calling : Ti.App.fireEvent('someEvent'); The listener exists but donc receive the event. The app just slowly crash and restart. Here is the Trace when the error append : [TRACE] I/ActivityManager( 62): Displayed com.mycompany.myapp/org.appcelerator.titanium.TiActivity: +3s461ms [TRACE] W/InputManagerService( 62): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@406f4960 [TRACE] W/dalvikvm( 1047): JNI WARNING: jarray 0x40628fe0 points to non-array object (Ljava/lang/String;) [TRACE] I/dalvikvm( 1047): "WebViewCoreThread" prio=5 tid=13 NATIVE [TRACE] I/dalvikvm( 1047): | group="main" sCount=0 dsCount=0 obj=0x40799e68 self=0x2eed50 [TRACE] I/dalvikvm( 1047): | sysTid=1062 nice=0 sched=0/0 cgrp=default handle=3075720 [TRACE] I/dalvikvm( 1047): | schedstat=( 573473062 1148681109 97 ) [TRACE] I/dalvikvm( 1047): at android.webkit.WebViewCore.nativeTouchUp(Native Method) [TRACE] I/dalvikvm( 1047): at android.webkit.WebViewCore.nativeTouchUp(Native Method) [TRACE] I/dalvikvm( 1047): at android.webkit.WebViewCore.access$3300(WebViewCore.java:53) [TRACE] I/dalvikvm( 1047): at android.webkit.WebViewCore$EventHub$1.handleMessage(WebViewCore.java:1158) [TRACE] I/dalvikvm( 1047): at android.os.Handler.dispatchMessage(Handler.java:99) [TRACE] I/dalvikvm( 1047): at android.os.Looper.loop(Looper.java:130) [TRACE] I/dalvikvm( 1047): at android.webkit.WebViewCore$WebCoreThread.run(WebViewCore.java:629) [TRACE] I/dalvikvm( 1047): at java.lang.Thread.run(Thread.java:1019) [TRACE] I/dalvikvm( 1047): [TRACE] E/dalvikvm( 1047): VM aborting [TRACE] I/DEBUG ( 31): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** [TRACE] I/DEBUG ( 31): Build fingerprint: 'generic/google_sdk/generic:2.3.4/GINGERBREAD/123630:eng/test-keys' ...

Comments

  1. Paul Dowsett 2011-08-10

    Adrien Please raise a Q&A question before creating a ticket here. Please see [The Bug-Reporting Lifecycle](http://wiki.appcelerator.org/display/guides/Contributing+to+Titanium#ContributingtoTitanium-TheBugReportingLifecycle) to understand the process of raising tickets. Thanks
  2. Paul Dowsett 2011-10-07

    Closing due to inactivity.

JSON Source