Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-8333

Crash on Android 4.2.2 but not in 2.3.3 or 4.4.4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 3.5.0
    • 3.5.0
    • None
    • Specify a splash screen image and compile with Cordova 3.5, the app crash on android 4.2.2 but not in 2.3.3 or 4.4.4

    Description

      The app crash on startup.

      Here is the logcat.

      I/ActivityManager( 291): START u0

      {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=xdk.intel.cordova.my.helloworld/.helloworld}

      from pid 445

      D/PermissionCache( 37): checking android.permission.READ_FRAME_BUFFER for uid=1000 => granted (1372 us)

      W/WindowManager( 291): Failure taking screenshot for (237x148) to layer 21005

      I/Choreographer( 445): Skipped 32 frames! The application may be doing too much work on its main thread.

      E/SurfaceFlinger( 37): ro.sf.lcd_density must be defined as a build property

      I/ActivityManager( 291): Start proc xdk.intel.cordova.my.helloworld for activity xdk.intel.cordova.my.helloworld/.helloworld: pid=948 uid=10047 gids=

      {50047, 3003, 1028}

      D/dalvikvm( 38): GC_EXPLICIT freed 37K, 8% free 2369K/2552K, paused 6ms+6ms, total 153ms

      D/dalvikvm( 38): GC_EXPLICIT freed <1K, 8% free 2369K/2552K, paused 12ms+6ms, total 142ms

      D/dalvikvm( 38): GC_EXPLICIT freed <1K, 8% free 2369K/2552K, paused 25ms+7ms, total 148ms

      E/Trace ( 948): error opening trace file: No such file or directory (2)

      I/CordovaLog( 948): Changing log level to DEBUG(3)

      I/CordovaLog( 948): Found start page location: index.html

      D/Whitelist( 948): Unlimited access to network resources

      D/CordovaActivity( 948): CordovaActivity.onCreate()

      I/ARMAssembler( 37): generated scanline__00000077:03010104_00008001_00000000 [ 89 ipp] (110 ins) at [0x426aa460:0x426aa618] in 6739579 ns

      I/dalvikvm( 948): Could not find method org.apache.cordova.CordovaWebView.setWebContentsDebuggingEnabled, referenced from method org.apache.cordova.CordovaWebView.setup

      W/dalvikvm( 948): VFY: unable to resolve static method 2331: Lorg/apache/cordova/CordovaWebView;.setWebContentsDebuggingEnabled (Z)V

      D/dalvikvm( 948): VFY: replacing opcode 0x71 at 0x00be

      D/dalvikvm( 948): GC_CONCURRENT freed 83K, 8% free 2741K/2968K, paused 14ms+24ms, total 240ms

      D/CordovaWebView( 948): CordovaWebView is running on device made by: unknown

      D/JsMessageQueue( 948): Set native->JS mode to 2

      D/CordovaActivity( 948): CordovaActivity.init()

      W/ResourceType( 948): Failure getting entry for 0x7f020002 (t=1 e=2) in package 0 (error -75)

      D/AndroidRuntime( 948): Shutting down VM

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

      E/AndroidRuntime( 948): FATAL EXCEPTION: main

      E/AndroidRuntime( 948): java.lang.RuntimeException: Unable to start activity ComponentInfo

      {xdk.intel.cordova.my.helloworld/xdk.intel.cordova.my.helloworld.helloworld}

      : android.content.res.Resources$NotFoundException: Resource ID #0x7f020002

      E/AndroidRuntime( 948): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)

      E/AndroidRuntime( 948): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)

      E/AndroidRuntime( 948): at android.app.ActivityThread.access$600(ActivityThread.java:141)

      E/AndroidRuntime( 948): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)

      E/AndroidRuntime( 948): at android.os.Handler.dispatchMessage(Handler.java:99)

      E/AndroidRuntime( 948): at android.os.Looper.loop(Looper.java:137)

      E/AndroidRuntime( 948): at android.app.ActivityThread.main(ActivityThread.java:5041)

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

      E/AndroidRuntime( 948): at java.lang.reflect.Method.invoke(Method.java:511)

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

      E/AndroidRuntime( 948): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)

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

      E/AndroidRuntime( 948): Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x7f020002

      E/AndroidRuntime( 948): at android.content.res.Resources.getValue(Resources.java:1014)

      E/AndroidRuntime( 948): at android.content.res.Resources.getDrawable(Resources.java:659)

      E/AndroidRuntime( 948): at android.view.View.setBackgroundResource(View.java:14468)

      E/AndroidRuntime( 948): at org.apache.cordova.CordovaActivity$5.run(CordovaActivity.java:1070)

      E/AndroidRuntime( 948): at android.app.Activity.runOnUiThread(Activity.java:4644)

      E/AndroidRuntime( 948): at org.apache.cordova.CordovaActivity.showSplashScreen(CordovaActivity.java:1093)

      E/AndroidRuntime( 948): at org.apache.cordova.CordovaActivity.loadUrl(CordovaActivity.java:370)

      E/AndroidRuntime( 948): at xdk.intel.cordova.my.helloworld.helloworld.onCreate(helloworld.java:33)

      E/AndroidRuntime( 948): at android.app.Activity.performCreate(Activity.java:5104)

      E/AndroidRuntime( 948): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)

      E/AndroidRuntime( 948): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)

      E/AndroidRuntime( 948): ... 11 more

      W/ActivityManager( 291): Force finishing activity xdk.intel.cordova.my.helloworld/.helloworld

      W/WindowManager( 291): Failure taking screenshot for (237x148) to layer 21010

      D/dalvikvm( 291): GC_FOR_ALLOC freed 198K, 19% free 5512K/6740K, paused 214ms, total 224ms

      I/dalvikvm-heap( 291): Grow heap (frag case) to 5.794MB for 281896-byte allocation

      D/dalvikvm( 291): GC_FOR_ALLOC freed 7K, 18% free 5780K/7016K, paused 270ms, total 270ms

      W/ActivityManager( 291): Activity pause timeout for ActivityRecord

      {40e63f08 u0 xdk.intel.cordova.my.helloworld/.helloworld}

      I/Choreographer( 291): Skipped 35 frames! The application may be doing too much work on its main thread.

      E/SurfaceFlinger( 37): ro.sf.lcd_density must be defined as a build property

      E/SurfaceFlinger( 37): ro.sf.lcd_density must be defined as a build property

      I/ARMAssembler( 37): generated scanline__00000077:03515104_00008001_00000000 [113 ipp] (134 ins) at [0x426aa620:0x426aa838] in 6549399 ns

      I/Process ( 948): Sending signal. PID: 948 SIG: 9

      I/ActivityManager( 291): Process xdk.intel.cordova.my.helloworld (pid 948) has died.

      W/InputMethodManagerService( 291): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@40f380d8 attribute=null, token = android.os.BinderProxy@41079648

      Attachments

        Activity

          People

            bowserj Joey Robert Bowser
            lucianonapoli Luciano
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: