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

On Windows rlottie hangs (forever) on application shutdown when compiled with MinGW #518

Open
leonstyhre opened this issue Jan 7, 2022 · 1 comment

Comments

@leonstyhre
Copy link

Hi!

If rlottie is compiled using MinGW 9.2.0 then the application will hang (seemingly forever) on shutdown if either render() or renderSync() has been called at least one.

This problem does not occur when compiled using MSVC but unfortunately I need to use MinGW for my release builds so that's not a solution for me.

I have also not seen the issue on any of the other operating systems that I've built rlottie on (macOS, Linux, FreeBSD, NetBSD and OpenBSD).

This issue is present on the master branch with the latest commit 8756269.
I have compiled as shared library/DLL and apart from the hang on shutdown, everything seems to work fine with correct rendering and equivalent performance compared to other platforms.

Many thanks in advance!

@leonstyhre
Copy link
Author

One additional comment, I just managed to get the MinGW build to work by disabling the threading support using the LOTTIE_THREAD option.
After doing this the application shuts down correctly.

So the issue is definitely related to threading somehow.

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

No branches or pull requests

1 participant