Hi, everyone.
No matter what I do, I always get this message:
assertion failed on expression ‘succeeded(hr)’
This happen on:
- old projects or new projects;
- any Unity version from 2020 on;
- with default DX11
It simply goes away when I
- Go to graphics settings;
- Set the Unity editor to run on the onboard video card;
- Open the project in Unity
- Change Player Settings Graphics API to DX12 (experimental)
- Go to graphics settings again and change to let the S.O. choose the video card or pick the dedicaded one
I’ve been away from Unity for a while and got back these days just to stumble on this problem. Doing some reading on the internet, found out that Unity Team is already aware of this problem and it is being said to be fixed on 2022.1.0a6 but the bug still happens on 2022.1.0b6. A beta is usually later than an Alpha, isn’t it?
Also, people said to update the drivers but mine are updated, triple checked.
My setup is:
- Acer VX5-591G
- Intel i7 7700HQ
- Intel Graphics 630
- NVIDIA GTX 1050TI
- 16GB ram
- SSD Samsung EVO 500GB
What I am missing here? Can the Unity team gives an option to set the default Graphics API as a global setting to avoid this to happen?
1 Like
It’s likely you are running into a different issue than discussed in that issuetracker link. Could you enable “Full” stack trace type in the console, restart the editor and copy the full error once it’s reproduced again?
1 Like
3 distinct error
==========
Assertion failed on expression: ‘SUCCEEDED(hr)’
0x00007ff68963ffed (Unity) StackWalker::GetCurrentCallstack
0x00007ff689646cc9 (Unity) StackWalker::ShowCallstack
0x00007ff68a5b50e3 (Unity) GetStacktrace
0x00007ff68ac4bbcd (Unity) DebugStringToFile
0x00007ff68ac4b8f2 (Unity) AssertImplementation
0x00007ff6896bc777 (Unity) GfxDeviceD3D11Base::SetupDeferredRasterState
0x00007ff6896af590 (Unity) GfxDeviceD3D11Base::BeforeDrawCall
0x00007ff6896b4168 (Unity) GfxDeviceD3D11Base:rawBuffersBatchMode
0x00007ff68acd52ab (Unity) GfxDeviceWorker::RunCommand
0x00007ff68acd7b5d (Unity) GfxDeviceWorker::RunExt
0x00007ff68acd7c78 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
0x00007ff6893cc8b7 (Unity) Thread::RunThreadWrapper
0x00007ffbf4a9244d (KERNEL32) BaseThreadInitThunk
0x00007ffbf5b8df78 (ntdll) RtlUserThreadStart
=============
Assertion failed on expression: ‘SUCCEEDED(hr)’
0x00007ff68963ffed (Unity) StackWalker::GetCurrentCallstack
0x00007ff689646cc9 (Unity) StackWalker::ShowCallstack
0x00007ff68a5b50e3 (Unity) GetStacktrace
0x00007ff68ac4bbcd (Unity) DebugStringToFile
0x00007ff68ac4b8f2 (Unity) AssertImplementation
0x00007ff6896bc777 (Unity) GfxDeviceD3D11Base::SetupDeferredRasterState
0x00007ff6896af590 (Unity) GfxDeviceD3D11Base::BeforeDrawCall
0x00007ff6896b5276 (Unity) GfxDeviceD3D11Base:rawNullGeometry
0x00007ff68acd46ca (Unity) GfxDeviceWorker::RunCommand
0x00007ff68acd7b5d (Unity) GfxDeviceWorker::RunExt
0x00007ff68acd7c78 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
0x00007ff6893cc8b7 (Unity) Thread::RunThreadWrapper
0x00007ffbf4a9244d (KERNEL32) BaseThreadInitThunk
0x00007ffbf5b8df78 (ntdll) RtlUserThreadStart
==================
Assertion failed on expression: ‘SUCCEEDED(hr)’
0x00007ff68963ffed (Unity) StackWalker::GetCurrentCallstack
0x00007ff689646cc9 (Unity) StackWalker::ShowCallstack
0x00007ff68a5b50e3 (Unity) GetStacktrace
0x00007ff68ac4bbcd (Unity) DebugStringToFile
0x00007ff68ac4b8f2 (Unity) AssertImplementation
0x00007ff6896bc777 (Unity) GfxDeviceD3D11Base::SetupDeferredRasterState
0x00007ff6896b4302 (Unity) GfxDeviceD3D11Base:rawBuffersBatchMode
0x00007ff68acd52ab (Unity) GfxDeviceWorker::RunCommand
0x00007ff68acd7b5d (Unity) GfxDeviceWorker::RunExt
0x00007ff68acd7c78 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
0x00007ff6893cc8b7 (Unity) Thread::RunThreadWrapper
0x00007ffbf4a9244d (KERNEL32) BaseThreadInitThunk
0x00007ffbf5b8df78 (ntdll) RtlUserThreadStart