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 crashing on libGPUSupportMercury.dylib`gpus_ReturnGuiltyForHar dwareRestart:

Discussion in 'iOS and tvOS' started by AdbC99, Oct 17, 2012.

  1. AdbC99

    AdbC99

    Joined:
    Jan 18, 2012
    Posts:
    53
    I have an app doing nothing out of this world, just a pro water texture and some particles with a bit of alpha, quite reliably it will crash when running with this error:
    libGPUSupportMercury.dylib`gpus_ReturnGuiltyForHardwareRestart:

    It usually occurs when I am changing the field of view on the camera, it didn't happen previously and recently I have updated to Unity 3.5.6f4 Xcode 4.5 iOS 6 SDK.

    Here is the stacktrace from Xcode

    Thread 1, Queue : com.apple.main-thread
    #0 0x33b30e3a in gpus_ReturnGuiltyForHardwareRestart ()
    #1 0x33b31758 in gpusSubmitDataBuffers ()
    #2 0x38743f70 in SubmitPacketsIfAny ()
    #3 0x340cc302 in gliPresentViewES ()
    #4 0x33127dd8 in -[EAGLContext presentRenderbuffer:] ()
    #5 0x023db752 in EAGLContext_presentRenderbuffer(EAGLContext*, objc_selector*, unsigned int) ()
    #6 0x00003e80 in PresentSurface(EAGLSurfaceDesc*) at /Users/alistairdeblacquiere-clarkson/github/IAEngineMkI/iOSBuild6/Classes/AppController.mm:399
    #7 0x00003f20 in PresentContext_UnityCallback(UnityFrameStats const*) at /Users/alistairdeblacquiere-clarkson/github/IAEngineMkI/iOSBuild6/Classes/AppController.mm:412
    #8 0x00a3e938 in PresentContextGLES() at /Applications/buildAgent/work/14194e8ce88cdf47/PlatformDependent/iPhonePlayer/LibEntryPoint.mm:460
    #9 0x00a76650 in GfxDeviceGLES20::presentFrame() at /Applications/buildAgent/work/14194e8ce88cdf47/Runtime/GfxDevice/opengles20/GfxDeviceGLES20.cpp:1741
    #10 0x00bc82b8 in PresentAndSync(bool) at /Applications/buildAgent/work/14194e8ce88cdf47/Runtime/Misc/Player.cpp:1185
    #11 0x00bc9300 in PlayerLoop(bool, bool, IHookEvent*) at /Applications/buildAgent/work/14194e8ce88cdf47/Runtime/Misc/Player.cpp:1306
    #12 0x00a3e350 in UnityPlayerLoop() at /Applications/buildAgent/work/14194e8ce88cdf47/PlatformDependent/iPhonePlayer/LibEntryPoint.mm:482

    Hopefully someone here might be able to answer, I've used unity's bug submitter in the past but it just seems to go into a black hole, this bug is kind of major,
     
    Last edited: Oct 17, 2012
  2. AdbC99

    AdbC99

    Joined:
    Jan 18, 2012
    Posts:
    53
    Found that by removing the lensflare from the scene that the bug goes away
     
  3. Philipp_S

    Philipp_S

    Joined:
    Jul 18, 2012
    Posts:
    16
    Found this thread while googling "libGPUSupportMercury.dylib`gpus_ReturnGuiltyForHardwareRestart". I had a Unity 3.5 game that would produce this error on iPhone 5, but not on my iPad Mini Retina. On iPhone, the screen would completely freeze and not accept any more touch input, even after using the home button to get out of the app.

    I narrowed the bug down to a shader I had written, which used a sincos() instruction. Replacing it with a sin() and a cos() removed the issue.