Crash with Planar Reflection Probe

Hello,

I'm experiencing a crash to desktop upgrading my project from 2018.2 to the latest beta and HDRP 4.0.0. First the crash seemed to happen every time I inserted a camera in my scene and moved it around. Sometimes it happened instantly when inserting the camera. There are no error messages in the console.

However upon further inspection I noticed that everything's fine as soon as I turn off my scene's Planar Reflection Probe. So something only goes wrong when moving the camera around and having one in the scene. The regular editor camera and Play mode work fine though (my project spawns a character controller with a camera in the scene when pressing play and this works fine).

The Planar Reflection Probe always worked fine in 2018.2. Any ideas how to get around this?

PS: I'm also using Cinemachine but that also never caused such problems in the past.


Thanks for bringing this to our attention. Could you please submit a bug report for this issue with a minimal reproduction project and reply in here with the issue ID?

1 Like

3742132--310816--unitystore-banner-d705dc5f62aafff54a09d250d6f57152.jpg

As a reminder, bug reports lead to swag. I should report more often...

3742132--310816--unitystore-banner-d705dc5f62aafff54a09d250d6f57152.jpg

1 Like

Hi,

When tested on local project we can't reproduce this issues. We need more information.

If you create a new scene and add a planar reflection, does it work? If you recreate a planar reflection in your current scene, does it work ?

The reflection system have get a big upgrade, it is possible that the upgrading have corrupt some data.

thanks

Hello, thank you for the replies! I tried making a new scene in the same project and also in another project and planar reflections worked fine. It is indeed something wrong with that specific scene and project that was made in 2018.2. In addition, my scene uses lots of custom plugins and (now legacy) features such as terrain with a custom HDRP material, which I'm suspecting may be one cause of problems.

I'll see if I can easily make a stripped down scene for reproduction and file a report. Unity swag does sound appealing.. :smile:

1 Like

I've fixed the issue by duplicating the terrain asset that I had made in 2018.2. The old terrain used a LayeredLitTessellation shader via a hacky method similar to the Book of the Dead setup. The new terrain uses the TerrainLit shader instead. Having a camera and a planar reflection probe no longer crash my scene.

Thanks for your help @LeonhardP and @SebLagarde ! I would like to ask however if TerrainLit will support tessellation displacement in the future? The new setup is a bit of a downgrade eyecandy wise, since my terrain no longer gets tessellated on material level. The LayeredLitTessellation shader no longer works on the new terrain at all and results in weird flickering.

Hi,
There is still development plan for terrain, but currently nothing is plan to get features parity between LayeredLitTessellation and builtin terrain tech.

1 Like