Secretchronicles / TSC

An open source two-dimensional platform game.
https://secretchronicles.org/
GNU General Public License v3.0
205 stars 49 forks source link

Debian 10 sound error #665

Closed Quintus closed 5 years ago

Quintus commented 5 years ago

Running TSC from devel on Debian 10 opens the game window, but everything is unbearably slow while tons of copies of this error are dumped to the console:

An internal OpenAL call failed in SoundStream.cpp(329).
Expression:
   alGetSourcei(m_source, AL_BUFFERS_PROCESSED, &nbProcessed)
Error description:
   AL_INVALID_OPERATION
   The specified operation is not allowed in the current state.

Looks like a sound problem. /cc @refi64

refi64 commented 5 years ago

Hmm so I was googling this a bit, seems to be a pretty common error (which is great because OpenAL errors seem to be quite terrible).

From what I gathered, these can be some of the causes:

Out of curiosity, was this on a clean build? I'm kinda leaning towards cause 1 here just because I haven't seen this before, but OTOH it wouldn't surprise me if different systems / configurations have different limits on how many sounds can be played at once.

Also, are all the errors 100% identical, not just similar?

On Sat, Nov 9, 2019 at 11:39 AM Marvin Gülker notifications@github.com wrote:

Running TSC from devel on Debian 10 opens the game window, but everything is unbearably slow while tons of copies of this error are dumped to the console:

An internal OpenAL call failed in SoundStream.cpp(329). Expression: alGetSourcei(m_source, AL_BUFFERS_PROCESSED, &nbProcessed) Error description: AL_INVALID_OPERATION The specified operation is not allowed in the current state.

Looks like a sound problem. /cc @refi64 https://github.com/refi64

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Secretchronicles/TSC/issues/665?email_source=notifications&email_token=AAM4YSOM2BPJ6DLOSLSDSHTQS3YVNA5CNFSM4JLIYRPKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HYGARTQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM4YSIMR5BN4CSGOKVI3X3QS3YVNANCNFSM4JLIYRPA .

-- Ryan (ライアン) Yoko Shimomura, ryo (supercell/EGOIST), Hiroyuki Sawano >> everyone else https://refi64.com/

xet7 commented 5 years ago

I have not seen this happen on Debian testing and sid, and Linux Mint. Is this some new problem?

BR, xet7

Quintus commented 5 years ago

It turns out that this was a problem on my side. Pulseaudio was not started, because start-pulseaudio-x11 crashed instead of starting pulseaudio on startup. Expressly starting pulseaudio with pulseaudio --start instead on i3 session start makes pulseaudio start. Probably related to me not having ConsoleKit installed, at least that's what pactl info indicates when pulseaudio is not running.

With pulseaudio running, I have no errors anymore and TSC runs just fine. I am sorry for the noise.