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

Windows Explorer crash on Windows 7 x64 #286

Closed
60fpshacksrock opened this issue Dec 17, 2020 · 20 comments
Closed

Windows Explorer crash on Windows 7 x64 #286

60fpshacksrock opened this issue Dec 17, 2020 · 20 comments
Assignees
Labels
Milestone

Comments

@60fpshacksrock
Copy link

60fpshacksrock commented Dec 17, 2020

Problem is happening with version 1.7.3

The crash happens when say, trying to open a psx bin file with something such as pcsxr.
Though it's not related. Looking at the file in properties>ROM Properties or hovering
over it with the mouse causes no problem either. It happens when a program uses a
different windows explorer dialog menu.

It crashes when you try to scroll down, say on the desktop for instance.

I get a "COM Surrogate has stopped working".
Here is the problem signature if it helps:

Problem Event Name: BEX
Application Name: DllHost.exe
Application Version: 6.1.7600.16385
Application Timestamp: 4a5bc6b7
Fault Module Name: StackHash_0a9e
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 00000000
Exception Offset: 00a7ba78
Exception Code: c0000005
Exception Data: 00000008
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

@60fpshacksrock 60fpshacksrock changed the title Windows Explorer crash on WIndows 7 x64 Windows Explorer crash on Windows 7 x64 Dec 17, 2020
@GerbilSoft GerbilSoft self-assigned this Mar 14, 2021
@GerbilSoft GerbilSoft added the bug label Mar 14, 2021
@GerbilSoft
Copy link
Owner

v1.7.2 fixed a crash bug when parsing some PlayStation disc images. What version of rom-properties do you have set up?

If you're using v1.7.3 or a nightly build, can you narrow down which specific PlayStation disc image is causing the crash?

@60fpshacksrock
Copy link
Author

60fpshacksrock commented Mar 15, 2021

As far as I can remember, any game. As said above, it does not crash with the normal explorer mode.
I have since started to use version 1.4.1. Though now, after re-installing 1.7.3 it wont show any info
for PSX disc images
game

and causes pcsxr's ISO open dialog to just exit. I may have crash reporting turned off on Windows 7 now
but it does not matter as far as I know.
It also does not have any ROM Properties info when right-clicking properties in Windows 7.game2 This new issue though may be with something I have installed call icaros, which gives thumbnails to media files that Windows
would not. I have also dumped this game several times before to make sure its MD5 checksum (A8CE602F3A846ADBBFAE7770CD33AFAB) matches the redump.

Also I should probably note that I have an unofficial Windows XP Luna theme running but I don't think it
should causes any issues.

@SaraJLeen
Copy link

SaraJLeen commented May 19, 2021

I've had issues with crashing on PS1 bins and some other types of ISOs/CSOs in rom-properties as well, on Windows 10 x64. I also have Icaros installed but that seems to be the only overlap. I ultimately worked around it by disabling rom-properties' support for those files on my end, but I definitely would rather I didn't have to.

@GerbilSoft
Copy link
Owner

GerbilSoft commented May 20, 2021

Please test the latest nightly build and see if it crashes on those disc images:
https://ci.appveyor.com/project/GerbilSoft/rom-properties

Extract the x64 release package, open an admin command prompt, cd to the directory, and run regsvr32 rom-properties.dll.

If it works, then I'll look into releasing v1.8 this weekend.

@60fpshacksrock
Copy link
Author

60fpshacksrock commented May 21, 2021

Thank you.

It works. But I've had explorer restart twice.

By the way this tool is very neat. It sort of reminds me of (even though I don't use it unless I have to) Linux distributions as they tell certain ROM types. But this tool is even better and more advanced as it gives more internal file information as well as thumbnails for certain files that have banner or icon data such as GameCube and NDS respectively among others.

Also I was wondering (not asking) if you had maybe eventually thought about adding PS3 PARAM.SFO support.

@SaraJLeen
Copy link

I haven't had any issues since trying the nightly build.

@cheatfreak47
Copy link

I was just having crashes with 1.7.3 on the release build but since switching to the latest nightly, no longer getting crashes.
my crashes were in pcsx2's file picker for the record

@60fpshacksrock
Copy link
Author

Do the nightly builds have to be compiled or is there a link to pre-compiled builds?

@GerbilSoft
Copy link
Owner

Nightly builds are available here: https://ci.appveyor.com/project/GerbilSoft/rom-properties

Note that they're not packaged the same way as the release builds. Among other things, 32-bit and 64-bit are built separately. (Use the MSVC 2015 release builds.)

@60fpshacksrock
Copy link
Author

60fpshacksrock commented Jul 13, 2021

Thank for the link.

My apologies for not scrolling back up the page to see the link you gave me before. Now I feel silly.

@NotaInutilis
Copy link

Hi, I've got a crash that might be related with PSP .cso files. I'm on Windows 10 x64 with 1.8.1 and as soon as I open the PSP folder full of CSO files, the explorer window crashes.

@GerbilSoft
Copy link
Owner

Can you narrow down which specific CSO file is crashing? (You may need to use cmd to move files between folders.)

@NotaInutilis
Copy link

After some quick testing, I can narrow it down to: all of them. I've converted them all with maxcso on default settings.

@GerbilSoft
Copy link
Owner

Obviously that's not good. I'll test this out later today and see what's causing the problem.

@GerbilSoft
Copy link
Owner

$ rpcli "300 - March to Glory (USA).cso"
== Reading file '300 - March to Glory (USA).cso'...
Floating point exception

Well, that's certainly something. (Division by zero!)

@GerbilSoft
Copy link
Owner

Found it. While reworking how zlib was detected, I accidentally added a break; statement here:

https://github.com/GerbilSoft/rom-properties/blob/master/src/libromdata/disc/CisoPspReader.cpp#L246

CISO and ZISO formats are very similar, except ZISO uses LZ4, while CISO usually uses zlib. (CISOv2 might use LZ4.) Hence, I had both formats using the same header initialization code. The extra break; prevents the header from being initialized for CISO (CSO) files, which results in the block size remaining as 0.

I'll fix this and release v1.8.3 for all platforms later tonight.

@NotaInutilis
Copy link

Good job! Thanks!

@GerbilSoft
Copy link
Owner

GerbilSoft commented Aug 3, 2021

One thing that I definitely need to do for v1.9.0 is add a test suite with various file formats other than textures/icons/etc. This would include e.g. sample ISO images compressed with CSO, ZSO, and JSO, and verifying that they can be read correctly. If I had this test suite in v1.8.0, this error would have been caught much earlier, since the tests would crash.

GerbilSoft added a commit that referenced this issue Aug 4, 2021
…ion by zero when reading CISO/CSO images.

This fixes a regression from commit 4c7232f.
(Use get_crc_table() instead of zlibVersion() for zlib delayload.)

This bug was reported by @NotaInutilis in issue #286.
@GerbilSoft
Copy link
Owner

Fixed in v1.8.3.

@GerbilSoft GerbilSoft added this to the 1.8 milestone Aug 4, 2021
@60fpshacksrock
Copy link
Author

60fpshacksrock commented Jan 9, 2022

@GerbilSoft
A new issue has arisen.

Now it is crashing explorer simply by clicking on PSP ISO's. I even updated to the latest version and I am getting the same thing.

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

No branches or pull requests

5 participants