This issue has been really sporadic to reproduce, so I haven’t made an issue report about it yet. Figured I’d bring it up here first to see if anyone else has run into this. Randomly, often during opening cutscenes, I’ve found CD games compressed as CHD in both Beetle PCE and Genesis Plus GX causing RetroArch to become unresponsive for around a minute. Video freezes, sound stops and I can’t bring up the menu or close RA normally. If I don’t try to bring up the task manager or tab out, it’ll start working again after a minute or so.
I tried enabling log to file to see if it had anything useful, but a Beetle PCE log that had a freeze compared to one that didn’t were pretty much identical. I just tried a redump bin/cue of Akumajou Dracula X: Chi no Rondo and couldn’t get it to freeze, but got one with a CHD conversion of it during the opening cutscene. I’m not 100% certain it’s CHD related though, since it’s random enough where I’ve had runs of the CHD where I couldn’t reproduce a freeze.
Other games I’ve had it happen with are: Dungeon Explorer II, Gate of Thunder (PCE Version), Ys Book I & II, Lunar: The Silver Star and Sonic CD. It always seems to happen when redbook audio is playing, so maybe it could be something weird with FLAC playback from the CHDs. I haven’t managed to repro it with games that don’t use redbook, like Popful Mail or Lunar II.
I’m on Win10 with a fairly recent RA nightly (C0482ff2ea). The cores are pretty up to date too (GPGX: a8645fb, Beetle PCE: 1a3c6e3). I’ve been messing around with runahead lately, but I’ve had this happen with it disabled. I don’t use rewind. I thought to try disabling some stuff like sync to exact content refresh and max swap chain 2 (I’ve only tested using Vulkan). I wasn’t able to get a freeze with those off, but it could have just been luck.
Also, I haven’t had similar freezes with CHD games in Beetle PSX or Saturn. Maybe I haven’t tried a game for those systems that uses redbook audio.
I don’t remember running into this issue when I was testing games when CHD was first introduced. Unfortunately I don’t remember when it first started happening either. I think maybe sometime fall of last year I had it first happen in Lunar, but I thought it was just a problem with that game. Couldn’t repro it then and forgot about it until now when I was testing several games and had it happen in more of them.