Skip to content

App crashes #358

Description

Activity

  1. added this to the milestone on Feb 17, 2016
  2. dtopuzov commented on Feb 22, 2016

    @dtopuzov
    Contributor

    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}
    
  3. dtopuzov commented on Feb 22, 2016

    @dtopuzov
    Contributor

    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
    
  4. dtopuzov commented on Feb 22, 2016

    @dtopuzov
    Contributor

    Most of the failures are after 8th Feb 2016.

  5. NathanaelA commented on Feb 22, 2016

    @NathanaelA
  6. slavchev commented on Feb 23, 2016

    @slavchev
    Author

    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.

  7. removed this from the 1.7.0 milestone on Mar 16, 2016
  8. gabrielbiga commented on Apr 28, 2016

    @gabrielbiga

    +1

  9. dtopuzov commented on May 17, 2016

    @dtopuzov
    Contributor

    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.

  10. hypery2k commented on Nov 28, 2016

    @hypery2k

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

  11. slavchev commented on Dec 22, 2016

    @slavchev
    Author

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

  12. hypery2k commented on Mar 21, 2017

    @hypery2k

    Getting this via logcat

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

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

  13. NathanaelA commented on Mar 21, 2017

    @NathanaelA
  14. 33 remaining items

  15. Plamen5kov commented on Dec 28, 2017

    @Plamen5kov
    Contributor

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

  16. hypery2k commented on Jan 2, 2018

    @hypery2k

    @Plamen5kov thanks. Glad to hear from you

  17. Plamen5kov commented on Jan 4, 2018

    @Plamen5kov
    Contributor

    @hypery2k I get the error:

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

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

    The steps that I try to reproduce the issue are:

    • git clone https://github.com/hypery2k/nativescript-fabric.git
    • cd nativescript-fabric/demo
    • npm i nativescript-fabric@1.0.6-bugfix-android-23 --E --S as per your instruction
    • tns run android

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

  18. hypery2k commented on Jan 4, 2018

    @hypery2k

    you could give this a try:

    git clone https://github.com/hypery2k/nativescript-fabric.git
    cd nativescript-fabric && git checkout bugfix/android
    cd src && npm i && cd ..
    cd demo && npm run ci.android.build
    tns run android
    
  19. Plamen5kov commented on Jan 4, 2018

    @Plamen5kov
    Contributor

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

  20. hypery2k commented on Jan 4, 2018

    @hypery2k

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

  21. Plamen5kov commented on Jan 5, 2018

    @Plamen5kov
    Contributor

    @hypery2k will give it a try today.

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

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

    @hypery2k

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

  23. Plamen5kov commented on Jan 9, 2018

    @Plamen5kov
    Contributor

    @hypery2k I managed to reproduce the issue and after some manual changes I managed to run the application:
    Here are my suggestions:

    • After npm run ci.android.buildhas ran the resulting <app_name>/platforms/android/build.gradle should look like:
    buildscript {
        repositories {
            google()
            jcenter()
            maven { url "https://maven.fabric.io/public" } //add this line to buld script on before prepare hook
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.3.3'
            classpath "io.fabric.tools:gradle:1.+" //add this line to build script on before prepare hook
        }
    }
    ...
    
    • Add this line apply plugin: "io.fabric" to the bottom of <app_name>/platforms/android/app/build.gradle.

    Currently, you're trying to add a subproject that does these changes, but although that might work for applying the io.fabric plugin it won't work for the build script { ... } because it's executet too early when a gradle build is ran.

    As I suggested earlyer, you can take a look at the nativescript-plugin-firebase plugin to see exactly how to do this automatically. I wouldn't recommend to change the settings.gradle file adding a new subproject to it. Another solution would be for you to have instructions for your users to do those steps manually.

    Hope this helps!

  24. hypery2k commented on Jan 9, 2018

    @hypery2k

    thanks for the feedback. I thought I already applied all of the firebase plugin. I will take a look

  25. hypery2k commented on Jan 10, 2018

    @hypery2k

    @Plamen5kov I still having issues:

    01-10 17:21:35.935   426   426 F DEBUG   : Build fingerprint: 'lge/p1_global_com/p1:6.0/MRA58K/1620215065b6f:user/release-keys'
    01-10 17:21:35.936   426   426 F DEBUG   : Revision: '11'
    01-10 17:21:35.936   426   426 F DEBUG   : ABI: 'arm'
    01-10 17:21:35.936   426   426 F DEBUG   : pid: 20037, tid: 20037, name: tivescript.demo  >>> org.nativescript.demo <<<
    01-10 17:21:35.936   426   426 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
    01-10 17:21:35.948   447   683 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1689600
    01-10 17:21:35.951   426   426 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'
    01-10 17:21:35.951   426   426 F DEBUG   :     r0 00000000  r1 00004e45  r2 00000006  r3 f777eb7c
    01-10 17:21:35.951   426   426 F DEBUG   :     r4 f777eb84  r5 f777eb34  r6 00000002  r7 0000010c
    01-10 17:21:35.951   426   426 F DEBUG   :     r8 da1051e4  r9 ffb0d038  sl 12f27080  fp ffb0d0e0
    01-10 17:21:35.951   426   426 F DEBUG   :     ip 00000006  sp ffb0cb28  lr f74e80a5  pc f74e9bcc  cpsr 40070010
    01-10 17:21:35.955   447   683 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1824000
    01-10 17:21:35.955   447   683 E ThermalEngine: ACTION: CLUSTER - Setting CLUSTER[1] to 1689600
    01-10 17:21:35.960   426   426 F DEBUG   :
    01-10 17:21:35.960   426   426 F DEBUG   : backtrace:
    01-10 17:21:35.960   426   426 F DEBUG   :     #00 pc 00041bcc  /system/lib/libc.so (tgkill+12)
    01-10 17:21:35.960   426   426 F DEBUG   :     #01 pc 000400a1  /system/lib/libc.so (pthread_kill+32)
    01-10 17:21:35.960   426   426 F DEBUG   :     #02 pc 0001c88f  /system/lib/libc.so (raise+10)
    01-10 17:21:35.960   426   426 F DEBUG   :     #03 pc 00019a41  /system/lib/libc.so (__libc_android_abort+34)
    01-10 17:21:35.961   426   426 F DEBUG   :     #04 pc 000175fc  /system/lib/libc.so (abort+4)
    01-10 17:21:35.961   426   426 F DEBUG   :     #05 pc 0001b4a3  /system/lib/libc.so (__libc_fatal+16)
    01-10 17:21:35.961   426   426 F DEBUG   :     #06 pc 00019ac9  /system/lib/libc.so (__assert2+20)
    01-10 17:21:35.961   426   426 F DEBUG   :     #07 pc 0061f0bb  /data/app/org.nativescript.demo-1/lib/arm/libNativeScript.so
    01-10 17:21:35.961   426   426 F DEBUG   :     #08 pc 0061f1c3  /data/app/org.nativescript.demo-1/lib/arm/libNativeScript.so
    01-10 17:21:35.961   426   426 F DEBUG   :     #09 pc 0061d331  /data/app/org.nativescript.demo-1/lib/arm/libNativeScript.so
    01-10 17:21:35.961   426   426 F DEBUG   :     #10 pc 0061cc91  /data/app/org.nativescript.demo-1/lib/arm/libNativeScript.so
    01-10 17:21:35.961   426   426 F DEBUG   :     #11 pc 000740b0  /data/app/org.nativescript.demo-1/lib/arm/libNativeScript.so
    01-10 17:21:35.961   426   426 F DEBUG   :     #12 pc 00069e9c  /data/app/org.nativescript.demo-1/lib/arm/libNativeScript.so
    01-10 17:21:35.961   426   426 F DEBUG   :     #13 pc 00098eac  /data/app/org.nativescript.demo-1/lib/arm/libNativeScript.so (Java_com_tns_Runtime_initNativeScript+80)
    01-10 17:21:35.961   426   426 F DEBUG   :     #14 pc 007a50b7  /data/app/org.nativescript.demo-1/oat/arm/base.odex (offset 0x513000) (void com.tns.Runtime.initNativeScript(int, java.lang.String, java.lang.String, boolean, boolean, java.lang.String, java.lang.Object[], java.lang.String)+226)
    01-10 17:21:35.961   426   426 F DEBUG   :     #15 pc 007a48a1  /data/app/org.nativescript.demo-1/oat/arm/base.odex (offset 0x513000) (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)+892)
    01-10 17:21:35.961   426   426 F DEBUG   :     #16 pc 007a9803  /data/app/org.nativescript.demo-1/oat/arm/base.odex (offset 0x513000) (void com.tns.Runtime.init()+390)
    01-10 17:21:35.961   426   426 F DEBUG   :     #17 pc 007a517f  /data/app/org.nativescript.demo-1/oat/arm/base.odex (offset 0x513000) (com.tns.Runtime com.tns.Runtime.initRuntime(com.tns.DynamicConfiguration)+122)
    01-10 17:21:35.961   426   426 F DEBUG   :     #18 pc 007a5491  /data/app/org.nativescript.demo-1/oat/arm/base.odex (offset 0x513000) (com.tns.Runtime com.tns.Runtime.initializeRuntimeWithConfiguration(com.tns.StaticConfiguration)+372)
    01-10 17:21:35.961   426   426 F DEBUG   :     #19 pc 007aaf39  /data/app/org.nativescript.demo-1/oat/arm/base.odex (offset 0x513000) (com.tns.Runtime com.tns.RuntimeHelper.initRuntime(android.app.Application)+3204)
    01-10 17:21:35.961   426   426 F DEBUG   :     #20 pc 0078f045  /data/app/org.nativescript.demo-1/oat/arm/base.odex (offset 0x513000) (void com.tns.NativeScriptApplication.onCreate()+200)
    
    

    I pushed my changes again to the branch. If you could have a look at it

  26. Plamen5kov commented on Jan 12, 2018

    @Plamen5kov
    Contributor

    @hypery2k, everything is ok now, but because we have a bug in the 3.3.0 tns-android template, your plugin is not getting applied. As a temporary workaround I can suggest putting the apply plugin: "io.fabric" line at the bottom of <app_name>platforms/android/build.gradle file and think about migrating to >=3.4.0 template.

  27. Plamen5kov commented on Jan 15, 2018

    @Plamen5kov
    Contributor

    @hypery2k I managed to reproduce the problem. There's one more thing necessary that I mentioned:
    In the platforms/android/build.gradle for templates <= 3.3.0 and in platforms/android/app/build.gradle for templates >= 3.4.0 you need to add apply plugin: "io.fabric" this line to the end of the file.

  28. hypery2k commented on Jan 15, 2018

    @hypery2k

    thanks for the hint. I’ve solved the build issue and will now focus on app start issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions