GreaterMuta Posted January 17, 2022 Share Posted January 17, 2022 So i've stumbled upon an issue with my launchbox setup. If i play a PS2 game i have zipped it will extract it, load it, and i can play it as expected. The problem is if i then try to play the game again i get an error return from 7z. Now i've worked out that it's down to the extracted ISO sitting in the 7z temp folder, as once i delete this the game will extract and load as wanted. Obviously this is a problem as having to manually go into that folder and delete an extracted ISO is a huge pain. Honestly i don't want there to be a large number of extracted ISOs sitting there either (is this limited?). I wouldn't mind if it retained the last 5 played for faster loading, but it's actively preventing me from being able to play. I also noticed when looking into this that i had 6 instances of Retroarch running in the background when i looked at task manager. I assume these are from previous games i played, but why are they still there 2hrs after i closed them? Feel like i've got something setup incorrectly here, so any advice would be appreciated. Quote Link to comment Share on other sites More sharing options...
fraganator Posted January 17, 2022 Share Posted January 17, 2022 Hi @GreaterMuta, I'd say RetroArch not exiting correctly is the main cause of the issue. LaunchBox won't clear the temp folder while it still thinks a game is being played (ie it can see the RetroArch process running). And when it does attempt to override the files when you play a 2nd time, 7z throws an error because RetroArch probably has a lock on those files. As to why it isn't exiting correctly, I'm not sure. Is it only happening with PS2 games? Did you modify the Exit Script for RetroArch in the emulator settings? LaunchBox only keeps the current game in the temp folder. If you're looking to keep a few recently played games extracted, I've written a plugin called Archive Cache Manager which does exactly that, skipping the extraction time when launching the game a second time. I suspect the plugin will also help with your issue trying to play the game a 2nd time, though it would be good to resolve the RetroArch exiting issue. Quote Link to comment Share on other sites More sharing options...
GreaterMuta Posted January 17, 2022 Author Share Posted January 17, 2022 Thank you for the reply! I haven't modified the exit script in any way and the issue wasn't happening with other disc based platforms i have setup in a similar fashion (zipped archives to be extracted on launch). So the issue definitely seems linked to the PS2 setup rather than a general issue. I'm using the PCSX2 core with Retroarch, so maybe this is causing the issue? Quote Link to comment Share on other sites More sharing options...
fraganator Posted January 17, 2022 Share Posted January 17, 2022 It could possibly be the PCSX2 core, given other cores work. I've only used PCSX2 standalone but haven't had any problems. Maybe try enable both verbose and log to disk logging options in RetroArch (under Settings -> Logging), and see if there's errors in the log file when starting and exiting a PS2 game (it should be in the RetroArch\logs folder). Quote Link to comment Share on other sites More sharing options...
GreaterMuta Posted January 17, 2022 Author Share Posted January 17, 2022 13 hours ago, fraganator said: It could possibly be the PCSX2 core, given other cores work. I've only used PCSX2 standalone but haven't had any problems. Maybe try enable both verbose and log to disk logging options in RetroArch (under Settings -> Logging), and see if there's errors in the log file when starting and exiting a PS2 game (it should be in the RetroArch\logs folder). In a bizarre twist which i can't explain, the issue has stopped happening. The system hasn't been shutdown or anything either as i left it updating art assets overnight. But i turned on logging today as you suggested to see if i could get more info and it's failing to repeat the same issue for whatever reason, even after the exact same thing happening all night. I'm happy its working, but more confused than i was haha 1 Quote Link to comment Share on other sites More sharing options...
fraganator Posted January 17, 2022 Share Posted January 17, 2022 5 hours ago, GreaterMuta said: In a bizarre twist which i can't explain, the issue has stopped happening. The system hasn't been shutdown or anything either as i left it updating art assets overnight. But i turned on logging today as you suggested to see if i could get more info and it's failing to repeat the same issue for whatever reason, even after the exact same thing happening all night. I'm happy its working, but more confused than i was haha Glad it's working now. I had a quick look around for the issue, and it appears to be a known bug in the PCSX2 core. Hopefully it gets fixed soon. Quote There’s a bug that can happen right now upon closing content or exiting RetroArch with the PCSX2 core on Windows – the RetroArch process might not completely cleanly shut itself off and you might still be able to see a 0% CPU process remaining in the Task Manager. We have not been able to figure out how to fix that yet as the PCSX2 codebase is a definite case of ‘here be dragons’, but for now when this happens, you can just bring up the Task Manager and close it manually. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.