Android 4.3 / 4.4.2 and Crosswalk App Unable to Start


#1

Hello firstly sorry my english.

Im trying to make ionic app. My app working good with Android 5.0 with crosswalk. But not working with Android 4.3 + Crosswalk. If i remove browser crosswalk my app working correctly on Android 4.3. How can fix this?

POST UPDATE - 1
Now i tried on Android 4.4.2 but same issue. App unable to start.

Note

Im tried with clean starter app without plugins but app not work.

ionic start myApp blank
ionic add platform android
ionic browser add crosswalk
ionic emulate android

// Result: unable to start.

ADB LOGCAT OUTPUT

/dalvikvm( 2311): VFY: unable to resolve virtual method 1291: Landroid/view/inputmethod/InputMethodManager;.updateCursorAnchorInfo (Landroid/view/View;Landroid/view/inputmethod/CursorAnchorInfo;)V
    D/dalvikvm( 2311): VFY: replacing opcode 0x6e at 0x000a
    E/chromium( 2311): [ERROR:unix_domain_server_socket_posix.cc(106)] Not implemented reached in virtual int net::UnixDomainServerSocket::GetLocalAddress(net::IPEndPoint*) const
    D/dalvikvm( 2311): GC_CONCURRENT freed 281K, 17% free 2669K/3180K, paused 8ms+1ms, total 10ms
    D/dalvikvm( 2311): GREF has increased to 301
    W/ContextImpl( 2311): Unable to create external cache directory
    D/PluginManager( 2311): init()
    D/Whitelist( 2311): Unlimited access to network resources
    D/dalvikvm( 2311): GC_FOR_ALLOC freed 198K, 14% free 2789K/3216K, paused 4ms, total 5ms
    I/dalvikvm-heap( 2311): Grow heap (frag case) to 6.458MB for 3686412-byte allocation
    D/dalvikvm( 2311): GC_FOR_ALLOC freed <1K, 7% free 6389K/6820K, paused 3ms, total 3ms
    D/dalvikvm( 2311): GC_CONCURRENT freed 1K, 7% free 6387K/6820K, paused 1ms+0ms, total 3ms
    V/StatusBar( 2311): StatusBar: initialization
    D/CordovaWebViewImpl( 2311): >>> loadUrl(file:///android_asset/www/index.html)
    I/dalvikvm( 2311): Could not find method android.app.Activity.finishAndRemoveTask, referenced from method org.chromium.base.ApiCompatibilityUtils.finishAndRemoveTask
    W/dalvikvm( 2311): VFY: unable to resolve virtual method 4: Landroid/app/Activity;.finishAndRemoveTask ()V
    D/dalvikvm( 2311): VFY: replacing opcode 0x6e at 0x0006
    I/dalvikvm( 2311): Could not find method android.os.PowerManager.isInteractive, referenced from method org.chromium.base.ApiCompatibilityUtils.isInteractive
    W/dalvikvm( 2311): VFY: unable to resolve virtual method 799: Landroid/os/PowerManager;.isInteractive ()Z
    D/dalvikvm( 2311): VFY: replacing opcode 0x6e at 0x000e
    I/dalvikvm( 2311): Could not find method android.view.Window.getNavigationBarColor, referenced from method org.chromium.base.ApiCompatibilityUtils.setStatusBarColor
    W/dalvikvm( 2311): VFY: unable to resolve virtual method 1192: Landroid/view/Window;.getNavigationBarColor ()I
    D/dalvikvm( 2311): VFY: replacing opcode 0x6e at 0x0010
    I/dalvikvm( 2311): Could not find method android.view.Window.setStatusBarColor, referenced from method org.chromium.base.ApiCompatibilityUtils.setStatusBarColor
    W/dalvikvm( 2311): VFY: unable to resolve virtual method 1198: Landroid/view/Window;.setStatusBarColor (I)V
    D/dalvikvm( 2311): VFY: replacing opcode 0x6e at 0x0019
    E/dalvikvm( 2311): Could not find class 'android.app.ActivityManager$TaskDescription', referenced from method org.chromium.base.ApiCompatibilityUtils.setTaskDescription
    W/dalvikvm( 2311): VFY: unable to resolve new-instance 11 (Landroid/app/ActivityManager$TaskDescription;) in Lorg/chromium/base/ApiCompatibilityUtils;
    D/dalvikvm( 2311): VFY: replacing opcode 0x22 at 0x0006
    D/dalvikvm( 2311): DexOpt: unable to opt direct call 0x0028 at 0x08 in Lorg/chromium/base/ApiCompatibilityUtils;.setTaskDescription
    I/chromium( 2311): [INFO:xwalk_extension_renderer_controller.cc(47)] EXTENSION PROCESS DISABLED.
    D/CordovaActivity( 2311): Resumed the activity.
    W/TextureView( 2311): A TextureView or a subclass can only be used with hardware acceleration enabled.
    D/gralloc_goldfish( 2311): Emulator without GPU emulation detected.
    F/chromium( 2311): [FATAL:gl_surface_android.cc(58)] Check failed: kGLImplementationNone != GetGLImplementation() (0 vs. 0)
    F/libc    ( 2311): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1), thread 2360 (Chrome_InProcGp)
    I/DEBUG   (  947): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    I/DEBUG   (  947): Build fingerprint: 'generic_x86/sdk_x86/generic_x86:4.3/JSS15J/eng.android-build.20130801.155736:eng/test-keys'
    I/DEBUG   (  947): Revision: '0'
    I/DEBUG   (  947): pid: 2311, tid: 2360, name: Chrome_InProcGp  >>> com.ionicframework.cinecorn489495 <<<
    I/DEBUG   (  947): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadbaad
    I/AudioService( 1225):  AudioFocus  abandonAudioFocus() from android.media.AudioManager@b11e82b0com.android.music.MediaPlaybackService$3@b11e6f50
    I/ActivityManager( 1225): Displayed com.ionicframework.cinecorn489495/.MainActivity: +1s685ms
    I/DEBUG   (  947):     eax 00000000  ebx b776efd8  ecx a3acae1a  edx 00000000
    I/DEBUG   (  947):     esi b4f33000  edi a3acb1cc
    I/DEBUG   (  947):     xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000000  xss 0000007b
    I/DEBUG   (  947):     eip b7709f02  ebp a3acb6b0  esp a3acb1b0  flags 00210246
    I/DEBUG   (  947): 
    I/DEBUG   (  947): backtrace:
    I/DEBUG   (  947):     #00  pc 0002ff02  /system/lib/libc.so (abort+114)
    I/DEBUG   (  947):     #01  pc 00214b34  /data/app-lib/com.ionicframework.cinecorn489495-1/libxwalkcore.so
    I/DEBUG   (  947):     #02  pc 00000247  /system/lib/libc.so
    I/DEBUG   (  947): 
    I/DEBUG   (  947): stack:
    I/DEBUG   (  947):          a3acb170  00000000  
    I/DEBUG   (  947):          a3acb174  00000000  
    I/DEBUG   (  947):          a3acb178  00000000  
    I/DEBUG   (  947):          a3acb17c  00000000  
    I/DEBUG   (  947):          a3acb180  00000000  
    I/DEBUG   (  947):          a3acb184  00000000  
    I/DEBUG   (  947):          a3acb188  00000000  
    I/DEBUG   (  947):          a3acb18c  00000000  
    I/DEBUG   (  947):          a3acb190  00000000  
    I/DEBUG   (  947):          a3acb194  00000000  
    I/DEBUG   (  947):          a3acb198  00000000  
    I/DEBUG   (  947):          a3acb19c  00000000  
    I/DEBUG   (  947):          a3acb1a0  00000000  
    I/DEBUG   (  947):          a3acb1a4  00000000  
    I/DEBUG   (  947):          a3acb1a8  00000000  
    I/DEBUG   (  947):          a3acb1ac  00000000  
    I/DEBUG   (  947):     #00  a3acb1b0  00000002  
    I/DEBUG   (  947):          a3acb1b4  a3acb1cc  [stack:2360]
    I/DEBUG   (  947):          a3acb1b8  00000000  
    I/DEBUG   (  947):          a3acb1bc  b770dacc  /system/lib/libc.so (fflush+236)
    I/DEBUG   (  947):          a3acb1c0  b776f248  /system/lib/libc.so
    I/DEBUG   (  947):          a3acb1c4  00000000  
    I/DEBUG   (  947):          a3acb1c8  a63e0825  /data/app-lib/com.ionicframework.cinecorn489495-1/libxwalkcore.so
    I/DEBUG   (  947):          a3acb1cc  fffffbdf  
    I/DEBUG   (  947):          a3acb1d0  00000069  
    I/DEBUG   (  947):          a3acb1d4  a3acb1cc  [stack:2360]
    I/DEBUG   (  947):          a3acb1d8  a64269d9  /data/app-lib/com.ionicframework.cinecorn489495-1/libxwalkcore.so
    I/DEBUG   (  947):          a3acb1dc  b7709e98  /system/lib/libc.so (abort+8)
    I/DEBUG   (  947):          a3acb1e0  a8b7ca7c  /data/app-lib/com.ionicframework.cinecorn489495-1/libxwalkcore.so
    I/DEBUG   (  947):          a3acb1e4  b98082c8  [heap]
    I/DEBUG   (  947):          a3acb1e8  00000000  
    I/DEBUG   (  947):          a3acb1ec  a6426b35  /data/app-lib/com.ionicframework.cinecorn489495-1/libxwalkcore.so
    I/DEBUG   (  947):     #01  a3acb1f0  b776f248  /system/lib/libc.so
    I/DEBUG   (  947):          a3acb1f4  a6426b16  /data/app-lib/com.ionicframework.cinecorn489495-1/libxwalkcore.so
    I/DEBUG   (  947):          a3acb1f8  a8b7ca7c  /data/app-lib/com.ionicframework.cinecorn489495-1/libxwalkcore.so
    I/DEBUG   (  947):          a3acb1fc  a64545b5  /data/app-lib/com.ionicframework.cinecorn489495-1/libxwalkcore.so
    I/DEBUG   (  947):          a3acb200  a3acb260  [stack:2360]
    I/DEBUG   (  947):          a3acb204  00000069  
    I/DEBUG   (  947):          a3acb208  00000001  
    I/DEBUG   (  947):          a3acb20c  b776f248  /system/lib/libc.so
    I/DEBUG   (  947):          a3acb210  00000000  
    I/DEBUG   (  947):          a3acb214  a63dff63  /data/app-lib/com.ionicframework.cinecorn489495-1/libxwalkcore.so
    I/DEBUG   (  947):          a3acb218  a8b7ca7c  /data/app-lib/com.ionicframework.cinecorn489495-1/libxwalkcore.so
    I/DEBUG   (  947):          a3acb21c  00000000  
    I/DEBUG   (  947):          a3acb220  00000000  
    I/DEBUG   (  947):          a3acb224  00000000  
    I/DEBUG   (  947):          a3acb228  a3acb230  [stack:2360]
    I/DEBUG   (  947):          a3acb22c  a3acb6dc  [stack:2360]
    I/DEBUG   (  947): 
    I/DEBUG   (  947): memory map around fault addr deadbaad:
    I/DEBUG   (  947):     bfef3000-bff14000 rw- [stack]
    I/DEBUG   (  947):     (no map for address)
    I/DEBUG   (  947):     (no map above)
    D/dalvikvm( 1225): GC_FOR_ALLOC freed 1239K, 40% free 6625K/10988K, paused 6ms, total 6ms
    I/BootReceiver( 1225): Copying /data/tombstones/tombstone_02 to DropBox (SYSTEM_TOMBSTONE)
    D/Zygote  (  950): Process 2311 terminated by signal (11)
    W/InputDispatcher( 1225): channel 'b172c1a8 com.ionicframework.cinecorn489495/com.ionicframework.cinecorn489495.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
    E/InputDispatcher( 1225): channel 'b172c1a8 com.ionicframework.cinecorn489495/com.ionicframework.cinecorn489495.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
    W/InputDispatcher( 1225): channel 'b14651a8 com.ionicframework.cinecorn489495/com.ionicframework.cinecorn489495.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
    E/InputDispatcher( 1225): channel 'b14651a8 com.ionicframework.cinecorn489495/com.ionicframework.cinecorn489495.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
    I/ActivityManager( 1225): Process com.ionicframework.cinecorn489495 (pid 2311) has died.
    W/ActivityManager( 1225): Force removing ActivityRecord{b178bc58 u0 com.ionicframework.cinecorn489495/.MainActivity}: app died, no saved state
    D/dalvikvm( 1225): GC_CONCURRENT freed 144K, 37% free 6931K/10988K, paused 28ms+33ms, total 82ms
    W/InputDispatcher( 1225): Attempted to unregister already unregistered input channel 'b14651a8 com.ionicframework.cinecorn489495/com.ionicframework.cinecorn489495.MainActivity (server)'
    I/WindowState( 1225): WIN DEATH: Window{b14651a8 u0 com.ionicframework.cinecorn489495/com.ionicframework.cinecorn489495.MainActivity}
    W/InputDispatcher( 1225): Attempted to unregister already unregistered input channel 'b172c1a8 com.ionicframework.cinecorn489495/com.ionicframework.cinecorn489495.MainActivity (server)'
    I/Choreographer( 1225): Skipped 36 frames!  The application may be doing too much work on its main thread.
    I/WindowState( 1225): WIN DEATH: Window{b172c1a8 u0 com.ionicframework.cinecorn489495/com.ionicframework.cinecorn489495.MainActivity}
    I/Choreographer( 1225): Skipped 41 frames!  The application may be doing too much work on its main thread.
    I/Choreographer( 1225): Skipped 41 frames!  The application may be doing too much work on its main thread.
    D/dalvikvm( 1225): GC_CONCURRENT freed 1401K, 41% free 6532K/10988K, paused 0ms+1ms, total 23ms
    D/dalvikvm( 1225): GC_CONCURRENT freed 930K, 41% free 6517K/10988K, paused 1ms+1ms, total 9ms
    D/dalvikvm( 1225): GC_CONCURRENT freed 899K, 41% free 6518K/10988K, paused 1ms+0ms, total 12ms

screenshot from emulator

Cordova Plugins

com.ionic.keyboard 1.0.4 "Keyboard"
cordova-plugin-crosswalk-webview 1.0.1-dev "Crosswalk WebView Engine"
cordova-plugin-whitelist 1.0.1-dev "Whitelist"
net.yoik.cordova.plugins.screenorientation 1.3.2 "Screen Orientation"
nl.x-services.plugins.toast 2.0.5 "Toast"
org.apache.cordova.console 0.2.13 "Console"
org.apache.cordova.device 0.3.0 "Device"
org.apache.cordova.splashscreen 1.0.0 "Splashscreen"
org.apache.cordova.statusbar 0.1.10 "StatusBar"

IONIC INFO

OS: Mac OS X Yosemite
Node Version: v0.12.0
Cordova CLI: 5.0.0
Ionic CLI Version: 1.3.22
Xcode version: Xcode 6.2 Build version 6C131e 
ios-sim version: 3.1.1 
ios-deploy version: Not installed

JAVA

java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)
javac 1.8.0_45

Regards.


#2

Same issue, any help?


#3

I also had the same issue, also starting with a clean starter app, and basically following the same steps as the original post. This started after I updated to the Cordova 5.0.0 CLI and the latest cordova-android. Previously when using the Cordova 4.x CLI and an older version of cordova-android it worked fine.


#4

Same here, I have launched an app that will crash immediately. Please help.


#5

Same here. Immediate crash.


#6

Has anyone figured this out? Kind of a bummer…


#7

I’m able to replicate this problem very easily. It happens with the default ionic start if you just do the following steps:

ionic start test
ionic platform add android
ionic browser add crosswalk
ionic build android

The apk will fail to start on some devices running 4.3 and 4.4.2 but seems to work fine on 4.4.4 and above.

Not all devices running 4.4.2 seem to be affected. For example a 2012 Nexus 7 running 4.4.2 starts the app without issue but a 2014 Asus Notepad HD 7 gets the error “Unfortunately (Test) has stopped” before even reaching the splash.

Could be a Crosswalk issue or an Ionic bug…anyone with possible ideas to work around?


#8

Crosswalk issue. Possibly solved. I specified an older version in config and so far testing fine

<preference name="xwalkVersion" value="11" />

#9

Same problem here, only if device is connected with my Mac.
Nexus 6, Android 5.1.1


#10

Turns out my app was crashing because I had an older version of the file-transfer plugin installed. Switched from “org.apache.cordova.file-transfer” to “cordova-plugin-file-transfer”. Everything seems to be working now.

  • original message:

Crosswalk is working great for Android 4.4.4, 5.0 and 5.1.0. On 4.2.2 and 4.3, the app loads but then immediately crashes. I don’t see any errors in the chrome dev tools. In Studio I see

ERROR:unix_domain_server_socket_posix.cc(106) Not implemented reached in virtual int net::UnixDomainServerSocket::GetLocalAddress(net::IPEndPoint*) const

Changing to version 11 as @sunylyons suggested did not seem to make a difference. Will try a few other versions of crosswalk.


#11

Have this same issue, but not using ionic. Just using crosswalk with cordova. Sucks and cannot figure it out.