RetroFE forums

General Category => General Discussion & Help => Topic started by: Agent47 on January 28, 2017, 04:21:22 PM

Title: Using WASAPI for PortAudio in MAME 182 causes RetroFE to hang/crash on exit
Post by: Agent47 on January 28, 2017, 04:21:22 PM
Hey guys, I think I stumbled onto a bug. After updating to MAME 182 and utilizing PortAudio in MAME using the WASAPI RetroFE will hang indefinitely and crash when trying to exit RetroFE. There are no issues with the emulator or RetroFE regarding sound, that all works fine. When I go to exit RetroFE it hangs on a black screen (5+min) and if I press Escape it will crash.

Using another API for PortAudio or disabling PortAudio in MAME allows RetroFE to close normally. I checked the log and there doesn't seem to be any errors, the last line written is "[SDL] DeInitializing" which is where it hangs, RetroFE never exits. This occurs on the 0.7.20b3 build and the 0.7.20b4 build posted today.
Title: Re: Using WASAPI for PortAudio in MAME 182 causes RetroFE to hang/crash on exit
Post by: Pieter Hulshoff on January 28, 2017, 05:49:06 PM
To be honest: I don't even know what WASAPI is, but I'm pretty sure this issue will exist with every RetroFE version. My guess is that the de-initialization hangs, since both of them use SDL. I will see what I can find.

... just read it's Windows only; that makes debugging a tad more difficult for me ...
Title: Re: Using WASAPI for PortAudio in MAME 182 causes RetroFE to hang/crash on exit
Post by: catelite on February 01, 2017, 08:27:12 PM
WASAPI is the latest and greatest way windows manages audio devices so I imagine this is a possible conflict with SDL. I've used both a fair bit so will see if I can repro the problem and see what's going on