NativeScript / android

NativeScript for Android using v8
https://docs.nativescript.org/guide/android-marshalling
Apache License 2.0
524 stars 134 forks source link

App crashes #358

Closed slavchev closed 1 year ago

slavchev commented 8 years ago

Various app crashes reported from QA team

http://nsbuild01.telerik.com:8080/build/view/Stable/view/App%20Cuteness/job/integration-tests-stable-cuteness-android-api18-emulator/251/

dtopuzov commented 8 years ago

Most crashes are on GalleryApp on Android Api18 default emulator. Here is what happens after 3-4 back navigations:

D/dalvikvm( 1840): GC_CONCURRENT freed 3K, 14% free 7079K/8204K, paused 14ms+0ms, total 17ms
F/libc    ( 1840): Fatal signal 11 (SIGSEGV) at 0xa9805ffc (code=2), thread 1840 (escript.TestApp)
I/DEBUG   (  794): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  794): Build fingerprint: 'generic_x86/sdk_x86/generic_x86:4.3.1/JB_MR2/1743067:eng/test-keys'
I/DEBUG   (  794): Revision: '0'
I/DEBUG   (  794): pid: 1840, tid: 1840, name: UNKNOWN  >>> org.nativescript.TestApp <<<
I/DEBUG   (  794): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr a9805ffc
I/DEBUG   (  794):     eax a9805000  ebx b75e6c90  ecx 00000400  edx 00011d00
I/DEBUG   (  794):     esi a92fdffc  edi a9805ffc
I/DEBUG   (  794):     xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000000  xss 0000007b
I/DEBUG   (  794):     eip b7ed939d  ebp a92fd000  esp bf994914  flags 00210686
I/DEBUG   (  794):
I/DEBUG   (  794): backtrace:
I/DEBUG   (  794):     #00  pc 0002f39d  /system/lib/libc.so
I/DEBUG   (  794):     #01  pc 0006dfff  /dev/ashmem/dalvik-jit-code-cache (deleted)
I/DEBUG   (  794):
I/DEBUG   (  794): stack:
I/DEBUG   (  794):          bf9948d4  00000000
I/DEBUG   (  794):          bf9948d8  00000000
I/DEBUG   (  794):          bf9948dc  00000000
I/DEBUG   (  794):          bf9948e0  00000000
I/DEBUG   (  794):          bf9948e4  00000000
I/DEBUG   (  794):          bf9948e8  00000000
I/DEBUG   (  794):          bf9948ec  00000000
I/DEBUG   (  794):          bf9948f0  00000000
I/DEBUG   (  794):          bf9948f4  00000000
I/DEBUG   (  794):          bf9948f8  00000000
I/DEBUG   (  794):          bf9948fc  00000000
I/DEBUG   (  794):          bf994900  00000000
I/DEBUG   (  794):          bf994904  00000000
I/DEBUG   (  794):          bf994908  00000000
I/DEBUG   (  794):          bf99490c  00000000
I/DEBUG   (  794):          bf994910  00000000
I/DEBUG   (  794):     #00  bf994914  a9805000  /dev/ashmem/gralloc-buffer (deleted)
I/DEBUG   (  794):          bf994918  00000000
I/DEBUG   (  794):          bf99491c  b75c3f37  /system/lib/libgui.so (_ZN7android7Surface4lockEP20ANativeWindow_BufferP5ARect.part.8+1687)
I/DEBUG   (  794):          bf994920  a9805000  /dev/ashmem/gralloc-buffer (deleted)
I/DEBUG   (  794):          bf994924  a92fd000  /dev/ashmem/gralloc-buffer (deleted)
I/DEBUG   (  794):          bf994928  00011d00
I/DEBUG   (  794):          bf99492c  bf994984  [stack]
I/DEBUG   (  794):          bf994930  002891c0
I/DEBUG   (  794):          bf994934  a4200021
I/DEBUG   (  794):          bf994938  00000000
I/DEBUG   (  794):          bf99493c  00000000
I/DEBUG   (  794):          bf994940  b88c05b0  [heap]
I/DEBUG   (  794):          bf994944  00011d00
I/DEBUG   (  794):          bf994948  bf9949bc  [stack]
I/DEBUG   (  794):          bf99494c  b88c58f0  [heap]
I/DEBUG   (  794):          bf994950  00000780
I/DEBUG   (  794):
I/DEBUG   (  794): memory map around fault addr a9805ffc:
I/DEBUG   (  794):     a9797000-a9805000 r-x /dev/ashmem/dalvik-jit-code-cache (deleted)
I/DEBUG   (  794):     a9805000-a9806000 r-x /dev/ashmem/gralloc-buffer (deleted)
I/DEBUG   (  794):     a9806000-a997c000 rw- /dev/ashmem/gralloc-buffer (deleted)
W/ActivityManager( 1213):   Force finishing activity org.nativescript.TestApp/com.tns.NativeScriptActivity
W/WindowManager( 1213): Screenshot failure taking screenshot for (246x410) to layer 21015
I/BootReceiver( 1213): Copying /data/tombstones/tombstone_03 to DropBox (SYSTEM_TOMBSTONE)
D/Zygote  (  797): Process 1840 terminated by signal (11)
I/ActivityManager( 1213): Process org.nativescript.TestApp (pid 1840) has died.
I/WindowState( 1213): WIN DEATH: Window{b2e9ba08 u0 org.nativescript.TestApp/com.tns.NativeScriptActivity}
dtopuzov commented 8 years ago

and one more:

D/dalvikvm( 1961): GC_CONCURRENT freed 378K, 17% free 3893K/4664K, paused 9ms+0ms, total 12ms
D/dalvikvm( 1961): GC_CONCURRENT freed 349K, 16% free 3927K/4664K, paused 6ms+0ms, total 8ms
D/dalvikvm( 1961): DexOpt: --- BEGIN 'android.support.v4.view.ViewPager_SimpleOnPageChangeListener_frnal_prepareExtend_l62_c37__PageChangedListener-1456133882709-1.jar' (bootstrap=0) ---
D/dalvikvm( 2045): DexOpt: load 0ms, verify+opt 0ms, 80196 bytes
D/dalvikvm( 1961): DexOpt: --- END 'android.support.v4.view.ViewPager_SimpleOnPageChangeListener_frnal_prepareExtend_l62_c37__PageChangedListener-1456133882709-1.jar' (success) ---
D/dalvikvm( 1961): DEX prep '/data/data/org.nativescript.TestApp/code_cache/secondary-dexes/android.support.v4.view.ViewPager_SimpleOnPageChangeListener_frnal_prepareExtend_l62_c37__PageChangedListener-1456133882709-1.jar': unzip in 0ms, rewrite 10ms

D/dalvikvm( 1961): GC_CONCURRENT freed 284K, 14% free 4027K/4664K, paused 7ms+0ms, total 10ms
D/dalvikvm( 1961): DexOpt: --- BEGIN 'android.support.v4.view.PagerAdapter_frnal_prepareExtend_l62_c37__PagerAdapterClassInner-1456133882709-1.jar' (bootstrap=0) ---
D/dalvikvm( 2046): DexOpt: load 0ms, verify+opt 0ms, 80644 bytes
D/dalvikvm( 1961): DexOpt: --- END 'android.support.v4.view.PagerAdapter_frnal_prepareExtend_l62_c37__PagerAdapterClassInner-1456133882709-1.jar' (success) ---
D/dalvikvm( 1961): DEX prep '/data/data/org.nativescript.TestApp/code_cache/secondary-dexes/android.support.v4.view.PagerAdapter_frnal_prepareExtend_l62_c37__PagerAdapterClassInner-1456133882709-1.jar': unzip in 0ms, rewrite 9ms
D/dalvikvm( 1961): GREF has increased to 301
F/libc    ( 1961): Fatal signal 11 (SIGSEGV) at 0xa945e05c (code=2), thread 1961 (escript.TestApp)
I/DEBUG   (  794): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  794): Build fingerprint: 'generic_x86/sdk_x86/generic_x86:4.3.1/JB_MR2/1743067:eng/test-keys'
I/DEBUG   (  794): Revision: '0'
I/DEBUG   (  794): pid: 1961, tid: 1961, name: UNKNOWN  >>> org.nativescript.TestApp <<<
I/DEBUG   (  794): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr a945e05c
D/ConnectivityService( 1213): [CheckMp] isMobileOk: not connected ni=NetworkInfo: type: mobile_hipri[UMTS], state: DISCONNECTED/IDLE, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true, isConnectedToProvisioningN
etwork: false
I/AudioService( 1213):  AudioFocus  abandonAudioFocus() from android.media.AudioManager@b29edcc0com.android.music.MediaPlaybackService$3@b29ec960
I/DEBUG   (  794):     eax 00000000  ebx b7e7748c  ecx 0000000e  edx a945e06a
I/DEBUG   (  794):     esi 0000000c  edi 00000001
I/DEBUG   (  794):     xcs 00000073  xds 0000007b  xes 0000007b  xfs 00000000  xss 0000007b
I/DEBUG   (  794):     eip b7e7748c  ebp b9336870  esp bfd319e8  flags 00210296
E/Corkscrew(  794): unrecognized DW_CFA_* instruction: 0x10
I/DEBUG   (  794):
I/DEBUG   (  794): backtrace:
I/DEBUG   (  794):     #00  pc 0002f48c  /system/lib/libc.so (memset+140)
I/DEBUG   (  794):     #01  pc 00015c6f  /system/lib/libhwui.so (android::uirenderer::FontRenderer::cacheBitmap(SkGlyph const&, android::uirenderer::CachedGlyphInfo*, unsigned int*, unsigned int*, bool)+511)
I/DEBUG   (  794):     #02  pc 00011aea  /system/lib/libhwui.so (android::uirenderer::Font::precache(SkPaint*, char const*, int)+922)
I/DEBUG   (  794):     #03  pc 0001414e  /system/lib/libhwui.so (android::uirenderer::FontRenderer::precache(SkPaint*, char const*, int, android::uirenderer::Matrix4 const&)+78)
I/DEBUG   (  794):     #04  pc 00024a56  /system/lib/libhwui.so (android::uirenderer::DrawTextOp::onDefer(android::uirenderer::OpenGLRenderer&, int*, void**)+486)
I/DEBUG   (  794):
I/DEBUG   (  794): stack:
I/DEBUG   (  794):          bfd319a8  00000000
I/DEBUG   (  794):          bfd319ac  00000000
I/DEBUG   (  794):          bfd319b0  00000000
I/DEBUG   (  794):          bfd319b4  00000000
I/DEBUG   (  794):          bfd319b8  00000000
I/DEBUG   (  794):          bfd319bc  00000000
I/DEBUG   (  794):          bfd319c0  00000000
I/DEBUG   (  794):          bfd319c4  00000000
I/DEBUG   (  794):          bfd319c8  00000000
I/DEBUG   (  794):          bfd319cc  00000000
I/DEBUG   (  794):          bfd319d0  00000000
I/DEBUG   (  794):          bfd319d4  00000000
I/DEBUG   (  794):          bfd319d8  00000000
I/DEBUG   (  794):          bfd319dc  00000000
I/DEBUG   (  794):          bfd319e0  00000000
I/DEBUG   (  794):          bfd319e4  00000000
I/DEBUG   (  794):     #00  bfd319e8  b66c2aac  /system/lib/libhwui.so
I/DEBUG   (  794):          bfd319ec  b665bc70  /system/lib/libhwui.so (android::uirenderer::FontRenderer::cacheBitmap(SkGlyph const&, android::uirenderer::CachedGlyphInfo*, unsigned int*, unsigned int*, bool)+512)
I/DEBUG   (  794):     #01  bfd319f0  a945e05c
I/DEBUG   (  794):          bfd319f4  00000000
I/DEBUG   (  794):          bfd319f8  0000000e
I/DEBUG   (  794):          bfd319fc  bfd31a5c  [stack]
I/DEBUG   (  794):          bfd31a00  b9536a8c  [heap]
I/DEBUG   (  794):          bfd31a04  00000000
I/DEBUG   (  794):          bfd31a08  b8fc22d0  [heap]
I/DEBUG   (  794):          bfd31a0c  b78f1210  /system/lib/libskia.so (SkGlyphCache::findImage(SkGlyph const&)+144)
I/DEBUG   (  794):          bfd31a10  b93a5cb0  [heap]
I/DEBUG   (  794):          bfd31a14  b8fbf090  [heap]
I/DEBUG   (  794):          bfd31a18  00000000
I/DEBUG   (  794):          bfd31a1c  00000042
I/DEBUG   (  794):          bfd31a20  bfd31ad0  [stack]
I/DEBUG   (  794):          bfd31a24  bfd31a5c  [stack]
I/DEBUG   (  794):          bfd31a28  a945e010
I/DEBUG   (  794):          bfd31a2c  b7baad48  /system/lib/libskia.so
I/DEBUG   (  794):          ........  ........
I/DEBUG   (  794):     #02  bfd31a80  b9336870  [heap]
I/DEBUG   (  794):          bfd31a84  b9536a8c  [heap]
I/DEBUG   (  794):          bfd31a88  b9334530  [heap]
I/DEBUG   (  794):          bfd31a8c  bfd31ac0  [stack]
I/DEBUG   (  794):          bfd31a90  bfd31ac4  [stack]
I/DEBUG   (  794):          bfd31a94  00000001
I/DEBUG   (  794):          bfd31a98  00000000
I/DEBUG   (  794):          bfd31a9c  00000000
I/DEBUG   (  794):          bfd31aa0  3f800000
I/DEBUG   (  794):          bfd31aa4  00000200
I/DEBUG   (  794):          bfd31aa8  b9334530  [heap]
I/DEBUG   (  794):          bfd31aac  b95e1dce  [heap]
I/DEBUG   (  794):          bfd31ab0  b9334384  [heap]
I/DEBUG   (  794):          bfd31ab4  b95e1dce  [heap]
I/DEBUG   (  794):          bfd31ab8  000e0036
I/DEBUG   (  794):          bfd31abc  00000000
I/DEBUG   (  794):          ........  ........
I/DEBUG   (  794):
I/DEBUG   (  794): memory map around fault addr a945e05c:
I/DEBUG   (  794):     a941d000-a945e000 r-x /dev/ashmem/dalvik-jit-code-cache (deleted)
I/DEBUG   (  794):     a945e000-a945f000 r-x
I/DEBUG   (  794):     a945f000-a94df000 rw-
D/ConnectivityService( 1213): stopUsingNetworkFeature: teardown net 0: enableHIPRI
D/MobileDataStateTracker( 1213): hipri: Broadcast received: android.intent.action.ANY_DATA_STATE apnType=hipri
D/MobileDataStateTracker( 1213): hipri: hipri setting isAvailable to false
D/MobileDataStateTracker( 1213): hipri: Received state=DISCONNECTED, old=CONNECTED, reason=dataDisabled
D/MobileDataStateTracker( 1213): hipri: setDetailed state, old =IDLE and new state=DISCONNECTED
D/ConnectivityService( 1213): ConnectivityChange for mobile_hipri: DISCONNECTED/DISCONNECTED
D/Nat464Xlat( 1213): requiresClat: netType=5, hasIPv4Address=true
W/ActivityManager( 1213):   Force finishing activity org.nativescript.TestApp/com.tns.NativeScriptActivity
D/Zygote  (  797): Process 1961 terminated by signal (11)
W/InputDispatcher( 1213): channel 'b2d77088 org.nativescript.TestApp/com.tns.NativeScriptActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
E/InputDispatcher( 1213): channel 'b2d77088 org.nativescript.TestApp/com.tns.NativeScriptActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
D/        ( 1213): HostConnection::get() New Host Connection established 0xb91db1a0, tid 2047
I/WindowState( 1213): WIN DEATH: Window{b2d77088 u0 org.nativescript.TestApp/com.tns.NativeScriptActivity}
W/InputDispatcher( 1213): Attempted to unregister already unregistered input channel 'b2d77088 org.nativescript.TestApp/com.tns.NativeScriptActivity (server)'
D/dalvikvm( 1213): GC_FOR_ALLOC freed 609K, 57% free 5504K/12732K, paused 5ms, total 9ms
D/dalvikvm( 1213): GC_CONCURRENT freed 451K, 56% free 5691K/12732K, paused 3ms+0ms, total 8ms
W/ActivityManager( 1213): Exception thrown during pause
W/ActivityManager( 1213): android.os.DeadObjectException
W/ActivityManager( 1213):       at android.os.BinderProxy.transact(Native Method)
W/ActivityManager( 1213):       at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:635)
W/ActivityManager( 1213):       at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:990)
W/ActivityManager( 1213):       at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3834)
W/ActivityManager( 1213):       at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3766)
W/ActivityManager( 1213):       at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:8344)
W/ActivityManager( 1213):       at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:8221)
W/ActivityManager( 1213):       at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:8900)
W/ActivityManager( 1213):       at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:8455)
W/ActivityManager( 1213):       at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
I/ActivityManager( 1213): Process org.nativescript.TestApp (pid 1961) has died.
D/dalvikvm( 1213): GC_CONCURRENT freed 30K, 50% free 6378K/12732K, paused 9ms+1ms, total 14ms
W/EGL_emulation( 1491): eglSurfaceAttrib not implemented
D/dalvikvm( 1491): GC_FOR_ALLOC freed 1605K, 32% free 6826K/10028K, paused 2ms, total 3ms
D/dalvikvm( 1491): GC_CONCURRENT freed 2K, 18% free 8253K/10028K, paused 3ms+1ms, total 5ms
D/        ( 1213): HostConnection::get() New Host Connection established 0xb8fe0300, tid 1230
D/ConnectivityService( 1213): [CheckMp] isMobileOk: timed out
D/ConnectivityService( 1213): [CheckMp] isMobileOk: F stop hipri
D/MobileDataStateTracker( 1213): default: setEnableFailFastMobileData(enabled=0)
D/dalvikvm( 1213): GC_CONCURRENT freed 769K, 50% free 6466K/12732K, paused 4ms+0ms, total 11ms
D/dalvikvm( 1213): GC_CONCURRENT freed 884K, 50% free 6460K/12732K, paused 5ms+1ms, total 9ms
D/dalvikvm( 1213): GC_CONCURRENT freed 879K, 50% free 6459K/12732K, paused 8ms+1ms, total 13ms
D/dalvikvm( 1213): GC_CONCURRENT freed 876K, 50% free 6459K/12732K, paused 4ms+0ms, total 10ms
D/dalvikvm( 1213): GC_CONCURRENT freed 877K, 50% free 6459K/12732K, paused 4ms+1ms, total 9ms
D/dalvikvm( 1213): GC_CONCURRENT freed 876K, 50% free 6459K/12732K, paused 9ms+1ms, total 13ms
D/dalvikvm( 1213): GC_CONCURRENT freed 877K, 50% free 6459K/12732K, paused 4ms+0ms, total 9ms
D/dalvikvm( 1213): GC_CONCURRENT freed 876K, 50% free 6460K/12732K, paused 2ms+0ms, total 7ms
D/dalvikvm( 1213): GC_CONCURRENT freed 877K, 50% free 6460K/12732K, paused 6ms+0ms, total 11ms
D/dalvikvm( 1213): GC_CONCURRENT freed 877K, 50% free 6459K/12732K, paused 7ms+1ms, total 12ms
D/dalvikvm( 1213): GC_CONCURRENT freed 876K, 50% free 6460K/12732K, paused 6ms+0ms, total 11ms
D/dalvikvm( 1213): GC_CONCURRENT freed 877K, 50% free 6460K/12732K, paused 8ms+1ms, total 13ms
dtopuzov commented 8 years ago

Most of the failures are after 8th Feb 2016.

NathanaelA commented 8 years ago

I have a couple questions is this with the released v1.6.x runtimes/core? Or is this an issue with the future version? If this is with 1.6.x -- these might be related to https://github.com/NativeScript/NativeScript/issues/1569

slavchev commented 8 years ago

As far as I can tell this seems to be a problem of x86 emulators with the GPU and/or GL/EGL support. I need more time to confirm it though.

gabrielbiga commented 8 years ago

+1

dtopuzov commented 8 years ago

This issue happens only on Api18 x86 emulators, can not reproduce on Api18 Arm devices and emulators. I'm not sure if there is a real device with Api18 and x86 CPU.

hypery2k commented 7 years ago

If I use enableProdMode() in Angular I'm getting this error, also

slavchev commented 7 years ago

@hypery2k can you provide more details what emulator or device you use? Also, any logs from logcat might be helpful.

hypery2k commented 7 years ago

Getting this via logcat

D/TNS.Native(22828): Failed to load snapshot: dlopen failed: library "libsnapshot.so" not found
D/SurfaceFlinger(  278): FPS : 60.05
W/SurfaceFlinger(  278): Fail to Open /sys/devices/platform/gpusysfs/fps
I/Ads     ( 3556): Ad is not visible. Not refreshing ad.
I/Ads     ( 3556): Scheduling ad refresh 60000 milliseconds from now.
D/SurfaceFlinger(  278): FPS : 60.05
W/SurfaceFlinger(  278): Fail to Open /sys/devices/platform/gpusysfs/fps
D/SurfaceFlinger(  278): FPS : 60.05
W/SurfaceFlinger(  278): Fail to Open /sys/devices/platform/gpusysfs/fps
D/SurfaceFlinger(  278): FPS : 60.05
W/SurfaceFlinger(  278): Fail to Open /sys/devices/platform/gpusysfs/fps
E/WindowState(  858): getStack: Window{24612547 u0 com.android.vending/com.google.android.finsky.activities.MainActivity} couldn't find taskId=674 Callers=com.android.server.wm.WindowState.computeFrameLw:1054 com.android.internal.policy.impl.PhoneWindowManager.layoutWindowLw:4904 com.android.server.wm.WindowManagerService.performLayoutLockedInner:10917 com.android.server.wm.WindowManagerService.performLayoutAndPlaceSurfacesLockedInner:11857
D/SurfaceFlinger(  278): FPS : 60.05
W/SurfaceFlinger(  278): Fail to Open /sys/devices/platform/gpusysfs/fps
D/SSRM:n  (  858): SIOP:: AP = 430, CUR = 360
D/TNS.Native(22828): V8 version 5.5.372.32
D/SurfaceFlinger(  278): FPS : 22.62
W/SurfaceFlinger(  278): Fail to Open /sys/devices/platform/gpusysfs/fps
F/libc    (22828): /Volumes/Android/buildbot/out_dirs/aosp-ndk-r11-release/build/tmp/build-72234/build-libc++/ndk/sources/cxx-stl/llvm-libc++/../llvm-libc++abi/libcxxabi/src/abort_message.cpp:74: void abort_message(const char *, ...): assertion "terminating with uncaught exception of type tns::NativeScriptException" failed
F/libc    (22828): Fatal signal 6 (SIGABRT), code -6 in tid 22828 (ge.nextrust.app)
D/SurfaceFlinger(  278): FPS : 22.62
W/SurfaceFlinger(  278): Fail to Open /sys/devices/platform/gpusysfs/fps
I/DEBUG   (  297): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  297): Build fingerprint: 'samsung/jfltexx/jflte:5.0.1/LRX22C/I9505XXUHOJ2:user/release-keys'
I/DEBUG   (  297): Revision: '11'
I/DEBUG   (  297): ABI: 'arm'
I/DEBUG   (  297): pid: 22828, tid: 22828, name: ge.nextrust.app  >>> de.fiege.nextrust.app <<<
I/DEBUG   (  297): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
I/DEBUG   (  297): Abort message: '/Volumes/Android/buildbot/out_dirs/aosp-ndk-r11-release/build/tmp/build-72234/build-libc++/ndk/sources/cxx-stl/llvm-libc++/../llvm-libc++abi/libcxxabi/src/abort_message.cpp:74: void abort_message(const char *, ...): assertion "terminating with uncaught exception of type tns::NativeScriptException" failed'
I/DEBUG   (  297):     r0 00000000  r1 0000592c  r2 00000006  r3 00000000
I/DEBUG   (  297):     r4 b6faa114  r5 00000006  r6 00000002  r7 0000010c
I/DEBUG   (  297):     r8 be9ffa18  r9 00000000  sl ffffd188  fp be9ff594
I/DEBUG   (  297):     ip 0000592c  sp be9ff4f0  lr b6f33fc5  pc b6f57a4c  cpsr 600e0010
I/DEBUG   (  297):
I/DEBUG   (  297): backtrace:
I/DEBUG   (  297):     #00 pc 00037a4c  /system/lib/libc.so (tgkill+12)
I/DEBUG   (  297):     #01 pc 00013fc1  /system/lib/libc.so (pthread_kill+52)
I/DEBUG   (  297):     #02 pc 00014bdf  /system/lib/libc.so (raise+10)
I/DEBUG   (  297):     #03 pc 00011521  /system/lib/libc.so (__libc_android_abort+36)
I/DEBUG   (  297):     #04 pc 0000fcac  /system/lib/libc.so (abort+4)
I/DEBUG   (  297):     #05 pc 000126f1  /system/lib/libc.so (__libc_fatal+16)
I/DEBUG   (  297):     #06 pc 000115a5  /system/lib/libc.so (__assert2+20)
I/DEBUG   (  297):     #07 pc 00118e84  /data/app/de.fiege.nextrust.app-2/lib/arm/libNativeScript.so
I/DEBUG   (  297):     #08 pc 00119008  /data/app/de.fiege.nextrust.app-2/lib/arm/libNativeScript.so
I/DEBUG   (  297):     #09 pc 0010c6e4  /data/app/de.fiege.nextrust.app-2/lib/arm/libNativeScript.so
I/DEBUG   (  297):     #10 pc 0010bd28  /data/app/de.fiege.nextrust.app-2/lib/arm/libNativeScript.so
I/DEBUG   (  297):     #11 pc 0009e353  /data/app/de.fiege.nextrust.app-2/lib/arm/libNativeScript.so
I/DEBUG   (  297):     #12 pc 00087c11  /data/app/de.fiege.nextrust.app-2/lib/arm/libNativeScript.so
I/DEBUG   (  297):     #13 pc 00098e49  /data/app/de.fiege.nextrust.app-2/lib/arm/libNativeScript.so (Java_com_tns_Runtime_initNativeScript+52)
I/DEBUG   (  297):     #14 pc 00361c29  /data/dalvik-cache/arm/data@app@de.fiege.nextrust.app-2@base.apk@classes.dex
D/SurfaceFlinger(  278): FPS : 5.00
W/SurfaceFlinger(  278): Fail to Open /sys/devices/platform/gpusysfs/fps
D/SurfaceFlinger(  278): FPS : 5.00
W/SurfaceFlinger(  278): Fail to Open /sys/devices/platform/gpusysfs/fps
I/DEBUG   (  297):
I/DEBUG   (  297): Tombstone written to: /data/tombstones/tombstone_01
E/        (  297): ro.product_ship = true
E/        (  297): ro.debug_level = 0x4f4c
I/BootReceiver(  858): Copying /data/tombstones/tombstone_01 to DropBox (SYSTEM_TOMBSTONE)
E/audit   ( 1896): type=1701 msg=audit(1490070862.604:279): auid=4294967295 uid=10337 gid=10337 ses=4294967295 subj=u:r:untrusted_app:s0 pid=22828 comm="ge.nextrust.app" reason="memory violation" sig=6
E/SharedPreferencesImpl(  858): Couldn't create directory for SharedPreferences file shared_prefs/log_files.xml
W/ActivityManager(  858):   Force finishing activity de.fiege.nextrust.app/com.tns.NativeScriptActivity
D/FocusedStackFrame(  858): Set to : 0
D/PowerManagerService(  858): [api] handleWakeLockDeath : release WakeLock : PARTIAL_WAKE_LOCK              'wake:de.fiege.nextrust.app/org.nativescript.plugins.firebase.MyFirebaseInstanceIDService' (uid=10337, pid=22828, ws=null) (elapsedTime=1142)
D/SurfaceFlinger(  278): FPS : 5.49
W/SurfaceFlinger(  278): Fail to Open /sys/devices/platform/gpusysfs/fps
D/SurfaceFlinger(  278): FPS : 5.49
W/SurfaceFlinger(  278): Fail to Open /sys/devices/platform/gpusysfs/fps
I/Zygote  (  316): Process 22828 exited due to signal (6)
D/SurfaceFlinger(  278): FPS : 5.49
W/SurfaceFlinger(  278): Fail to Open /sys/devices/platform/gpusysfs/fps
I/WindowManager(  858): Screenshot max retries 4 of Token{1cd944e2 ActivityRecord{33bd49ad u0 de.fiege.nextrust.app/com.tns.NativeScriptActivity t682 f}} appWin=Window{3d3a8e3a u0 Starting de.fiege.nextrust.app} drawState=4
E/ActivityManager(  858): Invalid thumbnail dimensions: 576x576
W/ActivityManager(  858): Exception thrown during pause
W/ActivityManager(  858): android.os.DeadObjectException
W/ActivityManager(  858):   at android.os.BinderProxy.transactNative(Native Method)
W/ActivityManager(  858):   at android.os.BinderProxy.transact(Binder.java:496)
W/ActivityManager(  858):   at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:766)
W/ActivityManager(  858):   at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:1186)
W/ActivityManager(  858):   at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3661)
W/ActivityManager(  858):   at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:3475)
W/ActivityManager(  858):   at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:3409)
W/ActivityManager(  858):   at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:14648)
W/ActivityManager(  858):   at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:14521)
W/ActivityManager(  858):   at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:15287)
W/ActivityManager(  858):   at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:14795)
W/ActivityManager(  858):   at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)

The weird thing is on some devices it's working. It's only happening in a release build

NathanaelA commented 7 years ago

Release mode activates snapshots. I ran into similar issues with snapshots and so I just disable them on all my release build since they seem to be flaky on some devices. I would rather have the app be a tad slower loading than crashing. :D

See: http://fluentreports.com/blog/?p=476 if you want to know how to disable snapshots.

petekanev commented 7 years ago

@hypery2k does this occur when you build in release? That warning about dlopen should only come up in debug configuration, as a snapshot isn't generated.

hypery2k commented 7 years ago

i'm using this to generate a release build for PlayStore:

npm run build-android-bundle -- --release --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASS --key-store-alias alias --key-store-alias-password $KEYSTORE_PASS",
petekanev commented 7 years ago

@hypery2k it would help if you could share the CLI log from the moment you type in the command. What versions of the runtimes, modules, nativescript CLI are you using?

hypery2k commented 7 years ago

Here's my package.json:

 "prerelease": "npm run buildnumbering && npm run changelog && git add CHANGELOG.md && git add package.json && git add app/App_Resources/Android/AndroidManifest.xml && git commit -m 'Release version' || echo'' && npm run clean",
    "release": "cross-env NODE_ENV=production TNS_ANDROID_SNAPSHOT=1 KEYSTORE_PATH=$KEYSTORE_PATH KEYSTORE_PASS=$KEYSTORE_PASS npm run build-android-bundle -- --release --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASS --key-store-alias sample --key-store-alias-password $KEYSTORE_PASS",
    "postrelease": "git checkout package.json && npm run buildnumbering",
    "version-and-push": "git push origin master && git push origin --tags",
    "release:major": "npm version major && npm run release && npm run version-and-push",
    "release:minor": "npm version minor && npm run release && npm run version-and-push",
    "release:patch": "npm version patch && npm run release && npm run version-and-push",
    "start-android-bundle": "npm run ns-bundle --android --start-app",
    "start-ios-bundle": "npm run ns-bundle --ios --start-app",
    "build-android-bundle": "npm run ns-bundle --android --build-app",
    "build-ios-bundle": "npm run ns-bundle --ios --build-app"
  },
  "nativescript": {
    "id": "de.sample.app",
    "tns-ios": {
      "version": "2.5.0"
    },
    "tns-android": {
      "version": "2.5.0"
    }
  },
  "dependencies": {
    "@angular/common": "2.4.9",
    "@angular/compiler": "2.4.9",
    "@angular/core": "2.4.9",
    "@angular/forms": "2.4.9",
    "@angular/http": "2.4.9",
    "@angular/platform-browser": "2.4.9",
    "@angular/platform-browser-dynamic": "2.4.9",
    "@angular/router": "3.4.9",
    "@ngx-translate/core": "6.0.0",
    "@ngx-translate/http-loader": "0.0.3",
    "nativescript-angular": "1.4.1",
    "nativescript-appinfo": "0.3.1-develop-16",
    "nativescript-barcodescanner": "2.4.0",
    "nativescript-cardview": "1.3.2",
    "nativescript-couchbase": "1.0.17",
    "nativescript-drawingpad": "1.1.2",
    "nativescript-fabric": "0.2.1",
    "nativescript-loading-indicator": "2.2.2",
    "nativescript-ngx-fonticon": "1.9.0",
    "nativescript-permissions": "1.2.2",
    "nativescript-plugin-firebase": "3.10.1",
    "nativescript-pulltorefresh": "1.1.10",
    "nativescript-theme-core": "1.0.2",
    "nativescript-toast": "1.4.5",
    "nativescript-urlhandler": "0.3.0-develop-19",
    "ng2-validation": "3.8.0",
    "reflect-metadata": "0.1.9",
    "rxjs": "5.0.1",
    "tns-core-modules": "2.5.1",
    "tns-core-modules-widgets": "2.5.0",
    "zone.js": "0.7.2"
  },
  "devDependencies": {
    "@angular/compiler-cli": "2.4.9",
    "@angular/tsc-wrapped": "0.5.0",
    "@ngtools/webpack": "1.2.10",
    "@types/jasmine": "2.2.29",
    "@types/source-map": "0.1.26",
    "@types/uglify-js": "2.0.27",
    "babel-traverse": "6.11.4",
    "babel-types": "6.11.1",
    "babylon": "6.8.0",
    "chai": "3.5.0",
    "chai-as-promised": "5.3.0",
    "codelyzer": "^2.0.0-beta.1",
    "conventional-changelog-cli": "1.3.1",
    "copy-webpack-plugin": "3.0.1",
    "cross-env": "1.0.8",
    "css-loader": "0.26.0",
    "extract-text-webpack-plugin": "2.0.0-beta.4",
    "filewalker": "0.1.2",
    "fs": "0.0.2",
    "htmlparser2": "3.9.2",
    "jasmine-core": "2.4.1",
    "jsonlint": "1.6.2",
    "karma": "1.3.0",
    "karma-coverage": "1.0.0",
    "karma-jasmine": "1.0.2",
    "karma-junit-reporter": "1.1.0",
    "karma-nativescript-launcher": "0.4.0",
    "karma-typescript-preprocessor": "0.3.0",
    "lazy": "1.0.11",
    "nativescript-css-loader": "0.26.1",
    "nativescript-dev-sass": "0.4.2",
    "nativescript-dev-typescript": "0.3.6",
    "nativescript-dev-webpack": "0.3.5",
    "nativescript-media-generator": "0.2.4-develop-32",
    "nativescript-unit-test-runner": "0.3.4",
    "node-sass": "4.5.0",
    "raw-loader": "0.5.1",
    "resolve-url-loader": "1.6.0",
    "rimraf": "2.6.1",
    "sass-loader": "6.0.2",
    "tslint": "4.0.1",
    "tslint-eslint-rules": "1.3.0",
    "typescript": "2.1.6",
    "webpack": "2.2.1",
    "webpack-sources": "0.1.3",
    "xml2js": "0.4.16"
  },
  "license": "UNLICENSED",
  "engine-strict": true,
  "engines": {
    "node": ">= 6",
    "npm": ">= 3"
  }

And here the build log

> Sample-Mobile-App@1.3.0 release /opt/jenkins/workspace/sample-app/sample-mobile-app
> cross-env NODE_ENV=production TNS_ANDROID_SNAPSHOT=1 KEYSTORE_PATH=$KEYSTORE_PATH KEYSTORE_PASS=$KEYSTORE_PASS npm run build-android-bundle -- --release --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASS --key-store-alias sample --key-store-alias-password $KEYSTORE_PASS

> Sample-Mobile-App@1.3.0 build-android-bundle /opt/jenkins/workspace/sample-app/sample-mobile-app
> npm run ns-bundle --android --build-app "--release" "--key-store-path" "./etc/android/app.keystore" "--key-store-password" "password" "--key-store-alias" "sample" "--key-store-alias-password" "password"

> Sample-Mobile-App@1.3.0 ns-bundle /opt/jenkins/workspace/sample-app/sample-mobile-app
> ns-bundle "./etc/android/app.keystore" "password" "sample" "password"

Running webpack for android...
Active environment is:  production
...
Version: webpack 2.2.1
Time: 28025ms
                        Asset      Size  Chunks                    Chunk Names
fonts/fontawesome-webfont.ttf    153 kB          [emitted]         
                    bundle.js   4.07 MB       0  [emitted]  [big]  bundle
                    vendor.js   3.46 MB       2  [emitted]  [big]  vendor
          assets/i18n/de.json   8.33 kB          [emitted]         
          assets/i18n/en.json   8.08 kB          [emitted]         
       fonts/font-awesome.css     29 kB          [emitted]         
                  app.scss.js   9.22 kB       1  [emitted]         app.scss
        fonts/FontAwesome.ttf    153 kB          [emitted]         
           fonts/ionicons.css   36.1 kB          [emitted]         
           fonts/ionicons.ttf    189 kB          [emitted]         
                 package.json  82 bytes          [emitted]         
                   starter.js  41 bytes          [emitted]         
   [0] ../~/@angular/core/index.js 2.54 kB {2} [built]
   [4] ../~/@angular/forms/index.js 1.04 kB {2} [built]
  [35] ../~/@angular/http/index.js 734 bytes {2} [built]
  [89] ../~/@angular/common/index.js 771 bytes {2} [built]
 [194] ../~/nativescript-fabric/fabric.android.js 3.36 kB {0} [built]
 [195] ../~/nativescript-angular/platform-static.js 787 bytes {2} [built]
 [272] ../~/@angular/platform-browser/index.js 635 bytes {2} [built]
 [273] ../~/nativescript-angular/forms.js 1.46 kB {2} [built]
 [274] ../~/nativescript-angular/router.js 3.1 kB {2} [built]
 [275] ../~/reflect-metadata/Reflect.js 48.2 kB {2} [built]
 [604] ./app.module.ngfactory.ts 58.3 kB {0} [built]
 [605] ./vendor-platform.android.ts 1.06 kB {2} [built]
[1158] ./main.aot.ts 650 bytes {0} [built]
[1159] ./vendor.ts 394 bytes {2} [built]
[1160] ./app.scss 8.99 kB {1} [built]
    + 1146 hidden modules
Child app/login/components/login.component.html:
        + 1 hidden modules
Child app/driver/modules/info/info.component.html:
       [0] ./driver/modules/info/info.component.html 993 bytes {0} [built]
Child app/driver/modules/offers/offeredtouroverview/offeredtouroverview.component.html:
       [0] ./driver/modules/offers/offeredtouroverview/offeredtouroverview.component.html 858 bytes {0} [built]
Child app/driver/modules/offers/offeredtour/offeredtour.component.html:
       [0] ./driver/modules/offers/offeredtour/offeredtour.component.html 894 bytes {0} [built]
Child app/driver/modules/offers/offeredtourdetails/offeredtourdetails.component.html:
       [0] ./driver/modules/offers/offeredtourdetails/offeredtourdetails.component.html 3.04 kB {0} [built]
Child app/driver/modules/tours/scanparcels/scanparcels.component.html:
       [0] ./driver/modules/tours/scanparcels/scanparcels.component.html 879 bytes {0} [built]
Child app/driver/modules/tours/signature/signature.component.html:
       [0] ./driver/modules/tours/signature/signature.component.html 1 kB {0} [built]
Child app/driver/modules/tours/task/task.component.html:
       [0] ./driver/modules/tours/task/task.component.html 1.36 kB {0} [built]
Child app/driver/modules/tours/task/retry-task.component.html:
       [0] ./driver/modules/tours/task/retry-task.component.html 703 bytes {0} [built]
Child app/driver/modules/tours/tasks/tasks.component.html:
       [0] ./driver/modules/tours/tasks/tasks.component.html 1.93 kB {0} [built]
Child app/driver/modules/tours/tour/tour.component.html:
       [0] ./driver/modules/tours/tour/tour.component.html 1.73 kB {0} [built]
Child app/driver/modules/tours/touroverview/touroverview.component.html:
       [0] ./driver/modules/tours/touroverview/touroverview.component.html 2.12 kB {0} [built]
Child app/driver/modules/tours/vehicle/vehicle.component.html:
       [0] ./driver/modules/tours/vehicle/vehicle.component.html 1.08 kB {0} [built]
Child app/driver/modules/tours/waypointtaskdetails/waypointtaskdetails.component.html:
       [0] ./driver/modules/tours/waypointtaskdetails/waypointtaskdetails.component.html 3.78 kB {0} [built]
Child app/driver/modules/tours/waypointtaskdetails/tasks/task.vehicle.html:
       [0] ./driver/modules/tours/waypointtaskdetails/tasks/task.vehicle.html 1.78 kB {0} [built]
Child app/driver/modules/tours/waypointtaskdetails/tasks/task.pickup.parcel.html:
       [0] ./driver/modules/tours/waypointtaskdetails/tasks/task.pickup.parcel.html 1.06 kB {0} [built]
Child app/driver/modules/tours/waypointtaskdetails/tasks/task.deliver.parcel.html:
       [0] ./driver/modules/tours/waypointtaskdetails/tasks/task.deliver.parcel.html 2.68 kB {0} [built]
Child app/driver/modules/tours/waypointtaskdetails/tasks/task.return.parcel.html:
       [0] ./driver/modules/tours/waypointtaskdetails/tasks/task.return.parcel.html 1.39 kB {0} [built]
Child app/driver/modules/profile/profile/profile.component.html:
       [0] ./driver/modules/profile/profile/profile.component.html 4.4 kB {0} [built]
Child app/driver/modules/profile/ratings/ratings.component.html:
       [0] ./driver/modules/profile/ratings/ratings.component.html 1.08 kB {0} [built]
Child app/driver/modules/profile/ratings/stars.component.html:
       [0] ./driver/modules/profile/ratings/stars.component.html 617 bytes {0} [built]
Child app/driver/modules/profile/settings/settings.component.html:
       [0] ./driver/modules/profile/settings/settings.component.html 2.62 kB {0} [built]
Child app/driver/modules/info/accident/de/info.template.de.html:
       [0] ./driver/modules/info/accident/de/info.template.de.html 4.35 kB {0} [built]
Child app/driver/modules/info/accident/en/info.template.en.html:
       [0] ./driver/modules/info/accident/en/info.template.en.html 156 bytes {0} [built]
Child app/driver/modules/info/about/de/about.template.de.html:
       [0] ./driver/modules/info/about/de/about.template.de.html 6.95 kB {0} [built]
Child app/driver/modules/info/about/en/about.template.en.html:
       [0] ./driver/modules/info/about/en/about.template.en.html 150 bytes {0} [built]
Child app/driver/components/navigation/navigation.component.html:
        + 1 hidden modules
Child app/shared/components/ui/radiobutton/radiobutton-group.component.html:
        + 1 hidden modules
Child app/shared/components/ui/radiobutton/radiobutton.component.html:
        + 1 hidden modules
Child app/shared/components/ui/map/map.component.html:
        + 1 hidden modules
Child app/shared/components/ui/selectonedialog/selectone.dialog.component.html:
        + 1 hidden modules
Child app/shared/components/ui/simpledialog/simple.dialog.component.html:
        + 1 hidden modules
Running tns build...
Executing before-prepare hook from /opt/jenkins/workspace/sample-app/sample-mobile-app/hooks/before-prepare/nativescript-dev-sass.js
Executing before-prepare hook from /opt/jenkins/workspace/sample-app/sample-mobile-app/hooks/before-prepare/nativescript-dev-typescript.js
Preparing project...

:config phase:  createDefaultIncludeFiles

:config phase:  copyAarDependencies

:config phase:  addAarDependencies
    +adding dependency: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/libs/aar/barcodescanner-release-2.1.3.aar
    +adding dependency: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/libs/aar/firebase-release.aar
    +adding dependency: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/libs/aar/widgets-release.aar
Incremental java compilation is an incubating feature.
:asbg:clean UP-TO-DATE
:deleteMetadata
:deleteFlavors
:deleteConfigurations UP-TO-DATE
:clean

BUILD SUCCESSFUL

Total time: 14.87 secs

This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.10/userguide/gradle_daemon.html
Successfully prepared plugin nativescript-angular for android.
Successfully prepared plugin nativescript-intl for android.
Successfully prepared plugin nativescript-appinfo for android.
Successfully prepared plugin nativescript-barcodescanner for android.
Successfully prepared plugin nativescript-cardview for android.
Successfully prepared plugin nativescript-couchbase for android.
Successfully prepared plugin nativescript-drawingpad for android.
Successfully prepared plugin nativescript-fabric for android.
Successfully prepared plugin nativescript-loading-indicator for android.
Successfully prepared plugin nativescript-ngx-fonticon for android.
Successfully prepared plugin nativescript-permissions for android.
Successfully prepared plugin nativescript-plugin-firebase for android.
Successfully prepared plugin nativescript-pulltorefresh for android.
Successfully prepared plugin nativescript-theme-core for android.
Successfully prepared plugin nativescript-toast for android.
Successfully prepared plugin nativescript-urlhandler for android.
Successfully prepared plugin tns-core-modules for android.
Successfully prepared plugin tns-core-modules-widgets for android.
Project successfully prepared (android)
Executing after-prepare hook from /opt/jenkins/workspace/sample-app/sample-mobile-app/hooks/after-prepare/firebase-build-gradle.js
Configure firebase
Executing after-prepare hook from /opt/jenkins/workspace/sample-app/sample-mobile-app/hooks/after-prepare/firebase-copy-google-services.js
Copy /opt/jenkins/workspace/sample-app/sample-mobile-app/app/App_Resources/Android/google-services.json to /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/google-services.json.
Executing after-prepare hook from /opt/jenkins/workspace/sample-app/sample-mobile-app/hooks/after-prepare/nativescript-dev-sass.js
Executing after-prepare hook from /opt/jenkins/workspace/sample-app/sample-mobile-app/hooks/after-prepare/nativescript-fabric.js
Executing after-prepare hook from /opt/jenkins/workspace/sample-app/sample-mobile-app/hooks/after-prepare/nativescript-unit-test-runner.js
Building project...

:config phase:  createDefaultIncludeFiles
    +found plugins: nativescript-barcodescanner
     + creating include.gradle file for /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/nativescript-barcodescanner
Renaming plugin directory to flavor name: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/nativescript-barcodescanner -> /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/F0
    +found plugins: nativescript-cardview
Renaming plugin directory to flavor name: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/nativescript-cardview -> /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/F1
    +found plugins: nativescript-couchbase
Renaming plugin directory to flavor name: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/nativescript-couchbase -> /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/F2
    +found plugins: nativescript-drawingpad
Renaming plugin directory to flavor name: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/nativescript-drawingpad -> /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/F3
    +found plugins: nativescript-fabric
Renaming plugin directory to flavor name: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/nativescript-fabric -> /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/F4
    +found plugins: nativescript-plugin-firebase
Renaming plugin directory to flavor name: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/nativescript-plugin-firebase -> /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/F5
    +found plugins: tns-core-modules-widgets
     + creating include.gradle file for /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/tns-core-modules-widgets
Renaming plugin directory to flavor name: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/tns-core-modules-widgets -> /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/F6

:config phase:  createPluginsConfigFile
     Creating product flavors include.gradle file in /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations folder...

:config phase:  plugiSampleend
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/include.gradle
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/nativescript-barcodescanner/include.gradle
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/nativescript-cardview/include.gradle
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/nativescript-couchbase/include.gradle
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/nativescript-drawingpad/include.gradle
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/nativescript-fabric/include.gradle
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/nativescript-plugin-firebase/include.gradle
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/tns-core-modules-widgets/include.gradle

:config phase:  copyAarDependencies

:config phase:  addAarDependencies
    +adding dependency: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/libs/aar/barcodescanner-release-2.1.3.aar
    +adding dependency: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/libs/aar/firebase-release.aar
    +adding dependency: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/libs/aar/widgets-release.aar
Incremental java compilation is an incubating feature.
:createBuildID UP-TO-DATE
:preBuild UP-TO-DATE
:preF0F1F2F3F4F5F6ReleaseBuild UP-TO-DATE
:checkF0F1F2F3F4F5F6ReleaseManifest
:preF0F1F2F3F4F5F6DebugBuild UP-TO-DATE
:prepareBarcodescannerRelease213Library
:prepareComAndroidSupportAnimatedVectorDrawable2520Library
:prepareComAndroidSupportAppcompatV72520Library
:prepareComAndroidSupportCardviewV72520Library
:prepareComAndroidSupportMultidex101Library
:prepareComAndroidSupportRecyclerviewV72520Library
:prepareComAndroidSupportSupportCompat2520Library
:prepareComAndroidSupportSupportCoreUi2520Library
:prepareComAndroidSupportSupportCoreUtils2520Library
:prepareComAndroidSupportSupportFragment2520Library
:prepareComAndroidSupportSupportMediaCompat2520Library
:prepareComAndroidSupportSupportV42520Library
:prepareComAndroidSupportSupportVectorDrawable2520Library
:prepareComCouchbaseLiteCouchbaseLiteAndroid131Library
:prepareComCouchbaseLiteCouchbaseLiteAndroidSqliteCustom131Library
:prepareComCrashlyticsSdkAndroidAnswers1311Library
:prepareComCrashlyticsSdkAndroidBeta123Library
:prepareComCrashlyticsSdkAndroidCrashlytics266Library
:prepareComCrashlyticsSdkAndroidCrashlyticsCore2315Library
:prepareComGithubGcacaceSignaturePad103Library
:prepareComGoogleAndroidGmsPlayServicesBase1020Library
:prepareComGoogleAndroidGmsPlayServicesBasement1020Library
:prepareComGoogleAndroidGmsPlayServicesTasks1020Library
:prepareComGoogleFirebaseFirebaseAnalytics1020Library
:prepareComGoogleFirebaseFirebaseAnalyticsImpl1020Library
:prepareComGoogleFirebaseFirebaseAuth1020Library
:prepareComGoogleFirebaseFirebaseCommon1020Library
:prepareComGoogleFirebaseFirebaseCore1020Library
:prepareComGoogleFirebaseFirebaseDatabase1020Library
:prepareComGoogleFirebaseFirebaseDatabaseConnection1020Library
:prepareComGoogleFirebaseFirebaseIid1020Library
:prepareComGoogleFirebaseFirebaseMessaging1020Library
:prepareFirebaseReleaseLibrary
:prepareIoFabricSdkAndroidFabric1315Library
:preparesampleRuntimeUnspecifiedLibrary
:prepareWidgetsReleaseLibrary
:prepareF0F1F2F3F4F5F6ReleaseDependencies
:compileF0F1F2F3F4F5F6ReleaseAidl
:compileF0F1F2F3F4F5F6ReleaseRenderscript
:generateF0F1F2F3F4F5F6ReleaseBuildConfig
:cleanLocalAarFiles
:ensureMetadataOutDir
:collectAllJars
:setProperties
:generateTypescriptDefinitions SKIPPED
:copyTypings SKIPPED
:asbg:generateInterfaceNamesList
:asbg:traverseJsFiles
:asbg:runAstParser
Running full build
finished with reading lines with js files
:asbg:generateBindings
:mergeF0F1F2F3F4F5F6ReleaseShaders
:compileF0F1F2F3F4F5F6ReleaseShaders
:generateF0F1F2F3F4F5F6ReleaseAssets
:mergeF0F1F2F3F4F5F6ReleaseAssets
:generateF0F1F2F3F4F5F6ReleaseResValues
:processF0F1F2F3F4F5F6ReleaseGoogleServices
Parsing json file: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/google-services.json
:generateF0F1F2F3F4F5F6ReleaseResources
:mergeF0F1F2F3F4F5F6ReleaseResources
:processF0F1F2F3F4F5F6Arm64-v8aReleaseManifest
:processF0F1F2F3F4F5F6Arm64-v8aReleaseResources
:processF0F1F2F3F4F5F6Armeabi-v7aReleaseManifest
:processF0F1F2F3F4F5F6Armeabi-v7aReleaseResources
:processF0F1F2F3F4F5F6UniversalReleaseManifest
:processF0F1F2F3F4F5F6UniversalReleaseResources
:generateF0F1F2F3F4F5F6ReleaseSources
:incrementalF0F1F2F3F4F5F6ReleaseJavaCompilationSafeguard
:compileF0F1F2F3F4F5F6ReleaseJavaWithJavac
:compileF0F1F2F3F4F5F6ReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/main/java/com/tns/RuntimeHelper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:prePackageMarkerForF0F1F2F3F4F5F6Release
:transformClassesWithJarMergingForF0F1F2F3F4F5F6Release
:collectF0F1F2F3F4F5F6ReleaseMultiDexComponents
:transformClassesWithMultidexlistForF0F1F2F3F4F5F6Release
ProGuard, version 5.2.1
Reading program jar [/opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/build/intermediates/transforms/jarMerging/F0F1F2F3F4F5F6/release/jars/1/1f/combined.jar]
Reading library jar [/Users/sampleappbuilder/.android-sdk-installer/android-sdk-macosx/build-tools/25.0.2/lib/shrinkedAndroid.jar]
Preparing output jar [/opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/build/intermediates/multi-dex/F0F1F2F3F4F5F6/release/componentClasses.jar]
  Copying resources from program jar [/opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/build/intermediates/transforms/jarMerging/F0F1F2F3F4F5F6/release/jars/1/1f/combined.jar]
:transformClassesWithDexForF0F1F2F3F4F5F6Release
To run dex in process, the Gradle daemon needs a larger heap.
It currently has approximately 1820 MB.
For faster builds, increase the maximum heap size for the Gradle daemon to more than 5120 MB.
To do this set org.gradle.jvmargs=-Xmx5120M in the project gradle.properties.
For more information see https://docs.gradle.org/current/userguide/build_environment.html
:myMergeDex
Result compacted from 9879,0KiB to 7888,9KiB to save 1990,0KiB
Merged dex #1 (1 defs/1,6KiB)
Merged dex #2 (1 defs/1,4KiB)
Merged dex #3 (1 defs/1,9KiB)
Merged dex #4 (1 defs/1,7KiB)
Merged dex #5 (1 defs/1,4KiB)
Merged dex #6 (1 defs/1,4KiB)
Merged dex #7 (1 defs/1,6KiB)
Merged dex #8 (1 defs/1,4KiB)
Merged dex #9 (1 defs/1,3KiB)
Merged dex #10 (1 defs/1,5KiB)
Merged dex #11 (1 defs/2,7KiB)
Merged dex #12 (1 defs/1,5KiB)
Merged dex #13 (1 defs/1,3KiB)
Merged dex #14 (1 defs/1,4KiB)
Merged dex #15 (1 defs/1,6KiB)
Merged dex #16 (1 defs/1,6KiB)
Merged dex #17 (1 defs/1,7KiB)
Merged dex #18 (1 defs/1,7KiB)
Merged dex #19 (1 defs/1,8KiB)
Merged dex #20 (1 defs/1,7KiB)
Merged dex #21 (1 defs/1,4KiB)
Merged dex #22 (1 defs/1,3KiB)
Merged dex #23 (1 defs/1,4KiB)
Merged dex #24 (1 defs/1,4KiB)
Merged dex #25 (1 defs/1,3KiB)
Merged dex #26 (1 defs/2,3KiB)
Merged dex #27 (1 defs/1,5KiB)
Merged dex #28 (1 defs/2,3KiB)
Merged dex #29 (1 defs/1,4KiB)
Merged dex #30 (1 defs/1,5KiB)
Merged dex #31 (1 defs/1,3KiB)
Merged dex #32 (1 defs/1,4KiB)
Merged dex #33 (1 defs/1,3KiB)
Merged dex #34 (1 defs/1,4KiB)
Merged dex #35 (1 defs/1,7KiB)
Merged dex #36 (1 defs/1,6KiB)
Merged dex #37 (1 defs/1,3KiB)
Merged dex #38 (1 defs/1,3KiB)
Merged dex #39 (1 defs/1,5KiB)
Merged dex #40 (1 defs/1,4KiB)
Merged dex #41 (1 defs/1,3KiB)
Merged dex #42 (1 defs/1,3KiB)
Merged dex #43 (1 defs/1,4KiB)
Merged dex #44 (1 defs/1,3KiB)
Merged dex #45 (1 defs/1,3KiB)
Merged dex #46 (1 defs/1,3KiB)
Merged dex #47 (1 defs/1,4KiB)
Merged dex #48 (1 defs/1,8KiB)
Merged dex #49 (1 defs/1,5KiB)
Merged dex #50 (1 defs/2,5KiB)
Merged dex #51 (1 defs/2,5KiB)
Merged dex #52 (1 defs/1,2KiB)
Merged dex #53 (1 defs/1,4KiB)
Merged dex #54 (1 defs/1,3KiB)
Merged dex #55 (1 defs/1,4KiB)
Merged dex #56 (6253 defs/7848,7KiB)
Result is 6308 defs/7888,9KiB. Took 1,3s
:buildMetadata
Skip com.google.android.gms.internal.zzaa
    Error: java.lang.NullPointerException
Skip com.google.android.gms.internal.zzu
    Error: java.lang.NullPointerException
Skip com.google.android.gms.internal.zzx
    Error: java.lang.NullPointerException
Skip com.google.android.gms.internal.zzz
    Error: java.lang.NullPointerException
Skip okio.Okio
    Error: java.lang.NullPointerException
 'assets/metadata/treeNodeStream.dat' NOT FOUND
 'assets/metadata/treeStringsStream.dat' NOT FOUND
 'assets/metadata/treeValueStream.dat' NOT FOUND
 'assets/metadata/treeNodeStream.dat'...
 'assets/metadata/treeStringsStream.dat'...
 'assets/metadata/treeValueStream.dat'...
:compileF0F1F2F3F4F5F6ReleaseNdk UP-TO-DATE
:mergeF0F1F2F3F4F5F6ReleaseJniLibFolders
:transformNative_libsWithMergeJniLibsForF0F1F2F3F4F5F6Release
:processF0F1F2F3F4F5F6ReleaseJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForF0F1F2F3F4F5F6Release
:validateReleaseSigning
:packageF0F1F2F3F4F5F6Arm64-v8aRelease
:zipalignF0F1F2F3F4F5F6Arm64-v8aRelease
:assembleF0F1F2F3F4F5F6Arm64-v8aRelease
:packageF0F1F2F3F4F5F6Armeabi-v7aRelease
:zipalignF0F1F2F3F4F5F6Armeabi-v7aRelease
:assembleF0F1F2F3F4F5F6Armeabi-v7aRelease
:packageF0F1F2F3F4F5F6UniversalRelease
:zipalignF0F1F2F3F4F5F6UniversalRelease
:assembleF0F1F2F3F4F5F6UniversalRelease
:compileF0F1F2F3F4F5F6ReleaseSources
:lintVitalF0F1F2F3F4F5F6Release
:assembleF0F1F2F3F4F5F6Release
:assembleRelease
:buildapk

BUILD SUCCESSFUL

Total time: 1 mins 49.136 secs
```"

> Sample-Mobile-App@1.3.0 ns-bundle /opt/jenkins/workspace/sample-app/sample-mobile-app
> ns-bundle "./etc/android/app.keystore" "password" "alias" "password"

Running webpack for android...
Active environment is:  production
...
Version: webpack 2.2.1
Time: 28025ms
                        Asset      Size  Chunks                    Chunk Names
fonts/fontawesome-webfont.ttf    153 kB          [emitted]         
                    bundle.js   4.07 MB       0  [emitted]  [big]  bundle
                    vendor.js   3.46 MB       2  [emitted]  [big]  vendor
          assets/i18n/de.json   8.33 kB          [emitted]         
          assets/i18n/en.json   8.08 kB          [emitted]         
       fonts/font-awesome.css     29 kB          [emitted]         
                  app.scss.js   9.22 kB       1  [emitted]         app.scss
        fonts/FontAwesome.ttf    153 kB          [emitted]         
           fonts/ionicons.css   36.1 kB          [emitted]         
           fonts/ionicons.ttf    189 kB          [emitted]         
                 package.json  82 bytes          [emitted]         
                   starter.js  41 bytes          [emitted]         
   [0] ../~/@angular/core/index.js 2.54 kB {2} [built]
   [4] ../~/@angular/forms/index.js 1.04 kB {2} [built]
  [35] ../~/@angular/http/index.js 734 bytes {2} [built]
  [89] ../~/@angular/common/index.js 771 bytes {2} [built]
 [194] ../~/nativescript-fabric/fabric.android.js 3.36 kB {0} [built]
 [195] ../~/nativescript-angular/platform-static.js 787 bytes {2} [built]
 [272] ../~/@angular/platform-browser/index.js 635 bytes {2} [built]
 [273] ../~/nativescript-angular/forms.js 1.46 kB {2} [built]
 [274] ../~/nativescript-angular/router.js 3.1 kB {2} [built]
 [275] ../~/reflect-metadata/Reflect.js 48.2 kB {2} [built]
 [604] ./app.module.ngfactory.ts 58.3 kB {0} [built]
 [605] ./vendor-platform.android.ts 1.06 kB {2} [built]
[1158] ./main.aot.ts 650 bytes {0} [built]
[1159] ./vendor.ts 394 bytes {2} [built]
[1160] ./app.scss 8.99 kB {1} [built]
    + 1146 hidden modules
Child app/login/components/login.component.html:
        + 1 hidden modules
Child app/driver/modules/info/info.component.html:
       [0] ./driver/modules/info/info.component.html 993 bytes {0} [built]
Child app/driver/modules/offers/offeredtouroverview/offeredtouroverview.component.html:
       [0] ./driver/modules/offers/offeredtouroverview/offeredtouroverview.component.html 858 bytes {0} [built]
Child app/driver/modules/offers/offeredtour/offeredtour.component.html:
       [0] ./driver/modules/offers/offeredtour/offeredtour.component.html 894 bytes {0} [built]
Child app/driver/modules/offers/offeredtourdetails/offeredtourdetails.component.html:
       [0] ./driver/modules/offers/offeredtourdetails/offeredtourdetails.component.html 3.04 kB {0} [built]
Child app/driver/modules/tours/scanparcels/scanparcels.component.html:
       [0] ./driver/modules/tours/scanparcels/scanparcels.component.html 879 bytes {0} [built]
Child app/driver/modules/tours/signature/signature.component.html:
       [0] ./driver/modules/tours/signature/signature.component.html 1 kB {0} [built]
Child app/driver/modules/tours/task/task.component.html:
       [0] ./driver/modules/tours/task/task.component.html 1.36 kB {0} [built]
Child app/driver/modules/tours/task/retry-task.component.html:
       [0] ./driver/modules/tours/task/retry-task.component.html 703 bytes {0} [built]
Child app/driver/modules/tours/tasks/tasks.component.html:
       [0] ./driver/modules/tours/tasks/tasks.component.html 1.93 kB {0} [built]
Child app/driver/modules/tours/tour/tour.component.html:
       [0] ./driver/modules/tours/tour/tour.component.html 1.73 kB {0} [built]
Child app/driver/modules/tours/touroverview/touroverview.component.html:
       [0] ./driver/modules/tours/touroverview/touroverview.component.html 2.12 kB {0} [built]
Child app/driver/modules/tours/vehicle/vehicle.component.html:
       [0] ./driver/modules/tours/vehicle/vehicle.component.html 1.08 kB {0} [built]
Child app/driver/modules/tours/waypointtaskdetails/waypointtaskdetails.component.html:
       [0] ./driver/modules/tours/waypointtaskdetails/waypointtaskdetails.component.html 3.78 kB {0} [built]
Child app/driver/modules/tours/waypointtaskdetails/tasks/task.vehicle.html:
       [0] ./driver/modules/tours/waypointtaskdetails/tasks/task.vehicle.html 1.78 kB {0} [built]
Child app/driver/modules/tours/waypointtaskdetails/tasks/task.pickup.parcel.html:
       [0] ./driver/modules/tours/waypointtaskdetails/tasks/task.pickup.parcel.html 1.06 kB {0} [built]
Child app/driver/modules/tours/waypointtaskdetails/tasks/task.deliver.parcel.html:
       [0] ./driver/modules/tours/waypointtaskdetails/tasks/task.deliver.parcel.html 2.68 kB {0} [built]
Child app/driver/modules/tours/waypointtaskdetails/tasks/task.return.parcel.html:
       [0] ./driver/modules/tours/waypointtaskdetails/tasks/task.return.parcel.html 1.39 kB {0} [built]
Child app/driver/modules/profile/profile/profile.component.html:
       [0] ./driver/modules/profile/profile/profile.component.html 4.4 kB {0} [built]
Child app/driver/modules/profile/ratings/ratings.component.html:
       [0] ./driver/modules/profile/ratings/ratings.component.html 1.08 kB {0} [built]
Child app/driver/modules/profile/ratings/stars.component.html:
       [0] ./driver/modules/profile/ratings/stars.component.html 617 bytes {0} [built]
Child app/driver/modules/profile/settings/settings.component.html:
       [0] ./driver/modules/profile/settings/settings.component.html 2.62 kB {0} [built]
Child app/driver/modules/info/accident/de/info.template.de.html:
       [0] ./driver/modules/info/accident/de/info.template.de.html 4.35 kB {0} [built]
Child app/driver/modules/info/accident/en/info.template.en.html:
       [0] ./driver/modules/info/accident/en/info.template.en.html 156 bytes {0} [built]
Child app/driver/modules/info/about/de/about.template.de.html:
       [0] ./driver/modules/info/about/de/about.template.de.html 6.95 kB {0} [built]
Child app/driver/modules/info/about/en/about.template.en.html:
       [0] ./driver/modules/info/about/en/about.template.en.html 150 bytes {0} [built]
Child app/driver/components/navigation/navigation.component.html:
        + 1 hidden modules
Child app/shared/components/ui/radiobutton/radiobutton-group.component.html:
        + 1 hidden modules
Child app/shared/components/ui/radiobutton/radiobutton.component.html:
        + 1 hidden modules
Child app/shared/components/ui/map/map.component.html:
        + 1 hidden modules
Child app/shared/components/ui/selectonedialog/selectone.dialog.component.html:
        + 1 hidden modules
Child app/shared/components/ui/simpledialog/simple.dialog.component.html:
        + 1 hidden modules
Running tns build...
Executing before-prepare hook from /opt/jenkins/workspace/sample-app/sample-mobile-app/hooks/before-prepare/nativescript-dev-sass.js
Executing before-prepare hook from /opt/jenkins/workspace/sample-app/sample-mobile-app/hooks/before-prepare/nativescript-dev-typescript.js
Preparing project...

:config phase:  createDefaultIncludeFiles

:config phase:  copyAarDependencies

:config phase:  addAarDependencies
    +adding dependency: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/libs/aar/barcodescanner-release-2.1.3.aar
    +adding dependency: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/libs/aar/firebase-release.aar
    +adding dependency: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/libs/aar/widgets-release.aar
Incremental java compilation is an incubating feature.
:asbg:clean UP-TO-DATE
:deleteMetadata
:deleteFlavors
:deleteConfigurations UP-TO-DATE
:clean

BUILD SUCCESSFUL

Total time: 14.87 secs

This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.10/userguide/gradle_daemon.html
Successfully prepared plugin nativescript-angular for android.
Successfully prepared plugin nativescript-intl for android.
Successfully prepared plugin nativescript-appinfo for android.
Successfully prepared plugin nativescript-barcodescanner for android.
Successfully prepared plugin nativescript-cardview for android.
Successfully prepared plugin nativescript-couchbase for android.
Successfully prepared plugin nativescript-drawingpad for android.
Successfully prepared plugin nativescript-fabric for android.
Successfully prepared plugin nativescript-loading-indicator for android.
Successfully prepared plugin nativescript-ngx-fonticon for android.
Successfully prepared plugin nativescript-permissions for android.
Successfully prepared plugin nativescript-plugin-firebase for android.
Successfully prepared plugin nativescript-pulltorefresh for android.
Successfully prepared plugin nativescript-theme-core for android.
Successfully prepared plugin nativescript-toast for android.
Successfully prepared plugin nativescript-urlhandler for android.
Successfully prepared plugin tns-core-modules for android.
Successfully prepared plugin tns-core-modules-widgets for android.
Project successfully prepared (android)
Executing after-prepare hook from /opt/jenkins/workspace/sample-app/sample-mobile-app/hooks/after-prepare/firebase-build-gradle.js
Configure firebase
Executing after-prepare hook from /opt/jenkins/workspace/sample-app/sample-mobile-app/hooks/after-prepare/firebase-copy-google-services.js
Copy /opt/jenkins/workspace/sample-app/sample-mobile-app/app/App_Resources/Android/google-services.json to /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/google-services.json.
Executing after-prepare hook from /opt/jenkins/workspace/sample-app/sample-mobile-app/hooks/after-prepare/nativescript-dev-sass.js
Executing after-prepare hook from /opt/jenkins/workspace/sample-app/sample-mobile-app/hooks/after-prepare/nativescript-fabric.js
Executing after-prepare hook from /opt/jenkins/workspace/sample-app/sample-mobile-app/hooks/after-prepare/nativescript-unit-test-runner.js
Building project...

:config phase:  createDefaultIncludeFiles
    +found plugins: nativescript-barcodescanner
     + creating include.gradle file for /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/nativescript-barcodescanner
Renaming plugin directory to flavor name: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/nativescript-barcodescanner -> /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/F0
    +found plugins: nativescript-cardview
Renaming plugin directory to flavor name: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/nativescript-cardview -> /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/F1
    +found plugins: nativescript-couchbase
Renaming plugin directory to flavor name: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/nativescript-couchbase -> /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/F2
    +found plugins: nativescript-drawingpad
Renaming plugin directory to flavor name: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/nativescript-drawingpad -> /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/F3
    +found plugins: nativescript-fabric
Renaming plugin directory to flavor name: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/nativescript-fabric -> /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/F4
    +found plugins: nativescript-plugin-firebase
Renaming plugin directory to flavor name: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/nativescript-plugin-firebase -> /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/F5
    +found plugins: tns-core-modules-widgets
     + creating include.gradle file for /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/tns-core-modules-widgets
Renaming plugin directory to flavor name: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/tns-core-modules-widgets -> /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/F6

:config phase:  createPluginsConfigFile
     Creating product flavors include.gradle file in /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations folder...

:config phase:  plugiSampleend
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/include.gradle
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/nativescript-barcodescanner/include.gradle
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/nativescript-cardview/include.gradle
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/nativescript-couchbase/include.gradle
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/nativescript-drawingpad/include.gradle
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/nativescript-fabric/include.gradle
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/nativescript-plugin-firebase/include.gradle
    +applying configuration from: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/configurations/tns-core-modules-widgets/include.gradle

:config phase:  copyAarDependencies

:config phase:  addAarDependencies
    +adding dependency: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/libs/aar/barcodescanner-release-2.1.3.aar
    +adding dependency: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/libs/aar/firebase-release.aar
    +adding dependency: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/libs/aar/widgets-release.aar
Incremental java compilation is an incubating feature.
:createBuildID UP-TO-DATE
:preBuild UP-TO-DATE
:preF0F1F2F3F4F5F6ReleaseBuild UP-TO-DATE
:checkF0F1F2F3F4F5F6ReleaseManifest
:preF0F1F2F3F4F5F6DebugBuild UP-TO-DATE
:prepareBarcodescannerRelease213Library
:prepareComAndroidSupportAnimatedVectorDrawable2520Library
:prepareComAndroidSupportAppcompatV72520Library
:prepareComAndroidSupportCardviewV72520Library
:prepareComAndroidSupportMultidex101Library
:prepareComAndroidSupportRecyclerviewV72520Library
:prepareComAndroidSupportSupportCompat2520Library
:prepareComAndroidSupportSupportCoreUi2520Library
:prepareComAndroidSupportSupportCoreUtils2520Library
:prepareComAndroidSupportSupportFragment2520Library
:prepareComAndroidSupportSupportMediaCompat2520Library
:prepareComAndroidSupportSupportV42520Library
:prepareComAndroidSupportSupportVectorDrawable2520Library
:prepareComCouchbaseLiteCouchbaseLiteAndroid131Library
:prepareComCouchbaseLiteCouchbaseLiteAndroidSqliteCustom131Library
:prepareComCrashlyticsSdkAndroidAnswers1311Library
:prepareComCrashlyticsSdkAndroidBeta123Library
:prepareComCrashlyticsSdkAndroidCrashlytics266Library
:prepareComCrashlyticsSdkAndroidCrashlyticsCore2315Library
:prepareComGithubGcacaceSignaturePad103Library
:prepareComGoogleAndroidGmsPlayServicesBase1020Library
:prepareComGoogleAndroidGmsPlayServicesBasement1020Library
:prepareComGoogleAndroidGmsPlayServicesTasks1020Library
:prepareComGoogleFirebaseFirebaseAnalytics1020Library
:prepareComGoogleFirebaseFirebaseAnalyticsImpl1020Library
:prepareComGoogleFirebaseFirebaseAuth1020Library
:prepareComGoogleFirebaseFirebaseCommon1020Library
:prepareComGoogleFirebaseFirebaseCore1020Library
:prepareComGoogleFirebaseFirebaseDatabase1020Library
:prepareComGoogleFirebaseFirebaseDatabaseConnection1020Library
:prepareComGoogleFirebaseFirebaseIid1020Library
:prepareComGoogleFirebaseFirebaseMessaging1020Library
:prepareFirebaseReleaseLibrary
:prepareIoFabricSdkAndroidFabric1315Library
:preparesampleRuntimeUnspecifiedLibrary
:prepareWidgetsReleaseLibrary
:prepareF0F1F2F3F4F5F6ReleaseDependencies
:compileF0F1F2F3F4F5F6ReleaseAidl
:compileF0F1F2F3F4F5F6ReleaseRenderscript
:generateF0F1F2F3F4F5F6ReleaseBuildConfig
:cleanLocalAarFiles
:ensureMetadataOutDir
:collectAllJars
:setProperties
:generateTypescriptDefinitions SKIPPED
:copyTypings SKIPPED
:asbg:generateInterfaceNamesList
:asbg:traverseJsFiles
:asbg:runAstParser
Running full build
finished with reading lines with js files
:asbg:generateBindings
:mergeF0F1F2F3F4F5F6ReleaseShaders
:compileF0F1F2F3F4F5F6ReleaseShaders
:generateF0F1F2F3F4F5F6ReleaseAssets
:mergeF0F1F2F3F4F5F6ReleaseAssets
:generateF0F1F2F3F4F5F6ReleaseResValues
:processF0F1F2F3F4F5F6ReleaseGoogleServices
Parsing json file: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/google-services.json
:generateF0F1F2F3F4F5F6ReleaseResources
:mergeF0F1F2F3F4F5F6ReleaseResources
:processF0F1F2F3F4F5F6Arm64-v8aReleaseManifest
:processF0F1F2F3F4F5F6Arm64-v8aReleaseResources
:processF0F1F2F3F4F5F6Armeabi-v7aReleaseManifest
:processF0F1F2F3F4F5F6Armeabi-v7aReleaseResources
:processF0F1F2F3F4F5F6UniversalReleaseManifest
:processF0F1F2F3F4F5F6UniversalReleaseResources
:generateF0F1F2F3F4F5F6ReleaseSources
:incrementalF0F1F2F3F4F5F6ReleaseJavaCompilationSafeguard
:compileF0F1F2F3F4F5F6ReleaseJavaWithJavac
:compileF0F1F2F3F4F5F6ReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
Note: /opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/src/main/java/com/tns/RuntimeHelper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:prePackageMarkerForF0F1F2F3F4F5F6Release
:transformClassesWithJarMergingForF0F1F2F3F4F5F6Release
:collectF0F1F2F3F4F5F6ReleaseMultiDexComponents
:transformClassesWithMultidexlistForF0F1F2F3F4F5F6Release
ProGuard, version 5.2.1
Reading program jar [/opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/build/intermediates/transforms/jarMerging/F0F1F2F3F4F5F6/release/jars/1/1f/combined.jar]
Reading library jar [/Users/sampleappbuilder/.android-sdk-installer/android-sdk-macosx/build-tools/25.0.2/lib/shrinkedAndroid.jar]
Preparing output jar [/opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/build/intermediates/multi-dex/F0F1F2F3F4F5F6/release/componentClasses.jar]
  Copying resources from program jar [/opt/jenkins/workspace/sample-app/sample-mobile-app/platforms/android/build/intermediates/transforms/jarMerging/F0F1F2F3F4F5F6/release/jars/1/1f/combined.jar]
:transformClassesWithDexForF0F1F2F3F4F5F6Release
To run dex in process, the Gradle daemon needs a larger heap.
It currently has approximately 1820 MB.
For faster builds, increase the maximum heap size for the Gradle daemon to more than 5120 MB.
To do this set org.gradle.jvmargs=-Xmx5120M in the project gradle.properties.
For more information see https://docs.gradle.org/current/userguide/build_environment.html
:myMergeDex
Result compacted from 9879,0KiB to 7888,9KiB to save 1990,0KiB
Merged dex #1 (1 defs/1,6KiB)
Merged dex #2 (1 defs/1,4KiB)
Merged dex #3 (1 defs/1,9KiB)
Merged dex #4 (1 defs/1,7KiB)
Merged dex #5 (1 defs/1,4KiB)
Merged dex #6 (1 defs/1,4KiB)
Merged dex #7 (1 defs/1,6KiB)
Merged dex #8 (1 defs/1,4KiB)
Merged dex #9 (1 defs/1,3KiB)
Merged dex #10 (1 defs/1,5KiB)
Merged dex #11 (1 defs/2,7KiB)
Merged dex #12 (1 defs/1,5KiB)
Merged dex #13 (1 defs/1,3KiB)
Merged dex #14 (1 defs/1,4KiB)
Merged dex #15 (1 defs/1,6KiB)
Merged dex #16 (1 defs/1,6KiB)
Merged dex #17 (1 defs/1,7KiB)
Merged dex #18 (1 defs/1,7KiB)
Merged dex #19 (1 defs/1,8KiB)
Merged dex #20 (1 defs/1,7KiB)
Merged dex #21 (1 defs/1,4KiB)
Merged dex #22 (1 defs/1,3KiB)
Merged dex #23 (1 defs/1,4KiB)
Merged dex #24 (1 defs/1,4KiB)
Merged dex #25 (1 defs/1,3KiB)
Merged dex #26 (1 defs/2,3KiB)
Merged dex #27 (1 defs/1,5KiB)
Merged dex #28 (1 defs/2,3KiB)
Merged dex #29 (1 defs/1,4KiB)
Merged dex #30 (1 defs/1,5KiB)
Merged dex #31 (1 defs/1,3KiB)
Merged dex #32 (1 defs/1,4KiB)
Merged dex #33 (1 defs/1,3KiB)
Merged dex #34 (1 defs/1,4KiB)
Merged dex #35 (1 defs/1,7KiB)
Merged dex #36 (1 defs/1,6KiB)
Merged dex #37 (1 defs/1,3KiB)
Merged dex #38 (1 defs/1,3KiB)
Merged dex #39 (1 defs/1,5KiB)
Merged dex #40 (1 defs/1,4KiB)
Merged dex #41 (1 defs/1,3KiB)
Merged dex #42 (1 defs/1,3KiB)
Merged dex #43 (1 defs/1,4KiB)
Merged dex #44 (1 defs/1,3KiB)
Merged dex #45 (1 defs/1,3KiB)
Merged dex #46 (1 defs/1,3KiB)
Merged dex #47 (1 defs/1,4KiB)
Merged dex #48 (1 defs/1,8KiB)
Merged dex #49 (1 defs/1,5KiB)
Merged dex #50 (1 defs/2,5KiB)
Merged dex #51 (1 defs/2,5KiB)
Merged dex #52 (1 defs/1,2KiB)
Merged dex #53 (1 defs/1,4KiB)
Merged dex #54 (1 defs/1,3KiB)
Merged dex #55 (1 defs/1,4KiB)
Merged dex #56 (6253 defs/7848,7KiB)
Result is 6308 defs/7888,9KiB. Took 1,3s
:buildMetadata
Skip com.google.android.gms.internal.zzaa
    Error: java.lang.NullPointerException
Skip com.google.android.gms.internal.zzu
    Error: java.lang.NullPointerException
Skip com.google.android.gms.internal.zzx
    Error: java.lang.NullPointerException
Skip com.google.android.gms.internal.zzz
    Error: java.lang.NullPointerException
Skip okio.Okio
    Error: java.lang.NullPointerException
 'assets/metadata/treeNodeStream.dat' NOT FOUND
 'assets/metadata/treeStringsStream.dat' NOT FOUND
 'assets/metadata/treeValueStream.dat' NOT FOUND
 'assets/metadata/treeNodeStream.dat'...
 'assets/metadata/treeStringsStream.dat'...
 'assets/metadata/treeValueStream.dat'...
:compileF0F1F2F3F4F5F6ReleaseNdk UP-TO-DATE
:mergeF0F1F2F3F4F5F6ReleaseJniLibFolders
:transformNative_libsWithMergeJniLibsForF0F1F2F3F4F5F6Release
:processF0F1F2F3F4F5F6ReleaseJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForF0F1F2F3F4F5F6Release
:validateReleaseSigning
:packageF0F1F2F3F4F5F6Arm64-v8aRelease
:zipalignF0F1F2F3F4F5F6Arm64-v8aRelease
:assembleF0F1F2F3F4F5F6Arm64-v8aRelease
:packageF0F1F2F3F4F5F6Armeabi-v7aRelease
:zipalignF0F1F2F3F4F5F6Armeabi-v7aRelease
:assembleF0F1F2F3F4F5F6Armeabi-v7aRelease
:packageF0F1F2F3F4F5F6UniversalRelease
:zipalignF0F1F2F3F4F5F6UniversalRelease
:assembleF0F1F2F3F4F5F6UniversalRelease
:compileF0F1F2F3F4F5F6ReleaseSources
:lintVitalF0F1F2F3F4F5F6Release
:assembleF0F1F2F3F4F5F6Release
:assembleRelease
:buildapk

BUILD SUCCESSFUL

Total time: 1 mins 49.136 secs
petekanev commented 7 years ago

@hypery2k it appears to be unrelated to snapshots failure as initially suggested. I would like to ask you to do something for me, so a better stacktrace is output in release. remove platform, install platform, navigate to platforms/android/libs/runtime-libs, delete thenativescript-optimized` entry and rename the one that is left (regular) to (nativescript-optimized), then run, and post the new exception. Thanks.

hypery2k commented 7 years ago

here it comes:

W/System.err(  858): java.lang.NullPointerException: Attempt to invoke virtual method 'android.database.sqlite.SQLiteDatabase android.content.Context.openOrCreateDatabase(java.lang.String, int, android.database.sqlite.SQLiteDatabase$CursorFactory)' on a null object reference
W/System.err(  858):    at com.android.server.enterprise.application.ApplicationUsageDb.getAppControlDB(ApplicationUsageDb.java:350)
W/System.err(  858):    at com.android.server.enterprise.application.ApplicationUsageDb.updateBackGroundUsageDetails(ApplicationUsageDb.java:134)
W/System.err(  858):    at com.android.server.enterprise.application.ApplicationUsage.updateBackGroundUsageDetails(ApplicationUsage.java:304)
W/System.err(  858):    at com.android.server.enterprise.application.ApplicationUsage._insertToAppControlDB(ApplicationUsage.java:253)
W/System.err(  858):    at com.android.server.enterprise.application.ApplicationUsage$UsageHandler.handleMessage(ApplicationUsage.java:128)
W/System.err(  858):    at android.os.Handler.dispatchMessage(Handler.java:102)
W/System.err(  858):    at android.os.Looper.loop(Looper.java:145)
W/System.err(  858):    at android.os.HandlerThread.run(HandlerThread.java:61)
I/ApplicationUsage(  858): Done Updating Usage Statistics in DB @ 1490089926628
I/WindowManager(  858): Screenshot max retries 4 of Token{17026852 ActivityRecord{257014dd u0 de.fiege.nextrust.app/com.tns.NativeScriptActivity t700 f}} appWin=Window{3d3ab79e u0 Starting de.fiege.nextrust.app} drawState=4
E/ActivityManager(  858): Invalid thumbnail dimensions: 576x576
W/ActivityManager(  858): Exception thrown during pause
W/ActivityManager(  858): android.os.DeadObjectException
W/ActivityManager(  858):   at android.os.BinderProxy.transactNative(Native Method)
W/ActivityManager(  858):   at android.os.BinderProxy.transact(Binder.java:496)
W/ActivityManager(  858):   at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:766)
W/ActivityManager(  858):   at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:1186)
W/ActivityManager(  858):   at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3661)
W/ActivityManager(  858):   at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:3475)
W/ActivityManager(  858):   at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:3409)
W/ActivityManager(  858):   at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:14648)
W/ActivityManager(  858):   at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:14521)
W/ActivityManager(  858):   at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:15287)
W/ActivityManager(  858):   at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:14795)
W/ActivityManager(  858):   at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
V/WindowOrientationListener(  858): mSContextAutoRotationListener.getProposedRotation, mbResultFaceDectection: false
petekanev commented 7 years ago

@hypery2k that looks like a different crash to what you posted originally. It's an SQLite error, not sure which plugin causes it.

You might have to open a new issue so that it's reviewed as its own separate case.

hypery2k commented 7 years ago

that's strange, because not using sqlite at all. We're using couchbase. This issue occurs on Samsung and Nexus device, but on HTC device it's working. Very strange.

hypery2k commented 7 years ago

maybe this helps more:

03-21 15:41:53.255 16436 16436 W InstanceID/Rpc: Found 10020
03-21 15:41:53.259 16436 16436 D FirebaseApp: com.google.firebase.crash.FirebaseCrash is not linked. Skipping initialization.
03-21 15:41:53.264 16436 16436 I FA      : App measurement is starting up, version: 10298
03-21 15:41:53.264 16436 16436 I FA      : To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
03-21 15:41:53.269 16436 16436 I FA      : To enable faster debug mode event logging run:
03-21 15:41:53.269 16436 16436 I FA      :   adb shell setprop debug.firebase.analytics.app de.fiege.nextrust.app
03-21 15:41:53.274 16436 16436 I FirebaseInitProvider: FirebaseApp initialization successful
03-21 15:41:53.284 16436 16455 W GooglePlayServicesUtil: Google Play services out of date.  Requires 10298000 but found 9879448
03-21 15:41:53.318 16436 16436 I TNS.Native: NativeScript Runtime Version 2.5.0, commit 95dd12d69eba88755158987d8c4666a9c5aa5e07
03-21 15:41:53.318 16436 16436 D TNS.Native: JNI_ONLoad
03-21 15:41:53.318 16436 16436 D TNS.Native: JNI_ONLoad END
03-21 15:41:53.331 16436 16436 D TNS.Native: Failed to load snapshot: dlopen failed: library "libsnapshot.so" not found
03-21 15:41:53.433 16436 16436 D TNS.Native: V8 version 5.5.372.32
03-21 15:41:53.511 16436 16436 F libc    : /Volumes/Android/buildbot/out_dirs/aosp-ndk-r11-release/build/tmp/build-72234/build-libc++/ndk/sources/cxx-stl/llvm-libc++/../llvm-libc++abi/libcxxabi/src/abort_message.cpp:74: void abort_message(const char *, ...): assertion "terminating with uncaught exception of type tns::NativeScriptException" failed
03-21 15:41:53.511 16436 16436 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 16436 (ge.nextrust.app)
03-21 15:41:53.511   366   366 W         : debuggerd: handling request: pid=16436 uid=10091 gid=10091 tid=16436
03-21 15:41:53.587 16461 16461 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-21 15:41:53.587 16461 16461 F DEBUG   : Build fingerprint: 'google/bullhead/bullhead:7.1.1/N4F26T/3687331:user/release-keys'
03-21 15:41:53.587 16461 16461 F DEBUG   : Revision: 'rev_1.0'
03-21 15:41:53.587 16461 16461 F DEBUG   : ABI: 'arm'
03-21 15:41:53.587 16461 16461 F DEBUG   : pid: 16436, tid: 16436, name: ge.nextrust.app  >>> de.fiege.nextrust.app <<<
03-21 15:41:53.587 16461 16461 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
03-21 15:41:53.591 16461 16461 F DEBUG   : Abort message: '/Volumes/Android/buildbot/out_dirs/aosp-ndk-r11-release/build/tmp/build-72234/build-libc++/ndk/sources/cxx-stl/llvm-libc++/../llvm-libc++abi/libcxxabi/src/abort_message.cpp:74: void abort_message(const char *, ...): assertion "terminating with uncaught exception of type tns::NativeScriptException" failed'
03-21 15:41:53.592 16461 16461 F DEBUG   :     r0 00000000  r1 00004034  r2 00000006  r3 00000008
03-21 15:41:53.592 16461 16461 F DEBUG   :     r4 f565458c  r5 00000006  r6 f5654534  r7 0000010c
03-21 15:41:53.592 16461 16461 F DEBUG   :     r8 ffffcc54  r9 00000000  sl 00000018  fp fffb578c
03-21 15:41:53.592 16461 16461 F DEBUG   :     ip 00000002  sp fffb56f8  lr f342f5e7  pc f3431e44  cpsr 200e0010
03-21 15:41:53.603 16461 16461 F DEBUG   :
03-21 15:41:53.603 16461 16461 F DEBUG   : backtrace:
03-21 15:41:53.603 16461 16461 F DEBUG   :     #00 pc 00049e44  /system/lib/libc.so (tgkill+12)
03-21 15:41:53.603 16461 16461 F DEBUG   :     #01 pc 000475e3  /system/lib/libc.so (pthread_kill+34)
03-21 15:41:53.603 16461 16461 F DEBUG   :     #02 pc 0001d8a5  /system/lib/libc.so (raise+10)
03-21 15:41:53.603 16461 16461 F DEBUG   :     #03 pc 000193f1  /system/lib/libc.so (__libc_android_abort+34)
03-21 15:41:53.603 16461 16461 F DEBUG   :     #04 pc 00017034  /system/lib/libc.so (abort+4)
03-21 15:41:53.603 16461 16461 F DEBUG   :     #05 pc 0001b89f  /system/lib/libc.so (__libc_fatal+22)
03-21 15:41:53.603 16461 16461 F DEBUG   :     #06 pc 000195eb  /system/lib/libc.so (__assert2+18)
03-21 15:41:53.603 16461 16461 F DEBUG   :     #07 pc 003de4ac  /data/app/de.fiege.nextrust.app-1/lib/arm/libNativeScript.so
03-21 15:41:53.603 16461 16461 F DEBUG   :     #08 pc 003de630  /data/app/de.fiege.nextrust.app-1/lib/arm/libNativeScript.so
03-21 15:41:53.603 16461 16461 F DEBUG   :     #09 pc 003cd480  /data/app/de.fiege.nextrust.app-1/lib/arm/libNativeScript.so
03-21 15:41:53.603 16461 16461 F DEBUG   :     #10 pc 003cc6a4  /data/app/de.fiege.nextrust.app-1/lib/arm/libNativeScript.so (__cxa_throw+240)
03-21 15:41:53.603 16461 16461 F DEBUG   :     #11 pc 00346ec1  /data/app/de.fiege.nextrust.app-1/lib/arm/libNativeScript.so (_ZN3tns7Runtime16GetObjectManagerEPN2v87IsolateE+296)
03-21 15:41:53.603 16461 16461 F DEBUG   :     #12 pc 00333dc1  /data/app/de.fiege.nextrust.app-1/lib/arm/libNativeScript.so (_ZN3tns21NativeScriptException13ReThrowToJavaEv+16)
03-21 15:41:53.603 16461 16461 F DEBUG   :     #13 pc 003423b5  /data/app/de.fiege.nextrust.app-1/lib/arm/libNativeScript.so (Java_com_tns_Runtime_initNativeScript+52)
03-21 15:41:53.603 16461 16461 F DEBUG   :     #14 pc 008d4569  /data/app/de.fiege.nextrust.app-1/oat/arm/base.odex (offset 0x88e000)
hypery2k commented 7 years ago

strange, it's working if I run the build twice. So these are the steps I'm doing seems to succeed:

  1. rm -rf node_modules hooks platforms target
  2. tns install
  3. npm run ns-bundle --android --build-app --clean
  4. npm run ns-bundle --android --build-app -- --release

If I omit step 3 I get the above error

petekanev commented 7 years ago

@hypery2k the stacktrace you shared shows that the application cannot initialize because an exception is thrown while bootstrapping the JS engine. Probably unrelated to your code, but somehow caused by the steps you perform to build the app.

Please open a new issue with a minimal sample project and steps to reproduce so that we may get to the bottom of the problem. Thank you!

hypery2k commented 7 years ago

I will try to setup a sample project to reproduce this issue

Plamen5kov commented 7 years ago

@hypery2k did you manage to create a simple project to reproduce the issue?

Plamen5kov commented 6 years ago

Closing due to lack of response, but we'll open it again if the need arises.

hypery2k commented 6 years ago

I was able to reproduce the error, see here:

1-29 05:50:39.253 24341 24341 F libc    : /usr/local/google/buildbot/src/android/ndk-r15-release/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:74: void abort_message(const char *, ...): assertion "terminating with uncaught exception of type tns::NativeScriptException" failed
11-29 05:50:39.253 24341 24341 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 24341 (vescript.ngdemo)
11-29 05:50:39.304   439   439 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
11-29 05:50:39.304   439   439 F DEBUG   : Build fingerprint: 'lge/p1_global_com/p1:6.0/MRA58K/1620215065b6f:user/release-keys'
11-29 05:50:39.304   439   439 F DEBUG   : Revision: '11'
11-29 05:50:39.304   439   439 F DEBUG   : ABI: 'arm'
11-29 05:50:39.305   439   439 F DEBUG   : pid: 24341, tid: 24341, name: vescript.ngdemo  >>> de.holisticon.nativescript.ngdemo <<<
11-29 05:50:39.305   439   439 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
11-29 05:50:39.308   474   493 I GBMv2   : GBM state [1]
11-29 05:50:39.308   474   493 I GBMv2   : GBM state [9]
11-29 05:50:39.319   439   439 F DEBUG   : Abort message: '/usr/local/google/buildbot/src/android/ndk-r15-release/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:74: void abort_message(const char *, ...): assertion "terminating with uncaught exception of type tns::NativeScriptException" failed'
11-29 05:50:39.319   439   439 F DEBUG   :     r0 00000000  r1 00005f15  r2 00000006  r3 f7266b7c
11-29 05:50:39.319   439   439 F DEBUG   :     r4 f7266b84  r5 f7266b34  r6 00000002  r7 0000010c
11-29 05:50:39.319   439   439 F DEBUG   :     r8 d8ca41e4  r9 ff97f358  sl 12e39100  fp ff97f400
11-29 05:50:39.319   439   439 F DEBUG   :     ip 00000006  sp ff97ee48  lr f6fd00a5  pc f6fd1bcc  cpsr 40070010
11-29 05:50:39.329   439   439 F DEBUG   :
11-29 05:50:39.329   439   439 F DEBUG   : backtrace:
11-29 05:50:39.329   439   439 F DEBUG   :     #00 pc 00041bcc  /system/lib/libc.so (tgkill+12)
11-29 05:50:39.329   439   439 F DEBUG   :     #01 pc 000400a1  /system/lib/libc.so (pthread_kill+32)
11-29 05:50:39.329   439   439 F DEBUG   :     #02 pc 0001c88f  /system/lib/libc.so (raise+10)
11-29 05:50:39.329   439   439 F DEBUG   :     #03 pc 00019a41  /system/lib/libc.so (__libc_android_abort+34)
11-29 05:50:39.329   439   439 F DEBUG   :     #04 pc 000175fc  /system/lib/libc.so (abort+4)
11-29 05:50:39.329   439   439 F DEBUG   :     #05 pc 0001b4a3  /system/lib/libc.so (__libc_fatal+16)
11-29 05:50:39.329   439   439 F DEBUG   :     #06 pc 00019ac9  /system/lib/libc.so (__assert2+20)
11-29 05:50:39.329   439   439 F DEBUG   :     #07 pc 0061f0bb  /data/app/de.holisticon.nativescript.ngdemo-1/lib/arm/libNativeScript.so
11-29 05:50:39.329   439   439 F DEBUG   :     #08 pc 0061f1c3  /data/app/de.holisticon.nativescript.ngdemo-1/lib/arm/libNativeScript.so
11-29 05:50:39.329   439   439 F DEBUG   :     #09 pc 0061d331  /data/app/de.holisticon.nativescript.ngdemo-1/lib/arm/libNativeScript.so
11-29 05:50:39.329   439   439 F DEBUG   :     #10 pc 0061cc91  /data/app/de.holisticon.nativescript.ngdemo-1/lib/arm/libNativeScript.so
11-29 05:50:39.329   439   439 F DEBUG   :     #11 pc 000740b0  /data/app/de.holisticon.nativescript.ngdemo-1/lib/arm/libNativeScript.so
11-29 05:50:39.329   439   439 F DEBUG   :     #12 pc 00069e9c  /data/app/de.holisticon.nativescript.ngdemo-1/lib/arm/libNativeScript.so
11-29 05:50:39.329   439   439 F DEBUG   :     #13 pc 00098eac  /data/app/de.holisticon.nativescript.ngdemo-1/lib/arm/libNativeScript.so (Java_com_tns_Runtime_initNativeScript+80)
11-29 05:50:39.329   439   439 F DEBUG   :     #14 pc 0174ac87  /data/app/de.holisticon.nativescript.ngdemo-1/oat/arm/base.odex (offset 0xac2000) (void com.tns.Runtime.initNativeScript(int, java.lang.String, java.lang.String, boolean, boolean, java.lang.String, java.lang.Object[], java.lang.String)+226)
11-29 05:50:39.330   439   439 F DEBUG   :     #15 pc 0174a461  /data/app/de.holisticon.nativescript.ngdemo-1/oat/arm/base.odex (offset 0xac2000) (void com.tns.Runtime.init(com.tns.Logger, java.lang.String, java.lang.String, java.io.File, java.io.File, java.lang.ClassLoader, java.io.File, java.lang.String, com.tns.AppConfig, java.lang.String, boolean)+900)
11-29 05:50:39.330   439   439 F DEBUG   :     #16 pc 0174f453  /data/app/de.holisticon.nativescript.ngdemo-1/oat/arm/base.odex (offset 0xac2000) (void com.tns.Runtime.init()+390)
11-29 05:50:39.330   439   439 F DEBUG   :     #17 pc 0174ad4f  /data/app/de.holisticon.nativescript.ngdemo-1/oat/arm/base.odex (offset 0xac2000) (com.tns.Runtime com.tns.Runtime.initRuntime(com.tns.DynamicConfiguration)+122)
11-29 05:50:39.330   439   439 F DEBUG   :     #18 pc 0174b061  /data/app/de.holisticon.nativescript.ngdemo-1/oat/arm/base.odex (offset 0xac2000) (com.tns.Runtime com.tns.Runtime.initializeRuntimeWithConfiguration(com.tns.StaticConfiguration)+372)
11-29 05:50:39.330   439   439 F DEBUG   :     #19 pc 01750ba1  /data/app/de.holisticon.nativescript.ngdemo-1/oat/arm/base.odex (offset 0xac2000) (com.tns.Runtime com.tns.RuntimeHelper.initRuntime(android.app.Application)+3212)
11-29 05:50:39.330   439   439 F DEBUG   :     #20 pc 01731c21  /data/app/de.holisticon.nativescript.ngdemo-1/oat/arm/base.odex (offset 0xac2000) (void com.tns.NativeScriptApplication.onCreate()+204)
11-29 05:50:39.330   439   439 F DEBUG   :     #21 pc 0360f6f3  /system/framework/arm/boot.oat (offset 0x2905000)
11-29 05:50:39.370   466   628 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1689600
11-29 05:50:39.381   466   628 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1824000
11-29 05:50:39.395   466   628 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1689600
11-29 05:50:39.398   466   628 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1824000
11-29 05:50:39.402   466   628 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1689600
11-29 05:50:39.405   466   628 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1824000
11-29 05:50:39.407  1326  1497 V WindowManager: Looking for focus: 15 = Window{78442ec u0 StatusBar}, flags=-2122055608, canReceive=false
11-29 05:50:39.407  1326  1497 V WindowManager: findFocusedWindow: No focusable windows.
11-29 05:50:39.416   466   628 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1689600
11-29 05:50:39.423   466   628 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1824000
11-29 05:50:39.437   466   628 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1689600
11-29 05:50:39.462   466   628 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1824000
11-29 05:50:39.510  1326 24370 W ActivityManager:   Force finishing activity de.holisticon.nativescript.ngdemo/com.tns.NativeScriptActivity
11-29 05:50:39.510   439   439 F DEBUG   :
11-29 05:50:39.510   439   439 F DEBUG   : Tombstone written to: /data/tombstones/tombstone_04
11-29 05:50:39.510   439   439 E DEBUG   : AM write failed: Broken pipe
11-29 05:50:39.510  1326 24370 V WindowManager: Set focused app to: AppWindowToken{bc52d68 token=Token{219088b ActivityRecord{1a29e5a u0 com.lge.launcher2/.Launcher t2714}}} old focus=AppWindowToken{9c39cb0 token=Token{c8426d6 ActivityRecord{e76af1 u0 de.holisticon.nativescript.ngdemo/com.tns.NativeScriptActivity t2747}}} moveFocusNow=true
11-29 05:50:39.510  1326  1487 I BootReceiver: Copying /data/tombstones/tombstone_04 to DropBox (SYSTEM_TOMBSTONE)
11-29 05:50:39.511  1326 24370 V WindowManager: Looking for focus: 15 = Window{78442ec u0 StatusBar}, flags=-2122055608, canReceive=false
11-29 05:50:39.511  1326 24370 V WindowManager: findFocusedWindow: No focusable windows.
11-29 05:50:39.525   480   480 I Zygote  : Process 24341 exited due to signal (6)
11-29 05:50:39.813  1326 24370 I WindowManager: Screenshot max retries 4 of Token{c8426d6 ActivityRecord{e76af1 u0 de.holisticon.nativescript.ngdemo/com.tns.NativeScriptActivity t2747 f}} appWin=Window{8b93aae u0 Starting de.holisticon.nativescript.ngdemo} drawState=4
11-29 05:50:39.813  3353  3388 D SplitWindowPolicy: updateActivityStateChanged: resumed=false, screenId=1, isScreenFull=false
11-29 05:50:39.814  3353  3388 D SplitWindowPolicy: topRunningActivity=ActivityInfo{10e93e3 co....}, taskId=2747, activityType=0, bIsSplit=false
11-29 05:50:39.814  1326 24370 W ActivityManager: Exception thrown during pause
11-29 05:50:39.814  1326 24370 W ActivityManager: android.os.DeadObjectException
11-29 05:50:39.814  1326 24370 W ActivityManager:   at android.os.BinderProxy.transactNative(Native Method)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at android.os.BinderProxy.transact(Binder.java:503)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:727)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:956)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:3122)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2969)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2886)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:12243)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:12133)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at com.android.server.am.ActivityManagerService.makeAppCrashingLocked_aroundBody8(ActivityManagerService.java:12838)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at com.android.server.am.ActivityManagerService$AjcClosure9.run(ActivityManagerService.java:1)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at com.android.server.am.ActivityManagerServiceEx$MethodOverride.ajc$around$com_android_server_am_ActivityManagerServiceEx$MethodOverride$8$7f3ab3e4proceed(ActivityManagerServiceEx.java:727)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at com.android.server.am.ActivityManagerServiceEx$MethodOverride.ajc$around$com_android_server_am_ActivityManagerServiceEx$MethodOverride$8$7f3ab3e4(ActivityManagerServiceEx.java:728)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12838)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:12345)
11-29 05:50:39.814  1326 24370 W ActivityManager:   at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)

APK and IPA files are here: https://jenkins.holisticon.de/job/Public/job/nativescript-ngx-demo/job/feature%252Fbuild/ iOS is working fine.

hypery2k commented 6 years ago

@Pip3r4o Did you have an idea whats wrong?

Plamen5kov commented 6 years ago

@hypery2k, I managed to reproduce the issue with the repo you provided. Thank you! We'll investigate.

hypery2k commented 6 years ago

great, would also help me with the fabric plugin as this is crashing with this error, too. I think it may be related to the fabric plugin

Plamen5kov commented 6 years ago

@hypery2k You were right, after a short investigation I managed to run your project. Problem is the after-prepare.js script of the fabric plugin, which tries to add the gradle configuration it needs, but it doesn't do it as it should. I can give you manual steps to make the repo you sent us work, but ultimately the problem resides in the fabric plugin.

Plamen5kov commented 6 years ago

Currently, I'm looking at why do we crash and burn instead of giving a proper readable exception, when the fabric plugin isn't configured correctly. Thank you for providing the repo, it was very useful to us.

hypery2k commented 6 years ago

Glad to help

hypery2k commented 6 years ago

@Plamen5kov I'm the author of the fabric plugin. Could you at details here to guide me to solution for this? Would be great if you give me hint to resolve it.

Plamen5kov commented 6 years ago

@hypery2k, what you're trying to do is add a classpath to the gradle configuration and then include dependencies you need for your plugin. You can take a look at the nativescript-firebase-plugin which does everything you need and more.

hypery2k commented 6 years ago

but why is the build itself working, but the app is crashing?

Plamen5kov commented 6 years ago

Because the dependency isn't added properly, so it's not included in the build. That doesn't cause compile errors because the types are used in javascript which does not get compile and you're using the dependencies run-time.

hypery2k commented 6 years ago

@Plamen5kov do you have an idea? I changed the build according to your suggestions, but it's still failing: https://travis-ci.org/hypery2k/nativescript-fabric/builds/315409300

Plamen5kov commented 6 years ago

@hypery2k, what am I looking at? I can't seem to find the issue with the link you provided. The only problem I see is in here, but I don't believe it's build related. I'll be glad to lend you a hand, please explain the issue you're facing.

hypery2k commented 6 years ago

sorry, the logcat output is in saucelabs:

--------- beginning of main
12-12 17:18:09.256  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 215400 , only wrote 213503
12-12 17:18:09.257  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 213509 , only wrote 213503
12-12 17:18:09.338  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 217088 , only wrote 216808
12-12 17:18:09.338  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 216814 , only wrote 216808
12-12 17:18:09.425  1702  2128 E Surface : getSlotFromBufferLocked: unknown buffer: 0x7f364432e280
12-12 17:18:09.504  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 224129 , only wrote 223418
12-12 17:18:09.504  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 223425 , only wrote 223418
12-12 17:18:09.630  1243  1629 W audio_hw_generic: Hardware backing HAL too slow, could only write 0 of 661 frames
12-12 17:18:09.630  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 228971 , only wrote 228706
12-12 17:18:09.630  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 228708 , only wrote 228706
12-12 17:18:09.749  2522  2522 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:09.751  2522  2522 D AndroidRuntime: CheckJNI is ON
12-12 17:18:09.764  2522  2522 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:09.780  2522  2522 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:09.780  2522  2522 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:09.781  2522  2522 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:09.789  2522  2522 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
--------- beginning of system
12-12 17:18:09.793  1586  1600 I ActivityManager: Force stopping io.appium.unlock appid=10055 user=-1: uninstall pkg
--------- beginning of events
12-12 17:18:09.803  1586  1599 I am_pss  : [2073,10036,com.android.music,4188160,2457600]
12-12 17:18:09.830  1586  1610 I art     : Starting a blocking GC Explicit
12-12 17:18:09.846  1586  1610 I art     : Explicit concurrent mark sweep GC freed 9822(654KB) AllocSpace objects, 2(40KB) LOS objects, 33% free, 6MB/10MB, paused 229us total 15.389ms
12-12 17:18:09.850  1586  1610 W PackageManager: Couldn't remove dex file for package:  at location /data/app/io.appium.unlock-1/base.apk, retcode=-1
12-12 17:18:09.852  2522  2522 I art     : System.exit called, status: 0
12-12 17:18:09.852  2522  2522 I AndroidRuntime: VM exiting with result code 0.
12-12 17:18:09.861  1586  1610 I am_proc_start: [0,2531,10004,com.android.defcontainer,service,com.android.defcontainer/.DefaultContainerService]
12-12 17:18:09.861  1586  1610 I ActivityManager: Start proc 2531:com.android.defcontainer/u0a4 for service com.android.defcontainer/.DefaultContainerService
12-12 17:18:09.861  1586  1610 I ActivityManager: Force stopping io.appium.unlock appid=10055 user=0: pkg removed
12-12 17:18:09.873  1586  1808 I am_proc_bound: [0,2531,com.android.defcontainer]
12-12 17:18:09.886  1586  1621 I InputReader: Reconfiguring input devices.  changes=0x00000010
12-12 17:18:09.887  1928  2009 I LatinIME:LogUtils: Dictionary info: dictionary = main:en ; version = 54 ; date = 1414726273
12-12 17:18:09.889  1586  1586 I notification_cancel_all: [1000,1586,io.appium.unlock,0,0,0,5,NULL]
12-12 17:18:09.890  1586  1586 D JobSchedulerService: Receieved: android.intent.action.PACKAGE_REMOVED
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader: failed to remove uid from uid_cputime module
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader: java.io.FileNotFoundException: /proc/uid_cputime/remove_uid_range: open failed: ENOENT (No such file or directory)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at libcore.io.IoBridge.open(IoBridge.java:452)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at java.io.FileOutputStream.<init>(FileOutputStream.java:87)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at java.io.FileOutputStream.<init>(FileOutputStream.java:72)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at java.io.FileWriter.<init>(FileWriter.java:80)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at com.android.internal.os.KernelUidCpuTimeReader.removeUid(KernelUidCpuTimeReader.java:157)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at com.android.internal.os.BatteryStatsImpl.removeUidStatsLocked(BatteryStatsImpl.java:8800)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at com.android.server.am.BatteryStatsService.removeUid(BatteryStatsService.java:242)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at com.android.server.am.ActivityManagerService.broadcastIntentLocked(ActivityManagerService.java:16562)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at com.android.server.am.ActivityManagerService.broadcastIntent(ActivityManagerService.java:16938)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at com.android.server.pm.PackageManagerService$8.run(PackageManagerService.java:9423)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at android.os.Handler.handleCallback(Handler.java:739)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at android.os.Handler.dispatchMessage(Handler.java:95)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at android.os.Looper.loop(Looper.java:148)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at android.os.HandlerThread.run(HandlerThread.java:61)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at com.android.server.ServiceThread.run(ServiceThread.java:46)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at libcore.io.Posix.open(Native Method)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    at libcore.io.IoBridge.open(IoBridge.java:438)
12-12 17:18:09.891  1586  1610 E KernelUidCpuTimeReader:    ... 14 more
12-12 17:18:09.893  1937  1937 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_REMOVED
12-12 17:18:09.895  1586  1638 I netstats_mobile_sample: [2011,9,905,10,1835,8,749,9,1835,8,749,9,1513099090383]
12-12 17:18:09.895  1586  1638 I netstats_wifi_sample: [0,0,0,0,0,0,0,0,0,0,0,0,1513099090383]
12-12 17:18:09.897  2305  2305 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1221 android.content.ContextWrapper.startService:581 android.content.ContextWrapper.startService:581 com.android.keychain.KeyChainBroadcastReceiver.onReceive:12 android.app.ActivityThread.handleReceiver:2725 
12-12 17:18:09.897  2013  2547 D VoicemailCleanupService: Cleaning up data for package: io.appium.unlock
12-12 17:18:09.914  1586  1586 I am_proc_start: [0,2549,10027,com.android.documentsui,broadcast,com.android.documentsui/.PackageReceiver]
12-12 17:18:09.914  1586  1586 I ActivityManager: Start proc 2549:com.android.documentsui/u0a27 for broadcast com.android.documentsui/.PackageReceiver
12-12 17:18:09.923  1586  2131 I am_proc_bound: [0,2549,com.android.documentsui]
12-12 17:18:09.964  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 243419 , only wrote 243248
12-12 17:18:09.964  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 243255 , only wrote 243248
12-12 17:18:09.971  2549  2549 W System  : ClassLoader referenced unknown path: /system/app/DocumentsUI/lib/x86_64
12-12 17:18:10.103  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 249375 , only wrote 249197
12-12 17:18:10.103  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 249206 , only wrote 249197
12-12 17:18:10.212  2549  2562 D Documents: Update found 6 roots in 201ms
12-12 17:18:10.362  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 260596 , only wrote 260434
12-12 17:18:10.362  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 260439 , only wrote 260434
12-12 17:18:10.421  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 263035 , only wrote 262417
12-12 17:18:10.450  1243  1629 W audio_hw_generic: Hardware backing HAL too slow, could only write 0 of 661 frames
12-12 17:18:10.964  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 286386 , only wrote 286213
12-12 17:18:10.964  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 286219 , only wrote 286213
12-12 17:18:11.924  1243  1630 W audio_hw_generic: Not supplying enough data to HAL, expected position 369576 , only wrote 328517
12-12 17:18:13.097  1586  1600 I ActivityManager: Waited long enough for: ServiceRecord{baea521 u0 com.android.calendar/.alerts.InitAlarmsService}
12-12 17:18:28.116  2268  2373 D InitAlarmsService: Clearing and rescheduling alarms.
12-12 17:18:28.124  1586  1992 I ActivityManager: Killing 1993:com.android.printspooler/u0a41 (adj 15): empty #17
12-12 17:18:28.124  1586  1992 I am_kill : [0,1993,com.android.printspooler,15,empty #17]
12-12 17:18:28.177  1586  1811 I am_proc_died: [0,1993,com.android.printspooler]
12-12 17:18:28.178  1586  1599 I am_pss  : [2221,10043,com.android.quicksearchbox,3722240,2371584]
12-12 17:18:28.187  1586  1599 I am_pss  : [1738,10007,com.android.externalstorage,3339264,1970176]
12-12 17:18:28.199  1586  1599 I am_pss  : [2245,1000,com.android.settings,4594688,3284992]
12-12 17:18:28.207  1586  1599 I am_pss  : [2134,10024,com.android.deskclock,5638144,3682304]
12-12 17:18:28.216  1586  1599 I am_pss  : [2340,10009,com.android.managedprovisioning,3321856,2031616]
12-12 17:18:28.223  1586  1599 I am_pss  : [2323,10005,com.android.dialer,4412416,2822144]
12-12 17:18:33.143  1586  1599 I am_pss  : [1716,10006,android.process.media,7668736,5332992]
12-12 17:18:33.153  1586  1599 I am_pss  : [2397,10046,com.android.messaging,13718528,11038720]
12-12 17:18:33.161  1586  1599 I am_pss  : [2360,10028,com.android.email,8244224,6250496]
12-12 17:18:33.168  1586  1599 I am_pss  : [2375,10030,com.android.exchange,4585472,3153920]
12-12 17:18:34.229  2570  2570 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:34.230  2570  2570 D AndroidRuntime: CheckJNI is ON
12-12 17:18:34.246  2570  2570 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:34.271  2570  2570 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:34.271  2570  2570 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:34.273  2570  2570 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:34.287  2570  2570 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
12-12 17:18:34.296  2570  2570 I art     : System.exit called, status: 0
12-12 17:18:34.296  2570  2570 I AndroidRuntime: VM exiting with result code 0.
12-12 17:18:34.487  2583  2583 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:34.488  2583  2583 D AndroidRuntime: CheckJNI is ON
12-12 17:18:34.508  2583  2583 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:34.531  2583  2583 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:34.531  2583  2583 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:34.533  2583  2583 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:34.543  2583  2583 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
12-12 17:18:34.558  2531  2542 D DefContainer: Copying /data/local/tmp/settings_apk-debug.apk to base.apk
12-12 17:18:34.575  1246  1246 I SELinux : SELinux: Loaded file_contexts contexts from /file_contexts.
12-12 17:18:34.576  1586  1610 I PackageManager.DexOptimizer: Running dexopt (dex2oat) on: /data/app/vmdl2090577380.tmp/base.apk pkg=io.appium.settings isa=x86_64 vmSafeMode=false debuggable=true oatDir = /data/app/vmdl2090577380.tmp/oat
12-12 17:18:34.599  2592  2592 W dex2oat : Unexpected CPU variant for X86 using defaults: x86_64
12-12 17:18:34.599  2592  2592 I dex2oat : /system/bin/dex2oat --debuggable
12-12 17:18:34.638  2592  2592 I dex2oat : dex2oat took 39.705ms (threads: 2) arena alloc=49KB java alloc=72KB native alloc=1095KB free=1208KB
12-12 17:18:34.667  1586  1610 W PackageManager: Not granting permission android.permission.ACCESS_MOCK_LOCATION to package io.appium.settings (protectionLevel=2 flags=0x3808be46)
12-12 17:18:34.679  1586  1610 V BackupManagerService: restoreAtInstall pkg=io.appium.settings token=1 restoreSet=0
12-12 17:18:34.679  1586  1610 V BackupManagerService: Finishing install immediately
12-12 17:18:34.679  1586  1610 W Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value.
12-12 17:18:34.679  1586  1610 I unknown_sources_enabled: 1
12-12 17:18:34.679  1586  1610 I art     : Starting a blocking GC Explicit
12-12 17:18:34.700  1586  1610 I art     : Explicit concurrent mark sweep GC freed 23140(1733KB) AllocSpace objects, 17(476KB) LOS objects, 33% free, 6MB/10MB, paused 363us total 20.443ms
12-12 17:18:34.703  2583  2583 I art     : System.exit called, status: 0
12-12 17:18:34.703  2583  2583 I AndroidRuntime: VM exiting with result code 0.
12-12 17:18:34.712  1586  1621 I InputReader: Reconfiguring input devices.  changes=0x00000010
12-12 17:18:34.715  1586  1586 I notification_cancel_all: [1000,1586,io.appium.settings,0,0,0,5,NULL]
12-12 17:18:34.731  1937  1937 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_ADDED
12-12 17:18:34.732  1937  1937 D CarrierServiceBindHelper: mHandler: 3
12-12 17:18:34.732  1937  1937 D CarrierConfigLoader: mHandler: 9 phoneId: 0
12-12 17:18:34.734  2549  2596 D Documents: Update found 6 roots in 21ms
12-12 17:18:34.744  1586  2131 I am_proc_start: [0,2600,10040,com.svox.pico,broadcast,com.svox.pico/.VoiceDataInstallerReceiver]
12-12 17:18:34.744  1586  2131 I ActivityManager: Start proc 2600:com.svox.pico/u0a40 for broadcast com.svox.pico/.VoiceDataInstallerReceiver
12-12 17:18:34.774  1586  1992 I am_proc_bound: [0,2600,com.svox.pico]
12-12 17:18:34.828  1586  1599 W VoiceInteractionManagerService: no available voice recognition services found for user 0
12-12 17:18:35.187  2618  2618 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:35.189  2618  2618 D AndroidRuntime: CheckJNI is ON
12-12 17:18:35.211  2618  2618 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:35.235  2618  2618 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:35.235  2618  2618 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:35.237  2618  2618 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:35.247  2618  2618 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
12-12 17:18:35.304  1586  1597 E BluetoothAdapter: Bluetooth binder is null
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader: Failed to read cpu-freq
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader: java.io.FileNotFoundException: /sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state: open failed: ENOENT (No such file or directory)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at libcore.io.IoBridge.open(IoBridge.java:452)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at java.io.FileInputStream.<init>(FileInputStream.java:76)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at java.io.FileInputStream.<init>(FileInputStream.java:103)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at java.io.FileReader.<init>(FileReader.java:66)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at com.android.internal.os.KernelCpuSpeedReader.readDelta(KernelCpuSpeedReader.java:49)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at com.android.internal.os.BatteryStatsImpl.updateCpuTimeLocked(BatteryStatsImpl.java:8002)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at com.android.server.am.BatteryStatsService.updateExternalStats(BatteryStatsService.java:1366)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at com.android.server.am.BatteryStatsService.dump(BatteryStatsService.java:1138)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at android.os.Binder.dump(Binder.java:326)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at android.os.Binder.onTransact(Binder.java:292)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at com.android.internal.app.IBatteryStats$Stub.onTransact(IBatteryStats.java:888)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at android.os.Binder.execTransact(Binder.java:453)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at libcore.io.Posix.open(Native Method)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  at libcore.io.IoBridge.open(IoBridge.java:438)
12-12 17:18:35.304  1586  1597 E KernelCpuSpeedReader:  ... 11 more
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader: Failed to read uid_cputime
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader: java.io.FileNotFoundException: /proc/uid_cputime/show_uid_stat: open failed: ENOENT (No such file or directory)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at libcore.io.IoBridge.open(IoBridge.java:452)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at java.io.FileInputStream.<init>(FileInputStream.java:76)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at java.io.FileInputStream.<init>(FileInputStream.java:103)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at java.io.FileReader.<init>(FileReader.java:66)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at com.android.internal.os.KernelUidCpuTimeReader.readDelta(KernelUidCpuTimeReader.java:71)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at com.android.internal.os.BatteryStatsImpl.updateCpuTimeLocked(BatteryStatsImpl.java:8031)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at com.android.server.am.BatteryStatsService.updateExternalStats(BatteryStatsService.java:1366)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at com.android.server.am.BatteryStatsService.dump(BatteryStatsService.java:1138)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at android.os.Binder.dump(Binder.java:326)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at android.os.Binder.onTransact(Binder.java:292)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at com.android.internal.app.IBatteryStats$Stub.onTransact(IBatteryStats.java:888)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at android.os.Binder.execTransact(Binder.java:453)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader: Caused by: android.system.ErrnoException: open failed: ENOENT (No such file or directory)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at libcore.io.Posix.open(Native Method)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at libcore.io.BlockGuardOs.open(BlockGuardOs.java:186)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    at libcore.io.IoBridge.open(IoBridge.java:438)
12-12 17:18:35.305  1586  1597 E KernelUidCpuTimeReader:    ... 11 more
12-12 17:18:35.310  2618  2618 I art     : System.exit called, status: 0
12-12 17:18:35.310  2618  2618 I AndroidRuntime: VM exiting with result code 0.
12-12 17:18:35.494  2639  2639 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:35.495  2639  2639 D AndroidRuntime: CheckJNI is ON
12-12 17:18:35.508  2639  2639 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:35.528  2639  2639 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:35.528  2639  2639 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:35.530  2639  2639 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:35.540  2639  2639 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
12-12 17:18:35.543  2639  2639 I art     : System.exit called, status: 1
12-12 17:18:35.543  2639  2639 I AndroidRuntime: VM exiting with result code 1.
12-12 17:18:35.704  2648  2648 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:35.706  2648  2648 D AndroidRuntime: CheckJNI is ON
12-12 17:18:35.724  2648  2648 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:35.739  2648  2648 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:35.739  2648  2648 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:35.740  2648  2648 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:35.746  2648  2648 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
12-12 17:18:35.748  2648  2648 I art     : System.exit called, status: 0
12-12 17:18:35.748  2648  2648 I AndroidRuntime: VM exiting with result code 0.
12-12 17:18:35.894  2657  2657 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:35.895  2657  2657 D AndroidRuntime: CheckJNI is ON
12-12 17:18:35.907  2657  2657 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:35.921  2657  2657 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:35.921  2657  2657 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:35.922  2657  2657 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:35.929  2657  2657 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
12-12 17:18:35.931  2657  2657 I art     : System.exit called, status: 1
12-12 17:18:35.931  2657  2657 I AndroidRuntime: VM exiting with result code 1.
12-12 17:18:36.096  2666  2666 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:36.098  2666  2666 D AndroidRuntime: CheckJNI is ON
12-12 17:18:36.110  2666  2666 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:36.130  2666  2666 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:36.131  2666  2666 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:36.132  2666  2666 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:36.144  2666  2666 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
12-12 17:18:36.147  2666  2666 I art     : System.exit called, status: 0
12-12 17:18:36.147  2666  2666 I AndroidRuntime: VM exiting with result code 0.
12-12 17:18:36.304  2675  2675 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:36.305  2675  2675 D AndroidRuntime: CheckJNI is ON
12-12 17:18:36.324  2675  2675 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:36.346  2675  2675 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:36.346  2675  2675 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:36.348  2675  2675 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:36.357  2675  2675 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
12-12 17:18:36.360  2675  2675 I art     : System.exit called, status: 0
12-12 17:18:36.360  2675  2675 I AndroidRuntime: VM exiting with result code 0.
12-12 17:18:36.523  2684  2684 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:36.525  2684  2684 D AndroidRuntime: CheckJNI is ON
12-12 17:18:36.537  2684  2684 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:36.552  2684  2684 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:36.552  2684  2684 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:36.553  2684  2684 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:36.560  2684  2684 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
12-12 17:18:36.562  2684  2684 I art     : System.exit called, status: 1
12-12 17:18:36.562  2684  2684 I AndroidRuntime: VM exiting with result code 1.
12-12 17:18:36.742  2696  2696 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:36.744  2696  2696 D AndroidRuntime: CheckJNI is ON
12-12 17:18:36.756  2696  2696 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:36.775  2696  2696 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:36.775  2696  2696 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:36.777  2696  2696 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:36.787  2696  2696 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
12-12 17:18:36.793  2531  2542 D DefContainer: Copying /data/local/tmp/unlock_apk-debug.apk to base.apk
12-12 17:18:36.802  1586  1610 I PackageManager.DexOptimizer: Running dexopt (dex2oat) on: /data/app/vmdl607134881.tmp/base.apk pkg=io.appium.unlock isa=x86_64 vmSafeMode=false debuggable=true oatDir = /data/app/vmdl607134881.tmp/oat
12-12 17:18:36.819  2704  2704 W dex2oat : Unexpected CPU variant for X86 using defaults: x86_64
12-12 17:18:36.819  2704  2704 I dex2oat : /system/bin/dex2oat --debuggable
12-12 17:18:36.832  2704  2704 I dex2oat : dex2oat took 13.707ms (threads: 2) arena alloc=7KB java alloc=48KB native alloc=968KB free=823KB
12-12 17:18:36.862  1586  1610 V BackupManagerService: restoreAtInstall pkg=io.appium.unlock token=2 restoreSet=0
12-12 17:18:36.862  1586  1610 V BackupManagerService: Finishing install immediately
12-12 17:18:36.863  1586  1610 W Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value.
12-12 17:18:36.863  1586  1610 I unknown_sources_enabled: 1
12-12 17:18:36.863  1586  1610 I art     : Starting a blocking GC Explicit
12-12 17:18:36.879  1586  1610 I art     : Explicit concurrent mark sweep GC freed 19011(1284KB) AllocSpace objects, 8(160KB) LOS objects, 33% free, 6MB/10MB, paused 311us total 16.261ms
12-12 17:18:36.881  2696  2696 I art     : System.exit called, status: 0
12-12 17:18:36.881  2696  2696 I AndroidRuntime: VM exiting with result code 0.
12-12 17:18:36.884  1586  1621 I InputReader: Reconfiguring input devices.  changes=0x00000010
12-12 17:18:36.891  1586  1586 I notification_cancel_all: [1000,1586,io.appium.unlock,0,0,0,5,NULL]
12-12 17:18:36.895  1937  1937 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_ADDED
12-12 17:18:36.895  1937  1937 D CarrierServiceBindHelper: mHandler: 3
12-12 17:18:36.895  1937  1937 D CarrierConfigLoader: mHandler: 9 phoneId: 0
12-12 17:18:36.905  2549  2708 D Documents: Update found 6 roots in 1ms
12-12 17:18:36.996  1586  1599 W VoiceInteractionManagerService: no available voice recognition services found for user 0
12-12 17:18:37.211  2712  2712 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:37.213  2712  2712 D AndroidRuntime: CheckJNI is ON
12-12 17:18:37.235  2712  2712 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:37.255  2712  2712 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:37.255  2712  2712 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:37.256  2712  2712 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:37.264  2712  2712 D AndroidRuntime: Calling main entry com.android.commands.appops.AppOpsCommand
12-12 17:18:37.266  2712  2712 D AndroidRuntime: Shutting down VM
12-12 17:18:37.706  2723  2723 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:37.707  2723  2723 D AndroidRuntime: CheckJNI is ON
12-12 17:18:37.721  2723  2723 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:37.736  2723  2723 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:37.736  2723  2723 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:37.737  2723  2723 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:37.744  2723  2723 D AndroidRuntime: Calling main entry com.android.commands.wm.Wm
12-12 17:18:37.745  2723  2723 D AndroidRuntime: Shutting down VM
12-12 17:18:38.376  2738  2738 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:38.377  2738  2738 D AndroidRuntime: CheckJNI is ON
12-12 17:18:38.390  2738  2738 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:38.404  2738  2738 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:38.404  2738  2738 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:38.405  2738  2738 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:38.412  2738  2738 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
12-12 17:18:38.421  2738  2738 I art     : System.exit called, status: 0
12-12 17:18:38.421  2738  2738 I AndroidRuntime: VM exiting with result code 0.
12-12 17:18:38.760  2754  2754 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:38.762  2754  2754 D AndroidRuntime: CheckJNI is ON
12-12 17:18:38.774  2754  2754 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:38.789  2754  2754 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:38.789  2754  2754 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:38.790  2754  2754 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:38.795  2754  2754 D AndroidRuntime: Calling main entry com.android.commands.am.Am
12-12 17:18:38.796  1586  1992 W ActivityManager: Invalid packageName: org.nativescript.demo
12-12 17:18:38.796  2754  2754 D AndroidRuntime: Shutting down VM
12-12 17:18:39.198  2765  2765 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:39.200  2765  2765 D AndroidRuntime: CheckJNI is ON
12-12 17:18:39.212  2765  2765 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:39.232  2765  2765 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:39.232  2765  2765 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:39.234  2765  2765 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:39.244  2765  2765 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
12-12 17:18:39.246  1586  1597 I PackageManager: Package doesn't exist in get block uninstall org.nativescript.demo
12-12 17:18:39.247  1586  1610 W PackageManager: Package named 'org.nativescript.demo' doesn't exist.
12-12 17:18:39.247  1586  1610 I art     : Starting a blocking GC Explicit
12-12 17:18:39.266  1586  1610 I art     : Explicit concurrent mark sweep GC freed 6599(430KB) AllocSpace objects, 1(20KB) LOS objects, 33% free, 6MB/10MB, paused 319us total 18.623ms
12-12 17:18:39.267  2765  2765 E Pm      : Failure details: Bundle[{android.content.pm.extra.STATUS=1, android.content.pm.extra.PACKAGE_NAME=org.nativescript.demo, android.content.pm.extra.LEGACY_STATUS=-1, android.content.pm.extra.STATUS_MESSAGE=DELETE_FAILED_INTERNAL_ERROR}]
12-12 17:18:39.267  2765  2765 I art     : System.exit called, status: 1
12-12 17:18:39.267  2765  2765 I AndroidRuntime: VM exiting with result code 1.
12-12 17:18:39.487  2774  2774 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:39.488  2774  2774 D AndroidRuntime: CheckJNI is ON
12-12 17:18:39.509  2774  2774 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:39.530  2774  2774 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:39.530  2774  2774 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:39.532  2774  2774 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:39.542  2774  2774 D AndroidRuntime: Calling main entry com.android.commands.pm.Pm
12-12 17:18:39.550  2531  2542 D DefContainer: Copying /data/local/tmp/9ab34a6c2ea9775a07d585eecbac731c.apk to base.apk
12-12 17:18:39.703  1586  1610 W PackageParser: Unknown element under <manifest>: meta-data at /data/app/vmdl184630910.tmp/base.apk Binary XML file line #22
12-12 17:18:40.091  1586  1610 I PackageManager.DexOptimizer: Running dexopt (dex2oat) on: /data/app/vmdl184630910.tmp/base.apk pkg=org.nativescript.demo isa=x86 vmSafeMode=false debuggable=true oatDir = /data/app/vmdl184630910.tmp/oat
12-12 17:18:40.101  2783  2783 W dex2oat : Unexpected CPU variant for X86 using defaults: dalvik.vm.isa.x86.features=default
12-12 17:18:40.101  2783  2783 W dex2oat : Mismatch between dex2oat instruction set features (ISA: X86 Feature string: smp,-ssse3,-sse4.1,-sse4.2,-avx,-avx2) and those of dex2oat executable (ISA: X86 Feature string: smp,ssse3,sse4.1,sse4.2,-avx,-avx2) for the command line:
12-12 17:18:40.101  2783  2783 W dex2oat : /system/bin/dex2oat --zip-fd=6 --zip-location=base.apk --oat-fd=7 --oat-location=/data/app/vmdl184630910.tmp/oat/x86/base.odex --instruction-set=x86 --instruction-set-variant=dalvik.vm.isa.x86.features=default --runtime-arg -Xms64m --runtime-arg -Xmx512m --swap-fd=8 --debuggable
12-12 17:18:40.101  2783  2783 I dex2oat : /system/bin/dex2oat --debuggable
12-12 17:18:40.220  2783  2783 W dex2oat : Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
12-12 17:18:40.254  2783  2783 W dex2oat : Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
12-12 17:18:41.298  2783  2783 I dex2oat : dex2oat took 1.196s (threads: 2) arena alloc=779KB java alloc=4MB native alloc=20MB free=2MB
12-12 17:18:41.398  1586  1610 V BackupManagerService: restoreAtInstall pkg=org.nativescript.demo token=3 restoreSet=0
12-12 17:18:41.398  1586  1610 V BackupManagerService: Finishing install immediately
12-12 17:18:41.398  1586  1610 W Settings: Setting install_non_market_apps has moved from android.provider.Settings.Global to android.provider.Settings.Secure, returning read-only value.
12-12 17:18:41.398  1586  1610 I unknown_sources_enabled: 1
12-12 17:18:41.398  1586  1610 I art     : Starting a blocking GC Explicit
12-12 17:18:41.414  1586  1610 I art     : Explicit concurrent mark sweep GC freed 44438(2MB) AllocSpace objects, 6(236KB) LOS objects, 33% free, 6MB/10MB, paused 257us total 15.380ms
12-12 17:18:41.419  1586  1586 I notification_cancel_all: [1000,1586,org.nativescript.demo,0,0,0,5,NULL]
12-12 17:18:41.421  1586  1621 I InputReader: Reconfiguring input devices.  changes=0x00000010
12-12 17:18:41.421  2774  2774 I art     : System.exit called, status: 0
12-12 17:18:41.421  2774  2774 I AndroidRuntime: VM exiting with result code 0.
12-12 17:18:41.431  2549  2562 D Documents: Update found 6 roots in 4ms
12-12 17:18:41.433  1937  1937 D CarrierServiceBindHelper: Receive action: android.intent.action.PACKAGE_ADDED
12-12 17:18:41.433  1937  1937 D CarrierServiceBindHelper: mHandler: 3
12-12 17:18:41.433  1937  1937 D CarrierConfigLoader: mHandler: 9 phoneId: 0
12-12 17:18:41.469  1586  1599 W VoiceInteractionManagerService: no available voice recognition services found for user 0
12-12 17:18:41.541  1586  1599 I am_pss  : [2013,10002,android.process.acore,10418176,8310784]
12-12 17:18:41.548  1586  1599 I am_pss  : [2549,10027,com.android.documentsui,4558848,3031040]
12-12 17:18:41.553  1586  1599 I am_pss  : [2305,1000,com.android.keychain,3863552,2293760]
12-12 17:18:43.070  2795  2795 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:43.072  2795  2795 D AndroidRuntime: CheckJNI is ON
12-12 17:18:43.086  2795  2795 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:43.093  2795  2795 W System  : ClassLoader referenced unknown path: 
12-12 17:18:43.120  2797  2797 W dex2oat : Unexpected CPU variant for X86 using defaults: x86_64
12-12 17:18:43.121  2797  2797 I dex2oat : /system/bin/dex2oat --dex-file=/data/local/tmp/AppiumBootstrap.jar --oat-file=/data/dalvik-cache/x86_64/data@local@tmp@AppiumBootstrap.jar@classes.dex
12-12 17:18:43.133  2797  2797 W dex2oat : Failed to open dex file '/system/framework/android.test.runner.jar': Entry not found
12-12 17:18:43.133  2797  2797 W dex2oat : Failed to open dex file '/system/framework/uiautomator.jar': Entry not found
12-12 17:18:43.233  2797  2797 I dex2oat : dex2oat took 112.363ms (threads: 2) arena alloc=1168KB java alloc=254KB native alloc=2MB free=2MB
12-12 17:18:43.254  2795  2795 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:43.254  2795  2795 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:43.256  2795  2795 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:43.269  2795  2795 D AndroidRuntime: Calling main entry com.android.commands.uiautomator.Launcher
12-12 17:18:43.370  1228  1313 D hwcomposer: hw_composer sent 692 syncs in 61s
12-12 17:18:43.377  2795  2795 I UiWatchers: Registed GUI Exception watchers
12-12 17:18:43.598  2812  2812 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:18:43.600  2812  2812 D AndroidRuntime: CheckJNI is ON
12-12 17:18:43.614  2812  2812 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:18:43.637  2812  2812 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:18:43.637  2812  2812 E android.os.Debug: failed to load memtrack module: -2
12-12 17:18:43.639  2812  2812 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:18:43.651  2812  2812 D AndroidRuntime: Calling main entry com.android.commands.am.Am
12-12 17:18:43.656  1586  1597 I ActivityManager: Force stopping org.nativescript.demo appid=10059 user=0: from pid 2812
12-12 17:18:43.658  1586  1586 I notification_cancel_all: [1000,1586,org.nativescript.demo,0,0,0,5,NULL]
12-12 17:18:43.908  1586  1808 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=org.nativescript.demo/com.tns.NativeScriptActivity} from uid 0 on display 0
12-12 17:18:43.911  1586  1808 I wm_stack_created: [1,0,0,0,0]
12-12 17:18:43.915  1586  1808 I am_home_stack_moved: [0,0,1,1,startingNewTask]
12-12 17:18:43.915  1586  1808 I am_create_task: [0,10]
12-12 17:18:43.915  1586  1808 I am_create_activity: [0,240106535,10,org.nativescript.demo/com.tns.NativeScriptActivity,android.intent.action.MAIN,NULL,NULL,270532608]
12-12 17:18:43.916  1586  1808 I wm_task_created: [10,1]
12-12 17:18:43.916  1586  1808 I wm_task_moved: [10,1,0]
12-12 17:18:43.916  1586  1808 I am_pause_activity: [0,56913653,com.android.launcher3/.Launcher]
12-12 17:18:43.917  1586  1808 I am_home_stack_moved: [0,0,1,1,startedActivity setFocusedActivity]
12-12 17:18:43.917  1586  1808 I wm_task_moved: [10,1,0]
12-12 17:18:43.918  1586  1808 I am_focused_activity: [0,org.nativescript.demo/com.tns.NativeScriptActivity]
12-12 17:18:43.960  1949  1949 I am_on_paused_called: [0,com.android.launcher3.Launcher]
12-12 17:18:43.972  1586  1597 I am_proc_start: [0,2821,10059,org.nativescript.demo,activity,org.nativescript.demo/com.tns.NativeScriptActivity]
12-12 17:18:43.972  1586  1597 I ActivityManager: Start proc 2821:org.nativescript.demo/u0a59 for activity org.nativescript.demo/com.tns.NativeScriptActivity
12-12 17:18:43.972  2821  2821 I art     : Not late-enabling -Xcheck:jni (already on)
12-12 17:18:44.038  1586  1596 I art     : Background sticky concurrent mark sweep GC freed 7642(467KB) AllocSpace objects, 2(40KB) LOS objects, 0% free, 10MB/10MB, paused 318us total 119.006ms
12-12 17:18:44.117  1586  1597 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:3103 waiters=0 for 145ms
12-12 17:18:44.117  1586  1597 I dvm_lock_sample: [system_server,1,Binder_1,145,WindowManagerService.java,7574,-,3103,29]
12-12 17:18:44.121  1586  1745 I am_proc_bound: [0,2821,org.nativescript.demo]
12-12 17:18:44.123  1586  1745 I am_restart_activity: [0,240106535,10,org.nativescript.demo/com.tns.NativeScriptActivity]
12-12 17:18:44.179  1586  1596 I art     : Background partial concurrent mark sweep GC freed 1427(79KB) AllocSpace objects, 0(0B) LOS objects, 27% free, 10MB/14MB, paused 42.303ms total 119.100ms
12-12 17:18:44.217  2821  2821 I TNS.Native: NativeScript Runtime Version 3.1.1, commit 253c76f850b88b0119fda04e413626872f223de5
12-12 17:18:44.217  2821  2821 D TNS.Native: JNI_ONLoad
12-12 17:18:44.218  2821  2821 D TNS.Native: JNI_ONLoad END
12-12 17:18:44.241  1949  2111 E Surface : getSlotFromBufferLocked: unknown buffer: 0x7f36461578d0
12-12 17:18:44.703  2821  2821 D TNS.Native: Failed to load snapshot: dlopen failed: library "libsnapshot.so" not found
12-12 17:18:44.853  2821  2821 D TNS.Native: V8 version 5.5.372.32
12-12 17:18:44.915  1228  1228 I sf_frame_dur: [com.android.launcher3/com.android.launcher3.Launcher,0,1,4,1,1,1,7]
12-12 17:18:45.086  2795  2809 E QueryController: Got null root node from accessibility - Retrying...
12-12 17:18:45.098  1586  1586 I free_storage_changed: 1704677376
12-12 17:18:45.192  1239  1239 I SELinux : SELinux: Loaded file_contexts contexts from /file_contexts.
12-12 17:18:45.192  1239  1239 I auditd  : SELinux: Loaded file_contexts contexts from /file_contexts.
12-12 17:18:45.254  1239  1239 E DEBUG   : AM write failed: Broken pipe
12-12 17:18:45.254  1586  1603 I BootReceiver: Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
12-12 17:18:45.262  1586  2842 I am_crash: [1586,0,org.nativescript.demo,950582854,Native crash,Aborted,unknown,0]
12-12 17:18:45.263  1586  2842 W ActivityManager:   Force finishing activity org.nativescript.demo/com.tns.NativeScriptActivity
12-12 17:18:45.263  1586  2842 I am_finish_activity: [0,240106535,10,org.nativescript.demo/com.tns.NativeScriptActivity,force-crash]
12-12 17:18:45.292  1278  1278 I Zygote  : Process 2821 exited due to signal (6)
12-12 17:18:45.338  2795  2809 E QueryController: Got null root node from accessibility - Retrying...
12-12 17:18:45.566  1586  2842 I WindowManager: Screenshot max retries 4 of Token{712ed4 ActivityRecord{e4fbc27 u0 org.nativescript.demo/com.tns.NativeScriptActivity t10 f}} appWin=Window{dfc183b u0 Starting org.nativescript.demo} drawState=4
12-12 17:18:45.566  1586  2842 I am_pause_activity: [0,240106535,org.nativescript.demo/com.tns.NativeScriptActivity]
12-12 17:18:45.567  1586  2842 W ActivityManager: Exception thrown during pause
12-12 17:18:45.567  1586  2842 W ActivityManager: android.os.DeadObjectException
12-12 17:18:45.567  1586  2842 W ActivityManager:   at android.os.BinderProxy.transactNative(Native Method)
12-12 17:18:45.567  1586  2842 W ActivityManager:   at android.os.BinderProxy.transact(Binder.java:503)
12-12 17:18:45.567  1586  2842 W ActivityManager:   at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:727)
12-12 17:18:45.567  1586  2842 W ActivityManager:   at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:867)
12-12 17:18:45.567  1586  2842 W ActivityManager:   at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2907)
12-12 17:18:45.567  1586  2842 W ActivityManager:   at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2763)
12-12 17:18:45.567  1586  2842 W ActivityManager:   at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2755)
12-12 17:18:45.567  1586  2842 W ActivityManager:   at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11971)
12-12 17:18:45.567  1586  2842 W ActivityManager:   at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11867)
12-12 17:18:45.567  1586  2842 W ActivityManager:   at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12556)
12-12 17:18:45.567  1586  2842 W ActivityManager:   at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:12063)
12-12 17:18:45.567  1586  2842 W ActivityManager:   at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
12-12 17:18:45.568  1586  2842 I am_home_stack_moved: [0,1,0,0,noMoreActivities setFocusedActivity]
12-12 17:18:45.568  1586  2842 I wm_task_moved: [9,1,0]
12-12 17:18:45.570  1586  2842 I am_focused_activity: [0,com.android.launcher3/.Launcher]
12-12 17:18:45.570  1586  1586 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 305ms
12-12 17:18:45.570  1586  1586 I dvm_lock_sample: [system_server,1,main,305,ActivityManagerService.java,16931,-,12502,61]
12-12 17:18:45.572  1586  1597 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 279ms
12-12 17:18:45.572  1586  1597 I dvm_lock_sample: [system_server,0,Binder_1,279,ActivityManagerService.java,1305,-,12502,55]
12-12 17:18:45.591  2795  2809 E QueryController: Got null root node from accessibility - Retrying...
12-12 17:18:45.596  1586  1597 I ActivityManager: Process org.nativescript.demo (pid 2821) has died
12-12 17:18:45.596  1586  1597 I am_proc_died: [0,2821,org.nativescript.demo]
12-12 17:18:45.597  1586  1597 I wm_task_removed: [10,removeTask]
12-12 17:18:45.658  1586  1597 I am_home_stack_moved: [0,1,0,0,appDied leftTaskHistoryEmpty]
12-12 17:18:45.659  1586  1597 I wm_stack_removed: 1
12-12 17:18:45.716  1586  1597 I am_resume_activity: [0,56913653,9,com.android.launcher3/.Launcher]
12-12 17:18:45.771  1949  1949 I am_on_resume_called: [0,com.android.launcher3.Launcher]
12-12 17:18:45.871  1586  1637 I OpenGLRenderer: Initialized EGL, version 1.4
12-12 17:18:46.680  1949  2111 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
12-12 17:18:46.680  1949  2111 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
12-12 17:18:46.989  1586  1601 I Choreographer: Skipped 41 frames!  The application may be doing too much work on its main thread.
12-12 17:18:47.593  2795  2809 I QueryController: Matched selector: UiSelector[CONTAINS_TEXT=has stopped, PACKAGE NAME=android] <<==>> [android.view.accessibility.AccessibilityNodeInfo@80008715; boundsInParent: Rect(0, 0 - 665, 43); boundsInScreen: Rect(51, 548 - 716, 591); packageName: android; className: android.widget.TextView; text: Unfortunately, demo has stopped.; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: android:id/message; checkable: false; checked: false; focusable: false; focused: false; selected: false; clickable: false; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_NEXT_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_SET_SELECTION - null, AccessibilityAction: ACTION_UNKNOWN - null]]
12-12 17:18:47.598  2795  2809 I QueryController: Matched selector: UiSelector[CONTAINS_TEXT=has stopped, PACKAGE NAME=android] <<==>> [android.view.accessibility.AccessibilityNodeInfo@80008715; boundsInParent: Rect(0, 0 - 665, 43); boundsInScreen: Rect(51, 548 - 716, 591); packageName: android; className: android.widget.TextView; text: Unfortunately, demo has stopped.; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: android:id/message; checkable: false; checked: false; focusable: false; focused: false; selected: false; clickable: false; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_NEXT_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_SET_SELECTION - null, AccessibilityAction: ACTION_UNKNOWN - null]]
12-12 17:18:47.598  2795  2809 D UiObject: getText() = Unfortunately, demo has stopped.
12-12 17:18:47.612  2795  2809 E UiWatchers: UI Exception Message: android             
12-12 17:18:47.674  2795  2809 I QueryController: Matched selector: UiSelector[TEXT=OK, ENABLED=true] <<==>> [android.view.accessibility.AccessibilityNodeInfo@80008354; boundsInParent: Rect(0, 0 - 128, 96); boundsInScreen: Rect(564, 616 - 692, 712); packageName: android; className: android.widget.Button; text: OK; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: android:id/button1; checkable: false; checked: false; focusable: true; focused: false; selected: false; clickable: true; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_FOCUS - null, AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_CLICK - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_NEXT_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_SET_SELECTION - null, AccessibilityAction: ACTION_UNKNOWN - null]]
12-12 17:18:47.676  2795  2809 I QueryController: Matched selector: UiSelector[TEXT=OK, ENABLED=true] <<==>> [android.view.accessibility.AccessibilityNodeInfo@80008354; boundsInParent: Rect(0, 0 - 128, 96); boundsInScreen: Rect(564, 616 - 692, 712); packageName: android; className: android.widget.Button; text: OK; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: android:id/button1; checkable: false; checked: false; focusable: true; focused: false; selected: false; clickable: true; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_FOCUS - null, AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_CLICK - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_NEXT_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_SET_SELECTION - null, AccessibilityAction: ACTION_UNKNOWN - null]]
12-12 17:18:47.678  2795  2809 D InteractionController: clickAndSync(628, 664)
12-12 17:18:47.903  1586  1637 E Surface : getSlotFromBufferLocked: unknown buffer: 0x7f36432def90
12-12 17:18:47.907  1586  1598 W InputMethodManagerService: Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@9aa4564 attribute=null, token = android.os.BinderProxy@56b6938
12-12 17:18:48.076  1243  1630 D AudioFlinger: mixer(0xf4340000) throttle end: throttle time(11)
12-12 17:18:48.279  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 342537 , only wrote 342398
12-12 17:18:48.279  1243  1629 W audio_hw_generic: Not supplying enough data to HAL, expected position 342409 , only wrote 342398
12-12 17:18:48.282  1586  1605 W AppOps  : Finishing op nesting under-run: uid 1000 pkg android code 24 time=0 duration=0 nesting=0
12-12 17:18:48.360  1228  1228 I sf_frame_dur: [Application Error: org.nativescript.demo,0,1,7,2,0,0,0]
12-12 17:18:49.720  1586  1597 I ActivityManager: Killing 2323:com.android.dialer/u0a5 (adj 15): empty #17
12-12 17:18:49.720  1586  1597 I am_kill : [0,2323,com.android.dialer,15,empty #17]
12-12 17:18:49.777  1586  1745 I am_proc_died: [0,2323,com.android.dialer]
12-12 17:18:49.932  1586  1598 I MediaFocusControl:  AudioFocus  abandonAudioFocus() from android.media.AudioManager@8b6c1b4com.android.music.MediaPlaybackService$3@a0d81dd
12-12 17:18:49.933  1586  1597 I ActivityManager: Killing 2073:com.android.music/u0a36 (adj 15): empty #17
12-12 17:18:49.933  1586  1597 I am_kill : [0,2073,com.android.music,15,empty #17]
12-12 17:18:49.985  1586  1745 I am_proc_died: [0,2073,com.android.music]
12-12 17:18:50.896  2795  2809 W InteractionController: runAndwaitForEvent timedout waiting for events
12-12 17:18:51.097  1243  1630 W audio_hw_generic: Not supplying enough data to HAL, expected position 589644 , only wrote 466666
12-12 17:19:00.019  1586  1599 I am_pss  : [2268,10020,com.android.calendar,5302272,3723264]
12-12 17:19:24.368  2902  2902 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:19:24.372  2902  2902 D AndroidRuntime: CheckJNI is ON
12-12 17:19:24.395  2902  2902 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:19:24.419  2902  2902 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:19:24.419  2902  2902 E android.os.Debug: failed to load memtrack module: -2
12-12 17:19:24.421  2902  2902 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:19:24.431  2902  2902 D AndroidRuntime: Calling main entry com.android.commands.am.Am
12-12 17:19:24.432  1586  1811 I ActivityManager: Force stopping org.nativescript.demo appid=10059 user=0: from pid 2902
12-12 17:19:24.434  2902  2902 D AndroidRuntime: Shutting down VM
12-12 17:19:24.434  1586  1586 I notification_cancel_all: [1000,1586,org.nativescript.demo,0,0,0,5,NULL]
12-12 17:19:24.447  1586  1599 I am_pss  : [2531,10004,com.android.defcontainer,3776512,2289664]
12-12 17:19:24.456  1586  1599 I am_pss  : [2600,10040,com.svox.pico,2987008,1716224]
12-12 17:19:24.465  1586  1599 I am_pss  : [2286,10001,com.android.providers.calendar,5145600,3497984]
12-12 17:19:24.863  2911  2911 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:19:24.865  2911  2911 D AndroidRuntime: CheckJNI is ON
12-12 17:19:24.900  2911  2911 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:19:24.929  2911  2911 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:19:24.929  2911  2911 E android.os.Debug: failed to load memtrack module: -2
12-12 17:19:24.931  2911  2911 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:19:24.942  2911  2911 D AndroidRuntime: Calling main entry com.android.commands.input.Input
12-12 17:19:24.943  2911  2911 I Input   : injectKeyEvent: KeyEvent { action=ACTION_DOWN, keyCode=KEYCODE_HOME, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=103931, downTime=103931, deviceId=-1, source=0x101 }
12-12 17:19:24.946  2911  2911 I Input   : injectKeyEvent: KeyEvent { action=ACTION_UP, keyCode=KEYCODE_HOME, scanCode=0, metaState=0, flags=0x0, repeatCount=0, eventTime=103931, downTime=103931, deviceId=-1, source=0x101 }
12-12 17:19:24.951  1586  1620 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.android.launcher3/.Launcher (has extras)} from uid 1000 on display 0
12-12 17:19:24.953  1586  1620 I wm_task_moved: [9,1,0]
12-12 17:19:24.955  1586  1620 I am_new_intent: [0,234632141,9,com.android.launcher3/.Launcher,android.intent.action.MAIN,NULL,NULL,270532608]
12-12 17:19:24.956  2911  2911 D AndroidRuntime: Shutting down VM
12-12 17:19:25.385  1586  2131 W WindowManager: Attempted to remove non-existing token: android.os.Binder@b3f320d
12-12 17:19:25.902  2924  2924 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:19:25.903  2924  2924 D AndroidRuntime: CheckJNI is ON
12-12 17:19:25.970  2924  2924 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:19:26.062  2924  2924 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:19:26.063  2924  2924 E android.os.Debug: failed to load memtrack module: -2
12-12 17:19:26.064  2924  2924 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:19:26.139  2924  2924 D AndroidRuntime: Calling main entry com.android.commands.am.Am
12-12 17:19:26.141  1586  1598 I ActivityManager: Force stopping io.appium.unlock appid=10058 user=0: from pid 2924
12-12 17:19:26.142  2924  2924 D AndroidRuntime: Shutting down VM
12-12 17:19:26.143  1586  1586 I notification_cancel_all: [1000,1586,io.appium.unlock,0,0,0,5,NULL]
12-12 17:19:26.480  1228  1309 E SurfaceFlinger: ro.sf.lcd_density must be defined as a build property
12-12 17:19:26.754  2938  2938 D AndroidRuntime: >>>>>> START com.android.internal.os.RuntimeInit uid 0 <<<<<<
12-12 17:19:26.756  2938  2938 D AndroidRuntime: CheckJNI is ON
12-12 17:19:26.772  2938  2938 D ICU     : No timezone override file found: /data/misc/zoneinfo/current/icu/icu_tzdata.dat
12-12 17:19:26.788  2938  2938 E memtrack: Couldn't load memtrack module (No such file or directory)
12-12 17:19:26.788  2938  2938 E android.os.Debug: failed to load memtrack module: -2
12-12 17:19:26.789  2938  2938 I Radio-JNI: register_android_hardware_Radio DONE
12-12 17:19:26.796  2938  2938 D AndroidRuntime: Calling main entry com.android.commands.am.Am
12-12 17:19:26.802  1716  1716 D MediaScannerReceiver: action: android.intent.action.MEDIA_SCANNER_SCAN_FILE path: /data/local/tmp/screen.png
12-12 17:19:26.802  2938  2938 D AndroidRuntime: Shutting down VM
hypery2k commented 6 years ago

I've found the error. I have to alter the existing buildscript entry in build.gradle. It's no enough to just add another. I think I can publish a fixed version of my plugin tomorrow.

Thanks for your support.

BTW: Is it possible to make add more debug logging to find such errors?

hypery2k commented 6 years ago

Strange, now getting a new error:

12-15 12:52:27.920  2827  2827 I TNS.Native: NativeScript Runtime Version 3.3.1, commit 368c29d75ca1cb632aa1efd8f822bacdd3c4da41
12-15 12:52:27.920  2827  2827 D TNS.Native: JNI_ONLoad
12-15 12:52:27.920  2827  2827 D TNS.Native: JNI_ONLoad END
12-15 12:52:27.945  1961  2128 E Surface : getSlotFromBufferLocked: unknown buffer: 0x7f8bb267a4a0
12-15 12:52:28.059  1584  1584 I free_storage_changed: 1709887488
12-15 12:52:28.404  1584  1959 I dvm_lock_sample: [system_server,1,Binder_6,51,WindowManagerService.java,11874,WindowAnimator.java,121,10]
12-15 12:52:28.525  1232  1232 I sf_frame_dur: [com.android.launcher3/com.android.launcher3.Launcher,0,1,6,2,1,2,7]
12-15 12:52:28.526  2801  2815 E QueryController: Got null root node from accessibility - Retrying...
12-15 12:52:28.778  2801  2815 E QueryController: Got null root node from accessibility - Retrying...
12-15 12:52:28.872  2827  2827 D TNS.Native: Failed to load snapshot: dlopen failed: library "libsnapshot.so" not found
12-15 12:52:28.916  2827  2827 D TNS.Native: V8 version 5.5.372.32
12-15 12:52:29.029  2801  2815 E QueryController: Got null root node from accessibility - Retrying...
12-15 12:52:29.052  1247  1247 I SELinux : SELinux: Loaded file_contexts contexts from /file_contexts.
12-15 12:52:29.052  1247  1247 I auditd  : SELinux: Loaded file_contexts contexts from /file_contexts.
12-15 12:52:29.099  1247  1247 E DEBUG   : AM write failed: Broken pipe
12-15 12:52:29.100  1584  2848 I am_crash: [1584,0,org.nativescript.demo,950582854,Native crash,Aborted,unknown,0]
12-15 12:52:29.100  1584  1601 I BootReceiver: Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)
12-15 12:52:29.101  1584  2848 W ActivityManager:   Force finishing activity org.nativescript.demo/com.tns.NativeScriptActivity
12-15 12:52:29.101  1584  2848 I am_finish_activity: [0,110625689,10,org.nativescript.demo/com.tns.NativeScriptActivity,force-crash]
12-15 12:52:29.153  1263  1263 I Zygote  : Process 2827 exited due to signal (6)
12-15 12:52:29.279  2801  2815 E QueryController: Cannot proceed when root node is null. Aborted search
12-15 12:52:29.280  2801  2815 E QueryController: Got null root node from accessibility - Retrying...
12-15 12:52:29.402  1584  2848 I WindowManager: Screenshot max retries 4 of Token{128565e ActivityRecord{6980399 u0 org.nativescript.demo/com.tns.NativeScriptActivity t10 f}} appWin=Window{36f33a4 u0 Starting org.nativescript.demo} drawState=4
12-15 12:52:29.402  1584  2848 I am_pause_activity: [0,110625689,org.nativescript.demo/com.tns.NativeScriptActivity]
12-15 12:52:29.403  1584  2848 W ActivityManager: Exception thrown during pause
12-15 12:52:29.403  1584  2848 W ActivityManager: android.os.DeadObjectException
12-15 12:52:29.403  1584  2848 W ActivityManager:   at android.os.BinderProxy.transactNative(Native Method)
12-15 12:52:29.403  1584  2848 W ActivityManager:   at android.os.BinderProxy.transact(Binder.java:503)
12-15 12:52:29.403  1584  2848 W ActivityManager:   at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:727)
12-15 12:52:29.403  1584  2848 W ActivityManager:   at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:867)
12-15 12:52:29.403  1584  2848 W ActivityManager:   at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2907)
12-15 12:52:29.403  1584  2848 W ActivityManager:   at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2763)
12-15 12:52:29.403  1584  2848 W ActivityManager:   at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2755)
12-15 12:52:29.403  1584  2848 W ActivityManager:   at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:11971)
12-15 12:52:29.403  1584  2848 W ActivityManager:   at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11867)
12-15 12:52:29.403  1584  2848 W ActivityManager:   at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12556)
12-15 12:52:29.403  1584  2848 W ActivityManager:   at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:12063)
12-15 12:52:29.403  1584  2848 W ActivityManager:   at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)
12-15 12:52:29.404  1584  2848 I am_home_stack_moved: [0,1,0,0,noMoreActivities setFocusedActivity]
12-15 12:52:29.404  1584  2848 I wm_task_moved: [9,1,0]

you try yourself with my demo app here and adding npm i nativescript-fabric@1.0.6-bugfix-android-23 --E --S

Update: If I do an additional tns build android it's working. Any ideas why?

hypery2k commented 6 years ago

@Plamen5kov Any suggestion on how to fix this?

Plamen5kov commented 6 years ago

@hypery2k I'll investigate and get back to you.

hypery2k commented 6 years ago

@Plamen5kov thanks. Glad to hear from you

Plamen5kov commented 6 years ago

@hypery2k I get the error:

Executing after-prepare hook from /home/plamen5kov/work/repos/nativescript-cli/scratch/nativescript-fabric/demo/hooks/after-prepare/nativescript-fabric.js
Unable to apply changes on device: emulator-5554. Error is: Cannot find module 'nativescript-fabric/lib/after-prepare.js'.

which is caused by a missing file nativescript-fabric/lib/after-prepare.js.

The steps that I try to reproduce the issue are:

Please tell me if I'm doing something wrong, so I can investigate further.

hypery2k commented 6 years ago

you could give this a try:

git clone https://github.com/hypery2k/nativescript-fabric.git
cd nativescript-fabric && git checkout bugfix/android
cd src && npm i && cd ..
cd demo && npm run ci.android.build
tns run android
Plamen5kov commented 6 years ago

@hypery2k When I follow your steps the application builds and I don't find any build or runtime errors, is there a way to check if the plugin is working or not?

hypery2k commented 6 years ago

ah forgotten, did you switch to branch bugfix/android?

Plamen5kov commented 6 years ago

@hypery2k will give it a try today.

Edit: After trying the updated steps the plugin asks for: prompt: Your Fabric API Key: and prompt: Your Fabric API Secret: and I don't have any. After filling in random numbers the build crashes with:

Successfully created Android (include.gradle) file.
Install Fabric-build-gradle hook.
Failed to install Fabric-build-gradle hook.
{ Error: ENOENT: no such file or directory, mkdir '../../hooks/after-prepare'
hypery2k commented 6 years ago

@Plamen5kov: Could you please update your cloned repo and retry?