[Solved] Unity crash when baking lightmap

Hey everyone,

I have an issue which has only just appeared - where the editor crashes when I try and bake a lightmap. It has previously worked and nothing has changed but I now cannot bake any lightmap with the GPU.

I’m using version 2019.4.28f1

After some experimentation, I found that as soon as I click the Lighting → Lightmapper Settings → Filtering ->Direct Denoiser drop down it crashes immediately.

I’ve tried:

  • Re-installing the editor from scratch
  • deleting the project and cloning from the repo
  • re-installing my graphics drivers (GTX1060 ti)
  • upgrading my graphics drivers
  • Windows updates etc

Nothing seems to fix it. I know that it must be an issue with my machine, because on another machine using the same project it works perfectly, but I have no idea how to fix this short of rebuilding my whole workstation (which I would really like to avoid doing).

The first few lines of the crash report show this:

Unity Editor by Unity Technologies [version: Unity 2019.4.28f1_1381962e9d08]
ntdll.dll caused an Access Violation (0xc0000005)
in module ntdll.dll at 0033:be562651.
Error occurred at 2021-07-10_220258.
D:\Unity Editors\2019.4.28f1\Editor\Unity.exe, run by a_a_w.
46% physical memory in use.
32563 MB physical memory [17345 MB free].
3151 MB process peak paging file [3038 MB used].
1398 MB process peak working set [1380 MB used].
System Commit Total/Limit/Peak: 18837MB/42547MB/27794MB
System Physical Total/Available: 32563MB/17345MB
System Process Count: 323
System Thread Count: 4411
System Handle Count: 137477

Any advice on what I could try next would be greatly appreciated!

Thanks!

I would stress-test the system.

For RAM: www.techpowerup.com/memtest64/
For GPU: FurMark Homepage
For CPU: www.guru3d.com/files-details/prime95-download.html

For memtest64; if you see any error, I would suggest testing with memtest86 for better result.

Thank you for the suggestions, however, none of the above tests indicated any issue with the hardware I’m using. I’m afraid this appears to be a software issue and have no idea how to solve it :frowning:

Thanks to the Unity Bugs team for checking out my crash dump and providing a solution.

So the issue was due to a faulty file related to my integrated intel graphics card - which I did not think to check, because my system is configured to use my dedicated graphics card. Upon finding the file that was causing the problem, simply deleting it and rebooting my machine fixed it!

For reference, the file was located here:

C:\WINDOWS\System32\DriverStore\FileRepository\ki127123.inf_amd64_8e84273d56763f28\igdrclneo64.dll

Again, massive thanks to the Unity bugs team!