Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New CPU Lightmapper] Lightmapper frequently hangs or crashes #45260

Closed
DarkKilauea opened this issue Jan 17, 2021 · 3 comments
Closed

[New CPU Lightmapper] Lightmapper frequently hangs or crashes #45260

DarkKilauea opened this issue Jan 17, 2021 · 3 comments

Comments

@DarkKilauea
Copy link
Contributor

Godot version:

v3.2.4.beta6.official

OS/device including version:

Windows 10 (10.0.19042 Build 19042)
AMD Ryzen 7 3800XT
NVIDIA GeForce RTX 2080 (running GLES3)

Issue description:

While testing the new light mapper, when I went to bake the lightmaps, the process frequently hung at "Preparing data structures". During that time, Godot maxes out my CPU, with most of that time occurring in the kernel. I have waited up to 30 minutes for the process to recover, but it never has.

I have tried reducing the settings to Low for both Quality and Capture Quality and bounces to 0. When bounces are 0, this appears to happen less often, but still happens the majority of the time.

When the process does crash, I get the following error:

terminate called after throwing an instance of 'std::runtime_error'
  what():  you have to wait for spawned subtasks

Progress state:
lightmapper_stalled_progress

Godot in Task Manager:
lightmapper_stalled_task_manager

Task Manager CPU graph:
lightmapper_stalled_task_manager_cpu

Steps to reproduce:

  1. Attempt to bake a scene using the new light mapper. See attached scene for an example.

Minimal reproduction project:

TestGridmapLightmap.zip

@mbrlabs
Copy link
Contributor

mbrlabs commented Jan 17, 2021

That's a duplicate of #45097, but it's good to know that this also happens with AMD processors.

@jcostello
Copy link
Contributor

Had the same issue

@DarkKilauea
Copy link
Contributor Author

I compiled 3.2 myself from e25984a using MSVC 14.2 and I don't see the hangs anymore. As indicated by #45097, this may be an issue with how the official builds are constructed.

I'm going to close this ticket as #45097 was first. Feel free to re-open if you think that is worthwhile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants