Search Issue Tracker

Fixed in 2018.3

Fixed in 2019.1

Votes

37

Found in

2018.3.0b7

2018.3.0f2

Issue ID

1110007

Regression

Yes

Editor throws "GetGfxDevice() should only be called from main thread" errors and eventually crashes when in Play Mode

Graphics - General

-

How to reproduce:
1. Open attached project "Breeze"
2. Enter Play Mode
3. Play the game for 2minutes
------------
Observe errors "GetGfxDevice() should only be called from main thread" spammed in the Console
-OR-
Observe the crash following the errors

Reproduced with: 2018.3.0b7, 2018.3.1f1, 2019.1.0a13
Does not reproduce with: 2018.3.0b6

Note: For 2019.1 Entering Play Mode is not needed to receive same error in Console

========== OUTPUTTING STACK TRACE ==================

0x000000014034D99D (Unity) SharedObject<SharedMeshData,1,SharedObjectDeleteReleaseOp<SharedMeshData> >::Release
0x0000000142203ADA (Unity) GfxDeviceWorker::RunCommand
0x000000014220B2CB (Unity) GfxDeviceWorker::RunExt
0x000000014220B3C4 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
0x0000000140A6F094 (Unity) Thread::RunThreadWrapper
0x00007FFE0B3A1FE4 (KERNEL32) BaseThreadInitThunk
0x00007FFE0DF2CB81 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========

--------------------------------------
Update: fixed in 2019.2.0a6, 2019.1.0b5 and 2018.3.8f1

Comments (43)

  1. C1adff0f832dacc30d1fbc9dc838e276?d=mm

    rrazcueta

    Jan 20, 2019 03:13

    I got this error again with Unity 2017.4.18f1 as well

  2. E3d5bdcc92db2f4e7e3a02076ba77837?d=mm

    Lavapotion

    Jan 18, 2019 10:29

    Were having the exact same issue on 2018.3.0f2. Casting shadows from sprites seems to be the issue. Anyone got a workaround for this?

  3. 6d8c02bfc2ccac4ca5e25fde797639aa?d=mm

    Thompson11

    Jan 15, 2019 17:19

    We narrowed it down to casting (not receiving) shadows from our sprite renderers.

  4. 6d8c02bfc2ccac4ca5e25fde797639aa?d=mm

    Thompson11

    Jan 15, 2019 17:19

    We narrowed it down to casting (not receiving) shadows from our sprite renderers.

  5. 6d8c02bfc2ccac4ca5e25fde797639aa?d=mm

    Thompson11

    Jan 15, 2019 17:17

    We narrowed it down to casting (not receiving) shadows from our sprite renderers.

  6. 5ef56af45eebaf25ff5959b31f7be4aa?d=mm

    Scott_T

    Jan 14, 2019 07:13

    Same issue. Editor keeps crashing. Would like to see this fixed.

  7. 5ef56af45eebaf25ff5959b31f7be4aa?d=mm

    Scott_T

    Jan 14, 2019 07:02

    Same issue. Editor keeps crashing. Would like to see this fixed.

  8. 503b47eb33bef219a3f9dd790c64a995?d=mm

    validname1

    Jan 13, 2019 11:07

    Need this fixed ASAP. It is slowing progress on my game.... gonna have to revert versions until this is resolved. *Sigh*

    Camera doesn't matter. It also happens on perspective. More details here: https://forum.unity.com/threads/case-1110540-getgfxdevice-should-only-be-called-from-main-thread.600064/

  9. C1adff0f832dacc30d1fbc9dc838e276?d=mm

    rrazcueta

    Jan 11, 2019 22:59

    Posting to say I've been having this issue as well. I'm using an orthographic camera and shadow enabled sprites, and I'm not sure if those are causing the issues.

  10. C7179dc80af6e0a5b070c59a4ee835d5?d=mm

    TheBeardPhantom

    Jan 07, 2019 14:10

    It has something to do with lighting. I’ve only had one project of mine have this issue.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.