android
android copied to clipboard
App crashes
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/
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}
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
Most of the failures are after 8th Feb 2016.
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
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.
+1
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.
If I use enableProdMode() in Angular I'm getting this error, also
@hypery2k can you provide more details what emulator or device you use? Also, any logs from logcat
might be helpful.
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@[email protected]@[email protected]
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
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.
@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.
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",
@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?
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
> [email protected] 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
> [email protected] 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"
> [email protected] 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
```"
> [email protected] 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
@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 the
nativescript-optimized` entry and rename the one that is left (regular) to (nativescript-optimized), then run, and post the new exception. Thanks.
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
@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.
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.
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)
strange, it's working if I run the build twice. So these are the steps I'm doing seems to succeed:
-
rm -rf node_modules hooks platforms target
-
tns install
-
npm run ns-bundle --android --build-app --clean
-
npm run ns-bundle --android --build-app -- --release
If I omit step 3 I get the above error
@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!
I will try to setup a sample project to reproduce this issue
@hypery2k did you manage to create a simple project to reproduce the issue?
Closing due to lack of response, but we'll open it again if the need arises.
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.
@Pip3r4o Did you have an idea whats wrong?
@hypery2k, I managed to reproduce the issue with the repo you provided. Thank you! We'll investigate.
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
@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.