Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Nexus 9 crash. Loading asset bundles Fatal signal 11

Discussion in 'Android' started by Strategos, May 25, 2016.

  1. Strategos

    Strategos

    Joined:
    Aug 24, 2012
    Posts:
    251
    I have an intermittent bug that is driving me nuts. Our app loads in asset bundles when users select a character. I flick back and forth resulting in loading, then unloading a character over and over again eventually , but unpredictably it will crash.

    The crash occurs on a Nexus 9, but not on a HTC m8. I've been trying to track it down using various methods and have finally given up.

    I understand that the error is a null reference and it seems to always be in DrawBuffers. In terms of timing it always crashes after the bundle has been loaded and instantiated and appears to be on the first frame it would be rendered.

    Anyone experienced anything like this ? Anyone got any ideas ?

    I've tried eliminating nearly all the other code from the app one part at a time until it was pretty much just loading and unloading the bundle. Cleared up some memory issues. I've changed the render settings , got rid of static and dynamic batching, turned off shadows. Tried different character bundles. So far nothing.

    Desperation is setting in.

    Here is the debug output:

    05-25 15:26:36.454 9506 9521 D Unity : Unloading 3 Unused Serialized files (Serialized files now loaded: 1)

    05-25 15:26:36.460 9506 9521 D Unity : Unloading 1 Unused Serialized files (Serialized files now loaded: 1)

    05-25 15:26:36.463 9506 9521 D Unity : Unloading 1 Unused Serialized files (Serialized files now loaded: 1)

    05-25 15:26:36.465 9506 9521 D Unity : Unloading 1 Unused Serialized files (Serialized files now loaded: 1)

    05-25 15:26:36.468 9506 9521 D Unity : Unloading 1 Unused Serialized files (Serialized files now loaded: 1)

    05-25 15:26:36.470 9506 9521 D Unity : Unloading 1 Unused Serialized files (Serialized files now loaded: 1)

    05-25 15:26:36.473 9506 9521 D Unity : Unloading 1 Unused Serialized files (Serialized files now loaded: 1)

    05-25 15:26:36.476 9506 9521 D Unity : Unloading 1 Unused Serialized files (Serialized files now loaded: 1)

    05-25 15:26:36.478 9506 9521 D Unity : Unloading 1 Unused Serialized files (Serialized files now loaded: 1)

    05-25 15:26:36.505 9506 9521 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x1ca0 in tid 9521 (UnityMain)

    05-25 15:26:36.613 220 220 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

    05-25 15:26:36.618 220 220 F DEBUG : Build fingerprint: 'google/volantis/flounder:6.0.1/MOB30D/2704746:user/release-keys'

    05-25 15:26:36.618 220 220 F DEBUG : Revision: '0'

    05-25 15:26:36.618 220 220 F DEBUG : ABI: 'arm'

    05-25 15:26:36.619 220 220 F DEBUG : pid: 9506, tid: 9521, name: UnityMain >>> com.********.******* <<<

    05-25 15:26:36.619 220 220 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x1ca0

    05-25 15:26:36.647 220 220 F DEBUG : r0 d77fe428 r1 00001ca0 r2 00000020 r3 000000c3

    05-25 15:26:36.647 220 220 F DEBUG : r4 d77fe434 r5 000000c3 r6 e9e29b67 r7 dc538fa8

    05-25 15:26:36.647 220 220 F DEBUG : r8 00001ca0 r9 df3e9778 sl 00000020 fp ea84ec30

    05-25 15:26:36.648 220 220 F DEBUG : ip ea0f6780 sp ef4d6a38 lr e9eb8d2f pc e9e29b6e cpsr 680f0030

    05-25 15:26:36.738 220 220 F DEBUG :

    05-25 15:26:36.738 220 220 F DEBUG : backtrace:

    05-25 15:26:36.739 220 220 F DEBUG : #00 pc 008f0b6e /vendor/lib/libglcore.so

    05-25 15:26:36.739 220 220 F DEBUG : #01 pc 0097fd2d /vendor/lib/libglcore.so

    05-25 15:26:36.739 220 220 F DEBUG : #02 pc 0098009b /vendor/lib/libglcore.so

    05-25 15:26:36.739 220 220 F DEBUG : #03 pc 0078565f /vendor/lib/libglcore.so

    05-25 15:26:36.739 220 220 F DEBUG : #04 pc 004ef3e4 /data/app/com.********.*******v2-1/lib/arm/libunity.so (GfxDeviceGLES::DrawBuffers(GfxBuffer*, VertexStreamSource const*, int, DrawBuffersRange const*, int, VertexDeclaration*, ChannelAssigns const&)+588)

    05-25 15:26:36.739 220 220 F DEBUG : #05 pc 002f9e68 /data/app/com.********.*******/lib/arm/libunity.so (DrawUtil::DrawMeshBuffersRaw(MeshBuffers const&, Mesh&, ChannelAssigns const&, int, int)+240)

    05-25 15:26:36.739 220 220 F DEBUG : #06 pc 00354974 /data/app/com.********.*******/lib/arm/libunity.so (RenderMultipleMeshes(RenderMultipleMeshData const&, ChannelAssigns const&, bool)+1432)

    05-25 15:26:36.740 220 220 F DEBUG : #07 pc 0017848c /data/app/com.********.*******/lib/arm/libunity.so (BatchRenderer::Flush()+308)

    05-25 15:26:36.740 220 220 F DEBUG : #08 pc 0017873c /data/app/com.********.*******/lib/arm/libunity.so (BatchRenderer::Add(BaseRenderer&, TransformInfo const&, int, ChannelAssigns const*)+172)

    05-25 15:26:36.740 220 220 F DEBUG : #09 pc 001697ec /data/app/com.********.*******/lib/arm/libunity.so (RenderCasters(int, MinMaxAABB const&, Vector3f const&, Vector3f const&, ShadowCullData const&, ShaderPassContext&, std::vector<ShadowCasterData, stl_allocator<ShadowCasterData, (MemLabelIdentifier)2, 16> >&, std::vector<ShadowCasterPartData, stl_allocator<ShadowCasterPartData, (MemLabelIdentifier)2, 16> >&, RenderNodeQueue const&)+2028)

    05-25 15:26:36.740 220 220 F DEBUG : #10 pc 00144290 /data/app/com.********.*******/lib/arm/libunity.so (ShadowMapJob(void*)+2216)

    05-25 15:26:36.740 220 220 F DEBUG : #11 pc 00143974 /data/app/com.********.*******/lib/arm/libunity.so (RenderShadowMaps(ShadowMapJobHeader const*, ShaderPassContext&)+460)

    05-25 15:26:36.740 220 220 F DEBUG : #12 pc 0017fbe8 /data/app/com.********.*******/lib/arm/libunity.so (ForwardShaderRenderLoop::RenderLightShadowMaps(ForwardShadowMap&, bool, bool, ShaderPassContext&)+220)

    05-25 15:26:36.740 220 220 F DEBUG : #13 pc 0017ecb0 /data/app/com.********.*******/lib/arm/libunity.so (ForwardShaderRenderLoop::performRendering(JobFence&, ActiveLight const*, ShadowCullData const&, bool, bool, bool, int)+264)

    05-25 15:26:36.740 220 220 F DEBUG : #14 pc 00180d00 /data/app/com.********.*******/lib/arm/libunity.so (DoForwardShaderRenderLoop(RenderLoopContext&, dynamic_array<RenderObjectData, 4u>&, bool, bool, ActiveLights&, bool, int)+3336)

    05-25 15:26:36.740 220 220 F DEBUG : #15 pc 001851d0 /data/app/com.********.*******/lib/arm/libunity.so (DoRenderLoop(RenderLoop&, RenderingPath, CullResults&, ShadowMapCache&, bool)+1384)

    05-25 15:26:36.740 220 220 F DEBUG : #16 pc 0011acc0 /data/app/com.********.*******/lib/arm/libunity.so (Camera::DoRender(CullResults&, void (*)(Camera&, RenderLoop&, CullResults&), int)+324)

    05-25 15:26:36.740 220 220 F DEBUG : #17 pc 0011d7bc /data/app/com.********.*******/lib/arm/libunity.so (Camera::Render(CullResults&, ShaderPassContext&, CameraRenderingParams const*, int)+732)

    05-25 15:26:36.741 220 220 F DEBUG : #18 pc 00139eec /data/app/com.********.*******/lib/arm/libunity.so (RenderManager::RenderCameras(int)+508)

    05-25 15:26:36.741 220 220 F DEBUG : #19 pc 003abe04 /data/app/com.********.*******/lib/arm/libunity.so (PlayerRender(bool)+344)

    05-25 15:26:36.741 220 220 F DEBUG : #20 pc 003ad238 /data/app/com.********.*******/lib/arm/libunity.so (PlayerLoop(bool, bool, IHookEvent*)+4156)

    05-25 15:26:36.741 220 220 F DEBUG : #21 pc 0051da64 /data/app/com.********.*******/lib/arm/libunity.so (UnityPlayerLoop()+704)

    05-25 15:26:36.741 220 220 F DEBUG : #22 pc 005230e4 /data/app/com.********.*******/lib/arm/libunity.so (nativeRender(_JNIEnv*, _jobject*)+264)

    05-25 15:26:36.741 220 220 F DEBUG : #23 pc 0039ddc9 /data/app/com.********.*******/oat/arm/base.odex (offset 0x1b1000) (boolean com.unity3d.player.UnityPlayer.nativeRender()+76)

    05-25 15:26:36.741 220 220 F DEBUG : #24 pc 0039b41d /data/app/com.********.*******/oat/arm/base.odex (offset 0x1b1000) (boolean com.unity3d.player.UnityPlayer.a(com.unity3d.player.UnityPlayer)+56)

    05-25 15:26:36.741 220 220 F DEBUG : #25 pc 0039882f /data/app/com.********.*******/oat/arm/base.odex (offset 0x1b1000) (void com.unity3d.player.UnityPlayer$b.run()+562)

    05-25 15:26:36.741 220 220 F DEBUG : #26 pc 000e63a1 /system/lib/libart.so (art_quick_invoke_stub_internal+64)

    05-25 15:26:36.741 220 220 F DEBUG : #27 pc 004024a5 /system/lib/libart.so (art_quick_invoke_stub+188)

    05-25 15:26:36.742 220 220 F DEBUG : #28 pc 00102774 [stack:9521]

    05-25 15:26:37.205 223 630 I AudioFlinger: BUFFER TIMEOUT: remove(4097) from active list on thread 0xab97a008

    05-25 15:26:37.619 220 220 F DEBUG :

    05-25 15:26:37.619 220 220 F DEBUG : Tombstone written to: /data/tombstones/tombstone_00

    05-25 15:26:37.619 220 220 E DEBUG : AM write failed: Broken pipe

    05-25 15:26:37.619 599 13522 W ActivityManager: Force finishing activity com.********.*******/com.prime31.UnityPlayerNativeActivity

    05-25 15:26:37.626 599 615 I BootReceiver: Copying /data/tombstones/tombstone_00 to DropBox (SYSTEM_TOMBSTONE)

    05-25 15:26:37.674 599 642 W InputDispatcher: channel 'a1dcd46 com.********.*******/com.prime31.UnityPlayerNativeActivity (server)' ~ Consumer closed input channel or an error occurred. events=0x9

    05-25 15:26:37.674 599 642 E InputDispatcher: channel 'a1dcd46 com.********.*******/com.prime31.UnityPlayerNativeActivity (server)' ~ Channel is unrecoverably broken and will be disposed!

    05-25 15:26:37.719 229 229 I Zygote : Process 9506 exited due to signal (11)

    05-25 15:26:37.768 599 609 I WindowState: WIN DEATH: Window{dee3db4 u0 SurfaceView}

    05-25 15:26:37.769 599 699 I WindowState: WIN DEATH: Window{a1dcd46 u0 com.********.*******/com.prime31.UnityPlayerNativeActivity}

    05-25 15:26:37.770 599 699 W InputDispatcher: Attempted to unregister already unregistered input channel 'a1dcd46 com.********.*******/com.prime31.UnityPlayerNativeActivity (server)'

    05-25 15:26:37.793 599 13522 W ActivityManager: Exception thrown during pause

    05-25 15:26:37.793 599 13522 W ActivityManager: android.os.DeadObjectException

    05-25 15:26:37.793 599 13522 W ActivityManager: at android.os.BinderProxy.transactNative(Native Method)

    05-25 15:26:37.793 599 13522 W ActivityManager: at android.os.BinderProxy.transact(Binder.java:503)

    05-25 15:26:37.793 599 13522 W ActivityManager: at android.app.ApplicationThreadProxy.schedulePauseActivity(ApplicationThreadNative.java:727)

    05-25 15:26:37.793 599 13522 W ActivityManager: at com.android.server.am.ActivityStack.startPausingLocked(ActivityStack.java:867)

    05-25 15:26:37.793 599 13522 W ActivityManager: at com.android.server.am.ActivityStack.finishActivityLocked(ActivityStack.java:2907)

    05-25 15:26:37.793 599 13522 W ActivityManager: at com.android.server.am.ActivityStack.finishTopRunningActivityLocked(ActivityStack.java:2763)

    05-25 15:26:37.793 599 13522 W ActivityManager: at com.android.server.am.ActivityStackSupervisor.finishTopRunningActivityLocked(ActivityStackSupervisor.java:2760)

    05-25 15:26:37.793 599 13522 W ActivityManager: at com.android.server.am.ActivityManagerService.handleAppCrashLocked(ActivityManagerService.java:12037)

    05-25 15:26:37.793 599 13522 W ActivityManager: at com.android.server.am.ActivityManagerService.makeAppCrashingLocked(ActivityManagerService.java:11933)

    05-25 15:26:37.793 599 13522 W ActivityManager: at com.android.server.am.ActivityManagerService.crashApplication(ActivityManagerService.java:12622)

    05-25 15:26:37.793 599 13522 W ActivityManager: at com.android.server.am.ActivityManagerService.handleApplicationCrashInner(ActivityManagerService.java:12129)

    05-25 15:26:37.793 599 13522 W ActivityManager: at com.android.server.am.NativeCrashListener$NativeCrashReporter.run(NativeCrashListener.java:86)

    05-25 15:26:37.797 168 168 E lowmemorykiller: Error opening /proc/9506/oom_score_adj; errno=2

    05-25 15:26:37.808 599 1485 I ActivityManager: Process com.********.******* (pid 9506) has died

    05-25 15:26:37.897 599 608 I art : Background partial concurrent mark sweep GC freed 30265(4MB) AllocSpace objects, 10(1144KB) LOS objects, 33% free, 31MB/46MB, paused 2.540ms total 117.521ms

    05-25 15:26:37.916 599 647 I OpenGLRenderer: Initialized EGL, version 1.4

    05-25 15:26:37.941 457 13524 D DropBoxEntryAddedChimeraService: User is not opted-in to Usage & Diagnostics.

    05-25 15:26:37.951 457 13524 D DropBoxEntryAddedChimeraService: User is not opted-in to Usage & Diagnostics.

    05-25 15:26:38.024 23352 23374 I OpenGLRenderer: Initialized EGL, version 1.4

    05-25 15:26:38.133 23352 23374 V RenderScript: 0x559dbcf5e0 Launching thread(s), CPUs 2

    05-25 15:26:38.240 722 722 D PhoneStatusBar: disable: < expand ICONS* alerts SYSTEM_INFO* back home RECENT clock SEARCH quick_settings >

    05-25 15:26:38.357 722 722 D PhoneStatusBar: disable: < expand ICONS alerts SYSTEM_INFO back HOME* RECENT clock SEARCH quick_settings >

    05-25 15:26:38.854 599 617 W WindowAnimator: Failed to dispatch window animation state change.

    05-25 15:26:38.854 599 617 W WindowAnimator: android.os.DeadObjectException

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.os.BinderProxy.transactNative(Native Method)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.os.BinderProxy.transact(Binder.java:503)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)

    05-25 15:26:38.854 599 617 W WindowAnimator: at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)

    05-25 15:26:38.854 599 617 W WindowAnimator: at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)

    05-25 15:26:38.854 599 617 W WindowAnimator: at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)

    05-25 15:26:38.854 599 617 W WindowAnimator: at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.view.Choreographer.doCallbacks(Choreographer.java:670)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.view.Choreographer.doFrame(Choreographer.java:603)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.os.Handler.handleCallback(Handler.java:739)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.os.Handler.dispatchMessage(Handler.java:95)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.os.Looper.loop(Looper.java:148)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.os.HandlerThread.run(HandlerThread.java:61)

    05-25 15:26:38.854 599 617 W WindowAnimator: at com.android.server.ServiceThread.run(ServiceThread.java:46)

    05-25 15:26:38.854 599 617 W WindowAnimator: Failed to dispatch window animation state change.

    05-25 15:26:38.854 599 617 W WindowAnimator: android.os.DeadObjectException

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.os.BinderProxy.transactNative(Native Method)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.os.BinderProxy.transact(Binder.java:503)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.view.IWindow$Stub$Proxy.onAnimationStopped(IWindow.java:534)

    05-25 15:26:38.854 599 617 W WindowAnimator: at com.android.server.wm.WindowAnimator.updateWindowsLocked(WindowAnimator.java:286)

    05-25 15:26:38.854 599 617 W WindowAnimator: at com.android.server.wm.WindowAnimator.animateLocked(WindowAnimator.java:678)

    05-25 15:26:38.854 599 617 W WindowAnimator: at com.android.server.wm.WindowAnimator.-wrap0(WindowAnimator.java)

    05-25 15:26:38.854 599 617 W WindowAnimator: at com.android.server.wm.WindowAnimator$1.doFrame(WindowAnimator.java:123)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:856)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.view.Choreographer.doCallbacks(Choreographer.java:670)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.view.Choreographer.doFrame(Choreographer.java:603)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.os.Handler.handleCallback(Handler.java:739)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.os.Handler.dispatchMessage(Handler.java:95)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.os.Looper.loop(Looper.java:148)

    05-25 15:26:38.854 599 617 W WindowAnimator: at android.os.HandlerThread.run(HandlerThread.java:61)

    05-25 15:26:38.854 599 617 W WindowAnimator: at com.android.server.ServiceThread.run(ServiceThread.java:46)

    05-25 15:26:38.918 23352 23374 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...

    Any help greatly appreciated.

    Thanks
     
    Last edited: May 26, 2016