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

Try to solve the error issue:System.OutOfMemoryException #4596

Open
bancog52 opened this issue Nov 28, 2024 · 1 comment
Open

Try to solve the error issue:System.OutOfMemoryException #4596

bancog52 opened this issue Nov 28, 2024 · 1 comment

Comments

@bancog52
Copy link

Hearthstone HDT plugin frequently crashes, the error window cannot be opened. Checking the Crash Reports file, the error message shows:System.OutOfMemoryException: There is not enough memory to continue the execution of the program.
Error status: During plugin operation, it suddenly freezes and requires a restart. After running for two or three rounds, it freezes again. Reinstalling HDT, Hearthstone, setting permissions, running antivirus, updating .NET, and even reinstalling the system have all been ineffective.
图片1
I checked the Windows system logs
图片3
图片4

Then I analyzed the possible causes
1、Insufficient system memory or improper application memory management. Ensure the system has enough available memory, close unnecessary applications
2、The exception occurs during WPF rendering process, possibly related to graphics resource management
3、Check for memory leaks or unnecessary resource allocation
4、Make sure you're using the latest version of the software

Finally, after various attempts, I discovered it was a WPF issue.
By disabling hardware acceleration, the software no longer uses the GPU but instead uses the CPU for rendering, and I found this resolved the issue.
image

I found that many people have encountered this issue but haven't solved it. I'm not sure if this solution will work for everyone. I wonder if this problem can ultimately be resolved at the code level.

@beheh
Copy link
Contributor

beheh commented Dec 1, 2024

Hi there, thanks for the report and the investigation!

I don't we can generally propose or automatically disable hardware acceleration, but this seems like it's indicative of some kind of behaviour in WPF, either because it's a bug or because HDT is triggering a bad behaviour. Nonetheless I'll see if we can add this to some FAQ or an error dialog.

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

No branches or pull requests

2 participants