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

[Bug] Large files can cause updateFilter run until the program crashes. #1778

Open
1 task done
ookami125 opened this issue Jun 29, 2024 · 2 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@ookami125
Copy link

Operating System

Linux

What's the issue you encountered?

Program will crash when loading the png pattern with a large png. Digging around a little bit it seems like all the parsing works fine, the program seems to get hung up in (void hex::ui::PatternDrawer::updateFilter()) even though no filter is set. I don't really know a solution besides having a quick exit for when no filter is set.

How can the issue be reproduced?

Load a large png (~7MB / 3120x3920) and then import the png.hexpat pattern. The program will hang and eventually close without any errors.

ImHex Version

1.36.0.WIP

ImHex Build Type

  • Nightly or built from sources

Installation type

Built from source

Additional context?

https://upload.wikimedia.org/wikipedia/commons/6/6a/PNG_Test.png seems to repro the issue on my machine

@ookami125 ookami125 added the bug Something isn't working label Jun 29, 2024
@WerWolv
Copy link
Owner

WerWolv commented Jun 30, 2024

Thanks for the report! Filtering should probably be done in a background thread like other things are as well. The PNG pattern most likely just produces so many patterns that it takes a while to apply the filter.
I'll see what I can do.

@ookami125
Copy link
Author

Thanks, I just disabled mine for now since as before I'm not using it. Would be nice if I could in the future though. I also have another crash but it's much harder to reproduce, so I'm waiting till I have more details before filing a ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants