Search Issue Tracker
Won't Fix
Votes
0
Found in
2018.4
2019.4.3f1
2020.2
Issue ID
1265143
Regression
No
[Critical] Editor crashes when #line directive is misplaced outside shader's block of code
How to reproduce:
1. Create a new 3D template project
2. Create a new Standard Surface Shader and open it
3. Add "#line 0" directive right after the shader's code ending bracket
4. Save the shader and focus the Editor
Expected result: The editor throws an error due to invalid input once the shader is recompiled
Actual result: The Editor crashes
Reproducible with: 2018.4.26f1, 2019.4.6f1, 2020.1.1f1, 2020.2.0a20
Notes:
1. When 2018.4.26f1 version is used, a crash pop-up is thrown after the shader is recompiled, however, the Editor does not actually crash and can be used afterward. This happens the only after the first shader recompile. Subsequent changes to the shader do not lead to a thrown crash pop until the Editor is reloaded(Track_1265143_V1)
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
- URP Player remains in Windows Background processes when the application is closed
- [Android] The built-in URP shaders Lit, Complex Lit and the Simple Lit are not rendered when built on Android devices with an Adreno 300 series GPUs
- "Radio Button" disappears when added under the "RadioButtonGroup" and the parent Visual Element is selected
- ScrollView Scrollbar is jittering when Movement Type "Elastic" is selected and a mouse with a freewheel is used
- [WebGL]"TypeError: Cannot read properties of undefined (reading 'length')" error is thrown when starting the Player when config.autoSyncPersistentDataPath is set to true
Resolution Note (2020.2.X):
This is an edge case which is, unfortunately, very difficult to fix in the current system.