Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-6087] Android: Facebook: v8 only: Publish stream, wall post with dialog sometimes crashes

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2011-11-30T15:33:25.000+0000
Affected Version/sRelease 1.8.0
Fix Version/sSprint 2011-48, Release 1.8.0.1
ComponentsAndroid
Labelsbranch-v8
ReporterEric Merriman
AssigneeBill Dawson
Created2011-11-08T11:36:14.000+0000
Updated2014-06-19T12:43:15.000+0000

Description

Description: This test crashes for me reliably on the Galaxy Tab 10.1. On the Nexus S, it crashed once out of 3 times. Console output: E/TiApplication( 2399): (KrollRuntimeThread) [1362,50228] Sending event: exception on thread: KrollRuntimeThread msg:android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@40a5e5b0 is not valid; is your activity running?; Titanium 1.8.0.1,2011/11/08 10:56,31f6a70 E/TiApplication( 2399): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@40a5e5b0 is not valid; is your activity running? E/TiApplication( 2399): at android.view.ViewRoot.setView(ViewRoot.java:448) E/TiApplication( 2399): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:181) E/TiApplication( 2399): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:95) E/TiApplication( 2399): at android.view.Window$LocalWindowManager.addView(Window.java:526) E/TiApplication( 2399): at android.app.Dialog.show(Dialog.java:269) E/TiApplication( 2399): at com.facebook.android.FbDialog$FbWebViewClient.onPageStarted(FbDialog.java:196) E/TiApplication( 2399): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:267) E/TiApplication( 2399): at android.os.Handler.dispatchMessage(Handler.java:99) E/TiApplication( 2399): at android.os.Looper.loop(Looper.java:132) E/TiApplication( 2399): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(Unknown Source) W/WindowManager( 291): Attempted to add application window with unknown token ActivityRecord{418f1900 com.appcelerator.titanium/org.appcelerator.titanium.TiActivity}. Aborting. E/AndroidRuntime( 2399): FATAL EXCEPTION: KrollRuntimeThread E/AndroidRuntime( 2399): android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@40a5e5b0 is not valid; is your activity running? E/AndroidRuntime( 2399): at android.view.ViewRoot.setView(ViewRoot.java:448) E/AndroidRuntime( 2399): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:181) E/AndroidRuntime( 2399): at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:95) E/AndroidRuntime( 2399): at android.view.Window$LocalWindowManager.addView(Window.java:526) E/AndroidRuntime( 2399): at android.app.Dialog.show(Dialog.java:269) E/AndroidRuntime( 2399): at com.facebook.android.FbDialog$FbWebViewClient.onPageStarted(FbDialog.java:196) E/AndroidRuntime( 2399): at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:267) E/AndroidRuntime( 2399): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime( 2399): at android.os.Looper.loop(Looper.java:132) E/AndroidRuntime( 2399): at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(Unknown Source) W/ActivityManager( 291): Force finishing activity com.appcelerator.titanium/org.appcelerator.titanium.TiActivity E/android.os.Debug( 291): Dumpstate > /data/log/dumpstate_app_error Steps to reproduce: 1) Install KS on device 2) Navigate to Mashups>Facebook>Publish stream 3) Click "Publish wall post with dialog" Result: App crashes Expected: Dialog with post details displayed

Comments

  1. Bill Dawson 2011-11-29

    Pull request ready https://github.com/appcelerator/titanium_mobile/pull/782
  2. Natalie Huynh 2011-12-07

    Tested with 1.8.0.1.v20111207090257 Xoom (3.2.1) - v8 Samsung Tab 10.1 (3.1) - rhino

JSON Source