visualdesigncafe / nature-renderer

Nature Renderer is a plugin for the Unity game engine to efficiently render vegetation on your terrains.
https://visualdesigncafe.com/nature-renderer/
0 stars 0 forks source link

Crashes Build of game #27

Closed retlaws closed 2 months ago

retlaws commented 8 months ago

BUG DESCRIPTION

If I do a build of the game it crashes when I try and load the level in. After a lot of trial and error I narrowed it down to Nature Renderer. If I remove any vegetation from Nature Renderer but still leave Nature Renderer attached to the terrain it will load ok. There is a dump file created when it crashes which states: The thread tried to read from or write to a virtual address for which it does not have the appropriate access.

So I guess the issue is something to do with Nature Renderer trying to load the vegetation but having an access issue but beyond that I am stumped.

To Reproduce Steps to reproduce the behavior:

  1. Build game
  2. Load game
  3. Game crashes

Expected behavior A clear and concise description of what you expected to happen.

For it not to crash

Project(please complete the following information):

System (please complete the following information):

Additional context Add any other context about the problem here.

retlaws commented 7 months ago

Am I going to get a response to this? I broke my laptop, finally sorted a replacement and come back and still no response.

rendrop commented 3 months ago

I am having the same issue.

Crashes on player build right after Nature Renderer initialization with "The thread tried to read from or write to a virtual address for which it does not have the appropriate access." message.

I'm on 2022.3.38f1, HDRP 14 with NR 2022.0.4.

Platform is Windows 11 23H2 and both DX11 and DX12 crashed on player build.

Project is working fine on Editor.

stonstad commented 2 months ago

Did you guys get this fixed? If not, I hope you posted an appropriate review?

rendrop commented 2 months ago

Did you guys get this fixed? If not, I hope you posted an appropriate review?

Are you using IL2CPP as scripting backend and (perhaps) are using other precompiled dll plugins?

If yes, I found that switching to Mono fix this problem for me.

retlaws commented 2 months ago

I did get this fixed but can't remember what the issue was - it was a long time ago. I thought I closed this already. Will close it now.