Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Unity crashes through access violation. (Probably related to GI)

Discussion in 'Editor & General Support' started by McGravity, Oct 19, 2015.

  1. McGravity

    McGravity

    Joined:
    Nov 2, 2013
    Posts:
    60
    Hey there,

    I'm using version 5.2.1p4 and Unity occasional crashes through some access violation (this is, what Windows 7 tells me when debugging the crashed unity/build). It happens after I load a scene via Application.LoadLevel(). Baked GI is disabled. Precomputed Realtime GI is enabled. When I disable Precomputed Realtime GI the crash does not occur.

    Here is the callstack:

    Code (CSharp):
    1. >   mygame.exe!Enlighten::SolveDirectionalIrradiance<1>(class Enlighten::RadIrradianceTask const *,class Enlighten::RadiositySystem const *,class Enlighten::InputLightingBuffer const * *,union __m128 *,unsigned int &)   Unknown
    2.    mygame.exe!Enlighten::SolveDirectionalIrradiance(class Enlighten::RadIrradianceTask const *,class Enlighten::RadiositySystem const *,class Enlighten::InputLightingBuffer const * *,union __m128 *,unsigned int &)   Unknown
    3.    mygame.exe!Enlighten::SolveIrradianceTask(class Enlighten::RadIrradianceTask const *,void *,unsigned int &,unsigned int &)   Unknown
    4.    mygame.exe!Enlighten::MultithreadCpuWorkerCommon::DoSystemSolve(class Enlighten::CpuSystem *,int)   Unknown
    5.    mygame.exe!Enlighten::MultithreadCpuWorkerCommon::DoNextTask(int)   Unknown
    6.    mygame.exe!HLRTThreadGroup::ExitThreads(void)   Unknown
    7.    mygame.exe!Thread::RunThreadWrapper(void *)   Unknown
    8.    kernel32.dll!0000000076d15a4d()   Unknown
    9.    ntdll.dll!0000000076f4b831()   Unknown
    Does anyone see something suspious in there?
     
    Last edited: Oct 19, 2015
  2. locust99999

    locust99999

    Joined:
    Sep 28, 2015
    Posts:
    2
    We are experiencing the exact same issue with 5.2.1p4, slightly different callstack.

    > Unity.exe!Enlighten::SolveDirectionalIrradiance<1>(class Enlighten::RadIrradianceTask const *,class Enlighten::RadiositySystem const *,class Enlighten::InputLightingBuffer const * *,union __m128 *,unsigned int &) Unknown
    Unity.exe!Enlighten::SolveDirectionalIrradiance(class Enlighten::RadIrradianceTask const *,class Enlighten::RadiositySystem const *,class Enlighten::InputLightingBuffer const * *,union __m128 *,unsigned int &) Unknown
    Unity.exe!Enlighten::SolveIrradianceTask(class Enlighten::RadIrradianceTask const *,void *,unsigned int &,unsigned int &) Unknown
    Unity.exe!Enlighten::MultithreadCpuWorkerCommon::DoSystemSolve(class Enlighten::CpuSystem *,int) Unknown
    Unity.exe!Enlighten::MultithreadCpuWorkerCommon::DoNextTask(int) Unknown
    Unity.exe!HLRTThreadGroup::ExitThreads(void) Unknown
    Unity.exe!Thread::RunThreadWrapper(void *) Unknown
    kernel32.dll!00007ff88a1b2d92() Unknown
    ntdll.dll!00007ff88c4d9f64() Unknown
     
  3. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,222
    Could you file a bug report with this information please. If you are able to find a way to recreate the issue reliably that would also be super helpful :D
     
  4. 3dgrinder

    3dgrinder

    Joined:
    Oct 21, 2008
    Posts:
    249
    We are getting it as well. Unity 5.2.2f1 and iOS device iPod5 OS version 9.0

    Code (CSharp):
    1. ead 19 name:  EnlightenWorker
    2. Thread 19 Crashed:
    3. 0   xxxxxxxxx                        0x01435c26 bool Enlighten::SolveDirectionalIrradiance<1>(Enlighten::RadIrradianceTask const*, Enlighten::RadiositySystem const*, Enlighten::InputLightingBuffer const**, __simd128_float32_t*, unsigned int&) (RadiositySolverNEON.cpp:601)
    4. 1   xxxxxxxxx                        0x014323f8 Enlighten::SolveDirectionalIrradiance(Enlighten::RadIrradianceTask const*, Enlighten::RadiositySystem const*, Enlighten::InputLightingBuffer const**, __simd128_float32_t*, unsigned int&) (RadiositySolverNEON.cpp:781)
    5. 2   xxxxxxxxx                        0x01431342 Enlighten::SolveIrradianceTask(Enlighten::RadIrradianceTask const*, void*, unsigned int&, unsigned int&) (RadiositySolver.cpp:703)
    6. 3   xxxxxxxxx                        0x01454a6e Enlighten::MultithreadCpuWorkerCommon::DoSystemSolve(Enlighten::CpuSystem*, int) (MultithreadCpuWorker.cpp:776)
    7. 4   xxxxxxxxx                        0x0145480e Enlighten::MultithreadCpuWorkerCommon::DoNextTask(int) (MultithreadCpuWorker.cpp:579)
    8. 5   xxxxxxxxx                        0x010e8932 Enlighten::TaskProcessor::operator()() (MultithreadCpuWorker.h:414)
    9. 6   xxxxxxxxx                        0x010e8862 TUpdateFunction(void*) (Semaphore.h:21)
    10. 7   xxxxxxxxx                        0x00f0d1a6 Thread::RunThreadWrapper(void*) (Thread.cpp:40)
    11. 8   libsystem_pthread.dylib           0x34c34872 _pthread_body + 138
    12. 9   libsystem_pthread.dylib           0x34c347e6 _pthread_start + 110
    13. 10  libsystem_pthread.dylib           0x34c32740 thread_start + 8
     
  5. McGravity

    McGravity

    Joined:
    Nov 2, 2013
    Posts:
    60
    Seems to be fixed in 5.3.0.