Skip to content

Fix crash in egui_extras::FileLoader after forget_image #6995

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

Merged
merged 3 commits into from
Jun 27, 2025

Conversation

bircni
Copy link
Contributor

@bircni bircni commented May 3, 2025

This pull request modifies the BytesLoader implementation for FileLoader in crates/egui_extras/src/loaders/file_loader.rs to improve thread safety and handle unexpected states more gracefully.

Changes to thread safety and state handling:

Copy link

github-actions bot commented May 3, 2025

Preview available at https://egui-pr-preview.github.io/pr/6995-patch6755
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

…::forget_image is called while image is loading
@bircni bircni requested a review from emilk June 26, 2025 22:24
@bircni
Copy link
Contributor Author

bircni commented Jun 26, 2025

@emilk done
Sorry completely forgot about this

@emilk emilk added this to the 0.32.0 milestone Jun 26, 2025
@bircni
Copy link
Contributor Author

bircni commented Jun 26, 2025

@emilk there seems to be no Occupied
Poll only has Ready and Pending

@bircni
Copy link
Contributor Author

bircni commented Jun 26, 2025

okay late night coding is bad haha
oops

@emilk emilk added the bug Something is broken label Jun 27, 2025
@emilk emilk changed the title fix: Assertion in egui_extras::FileLoader::load fix: Assertion in egui_extras::FileLoader::load Jun 27, 2025
@emilk emilk changed the title fix: Assertion in egui_extras::FileLoader::load Fix crash in egui_extras::FileLoader on forget_image Jun 27, 2025
@emilk emilk changed the title Fix crash in egui_extras::FileLoader on forget_image Fix crash in egui_extras::FileLoader after forget_image Jun 27, 2025
@emilk emilk merged commit ab9f55a into emilk:main Jun 27, 2025
26 of 28 checks passed
@emilk
Copy link
Owner

emilk commented Jun 27, 2025

Thanks!

@bircni bircni deleted the patch6755 branch June 27, 2025 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken egui_extras
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assertion in egui_extras::FileLoader::load triggers when Context::forget_image is called while image is loading
2 participants