defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

INFO:SOUND: Waiting for OpenAL device to complete ERROR:SOUND: Still buffers in OpenAL. Bailing. #2818

Open subsoap opened 4 years ago

subsoap commented 4 years ago

Getting this in a game using builtin audio left running for a while... audio stops working completely.

INFO:SOUND: Waiting for OpenAL device to complete
ERROR:SOUND: Still buffers in OpenAL. Bailing.
INFO:SOUND: Waiting for OpenAL device to complete
ERROR:SOUND: Still buffers in OpenAL. Bailing.
INFO:SOUND: Waiting for OpenAL device to complete
ERROR:SOUND: Still buffers in OpenAL. Bailing.
INFO:SOUND: Waiting for OpenAL device to complete
ERROR:SOUND: Still buffers in OpenAL. Bailing.
INFO:SOUND: Waiting for OpenAL device to complete
ERROR:SOUND: Still buffers in OpenAL. Bailing.
INFO:SOUND: Waiting for OpenAL device to complete
ERROR:SOUND: Still buffers in OpenAL. Bailing.
INFO:SOUND: Waiting for OpenAL device to complete
ERROR:SOUND: Still buffers in OpenAL. Bailing.
INFO:SOUND: Waiting for OpenAL device to complete
ERROR:SOUND: Still buffers in OpenAL. Bailing.
INFO:SOUND: Waiting for OpenAL device to complete
ERROR:SOUND: Still buffers in OpenAL. Bailing.
INFO:SOUND: Waiting for OpenAL device to complete
subsoap commented 4 years ago

Note there was no error like

ERROR:GAMESYS: A sound could not be played since the sound buffer is full (32).
britzl commented 4 years ago

Does it happen all the time? How long did you have to leave it running?

subsoap commented 4 years ago

It has happened a few times after a while (not sure exact times but more than 30 mins at least, it happened while I was edited layouts in an in engine level editor), it might be related to looping sounds somehow. I'll do more tests.

subsoap commented 3 years ago

It still happens sometimes when closing the game on Windows 10 with the top right X. Have to force close. Happened twice today on 174.

paweljarosz commented 3 years ago

It also happened to me, when game was left for a moment (but max 5 min, in Editor build, not a bundled). I suppose the problem might occurred when I unplugged headphones.

subsoap commented 3 years ago

Closed the dupe. Like @paweljarosz says this seems to be related to changing audio device while the engine is running and not handling the buffer change in OpenAL properly.

https://github.com/defold/defold/issues/5479