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

7z crashing issues #5177

Closed
crapnicki opened this issue Jul 16, 2017 · 2 comments
Closed

7z crashing issues #5177

crapnicki opened this issue Jul 16, 2017 · 2 comments

Comments

@crapnicki
Copy link

crapnicki commented Jul 16, 2017

Running RetroArch on Windows 10 to test out things for my Lakka build.

RetroArch [INFO] :: === Build =======================================
Capabilities: MMX MMXEXT SSE1 SSE2 SSE3 SSSE3 SSE4 SSE4.2 AVX AES
Built: Jun  1 2017
RetroArch [INFO] :: Version: 1.6.0
RetroArch [INFO] :: Git: a4358de
RetroArch [INFO] :: =================================================

In my testing, it appears that 7z extraction will crash during processing of 7z archives. When trying to load a PSX game in Beetle PSX HW, RetroArch will load the archive and look to be launching the ROM, but it will crash RetroArch with an error.

The debug window will look something like this:

RetroArch [libretro INFO] :: Loading D:\test\CD (Disc 1).cue...
RetroArch [libretro ERROR] :: Error opening file:
D:\test\CD (Disc 1).bin
No such file or directory
terminate called after throwing an instance of 'MDFN_Error'

debug.log shows:

Attempt to read LBA 16, >= LBA 0
CDIF Raw Read error

In the directory, the .cue file will be there, but not the .bin file.

Doing some quick tests, as I thought, initially, it might be because of special characters in the file name:

  • Renamed 7z archive from CD (Disc 1).7z to CD Disc 1.7z (removed parentheses): doesn't work
  • Renamed 7z archive from CD (Disc 1).7z to CD(Disc1).7z (removed spaces): doesn't work
  • Renamed 7z archive from CD (Disc 1).7z to CDD1.7z (removed both): doesn't work
  • Extracted the .cue and .bin files first, before loading 7z the archive: works
  • Extracted the 7z archive and repackaged as a zip with the same name (original file name): works

So, it looks like to me that RetroArch's 7z lib is barfing on 7z archives for some reason.

@RobLoach
Copy link
Member

RobLoach commented Jul 16, 2017

.bin and .iso disc content has always been an issue in archives. It's recommended to keep them extracted in different folders instead. There's a related issue: #4331 Extract whole archives in some cases.

@andres-asm
Copy link
Contributor

#4331

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

No branches or pull requests

3 participants