java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode

JIRA | Tommy | 2 years ago
  1. 0

    [#XWALK-3380] Crosswalk Cordova 11.40.277.1-arm application won't launch

    crosswalk-project.org | 1 year ago
    java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode
  2. 0

    Impacted Cases ============== Cordova-Crosswalk 11 applications Reproduce Test Steps ==================== Follow Migrate to Crosswalk steps detailed here: https://crosswalk-project.org/documentation/cordova/migrate_an_application.html Change instances of "--target" to "android-21" Cordova Build runs correctly after targets change to "android-21" and installs on device correctly. Expected Outcome ================ App to Launch. Actual Outcome ============== App does not Launch. Test Case Source Code ===================== Test Builds =========== Issue Analysis ============== Logcat output: I/ActivityManager(21060): Start proc com.myapp.app for activity com.myapp.app/.MyApp: pid=868 uid=10252 gids={50252, 3003, 1028, 1015} I/CordovaLog( 868): Changing log level to DEBUG(3) D/CordovaActivity( 868): CordovaActivity.init() I/art ( 5755): Heap trim of managed (duration=7.837136ms, advised=2MB) and native (duration=2.295260ms, advised=96KB) heaps. Managed heap utilization of 46%. E/art ( 868): Failed to register native method org.chromium.base.library_loader.LibraryLoader.nativeRecordChromiumAndroidLinkerBrowserHistogram(ZZI)V E/chromium( 868): [0116/172851:ERROR:jni_generator_helper.h(29)] RegisterNatives failed in gen/base/jni/LibraryLoader_jni.h W/System.err( 868): java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode W/System.err( 868): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:237) W/System.err( 868): at org.xwalk.core.ReflectionHelper.init(ReflectionHelper.java:132) W/System.err( 868): at org.xwalk.core.ReflectionHelper.loadClass(ReflectionHelper.java:199) W/System.err( 868): at org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:112) W/System.err( 868): at org.apache.cordova.CordovaWebView.<clinit>(CordovaWebView.java:897) W/System.err( 868): at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:340) W/System.err( 868): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:376) W/System.err( 868): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:368) W/System.err( 868): at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:399) W/System.err( 868): at com.myapp.app.MyApp.onCreate(MyApp.java:32) W/System.err( 868): at android.app.Activity.performCreate(Activity.java:5231) W/System.err( 868): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) W/System.err( 868): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) W/System.err( 868): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) W/System.err( 868): at android.app.ActivityThread.access$800(ActivityThread.java:135) W/System.err( 868): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) W/System.err( 868): at android.os.Handler.dispatchMessage(Handler.java:102) W/System.err( 868): at android.os.Looper.loop(Looper.java:136) W/System.err( 868): at android.app.ActivityThread.main(ActivityThread.java:5001) W/System.err( 868): at java.lang.reflect.Method.invoke(Native Method) W/System.err( 868): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) W/System.err( 868): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) D/AndroidRuntime( 868): Shutting down VM E/AndroidRuntime( 868): FATAL EXCEPTION: main E/AndroidRuntime( 868): Process: com.myapp.app, PID: 868 E/AndroidRuntime( 868): java.lang.ExceptionInInitializerError E/AndroidRuntime( 868): at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:340) E/AndroidRuntime( 868): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:376) E/AndroidRuntime( 868): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:368) E/AndroidRuntime( 868): at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:399) E/AndroidRuntime( 868): at com.myapp.app.MyApp.onCreate(MyApp.java:32) E/AndroidRuntime( 868): at android.app.Activity.performCreate(Activity.java:5231) E/AndroidRuntime( 868): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) E/AndroidRuntime( 868): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) E/AndroidRuntime( 868): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) E/AndroidRuntime( 868): at android.app.ActivityThread.access$800(ActivityThread.java:135) E/AndroidRuntime( 868): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) E/AndroidRuntime( 868): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime( 868): at android.os.Looper.loop(Looper.java:136) E/AndroidRuntime( 868): at android.app.ActivityThread.main(ActivityThread.java:5001) E/AndroidRuntime( 868): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 868): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) E/AndroidRuntime( 868): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) E/AndroidRuntime( 868): Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode E/AndroidRuntime( 868): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:233) E/AndroidRuntime( 868): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:237) E/AndroidRuntime( 868): at org.xwalk.core.ReflectionHelper.init(ReflectionHelper.java:132) E/AndroidRuntime( 868): at org.xwalk.core.ReflectionHelper.loadClass(ReflectionHelper.java:199) E/AndroidRuntime( 868): at org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:112) E/AndroidRuntime( 868): at org.apache.cordova.CordovaWebView.<clinit>(CordovaWebView.java:897) E/AndroidRuntime( 868): ... 17 more E/AndroidRuntime( 868): Caused by: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode E/AndroidRuntime( 868): ... 22 more W/ActivityManager(21060): Force finishing activity com.myapp.app/.MyApp E/qcom_sensors_hal(21060): hal_process_report_ind: Bad item quality: 11 W/ActivityManager(21060): Activity pause timeout for ActivityRecord{661a7788 u0 com.myapp.app/.MyApp t379 f}

    JIRA | 2 years ago | Tommy
    java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode
  3. 0

    Impacted Cases ============== Cordova-Crosswalk 11 applications Reproduce Test Steps ==================== Follow Migrate to Crosswalk steps detailed here: https://crosswalk-project.org/documentation/cordova/migrate_an_application.html Change instances of "--target" to "android-21" Cordova Build runs correctly after targets change to "android-21" and installs on device correctly. Expected Outcome ================ App to Launch. Actual Outcome ============== App does not Launch. Test Case Source Code ===================== Test Builds =========== Issue Analysis ============== Logcat output: I/ActivityManager(21060): Start proc com.myapp.app for activity com.myapp.app/.MyApp: pid=868 uid=10252 gids={50252, 3003, 1028, 1015} I/CordovaLog( 868): Changing log level to DEBUG(3) D/CordovaActivity( 868): CordovaActivity.init() I/art ( 5755): Heap trim of managed (duration=7.837136ms, advised=2MB) and native (duration=2.295260ms, advised=96KB) heaps. Managed heap utilization of 46%. E/art ( 868): Failed to register native method org.chromium.base.library_loader.LibraryLoader.nativeRecordChromiumAndroidLinkerBrowserHistogram(ZZI)V E/chromium( 868): [0116/172851:ERROR:jni_generator_helper.h(29)] RegisterNatives failed in gen/base/jni/LibraryLoader_jni.h W/System.err( 868): java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode W/System.err( 868): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:237) W/System.err( 868): at org.xwalk.core.ReflectionHelper.init(ReflectionHelper.java:132) W/System.err( 868): at org.xwalk.core.ReflectionHelper.loadClass(ReflectionHelper.java:199) W/System.err( 868): at org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:112) W/System.err( 868): at org.apache.cordova.CordovaWebView.<clinit>(CordovaWebView.java:897) W/System.err( 868): at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:340) W/System.err( 868): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:376) W/System.err( 868): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:368) W/System.err( 868): at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:399) W/System.err( 868): at com.myapp.app.MyApp.onCreate(MyApp.java:32) W/System.err( 868): at android.app.Activity.performCreate(Activity.java:5231) W/System.err( 868): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) W/System.err( 868): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) W/System.err( 868): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) W/System.err( 868): at android.app.ActivityThread.access$800(ActivityThread.java:135) W/System.err( 868): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) W/System.err( 868): at android.os.Handler.dispatchMessage(Handler.java:102) W/System.err( 868): at android.os.Looper.loop(Looper.java:136) W/System.err( 868): at android.app.ActivityThread.main(ActivityThread.java:5001) W/System.err( 868): at java.lang.reflect.Method.invoke(Native Method) W/System.err( 868): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) W/System.err( 868): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) D/AndroidRuntime( 868): Shutting down VM E/AndroidRuntime( 868): FATAL EXCEPTION: main E/AndroidRuntime( 868): Process: com.myapp.app, PID: 868 E/AndroidRuntime( 868): java.lang.ExceptionInInitializerError E/AndroidRuntime( 868): at org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:340) E/AndroidRuntime( 868): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:376) E/AndroidRuntime( 868): at org.apache.cordova.CordovaActivity.init(CordovaActivity.java:368) E/AndroidRuntime( 868): at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:399) E/AndroidRuntime( 868): at com.myapp.app.MyApp.onCreate(MyApp.java:32) E/AndroidRuntime( 868): at android.app.Activity.performCreate(Activity.java:5231) E/AndroidRuntime( 868): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087) E/AndroidRuntime( 868): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148) E/AndroidRuntime( 868): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233) E/AndroidRuntime( 868): at android.app.ActivityThread.access$800(ActivityThread.java:135) E/AndroidRuntime( 868): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196) E/AndroidRuntime( 868): at android.os.Handler.dispatchMessage(Handler.java:102) E/AndroidRuntime( 868): at android.os.Looper.loop(Looper.java:136) E/AndroidRuntime( 868): at android.app.ActivityThread.main(ActivityThread.java:5001) E/AndroidRuntime( 868): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime( 868): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785) E/AndroidRuntime( 868): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601) E/AndroidRuntime( 868): Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode E/AndroidRuntime( 868): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:233) E/AndroidRuntime( 868): at org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:237) E/AndroidRuntime( 868): at org.xwalk.core.ReflectionHelper.init(ReflectionHelper.java:132) E/AndroidRuntime( 868): at org.xwalk.core.ReflectionHelper.loadClass(ReflectionHelper.java:199) E/AndroidRuntime( 868): at org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:112) E/AndroidRuntime( 868): at org.apache.cordova.CordovaWebView.<clinit>(CordovaWebView.java:897) E/AndroidRuntime( 868): ... 17 more E/AndroidRuntime( 868): Caused by: java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode E/AndroidRuntime( 868): ... 22 more W/ActivityManager(21060): Force finishing activity com.myapp.app/.MyApp E/qcom_sensors_hal(21060): hal_process_report_ind: Bad item quality: 11 W/ActivityManager(21060): Activity pause timeout for ActivityRecord{661a7788 u0 com.myapp.app/.MyApp t379 f}

    JIRA | 2 years ago | Tommy
    java.lang.RuntimeException: Use SharedXWalkView if you want to support shared mode
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      Use SharedXWalkView if you want to support shared mode

      at org.xwalk.core.ReflectionHelper.handleException()
    2. org.xwalk.core
      XWalkPreferences.setValue
      1. org.xwalk.core.ReflectionHelper.handleException(ReflectionHelper.java:237)
      2. org.xwalk.core.ReflectionHelper.init(ReflectionHelper.java:132)
      3. org.xwalk.core.ReflectionHelper.loadClass(ReflectionHelper.java:199)
      4. org.xwalk.core.XWalkPreferences.setValue(XWalkPreferences.java:112)
      4 frames
    3. org.apache.cordova
      CordovaActivity.loadUrl
      1. org.apache.cordova.CordovaWebView.<clinit>(CordovaWebView.java:897)
      2. org.apache.cordova.CordovaActivity.makeWebView(CordovaActivity.java:340)
      3. org.apache.cordova.CordovaActivity.init(CordovaActivity.java:376)
      4. org.apache.cordova.CordovaActivity.init(CordovaActivity.java:368)
      5. org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:399)
      5 frames
    4. com.myapp.app
      MyApp.onCreate
      1. com.myapp.app.MyApp.onCreate(MyApp.java:32)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.app.Activity.performCreate(Activity.java:5231)
      2. android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
      3. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2148)
      4. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2233)
      5. android.app.ActivityThread.access$800(ActivityThread.java:135)
      6. android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
      7. android.os.Handler.dispatchMessage(Handler.java:102)
      8. android.os.Looper.loop(Looper.java:136)
      9. android.app.ActivityThread.main(ActivityThread.java:5001)
      9 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
      2 frames