xLightsSequencer / xLights

xLights is a sequencer for Lights. xLights has usb and E1.31 drivers. You can create sequences in this object oriented program. You can create playlists, schedule them, test your hardware, convert between different sequencers.
GNU General Public License v3.0
553 stars 209 forks source link

2023.08 Crashes negotiating multiple audio devices #3811

Closed Darzoom closed 9 months ago

Darzoom commented 1 year ago

Describe the bug Xlights has a critical error and crashes when negotiating 2 audio devices.

2023-05-15 09:56:04,232 4713743872 log_base [INFO] SDL reinitialised. 2023-05-15 09:56:04,232 4713743872 log_base [DEBUG] SDL Audio Stop on device 2. 2023-05-15 09:56:04,233 4713743872 log_base [DEBUG] SDL Reopen 2023-05-15 09:56:04,233 4713743872 log_base [DEBUG] Pausing audio device 2. 2023-05-15 09:56:04,233 4713743872 log_base [DEBUG] Result '' 2023-05-15 09:56:04,233 4713743872 log_base [DEBUG] Closing audio device 2. 2023-05-15 09:56:04,332 4713743872 log_base [DEBUG] Result '' 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Audio device opened -> Device: 2. 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Current audio driver coreaudio 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Output devices 5. Input devices 0. 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Audio device '' opened 2. Device specification: 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Audio device status (2) Paused 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Size Asked 1024 Received 1024 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Channels Asked 2 Received 2 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Format Asked 0x8010 Received 0x8010 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Bitsize Asked 16 Received 16 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Float Asked False Received False 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Big Endian Asked False Received False 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Signed Asked True Received True 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Frequency Asked 48000 Received 48000 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Padding Asked 0 Received 0 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Samples Asked 256 Received 256 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] Silence Asked 0 Received 0 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] SDL Audio Pause on device 2. 2023-05-15 09:56:04,348 4713743872 log_base [DEBUG] ID 0 Seeking to 0MS ... calculated audio_len: 24650240 2023-05-15 09:56:04,348 4713743872 log_base [INFO] SDL reinitialised. 2023-05-15 09:56:11,695 4713743872 log_base [DEBUG] SDL Audio Stop on device 2. 2023-05-15 09:56:11,695 4713743872 log_base [DEBUG] SDL Reopen 2023-05-15 09:56:11,695 4713743872 log_base [DEBUG] Pausing audio device 2. 2023-05-15 09:56:11,695 4713743872 log_base [DEBUG] Result '' 2023-05-15 09:56:11,696 4713743872 log_base [DEBUG] Closing audio device 2. 2023-05-15 09:56:11,698 123145524871168 log_base [CRIT] Crashed: Fatal exception occurred. 2023-05-15 09:56:14,063 123145524871168 log_base [CRIT] xLights version 2023.08 Time: 2023-05-15T09:56:14 To Reproduce On a Mac, have both internal speaker and external sound connected to a USB hub running. Switch between the two audio outputs with xlights running. Make a change to any part of a sequence or play it.

Expected behavior To be able to run 2 audio devices. I run the external speaker for the Zoom Room to help others and the internal speaker for xlights.

Versions (please complete the following information):

Additional context This was occurring on version .03 as well but seems to have been fixed up to .7.

Attachments xLightsProblem.zip

If you would prefer not to post your sequences publically please say so and be ready to PM them to one of the developers when asked. I would rather PM sequence when asked.

dkulp commented 1 year ago

I haven't been able to reproduce this. :( With Catalina on my M2, while a sequence is playing, I can flip between the MacBook Pro speakers, the Speakers in my monitor, and a USB soundblaster without problem. It continues to play on the newly selected device. I can even start playing on the soundblaster and physically pull it out of the USB port and it flips over to the monitor speakers immediately, no crashing.

Darzoom commented 1 year ago

Okay. I don’t know what else I can send to show what’s happening. The log shows it not restarting the audio device. I know the Mac OS is responsible for that and not Xlights. I’ll try reloading all my audio drivers and see if it clears up. For now I just not in the Zoom Room when sequencing. Thanks for looking into it and sorry you can’t reproduce.

On May 16, 2023, at 7:07 AM, Daniel Kulp @.***> wrote:

I haven't been able to reproduce this. :( With Catalina on my M2, while a sequence is playing, I can flip between the MacBook Pro speakers, the Speakers in my monitor, and a USB soundblaster without problem. It continues to play on the newly selected device. I can even start playing on the soundblaster and physically pull it out of the USB port and it flips over to the monitor speakers immediately, no crashing.

— Reply to this email directly, view it on GitHub https://github.com/smeighan/xLights/issues/3811#issuecomment-1549455431, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATP2FZHX2CEWTXRRJBOCJXLXGNNW5ANCNFSM6AAAAAAYCIPADI. You are receiving this because you authored the thread.

cbennett6008 commented 1 year ago

xLights_dbgrpt-13983-20230928T195756.zip @dkulp does a debug report of this happening help at all? Edit, just noticed Darzoom posted one in his original. Happened just a minute ago, picking up Airpods to listen to a video, and xlights was open in the background. (all the Apple upload to developer stuff is turned on too if that helps.