Search Issue Tracker
Won't Fix
Votes
1
Found in
2018.1.1f1
Issue ID
1042803
Regression
No
Editor crashes when adding scripted water asset to scene with terrain in LWRP
How to reproduce:
1. Download and open attached "case_1042803-Repro" project
2. Load "level01" scene
3. Add "WaterProDaytime" asset to scene from Assets\Standard Assets\Environment\Water\Water\Prefabs
Expected result: Editor does not crash
Actual result: Editor crashes
Reproduces with: 2018.1.2f1, 2018.2.0b6
Notes: Adding any scripted water asset to the scene results in crashing (You can find more similar assets in Assets\Environment\Water\Water(Adv)\Water4\Prefabs).
Disabling Lightweight Rendering Pipeline in Graphics settings and following steps above results in not crashing.
Used assets are from "Standard Assets" pack from Asset Store.
Also disabling "Water" script for mentioned assets fixes the issue.
Top of stacktrace: PrepareRenderNodesOnMainThreadDeprecated
Update: The issue won't be fixed since Standard Water Asset is not supported by LWRP. The crash happens due to a call on Camera.Render inside OnWillRenderObject callback. The ability to call Camera.Render in SRP will be removed and examples will provided on how to do it with SRP API soon.
Comments (1)
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
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
unity_tayhIz35pifgBg
Jun 14, 2018 20:18
yeah,have same problem