5 Replies Latest reply on Mar 16, 2014 11:03 PM by Kutir Mobility

    Native Tabbar fails with Android 4.4.2 you can duplicate it with rhodes-system-api-samples-master tabbar test

    Brian Jones

      I'm using a Nexus 7 Tablet and with the latest Android OS 4.4.2 update.   My application which uses a Native Tabbar has failures.

       

      You can duplicate the problem using the rhodes-system-api-samples-master Native TabbarTest.    In the test click "Tabbar" if that creates a tabbar, click No Bar and then Tabbar again....usually with Android OS 4.4.2 the application exits with a popup message "Unfortunately, <program name> has stopped.

       

      It seems to be at the Rho::NativeTabbar.create(...) ... \.    But it's an intermittant problem (generally fails...but sometimes works as it should)  Seems like there's something like a race condition happening within an App built with RhoStudio at the creation of a Native Tabbar when running on Android 4.4.2  (the same application .apk works on earlier versions of the Android OS).

       

      The Test program that contains the Native TabbarTest can be found at: rhomobile/rhodes-system-api-samples · GitHub

       

      I'm using SDK Version 19, and RhoStudio version 4.0.0 running on a Macbook Pro running Mac OS-X 10.9.1.

       

      Any solution to this problem?

       

      Here's some console output:

       

      I/APP     (22024): I 02/17/2014 22:58:46:787 0000562a RHO NativeTabbarTestController| Layout file: /data/data/com.rhomobile.tabtest/rhodata/apps/app/NativeTabbarTest/layout_erb.iseq. Content size: 2322

      I/APP     (22024): I 02/17/2014 22:58:46:792 0000562a           HttpServer| GC Start.

      I/APP     (22024): I 02/17/2014 22:58:46:813 0000562a           HttpServer| GC End.

      I/APP     (22024): I 02/17/2014 22:58:47:030 0000562a           HttpServer| Process URI: '/public/jquery/jquery-1.6.4.min.js'

      I/APP     (22024): E 02/17/2014 22:58:47:031 0000562a           HttpServer| The file /public/jquery/jquery-1.6.4.min.js was not found

      I/APP     (22024): I 02/17/2014 22:58:49:406 00005608     RhoWebViewClient| Loading URL: http://localhost:42211/app/NativeTabbarTest/set_no_bar

      I/APP     (22024): I 02/17/2014 22:58:49:448 0000562a           HttpServer| Process URI: '/app/NativeTabbarTest/set_no_bar'

      I/APP     (22024): I 02/17/2014 22:58:49:448 0000562a                  APP| RHO serve: /app/NativeTabbarTest/set_no_bar

      I/APP     (22024): I 02/17/2014 22:58:49:449 0000562a                  APP| location: http://localhost:42211/app/NativeTabbarTest

      V/SimpleMainView.View(22024): ms[1392695929457]  Main Window :: onSizeChanged() old [ 800 x 1139 ]  new [ 0 x 0 ]

      I/APP     (22024): I 02/17/2014 22:58:49:458 0000562a RHO NativeTabbarTestController| Layout file: /data/data/com.rhomobile.tabtest/rhodata/apps/app/NativeTabbarTest/layout_erb.iseq. Content size: 1939

      I/APP     (22024): I 02/17/2014 22:58:49:463 0000562a           HttpServer| GC Start.

      I/APP     (22024): I 02/17/2014 22:58:49:478 0000562a           HttpServer| GC End.

      D/dalvikvm(22024): GC_CONCURRENT freed 246K, 3% free 10749K/11032K, paused 4ms+7ms, total 38ms

      I/APP     (22024): I 02/17/2014 22:58:50:939 00005608     RhoWebViewClient| Loading URL: http://localhost:42211/app/NativeTabbarTest/set_tabbar

      I/APP     (22024): I 02/17/2014 22:58:50:961 0000562a           HttpServer| Process URI: '/app/NativeTabbarTest/set_tabbar'

      I/APP     (22024): I 02/17/2014 22:58:50:962 0000562a                  APP| RHO serve: /app/NativeTabbarTest/set_tabbar

      I/APP     (22024): I 02/17/2014 22:58:50:963 0000562a                  APP| location: http://localhost:42211/app/NativeTabbarTest/set_no_bar

      I/APP     (22024): I 02/17/2014 22:58:50:966 0000562a RHO NativeTabbarTestController| Layout file: /data/data/com.rhomobile.tabtest/rhodata/apps/app/NativeTabbarTest/layout_erb.iseq. Content size: 448

      I/APP     (22024): I 02/17/2014 22:58:50:970 0000562a           HttpServer| GC Start.

      I/APP     (22024): I 02/17/2014 22:58:50:991 0000562a           HttpServer| GC End.

      V/TABBAR  (22024): ms[1392695930998] create() result callback is not null !

      V/SimpleMainView.View(22024): ms[1392695931053]  Main Window :: onSizeChanged() old [ 800 x 1054 ]  new [ 0 x 0 ]

      W/AwContents(22024): nativeOnDraw failed; clearing to background color.

      I/APP     (22024): I 02/17/2014 22:58:51:075 00005608  WebSettingsProvider| Set web plugins state 'ON'

      I/APP     (22024): I 02/17/2014 22:58:51:078 00005608  WebSettingsProvider| Allow universal access from file URL

      I/APP     (22024): I 02/17/2014 22:58:51:078 00005608  WebSettingsProvider| Set web plugins state 'ON'

      I/APP     (22024): I 02/17/2014 22:58:51:079 00005608  WebSettingsProvider| Allow universal access from file URL

      I/APP     (22024): I 02/17/2014 22:58:51:079 00005608        GoogleWebView| Setting RhoWebChromeClient and RhoWebViewClient

      I/APP     (22024): I 02/17/2014 22:58:51:085 00005608  WebSettingsProvider| Set web plugins state 'ON'

      I/APP     (22024): I 02/17/2014 22:58:51:089 00005608  WebSettingsProvider| Allow universal access from file URL

      I/APP     (22024): I 02/17/2014 22:58:51:089 00005608  WebSettingsProvider| Set web plugins state 'ON'

      I/APP     (22024): I 02/17/2014 22:58:51:089 00005608  WebSettingsProvider| Allow universal access from file URL

      I/APP     (22024): I 02/17/2014 22:58:51:090 00005608        GoogleWebView| Setting RhoWebChromeClient and RhoWebViewClient

      I/APP     (22024): I 02/17/2014 22:58:51:092 00005608  WebSettingsProvider| Set web plugins state 'ON'

      I/APP     (22024): I 02/17/2014 22:58:51:096 00005608  WebSettingsProvider| Allow universal access from file URL

      I/APP     (22024): I 02/17/2014 22:58:51:096 00005608  WebSettingsProvider| Set web plugins state 'ON'

      I/APP     (22024): I 02/17/2014 22:58:51:096 00005608  WebSettingsProvider| Allow universal access from file URL

      I/APP     (22024): I 02/17/2014 22:58:51:097 00005608        GoogleWebView| Setting RhoWebChromeClient and RhoWebViewClient

      I/APP     (22024): I 02/17/2014 22:58:51:099 00005608       SimpleMainView| Cleared URL: http://localhost:42211/app/NativeTabbarTest

      D/AndroidRuntime(22024): Shutting down VM

      W/dalvikvm(22024): threadid=1: thread exiting with uncaught exception (group=0x41a11ba8)

      E/AndroidRuntime(22024): FATAL EXCEPTION: main

      E/AndroidRuntime(22024): Process: com.rhomobile.tabtest, PID: 22024

      E/AndroidRuntime(22024): java.lang.IllegalArgumentException: Wrong WebView handle: android.webkit.WebView{4249c308 VFEDHVC. ......ID 0,0-800,1139}

      E/AndroidRuntime(22024): at com.rhomobile.rhodes.mainview.TabbedMainView.getTab(TabbedMainView.java:389)

      E/AndroidRuntime(22024): at com.rhomobile.rhodes.mainview.TabbedMainView.getWebViewTab(TabbedMainView.java:941)

      E/AndroidRuntime(22024): at com.rhomobile.rhodes.extmanager.RhoExtManagerImpl.onNavigateComplete(RhoExtManagerImpl.java:451)

      E/AndroidRuntime(22024): at com.rhomobile.rhodes.webview.RhoWebViewClient.onPageFinished(RhoWebViewClient.java:114)

      E/AndroidRuntime(22024): at com.android.webview.chromium.WebViewContentsClientAdapter.onPageFinished(WebViewContentsClientAdapter.java:449)

      E/AndroidRuntime(22024): at com.android.org.chromium.android_webview.AwContentsClient$AwWebContentsObserver$1.run(AwContentsClient.java:73)

      E/AndroidRuntime(22024): at android.os.Handler.handleCallback(Handler.java:733)

      E/AndroidRuntime(22024): at android.os.Handler.dispatchMessage(Handler.java:95)

      E/AndroidRuntime(22024): at android.os.Looper.loop(Looper.java:136)

      E/AndroidRuntime(22024): at android.app.ActivityThread.main(ActivityThread.java:5017)

      E/AndroidRuntime(22024): at java.lang.reflect.Method.invokeNative(Native Method)

      E/AndroidRuntime(22024): at java.lang.reflect.Method.invoke(Method.java:515)

      E/AndroidRuntime(22024): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)

      E/AndroidRuntime(22024): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)

      E/AndroidRuntime(22024): at dalvik.system.NativeStart.main(Native Method)

      W/ActivityManager(  504):   Force finishing activity com.rhomobile.tabtest/com.rhomobile.rhodes.RhodesActivity

      W/ActivityManager(  504): Activity pause timeout for ActivityRecord{421a1f68 u0 com.rhomobile.tabtest/com.rhomobile.rhodes.RhodesActivity t31 f}

      W/ActivityManager(  504): Activity destroy timeout for ActivityRecord{421a1f68 u0 com.rhomobile.tabtest/com.rhomobile.rhodes.RhodesActivity t31 f}

      D/dalvikvm(27531): GC_CONCURRENT freed 390K, 6% free 7648K/8076K, paused 4ms+4ms, total 36ms