Search Issue Tracker
Fixed in 2021.1.X
Fixed in 2020.2.X
Votes
0
Found in
2020.2.0a14
Issue ID
1252799
Regression
No
Assertion failed on expression: 'rs->textureID == realRS->textureID'
This assert (and same for width & height) semi-randomly hits on debug built unity (maybe a console message on release) and it's annoying. This backtrace and instance is on Mac 10.15.5 and OpenGL, but I've hit this on metal and I think D3D11 too (back when we were in office).
Version: 2020.2.0a14.1750
Revision: trunk 15dd1dcb0579
Note that one frame above:
// TODO: on win/dx backbuffer surface extents are not updated, so assert will be hit
if (depthSurf && !depthSurf->backBuffer)
VALIDATE_CLIENT_RS(depthSurf);
That's in GfxDeviceWorker.cpp line 1108. The graphics command is: kGfxCmd_SetRenderTarget
(lldb) bt
* thread #76, name = 'UnityGfxDeviceWorker', stop reason = EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0)
* frame #0: 0x0000000107972587 Unity`ValidateClientRenderSurface(rs=0x0000000122c17640) at GfxDeviceWorker.cpp:57:5
frame #1: 0x00000001079249c2 Unity`GfxDeviceWorker::RunCommand(this=0x0000000122c26c90, stream=0x000000018d1c0080) at GfxDeviceWorker.cpp:1109:21
frame #2: 0x00000001079707db Unity`GfxDeviceWorker::RunExt(this=0x0000000122c26c90, stream=0x000000018d1c0080) at GfxDeviceWorker.cpp:417:5
frame #3: 0x000000010797008a Unity`GfxDeviceWorker::Run(this=0x0000000122c26c90) at GfxDeviceWorker.cpp:401:5
frame #4: 0x00000001078f94d5 Unity`GfxDeviceWorker::RunGfxDeviceWorker(data=0x0000000122c26c90) at GfxDeviceWorker.cpp:380:42
frame #5: 0x00000001030deb7d Unity`Thread::RunThreadWrapper(ptr=0x000000012619e1e0) at Thread.cpp:78:14
frame #6: 0x0000000121538c65 libsystem_pthread.dylib`_pthread_start + 148
frame #7: 0x00000001215344af libsystem_pthread.dylib`thread_start + 15
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- GameObject doesn't execute animation the way it's supposed to until any GameObject in the Hierarchy is selected when in the Play Mode
- PropertyField does not properly render its field when changing it back from a valid Asset to "None"
- "ArgumentException: Input Button Enable Debug Button 1 is not set" is thrown when "Enable Debug Button 1" is deleted
- Duplicate invocations when Enabling InputActions during handling an input action
- "Assertion failed on expression" exceptions are thrown when using IJobParallelForTransformExtensions.RunReadOnly
Add comment