I’ve created an ionic project based on the tabs project called demoapp and made no changes to it. It runs fine in the browser and on my phone, but when I try to run it in my emulator it immediately crashes.
Here is my stack trace from logcat:
09-28 09:44:37.660 1478 1490 I ActivityManager: Start proc 2474:com.ionicframework.demoapp694356/u0a50 for activity com.ionicframework.demoapp694356/.MainActivity
09-28 09:44:37.660 1478 1661 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.ionicframework.demoapp694356/.MainActivity bnds=[368,764][720,1160] (has extras)} from uid 10007 on display 0
09-28 09:44:37.670 2474 2474 I art : Not late-enabling -Xcheck:jni (already on)
09-28 09:44:37.670 2474 2474 I art : Late-enabling JIT
09-28 09:44:37.670 2474 2474 I art : JIT created with code_cache_capacity=2MB compile_threshold=1000
09-28 09:44:37.700 1018 1151 D AudioFlinger: mixer(0xf4500000) throttle end: throttle time(110)
09-28 09:44:37.780 2474 2474 W System : ClassLoader referenced unknown path: /data/app/com.ionicframework.demoapp694356-1/lib/x86_64
09-28 09:44:38.630 1478 2448 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=1 for 680ms
09-28 09:44:39.110 1478 1661 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=1 for 860ms
09-28 09:44:39.110 1478 2448 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=1 for 480ms
09-28 09:44:39.150 2474 2474 I WebViewFactory: Loading com.android.webview version 44.0.2403.119 (code 246011960)
09-28 09:44:39.160 1942 1942 I Choreographer: Skipped 72 frames! The application may be doing too much work on its main thread.
09-28 09:44:39.190 2474 2474 W System : ClassLoader referenced unknown path: /system/app/webview/lib/x86_64
09-28 09:44:39.190 2474 2474 I LibraryLoader: Time to load native libraries: 0 ms (timestamps 9170-9170)
09-28 09:44:39.190 2474 2474 I LibraryLoader: Expected native library version number "",actual native library version number ""
09-28 09:44:39.270 2474 2474 V WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {84e6f66}
09-28 09:44:39.270 2474 2474 I LibraryLoader: Expected native library version number "",actual native library version number ""
09-28 09:44:39.270 2474 2474 I chromium: [INFO:library_loader_hooks.cc(120)] Chromium logging enabled: level = 0, default verbosity = 0
09-28 09:44:39.270 2474 2474 I BrowserStartupController: Initializing chromium process, singleProcess=true
09-28 09:44:39.270 2474 2474 W art : Attempt to remove non-JNI local reference, dumping thread
09-28 09:44:39.270 2474 2474 E SysUtils: ApplicationContext is null in ApplicationStatus
09-28 09:44:39.290 2474 2474 W chromium: [WARNING:resource_bundle.cc(285)] locale_file_path.empty()
09-28 09:44:39.290 2474 2474 E libEGL : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
09-28 09:44:39.290 2474 2474 E libEGL : validate_display:255 error 3008 (EGL_BAD_DISPLAY)
09-28 09:44:39.290 2474 2474 E chromium: [ERROR:gl_surface_egl.cc(327)] No suitable EGL configs found.
09-28 09:44:39.290 2474 2474 E chromium: [ERROR:gl_surface_android.cc(23)] GLSurfaceEGL::InitializeOneOff failed.
09-28 09:44:39.290 2474 2474 E chromium: [ERROR:browser_main_loop.cc(698)] GLSurface::InitializeOneOff failed
09-28 09:44:39.330 2474 2474 E DataReductionProxySettingListener: No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
09-28 09:44:39.340 2474 2502 W AudioManagerAndroid: Requires BLUETOOTH permission
09-28 09:44:39.350 2474 2474 W art : Attempt to remove non-JNI local reference, dumping thread
09-28 09:44:39.360 2474 2474 W AwContents: onDetachedFromWindow called when already detached. Ignoring
09-28 09:44:39.360 2474 2474 D SystemWebViewEngine: CordovaWebView is running on device made by: unknown
09-28 09:44:39.360 2474 2474 W art : Attempt to remove non-JNI local reference, dumping thread
09-28 09:44:39.360 2474 2474 W art : Attempt to remove non-JNI local reference, dumping thread
09-28 09:44:39.760 995 995 E SELinux : avc: denied { find } for service=batteryproperties scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:healthd_service:s0 tclass=service_manager
09-28 09:44:39.780 2474 2500 W chromium: [WARNING:data_reduction_proxy_config.cc(423)] SPDY proxy OFF at startup
09-28 09:44:40.000 2474 2474 D gralloc_goldfish: Emulator without GPU emulation detected.
09-28 09:44:40.250 2474 2515 F chromium: [FATAL:gl_surface_android.cc(58)] Check failed: kGLImplementationNone != GetGLImplementation() (0 vs. 0)
09-28 09:44:40.250 2474 2515 F libc : Fatal signal 6 (SIGABRT), code -6 in tid 2515 (GpuThread)
09-28 09:44:40.370 1005 1005 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
09-28 09:44:40.370 1005 1005 F DEBUG : Build fingerprint: 'generic_x86_64/sdk_phone_x86_64/generic_x86_64:6.0/MRA44C/2166767:eng/test-keys'
09-28 09:44:40.370 1005 1005 F DEBUG : Revision: '0'
09-28 09:44:40.370 1005 1005 F DEBUG : ABI: 'x86_64'
09-28 09:44:40.370 1005 1005 F DEBUG : pid: 2474, tid: 2515, name: GpuThread >>> com.ionicframework.demoapp694356 <<<
09-28 09:44:40.370 1005 1005 F DEBUG : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
09-28 09:44:40.370 1005 1005 F DEBUG : Abort message: '[FATAL:gl_surface_android.cc(58)] Check failed: kGLImplementationNone != GetGLImplementation() (0 vs. 0)
09-28 09:44:40.370 1005 1005 F DEBUG : '
09-28 09:44:40.370 1005 1005 F DEBUG : rax 0000000000000000 rbx 00007f712afb8500 rcx ffffffffffffffff rdx 0000000000000006
09-28 09:44:40.370 1005 1005 F DEBUG : rsi 00000000000009d3 rdi 00000000000009aa
09-28 09:44:40.370 1005 1005 F DEBUG : r8 00007f712afb72d4 r9 00007f712afb8440 r10 0000000000000008 r11 0000000000000206
09-28 09:44:40.370 1005 1005 F DEBUG : r12 00000000000009d3 r13 0000000000000006 r14 0000000000000000 r15 00007f712d0d5fe0
09-28 09:44:40.370 1005 1005 F DEBUG : cs 0000000000000033 ss 000000000000002b
09-28 09:44:40.370 1005 1005 F DEBUG : rip 00007f7142ae3997 rbp 0000000000000000 rsp 00007f712afb7628 eflags 0000000000000206
09-28 09:44:40.370 1005 1005 F DEBUG :
09-28 09:44:40.370 1005 1005 F DEBUG : backtrace:
09-28 09:44:40.370 1005 1005 F DEBUG : #00 pc 0000000000088997 /system/lib64/libc.so (tgkill+7)
09-28 09:44:40.370 1005 1005 F DEBUG : #01 pc 0000000000085b21 /system/lib64/libc.so (pthread_kill+65)
09-28 09:44:40.370 1005 1005 F DEBUG : #02 pc 000000000002e841 /system/lib64/libc.so (raise+17)
09-28 09:44:40.370 1005 1005 F DEBUG : #03 pc 00000000000288fd /system/lib64/libc.so (abort+61)
09-28 09:44:40.370 1005 1005 F DEBUG : #04 pc 00000000006d9b2c /system/app/webview/webview.apk
09-28 09:44:40.370 1005 1005 F DEBUG : #05 pc 000000000000041f <unknown>
09-28 09:44:40.460 1478 1523 I ActivityManager: Displayed com.ionicframework.demoapp694356/.MainActivity: +2s950ms
09-28 09:44:40.650 1005 1005 F DEBUG :
09-28 09:44:40.650 1005 1005 F DEBUG : Tombstone written to: /data/tombstones/tombstone_03
09-28 09:44:40.650 1005 1005 E DEBUG : AM write failed: Broken pipe
09-28 09:44:40.690 1478 1665 W InputDispatcher: channel '2a4974f com.ionicframework.demoapp694356/com.ionicframework.demoapp694356.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
09-28 09:44:40.690 1478 1665 E InputDispatcher: channel '2a4974f com.ionicframework.demoapp694356/com.ionicframework.demoapp694356.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
09-28 09:44:40.690 1478 1665 W InputDispatcher: channel 'f1ad629 com.ionicframework.demoapp694356/com.ionicframework.demoapp694356.MainActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9
09-28 09:44:40.690 1478 1665 E InputDispatcher: channel 'f1ad629 com.ionicframework.demoapp694356/com.ionicframework.demoapp694356.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
09-28 09:44:40.690 1478 1521 I BootReceiver: Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE)
09-28 09:44:40.700 1021 1021 I Zygote : Process 2474 exited due to signal (6)
09-28 09:44:41.060 1478 1747 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=1 for 360ms
09-28 09:44:41.060 1478 1489 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=2 for 360ms
09-28 09:44:41.060 1478 2108 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=3 for 360ms
09-28 09:44:41.060 1478 2108 I WindowState: WIN DEATH: Window{f1ad629 u0 com.ionicframework.demoapp694356/com.ionicframework.demoapp694356.MainActivity}
09-28 09:44:41.060 1478 2108 W InputDispatcher: Attempted to unregister already unregistered input channel 'f1ad629 com.ionicframework.demoapp694356/com.ionicframework.demoapp694356.MainActivity (server)'
09-28 09:44:41.060 1478 2520 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=3 for 170ms
09-28 09:44:41.060 1478 2520 W ActivityManager: Force finishing activity com.ionicframework.demoapp694356/.MainActivity
09-28 09:44:41.070 996 996 D gralloc : Registering a buffer in the process that created it. This may cause memory ordering problems.
09-28 09:44:41.070 996 996 E libEGL : called unimplemented OpenGL ES API
09-28 09:44:41.070 996 996 E SurfaceFlinger: glCheckFramebufferStatusOES error -1146542920
09-28 09:44:41.070 996 996 E SurfaceFlinger: got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
09-28 09:44:41.140 1478 2520 W ActivityManager: Exception thrown during pause
09-28 09:44:41.140 1478 2520 W ActivityManager: android.os.DeadObjectException
09-28 09:44:41.140 1478 2520 W ActivityManager: at android.os.BinderProxy.transactNative(Native Method)
09-28 09:44:41.140 1478 2520 W ActivityManager: at android.os.BinderProxy.transact(Binder.java:503)
09-28 09:44:41.140 1478 2520 W ActivityManager: at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:727)
09-28 09:44:41.140 1478 2520 W ActivityManager: at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:867)
09-28 09:44:41.140 1478 2520 W ActivityManager: at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2907)
09-28 09:44:41.140 1478 2520 W ActivityManager: at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2763)
09-28 09:44:41.140 1478 2520 W ActivityManager: at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2755)
09-28 09:44:41.140 1478 2520 W ActivityManager: at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11971)
09-28 09:44:41.140 1478 2520 W ActivityManager: at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11867)
09-28 09:44:41.140 1478 2520 W ActivityManager: at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12556)
09-28 09:44:41.140 1478 2520 W ActivityManager: at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:12063)
09-28 09:44:41.140 1478 2520 W ActivityManager: at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
09-28 09:44:41.140 1478 1747 I WindowState: WIN DEATH: Window{2a4974f u0 com.ionicframework.demoapp694356/com.ionicframework.demoapp694356.MainActivity}
09-28 09:44:41.140 1478 1747 W InputDispatcher: Attempted to unregister already unregistered input channel '2a4974f com.ionicframework.demoapp694356/com.ionicframework.demoapp694356.MainActivity (server)'
09-28 09:44:41.140 1478 2037 W art : Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService.crashApplication(com.android.server.am.ProcessRecord, android.app.ApplicationErrorReport$CrashInfo) from ActivityManagerService.java:12502 waiters=0 for 440ms
09-28 09:44:41.150 1478 1694 W art : Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService.crashApplication(com.android.server.am.ProcessRecord, android.app.ApplicationErrorReport$CrashInfo) from ActivityManagerService.java:12502 waiters=1 for 420ms
09-28 09:44:41.150 1478 1478 W art : Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService.crashApplication(com.android.server.am.ProcessRecord, android.app.ApplicationErrorReport$CrashInfo) from ActivityManagerService.java:12502 waiters=2 for 370ms
09-28 09:44:41.150 1478 1488 I art : Background partial concurrent mark sweep GC freed 5090(534KB) AllocSpace objects, 16(2MB) LOS objects, 33% free, 6MB/10MB, paused 40ms total 50ms
09-28 09:44:41.180 1478 2037 I ActivityManager: Process com.ionicframework.demoapp694356 (pid 2474) has died
09-28 09:44:41.270 1478 1519 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 110ms
09-28 09:44:41.640 1478 1694 W art : Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService$AppDeathRecipient.binderDied() from ActivityManagerService.java:1305 waiters=1 for 490ms
09-28 09:44:41.640 1478 1478 W art : Long monitor contention event with owner method=void com.android.server.am.ActivityManagerService$AppDeathRecipient.binderDied() from ActivityManagerService.java:1305 waiters=1 for 490ms
09-28 09:44:42.010 1478 1519 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=1 for 350ms
09-28 09:44:42.010 1478 1489 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=1 for 170ms
09-28 09:44:42.200 1478 1489 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=1 for 190ms
09-28 09:44:43.000 1478 1523 W art : Long monitor contention event with owner method=int com.android.server.wm.WindowManagerService.relayoutWindow(com.android.server.wm.Session, android.view.IWindow, int, android.view.WindowManager$LayoutParams, int, int, int, int, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.content.res.Configuration, android.view.Surface) from WindowManagerService.java:3097 waiters=0 for 260ms
09-28 09:44:43.310 1478 1978 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 260ms
09-28 09:44:43.590 1478 1978 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 280ms
09-28 09:44:43.850 1478 1978 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 260ms
09-28 09:44:44.130 1478 1978 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 280ms
09-28 09:44:44.950 1478 1978 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 270ms
09-28 09:44:46.340 1478 1978 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 280ms
09-28 09:44:46.620 1478 1978 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 280ms
09-28 09:44:47.450 1478 1523 I Choreographer: Skipped 32 frames! The application may be doing too much work on its main thread.
09-28 09:44:47.450 1478 1978 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 550ms
09-28 09:44:47.450 1478 1519 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=1 for 550ms
09-28 09:44:47.450 1942 1942 I Choreographer: Skipped 265 frames! The application may be doing too much work on its main thread.
09-28 09:44:47.750 1478 1523 W WindowAnimator: Failed to dispatch window animation state change.
09-28 09:44:47.750 1478 1523 W WindowAnimator: android.os.DeadObjectException
09-28 09:44:47.750 1478 1523 W WindowAnimator: at android.os.BinderProxy.transactNative(Native Method)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at android.os.BinderProxy.transact(Binder.java:503)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at android.view.Choreographer.doCallbacks(Choreographer.java:670)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at android.view.Choreographer.doFrame(Choreographer.java:603)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at android.os.Handler.handleCallback(Handler.java:739)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at android.os.Handler.dispatchMessage(Handler.java:95)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at android.os.Looper.loop(Looper.java:148)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at android.os.HandlerThread.run(HandlerThread.java:61)
09-28 09:44:47.750 1478 1523 W WindowAnimator: at com.android.server.ServiceThread.run(ServiceThread.java:46)
09-28 09:44:47.750 1478 1519 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 290ms
09-28 09:44:47.920 1478 1519 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 170ms
09-28 09:44:48.380 1478 1519 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 460ms
09-28 09:44:48.420 1478 1519 I Choreographer: Skipped 107 frames! The application may be doing too much work on its main thread.
09-28 09:44:48.830 1478 1747 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 410ms
09-28 09:44:48.840 1478 1490 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=1 for 420ms
09-28 09:44:48.840 1478 1747 W InputMethodManagerService: Got RemoteException sending setActive(false) notification to pid 2474 uid 10050
09-28 09:44:49.330 1478 1490 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 490ms
09-28 09:44:49.330 1478 1523 W AppOps : Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
09-28 09:44:49.370 1706 1706 I Choreographer: Skipped 30 frames! The application may be doing too much work on its main thread.
09-28 09:44:49.720 1478 1490 W art : Long monitor contention event with owner method=void com.android.server.wm.WindowAnimator$1.doFrame(long) from WindowAnimator.java:121 waiters=0 for 350ms
And my emulator configuration:
Any help? It must be something wrong with the emulator but I’m having a really hard time figuring out exactly what.