Search Issue Tracker
Fixed in 2020.2.X
Fixed in 2017.4.X, 2018.4.X, 2019.3.X, 2020.1.X
Votes
0
Found in
2017.4
2019.3.0f6
2020.1
Issue ID
1221358
Regression
No
Editor crashes on ConstantBuffersD3D11Base::SetBuiltinCBConstant when creating a new Standart Surface Shader
How to reproduce:
1. Open the user's attached project "PaintingSim.zip"
2. Open Project window and right-click on an empty space
3. Select Create > Shader > Standart Surface Shader
4. If the crash did not occur repeat steps 2-3
-- Observe the crash
Reproducible with: 2017.4.37f1, 2018.4.18f1, 2019.3.2f1, 2020.1.0a24
Note:
1. the crash occurs randomly, sometimes it takes more than 10 attempts to reproduce it
2. an assertion fails right before the crash: Assertion failed on expression: 'offset >= 0 && offset + size <= m_Buffers[cbIndex].key.size && size > 0'
3. also reproducible when duplicating multiple shader files
The stack trace:
0x00007FF6FD35B410 (Unity) memcmp
0x00007FF6FAD81611 (Unity) ConstantBuffersD3D11Base::SetBuiltinCBConstant
0x00007FF6FAD775CC (Unity) GfxDeviceD3D11Base::BeforeDrawCall
0x00007FF6FAD7BA15 (Unity) GfxDeviceD3D11Base::DrawBuffers
0x00007FF6FB6629B0 (Unity) DynamicVBO::DrawChunk
<...>
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Crash on mecanim::SetValueWeight when switching the AnimationMixerPlayable connection with Animator's UpdateMode set to "Animate Physics"
- The "StringComparer.InvariantCultureIgnoreCase.GetHashCode()" returns different Hash Codes for the same word with the only difference being case sensitivity in WebGL
- 2D Light Textures show the lights of any 'blend style' index higher than theirs (if present) when they aren't visible by the Camera using Render Graph
- [SpeedTree] Wireframe mode not rendering correctly ST assets
- Light2D affecting only the Default Sorting Layer will also affect any Custom Lit Sprite not on that Layer when using Render Graph
Resolution Note (fix version 2020.2):
Fixed in: 2020.2.0a3
Resolution Note (fix version 2020.1):
Fixed in: 2020.1.0b3
Resolution Note (fix version 2019.3):
Fixed in: 2019.3.8f1
Resolution Note (fix version 2017.4):
Fixed in: 2017.4.40f1