Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

Get crash in CullCastersCommon randomly

Discussion in 'Editor & General Support' started by kittycon, Mar 20, 2019.

  1. kittycon

    kittycon

    Joined:
    Jan 12, 2016
    Posts:
    15
    Get crash in CullCastersCommon randomly(average half hour).
    Didn't happan in windows editor, only in Android and iOS.

    Find this issue tracker:
    https://issuetracker.unity3d.com/is...mon-when-you-walk-off-the-edge-in-a-play-mode
    but it crash in editor, I'm not sure is the same issue. It fixed in 2019.2, but it's alpha test, can't use that.


    ENV:
    Unity 2018.2.21
    HONOR Magic 2 with Android 9.0
    iPhone XR with iOS 12.1.4


    Android log

    03-18 11:14:40.371 17936 18457 E CRASH : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 000000e4
    03-18 11:14:40.371 17936 18457 E CRASH : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    03-18 11:14:40.371 17936 18457 E CRASH : Build fingerprint: 'HONOR/TNY-AL00/HWTNY:9/HUAWEITNY-AL00/182C00R1:user/release-keys'
    03-18 11:14:40.371 17936 18457 E CRASH : Revision: '0'
    03-18 11:14:40.371 17936 18457 E CRASH : pid: 17936, tid: 18457, name: Worker Thread >>> com.wpxgame.zc <<<
    03-18 11:14:40.371 17936 18457 E CRASH : r0 c7cff7d0 r1 a9d8a670 r2 a9d9f8b8 r3 00000000
    03-18 11:14:40.371 17936 18457 E CRASH : r4 0000ffff r5 00000000 r6 00000000 r7 a9d8a690
    03-18 11:14:40.371 17936 18457 E CRASH : r8 c7cff7d0 r9 a9d9f8d0 sl cbbfe7e8 fp c7cff818
    03-18 11:14:40.371 17936 18457 E CRASH : ip b4bc16f0 sp c7cff760 lr cc500d48 pc cc500ed8 cpsr f0f84c90
    03-18 11:14:40.371 17936 18457 E CRASH :
    03-18 11:14:40.371 17936 18457 E CRASH : backtrace:
    03-18 11:14:40.752 17936 18457 E CRASH : #00 pc 007ffed8 /data/app/com.wpxgame.zc-goXFvCIJ0W5_EBsY37TG-w==/lib/arm/libunity.so (CullCastersCommon(ShadowCullContext const&, SceneNode const&, AABB const&)+44)
    03-18 11:14:40.752 17936 18457 E CRASH : #01 pc 007ffd44 /data/app/com.wpxgame.zc-goXFvCIJ0W5_EBsY37TG-w==/lib/arm/libunity.so (CullDirectionalShadows(IndexList&, SceneNode const*, AABB const*, DirectionalCullContext&)+68)
    03-18 11:14:40.752 17936 18457 E CRASH : #02 pc 007e62dc /data/app/com.wpxgame.zc-goXFvCIJ0W5_EBsY37TG-w==/lib/arm/libunity.so (CullShadowCastersDetailDirectionalThreaded(ShadowCullingJobData&, BlockRange&, int)+428)
    03-18 11:14:40.752 17936 18457 E CRASH : #03 pc 007e6100 /data/app/com.wpxgame.zc-goXFvCIJ0W5_EBsY37TG-w==/lib/arm/libunity.so (CullDirectionalShadowCastersJob(ShadowCullingJobData*, unsigned int)+328)
    03-18 11:14:40.752 17936 18457 E CRASH : #04 pc 00cd4208 /data/app/com.wpxgame.zc-goXFvCIJ0W5_EBsY37TG-w==/lib/arm/libunity.so (JobQueue::Exec(JobInfo*, int, int)+164)
    03-18 11:14:40.752 17936 18457 E CRASH : #05 pc 00cd4134 /data/app/com.wpxgame.zc-goXFvCIJ0W5_EBsY37TG-w==/lib/arm/libunity.so (JobQueue::Steal(JobGroup*, JobInfo*, int, int, bool)+316)
    03-18 11:14:40.752 17936 18457 E CRASH : #06 pc 00cd4594 /data/app/com.wpxgame.zc-goXFvCIJ0W5_EBsY37TG-w==/lib/arm/libunity.so (JobQueue::ExecuteJobFromQueue()+104)
    03-18 11:14:40.752 17936 18457 E CRASH : #07 pc 00cd4738 /data/app/com.wpxgame.zc-goXFvCIJ0W5_EBsY37TG-w==/lib/arm/libunity.so (JobQueue::ProcessJobs(void*)+248)
    03-18 11:14:40.752 17936 18457 E CRASH : #08 pc 00cd3b74 /data/app/com.wpxgame.zc-goXFvCIJ0W5_EBsY37TG-w==/lib/arm/libunity.so (JobQueue::WorkLoop(void*)+148)
    03-18 11:14:40.752 17936 18457 E CRASH : #09 pc 0107e750 /data/app/com.wpxgame.zc-goXFvCIJ0W5_EBsY37TG-w==/lib/arm/libunity.so (Thread::RunThreadWrapper(void*)+84)
    03-18 11:14:40.752 17936 18457 E CRASH : #10 pc 00065413 /system/lib/libc.so (__pthread_start(void*)+22)
    03-18 11:14:40.752 17936 18457 E CRASH : #11 pc 0001e819 /system/lib/libc.so (__start_thread+32)
    03-18 11:14:40.752 17936 18457 F mono : * Assertion: should not be reached at mini.c:2215



    iOS log

    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000b0d577ff8
    VM Region Info: 0xb0d577ff8 is not in any region. Bytes after previous region: 36194189305
    REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
    MALLOC_NANO 0000000280000000-00000002a0000000 [512.0M] rw-/rwx SM=PRV
    --->
    UNUSED SPACE AT END

    Termination Signal: Segmentation fault: 11
    Termination Reason: Namespace SIGNAL, Code 0xb
    Terminating Process: exc handler [334]
    Triggered by Thread: 5

    Thread 5 name: Worker Thread
    Thread 5 Crashed:
    0 zc 0x0000000102454674 CullCastersCommon(ShadowCullContext const&, SceneNode const&, AABB const&) + 4343412 (LowLevelCullingLoops.cpp:27)
    1 zc 0x000000010244a1a0 CullShadowCastersDetailDirectionalThreaded(ShadowCullingJobData&, BlockRange&, int) + 4301216 (ShadowCulling.cpp:667)
    2 zc 0x000000010244a068 CullDirectionalShadowCastersJob(ShadowCullingJobData*, unsigned int) + 4300904 (ShadowCulling.cpp:708)
    3 zc 0x0000000102541da0 JobQueue::Exec(JobInfo*, long long, int) + 5316000 (JobQueue.cpp:507)
    4 zc 0x0000000102542068 JobQueue::ExecuteJobFromHighPriorityStack() + 5316712 (JobQueue.cpp:812)
    5 zc 0x00000001025421b4 JobQueue::ProcessJobs(void*) + 5317044 (JobQueue.cpp:894)
    6 zc 0x00000001025417d4 JobQueue::WorkLoop(void*) + 5314516 (JobQueue.cpp:983)
    7 zc 0x00000001025c831c Thread::RunThreadWrapper(void*) + 5866268 (Thread.cpp:42)
    8 libsystem_pthread.dylib 0x0000000199984974 _pthread_body + 132
    9 libsystem_pthread.dylib 0x00000001999848d0 _pthread_start + 52
    10 libsystem_pthread.dylib 0x000000019998cddc thread_start + 4

     
    metalpulp likes this.
  2. ldewet-ct

    ldewet-ct

    Joined:
    Jul 8, 2019
    Posts:
    12
    We are also getting this using 2019.3.5 on iOs. Have you found a solution?
     
  3. noio

    noio

    Joined:
    Dec 17, 2013
    Posts:
    232
    I was getting this when I was setting my camera transform to an invalid value, in this case because I was rotating it towards a vector that could sometimes become zero. Effectively:
    Camera.main.transform.rotation = Quaternion.LookRotation(Vector3.zero)
     
  4. c0ffeeartc

    c0ffeeartc

    Joined:
    Jul 23, 2015
    Posts:
    42
    In our case some objects were scaled to `Vector3.zero` by tweening system, which caused crash in iOS CullCastersCommon
     
  5. appsscity1

    appsscity1

    Joined:
    Feb 6, 2020
    Posts:
    20
    Hi

    We are also getting this crash in xcode crash reports. Can anyone help us out in this?
     

    Attached Files: