Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
None
-
5.12.8
-
None
-
Ubuntu Focal
Description
In case of Pipewire the scheduler policy is "SCHED_RESET_ON_FORK | SCHED_FIFO"
In this case QThread::setPriority() fails with
"QThread::setPriority: Cannot determine scheduler priority range"
this is because the sub-call "sched_get_priority_max()" returns -1 with SCHED_RESET_ON_FORK set.
Without the flag everything works flawlessly.
This has been tested on Ubuntu Focal and Qt 5.12.8 but the code is still the same in the "dev" branch so I assume that more recent versions are also affected.