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

Graphics - General

-

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)

  1. unity_tayhIz35pifgBg

    Jun 14, 2018 20:18

    yeah,have same problem

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.