OLEGSHA / Progressia

A GPL sandbox survival game
GNU General Public License v3.0
10 stars 4 forks source link

ALSOFT messages in stderr since LWJGL 3.3.0 #27

Open OLEGSHA opened 2 years ago

OLEGSHA commented 2 years ago

Since the LWJGL library has updated from 3.2.3 to 3.3.0, the following message has begun appearing in the error stream:

    [ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)
    [ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1)

The OS is Debian 11, launching from Eclipse IDE.

There are no obvious effects at the moment. OpenAL code in ru.windcorp.progressia.client.audio should probably be checked against the documentation.

nullkat commented 2 years ago

Will be fixed ASAP

nullkat commented 2 years ago

This is Linux permissions problem. This warning doesn't occur when running Progressia with sudo.

nullkat commented 2 years ago

Ubuntu 21.10 Eclipse has the same problem. I haven't got the solution yet.

OLEGSHA commented 2 years ago

I think we're using the API wrong, and in some cases LWJGL/OpenAL suppresses the error instead of reporting it. I mean, it can't be a fundamental issue with OpenAL, right?

nullkat commented 2 years ago

It can be. But my IDE says that this is unhandled exception. Audio manager definitely needs some changes.