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 UTMT crash when searching for a lot of unreferenced assets #1942

Closed
wants to merge 1 commit into from

Conversation

maxiterr1
Copy link

@maxiterr1 maxiterr1 commented Oct 6, 2024

For example, in Undertale, if you tried to find unreferenced assets in all groups UTMT would crash. This fixes that by using just a try catch.

Description

Old error:
old error

Caveats

Notes

For example, in Undertale, if you tried to find unreferenced assets in all groups UTMT would crash. This fixes that.
@zivmaor
Copy link
Contributor

zivmaor commented Oct 6, 2024

I couldn't reproduce the bug on the latest commit. This might have been fixed by PR #1923. Please check if you can reproduce the bug on the latest commit (caf0412)

@maxiterr1
Copy link
Author

Yes, I encountered the bug on the latest commit (caf0412). Later I'll comment attaching a video recreating the bug.

@maxiterr1
Copy link
Author

maxiterr1 commented Oct 7, 2024

Before:
https://github.com/user-attachments/assets/ea49f7c2-2a85-44fd-b8a7-b6fe270f67a6

After:
https://github.com/user-attachments/assets/66784627-43aa-4653-9c1c-676e143f9717

There's a problem with my code that I noticed just now: It doesn't find unused strings.

@zivmaor
Copy link
Contributor

zivmaor commented Oct 7, 2024

I checked with Undertale version 1.08 and that's why I couldn't reproduce the bug.
Rechecked with 1.001 and the bug happened.
When I have time I'll look into it and try to find a more permanent solution.

@zivmaor
Copy link
Contributor

zivmaor commented Oct 8, 2024

I created a more permanent fix for this in PR #1947. Thank you for finding this bug.

@maxiterr1
Copy link
Author

Thank you for fixing it!

@colinator27
Copy link
Member

Closing, as this is superseded by #1947

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

Successfully merging this pull request may close these issues.

3 participants