Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10407] Android: Window containing webView crashes the App

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-08-15T13:18:39.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsapi
ReporterNikhil Sharma
AssigneeHieu Pham
Created2012-08-10T17:17:41.000+0000
Updated2017-03-10T00:00:17.000+0000

Description

The app is crashing when trying to access a window that contains a webview. Please find attached the crash logs and the sample project provided by the customer.

Repo Steps

1. Run the attached project in studio. 2. Open the app. 3. Tap on tab to the right (Open web view url). 4. Quickly scroll to the bottom of the window. 5. Tap hard back button 6. Wait for a second or two and a dialog window is displayed 'Unfortunately, OpenURL has stopped'

Attachments

FileDateSize
crash_log.rtf2012-08-10T17:17:41.000+000012642
OpenURL 2.zip2012-08-10T17:17:41.000+0000766909

Comments

  1. Ping Wang 2012-08-15

    Tested on Galaxy Nexus (4.0.2). Can not see a dialog window with 'Unfortunately, OpenURL has stopped'. It throws an exception in the log but does not crash.
       
       /WindowManager(  172): Force-removing child win Window{414fe270 Panel:com.emc.openurl/org.appcelerator.titanium.TiActivity paused=false} from container Window{4160f568 com.emc.openurl/ti.modules.titanium.ui.TiTabActivity paused=false}
       W/WindowManager(  172): Failed looking up window
       W/WindowManager(  172): java.lang.IllegalArgumentException: Requested window android.os.BinderProxy@4140bf40 does not exist
       W/WindowManager(  172): 	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7156)
       W/WindowManager(  172): 	at com.android.server.wm.WindowManagerService.windowForClientLocked(WindowManagerService.java:7147)
       W/WindowManager(  172): 	at com.android.server.wm.WindowManagerService.removeWindow(WindowManagerService.java:2209)
       W/WindowManager(  172): 	at com.android.server.wm.Session.remove(Session.java:149)
       W/WindowManager(  172): 	at android.view.IWindowSession$Stub.onTransact(IWindowSession.java:124)
       W/WindowManager(  172): 	at com.android.server.wm.Session.onTransact(Session.java:111)
       W/WindowManager(  172): 	at android.os.Binder.execTransact(Binder.java:338)
       W/WindowManager(  172): 	at dalvik.system.NativeStart.run(Native Method)
       
  2. Hieu Pham 2012-08-15

    Tested on 4.0.4 on both master and 2.1.X. Cannot reproduce the crash. Closing bug.
  3. Lee Morris 2017-03-10

    Closing this ticket as the issue cannot be reproduced.

JSON Source