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

Fix freeze-crash in lightmapper under MinGW-GCC (3.2) #45380

Merged
merged 1 commit into from
Jan 25, 2021

Conversation

RandomShaper
Copy link
Member

The nightly owl strikes again against #45097.

By using a more recent version of GCC for MinGW, I've been able to get a build that fails like the last, as reported by testers, so I think the results I get with this environment may be the same as with the one for the official builds.

Regarding the issues, after some digging I've found a couple of interesting things:

  • _mm_pause() seems to be fine, so we don't need a replacement;
  • the specifier for thread-local storage (and probably some others) was not being interpreted by GCC.

I've also removed the include for unistd.h, which I added for an older version of the patch.

With these changes I've been able to get a build that succeeds in lightmapping the test projects (with no LTO; haven't tried with it enabled).

Who knows? Maybe this is the good one...

NOTE: I haven't updated the patch file for this PR.

@akien-mga akien-mga merged commit 934b174 into godotengine:3.2 Jan 25, 2021
@akien-mga
Copy link
Member

Thanks!

@RandomShaper RandomShaper deleted the lightmapper_fix_3.2 branch January 25, 2021 21:17
@akien-mga akien-mga modified the milestones: 3.2, 3.3 Apr 20, 2021
akien-mga added a commit to akien-mga/godot that referenced this pull request May 20, 2021
Re-do of godotengine#45380 lost in godotengine#48455.
Rediff patch on current embree-aarch64 upstream.

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

Successfully merging this pull request may close these issues.

2 participants