Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  (7.0) Compute backend seems to freeze the whole Unity editor occassionally
#2
(11-04-2024, 02:26 PM)kodra Wrote: I tried to Compute backend, and my Unity editor started freezing occasionally when I got into Play mode. When it happens the GPU usage is at 100% and there is no way to unfreeze it except killing the whole process.

Switching back to Burst seems to fix it.

It's quite hard to provide a set of steps to reproduce, since it only happens occasionally, but it's a bad enough to make Compute completely unusable for me.

It happens even with a minimum project:

https://drive.google.com/file/d/1o9kf_fv...sp=sharing

Hi,

I’m unable to reproduce this, unfortunately. I’ve tried both Mac and Windows machines to no avail.

Keep in mind that it is typically not possible to hang a GPU. If any “hang” takes more than a couple seconds - or the timeout interval specified in your machine - Unity will crash you’ll see a message similar to this:

“Failed to present D3D11 swapchain due to device
reset/removed.This error can happen if you draw or dispatch
ver expensive workloads to the 6PU. which can cause
Windows to detect a GPU Timeout and reset the device.”

Also note that Unity will sometimes take quite some time to compile compute shaders (often up to a minute) and there’s no feedback during this time, so it may look like the editor has frozen.

Make sure this is not your case. Otherwise, it would be useful if you could share the Editor log with us to see what happened that lead to this issue.

Kind regards,
Reply


Messages In This Thread
RE: (7.0) Compute backend seems to freeze the whole Unity editor occassionally - by josemendez - 11-04-2024, 03:40 PM