PCSX2 / pcsx2

PCSX2 - The Playstation 2 Emulator
https://pcsx2.net
GNU General Public License v3.0
11.58k stars 1.6k forks source link

[BUG]: "CDVD: chd_open return error: unsupported format" for CHD's created with createdvd #9771

Closed monyarm closed 1 year ago

monyarm commented 1 year ago

Describe the Bug

Attempting to run a CHD created with chdman's createdvd command chdman createdvd -i Disney\'s\ Donald\ Duck\ -\ Quack\ Attack\ \(Europe\)\ \(En,Fr,De,Es,It\).iso -o Disney\'s\ Donald\ Duck\ -\ Quack\ Attack\ \(Europe\)\ \(En,Fr,De,Es,It\).chd results in the error CDVD: chd_open return error: unsupported format.

Reproduction Steps

  1. Create a CHD using createdvd instead of createcd.
  2. Attempt to run it with PCSX2

Expected Behavior

The expected behaviour would be for the game to run, like when using a CHD created with createcd.

PCSX2 Revision

1.7.4610

Operating System

Linux (64bit) - Specify distro below

If Linux - Specify Distro

Gentoo

Logs & Dumps

Program Path: /usr/bin/pcsx2
AppRoot Directory: /usr/share/pcsx2
DataRoot Directory: /home/monyarm/.config/PCSX2
Resources Directory: /usr/share/pcsx2/resources
Loading config from /home/monyarm/.config/PCSX2/inis/PCSX2.ini.
BIOS Directory: /home/monyarm/.config/PCSX2/bios
Snapshots Directory: /home/monyarm/.config/PCSX2/snaps
Savestates Directory: /home/monyarm/.config/PCSX2/sstates
MemoryCards Directory: /home/monyarm/.config/PCSX2/memcards
Logs Directory: /home/monyarm/.config/PCSX2/logs
Cheats Directory: /home/monyarm/.config/PCSX2/cheats
Patches Directory: /home/monyarm/.config/PCSX2/patches
Covers Directory: /home/monyarm/.config/PCSX2/covers
Game Settings Directory: /home/monyarm/.config/PCSX2/gamesettings
Cache Directory: /home/monyarm/.config/PCSX2/cache
Textures Directory: /home/monyarm/.config/PCSX2/textures
Input Profile Directory: /home/monyarm/.config/PCSX2/inputprofiles
Video Dumping Directory: /home/monyarm/.config/PCSX2/videos
[    0.0065] PCSX2 Nightly - v1.7.4610 Compiled on Jun 22 2023
[    0.0065] Savestate version: 0x9a370000
[    0.0065] 
[    0.0065] Host Machine Init:
[    0.0065]    Operating System =  Linux
[    0.0065]    Physical RAM     =  64256 MB
[    0.0066]    CPU name         =  AMD Ryzen 7 5800X 8-Core Processor             
[    0.0066]    Vendor/Model     =  AuthenticAMD (stepping 02)
[    0.0066]    Logical Cores    =  16
[    0.0066]    x86PType         =  Standard OEM
[    0.0066]    x86Flags         =  178bfbff 7ed8320b
[    0.0066]    x86EFlags        =  2fd3fbff
[    0.0066] 
[    0.0066] x86 Features Detected:
[    0.0066]    AVX AVX2
[    0.0066] 
[    0.0066] Main Memory Manager              @ 0x000055DE30000000 -> 0x000055DE44000000 [320mb]
[    0.0066] Code Memory Manager              @ 0x000055DE44000000 -> 0x000055DE57100000 [305mb]
[    0.0067] Reserving memory for recompilers...
[    0.0067]    R5900 Recompiler Cache           @ 0x000055DE44000000 -> 0x000055DE48000000 [64mb]
[    0.0067]    R3000A Recompiler Cache          @ 0x000055DE48000000 -> 0x000055DE4A000000 [32mb]
[    0.0068]    Micro VU0 Recompiler Cache       @ 0x000055DE4F000000 -> 0x000055DE53000000 [64mb]
[    0.0069]    Micro VU1 Recompiler Cache       @ 0x000055DE4B000000 -> 0x000055DE4F000000 [64mb]
[    0.0070]    VIF0 Unpack Recompiler Cache     @ 0x000055DE4A000000 -> 0x000055DE4A800000 [8mb]
[    0.0070]    VIF1 Unpack Recompiler Cache     @ 0x000055DE4A800000 -> 0x000055DE4B000000 [8mb]
[    0.0070]    GS Software Renderer             @ 0x000055DE53100000 -> 0x000055DE57100000 [64mb]
[    0.0070] Allocating host memory for virtual systems...
[    0.0070]    EE Main Memory                   @ 0x000055DE30000000 -> 0x000055DE32A84000 [42mb]
[    0.0070]    IOP Main Memory (2mb)            @ 0x000055DE34000000 -> 0x000055DE34211000 [2mb]
[    0.0070]    VU0/1 on-chip memory             @ 0x000055DE38000000 -> 0x000055DE3800A000 [40kb]
[    0.0079]    Fastmem area: 0x7f62b8000000 - 0x7f63b7ffffff
[    0.2094] Loading BIOS...
[    0.2094] Searching for a BIOS image in '/home/monyarm/.config/PCSX2/bios'...
[    0.2096] BIOS Found: USA     v01.60(07/02/2002)  Console 20020207-164243
[    0.2096] Using BIOS '/home/monyarm/.config/PCSX2/bios/scph39001.bin' (USA     v01.60(07/02/2002)  Console 20020207-164243 USA)
[    0.2096] BIOS Found: USA     v01.60(07/02/2002)  Console 20020207-164243
[    0.2118] BIOS rom1 module not found, skipping...
[    0.2118] BIOS rom2 module not found, skipping...
[    0.2118] Opening CDVD...
[    0.2276] CDVD: chd_open return error: unsupported format
[    0.2276] ReportErrorAsync: Startup Error: Failed to initialize CDVD.
[    0.2276] Applying settings...
[    3.1186] Releasing host memory for virtual systems...
refractionpcsx2 commented 1 year ago

You are on a very old version, please upgrade, newer versions support it already.

monyarm commented 1 year ago

1.7.4906, same issue EDIT: Nevermind, Gentoo uses the system libchdr when building pcsx2, and it seems to be using an older version.