-
-
Notifications
You must be signed in to change notification settings - Fork 328
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
[Qt for WebAssembly; opengl-2 branch] Fix http_file_source #2689
base: opengl-2
Are you sure you want to change the base?
Conversation
This is still causing a leak in WASM build. As this is not urgent, let me try to find a proper fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me also do a review.
This actually closes a leak in WASM build by allowing the browser to abort tile requests. It's easy to verify, because without this fix the app stalls and crashes shortly after boot due to a lack of cleanup. @ntadej Can we maybe merge this fix, so that things work out-of-the-box, and then at your convenience you can look into improving on it further if the opengl-2 branch still is relevant at the time? |
@ntadej , is it okay with you if we merge the fix, so that the code can at least run without the manual edits, and then investigate the persisting memory leak later on? |
@birkskyum Your suggestion sounds reasonable to me. I think @ntadej was afk last month, let's give him a chance to respond this weekend and merge on Monday otherwise. |
Sorry, I did not see that you condition now with WASM. I think it's fine for now until I have time to investigate closer. Note that I am a bit disappointed in MapLibre memory usage so I plan to investigate eventually if there are not more leaks. |
Before we merge, is this already in |
No it's not @birkskyum Could you make a new PR that targets main? |
It's possible to change the targeted branch of the pull request. |
@josxha I tried, but then there's a bunch of unrelated changes in the PR... |
The manual changes required for qt webgl1 compilation are here fixed with compile conditionals:
https://github.com/birkskyum/maplibre-native-wasm/tree/main/qt-opengl2#changes-needed-to-the-code
(i'll make sure to clean up this branch - made it in main repo instead of fork by accident)