rickomax / psxprev

PSXPREV - Playstation (PSX) Files Previewer/Extractor
BSD 2-Clause "Simplified" License
193 stars 10 forks source link

System.AccessViolationException when scanning any extracted file #40

Closed UberNooga closed 8 months ago

UberNooga commented 2 years ago

Using the latest release, I can't use this program at all as it crashes with the following error any time I try to scan anything. Tried debug mode and it doesn't show the error message but still crashes. Also tried running as admin and in compatibility mode to no avail.

I'm on Windows 10 and my .NET framwork is 4.8.4084.0 if that helps.

PSXPrevError

trigger-segfault commented 10 months ago

It's possible this was being caused by the scene control in the preview window not being created on the main thread. In the next upcoming release, the preview window will always be created on the main thread which should hopefully solve this. But I'm not entirely sure since I couldn't find any other people having similar issues with OpenTK.

I'll write another comment when the release is up.

trigger-segfault commented 10 months ago

The latest release with the changes is up.

However, based on issue #170, have you tried running PSXPrev since restarting your computer?

UberNooga commented 9 months ago

Alright, so I've tried again on the new version and now I can't even get the scanner window open (have restarted pc). I get this error: image

Get the same thing when using command line too.

trigger-segfault commented 9 months ago

Alright, thanks for checking in again. The scanner window doesn't open now, because the scanner window was changed to open after the preview window (which makes it easier to perform multiple scans). So that's expected.

I'm wondering if SDL2 shouldn't be the one trying to create the graphics context. I've attached a build with two different exe versions that try to solve that by telling the program how to setup the graphics context. Hopefully this solves the issue. 🤞

PSXPrev_TestBackends.zip

UberNooga commented 9 months ago

Tested, both of them work. Thanks!

trigger-segfault commented 8 months ago

This bug has been fixed in the latest public release: https://github.com/rickomax/psxprev/releases/tag/0.9.9.2