Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to init SDL priority manager: SDL not found and Failed to set thread priority: per-thread setup failed #7036

Open
dedsecorg opened this issue Apr 16, 2020 · 17 comments
Labels

Comments

@dedsecorg
Copy link

dedsecorg commented Apr 16, 2020

Your system information

  • Steam client version (build number or date): Steamcmd 16.04.2020
  • Distribution (e.g. Ubuntu): Debian 10
  • Opted into Steam client beta?: No
  • Have you checked for system updates?: Yes

Please describe your issue in as much detail as possible:

As well as many others, and after some googlesearches, we get told that we should just ignore this messages, but it still is an error message, and i did not find it here..

Steps for reproducing this issue:

  1. Install Steamcmd on a fresh install
  2. Start Steamcmd
  3. Wait for the errors:
Loading Steam API...Failed to init SDL priority manager: SDL not found
Failed to set thread priority: per-thread setup failed
Failed to set thread priority: per-thread setup failed

You will also get this installing for example app_update 258550, but then you only will get this:
Failed to set thread priority: per-thread setup failed
I do get it 7 times in a row.

This should might not happen?

@lipoko
Copy link

lipoko commented May 30, 2020

This is an error caused by the absence of the 32-bit SDL library.

sudo apt install libsdl2-2.0-0:i386
solves the problem.

@TheP3di
Copy link

TheP3di commented Jun 2, 2020

Hi,
Same problem. It worked for me and thank you.

@biodunolans
Copy link

Thanks a lot! Solved for me too

r-pufky added a commit to r-pufky/steam that referenced this issue Aug 15, 2020
* Add SDL libraries for steam install, preventing new SDL errors
  ValveSoftware/steam-for-linux#7036
* Ensure steam user environment is setup correctly, updated instructions.
* Enforce set variables for startup scripts.
* Remove trace logging for startup scripts.
* Update examples.
@ashrafwbst
Copy link

Hi,
Same problem. It worked for me and thank you.

@linonetwo
Copy link

Why would this happened in a x64 machine?

@1robbi3
Copy link

1robbi3 commented Dec 14, 2020

This is an error caused by the absence of the 32-bit SDL library.

sudo apt install libsdl2-2.0-0:i386
solves the problem.

Kept getting the intruding message "Failed to init SDL priority manager: SDL not found" while I was typing commands AND while dedicated server files were downloading. So far this is working. Thank you human! (Ubuntu 20.04 LTS)

Created a GitHub account just to thank you!
(almost called it Reddit..)

jenrik added a commit to ShootingRange/csgo-container that referenced this issue Dec 26, 2020
This fixes an issue with steamcmd complaining about not being able to set the thread priority. The solution was found in ValveSoftware/steam-for-linux#7036
@giggles778
Copy link

Why would this happened in a x64 machine?

compatibility, not everything in the steam library is 64 bit.
team fortress classic comes to mind, halflife deathmatch as well.

"You've inherited 32-bit binaries, I was born into 16-bit DOS, was molded by 32-bit, I didn't see 64-bits until i was a man" - Nerd Bane

Though, the exclusion of i386 binaries does reinforce your position of why. I just stood up a server and ran into the same ting... maybe adding the package as a dependency in the repository would be nice since it seems canonical have the mindset to save 12 megabytes of space and not include both 64 and 32 bit binaries.

@wiardvanrij
Copy link

I fixed this on ubuntu16 with adding the package: libsdl2-2.0-0

@giggles778
Copy link

giggles778 commented Feb 15, 2021 via email

@koudy2
Copy link

koudy2 commented Feb 17, 2021

On Fedora 33 this can be solved by
dnf install SDL2.i686 SDL2.x86_64
If this is not enough then add -devel packages and/or _net and _net-devel for SDL2.

@netstx
Copy link

netstx commented Feb 25, 2021

Sorry to reopen this, but I get the following error when trying to install the package:

# apt install libsdl2-2.0-0:i386 Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package libsdl2-2.0-0:i386 E: Couldn't find any package by glob 'libsdl2-2.0-0' E: Couldn't find any package by regex 'libsdl2-2.0-0'

Am I missing the i386 source?

@kisak-valve
Copy link
Member

Hello @netstx, check if Debian's multi-arch support is enabled with dpkg --print-architecture && dpkg --print-foreign-architectures. On my Ubuntu test box, this command gives me:

amd64
i386

If multi-arch is disabled, then it would only have amd64 and you'd want to enable it with something like

sudo dpkg --add-architecture i386
sudo apt update
sudo apt upgrade

Then check if the package is available with apt policy libsdl2-2.0-0:i386.

@Kickimanjaro
Copy link

Kickimanjaro commented Mar 20, 2021

If yall are running on Fedora and encounter this, try installing SDL2.i686.

My environment:

  • Fedora 33
  • SDL2.x86_64 was already installed and I encountered this issue
  • SDL2.i686 was not installed, installing it appears to have fixed
    Specific version I downloaded in case it matters: SDL2-2.0.14-1.fc33.i68

@ImBenny95
Copy link

This is an error caused by the absence of the 32-bit SDL library.

sudo apt install libsdl2-2.0-0:i386
solves the problem.

You are GOD! Thank you!

@richardmuthwill
Copy link

richardmuthwill commented Jun 30, 2021

For Ubuntu / Ubuntu server users:
sudo apt-get install libsdl2-2.0

@dad98253
Copy link

dad98253 commented Jul 3, 2021

I'm running a headless virtual server. Why is SDL required?
Here is the message I get when I try to install it:
root@vps:/home/dad/tmp# apt-get install libsdl2-2.0-0:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
libapparmor1:i386 libasound2:i386 libasyncns0:i386 libboost-filesystem1.58.0:i386 libboost-system1.58.0:i386 libbsd0:i386
libcapnp-0.5.3:i386 libdbus-1-3:i386 libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386
libedit2:i386 libegl1-mesa:i386 libelf1:i386 libexpat1:i386 libffi6:i386 libflac8:i386 libgbm1:i386 libgcrypt20:i386 libgl1-mesa-dri:i386
libglapi-mesa:i386 libgpg-error0:i386 libllvm6.0:i386 liblzma5:i386 libmirclient9:i386 libmircommon7:i386 libmircore1:i386
libmirprotobuf3:i386 libogg0:i386 libpciaccess0:i386 libpcre3:i386 libprotobuf-lite9v5:i386 libpulse0:i386 libselinux1:i386
libsensors4:i386 libsndfile1:i386 libsndio6.1:i386 libsystemd0:i386 libtinfo5:i386 libtxc-dxtn-s2tc0:i386 libvorbis0a:i386
libvorbisenc2:i386 libwayland-client0:i386 libwayland-cursor0:i386 libwayland-egl1-mesa:i386 libwayland-server0:i386 libwrap0:i386
libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-present0:i386 libxcb-sync1:i386
libxcb-xfixes0:i386 libxcb1:i386 libxcursor1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386
libxkbcommon0:i386 libxrandr2:i386 libxrender1:i386 libxshmfence1:i386 libxss1:i386 libxxf86vm1:i386 x11-common
Suggested packages:
libasound2-plugins:i386 rng-tools:i386 pulseaudio:i386 lm-sensors:i386 sndiod:i386
The following NEW packages will be installed:
libapparmor1:i386 libasound2:i386 libasyncns0:i386 libboost-filesystem1.58.0:i386 libboost-system1.58.0:i386 libbsd0:i386
libcapnp-0.5.3:i386 libdbus-1-3:i386 libdrm-amdgpu1:i386 libdrm-intel1:i386 libdrm-nouveau2:i386 libdrm-radeon1:i386 libdrm2:i386
libedit2:i386 libegl1-mesa:i386 libelf1:i386 libexpat1:i386 libffi6:i386 libflac8:i386 libgbm1:i386 libgcrypt20:i386 libgl1-mesa-dri:i386
libglapi-mesa:i386 libgpg-error0:i386 libllvm6.0:i386 liblzma5:i386 libmirclient9:i386 libmircommon7:i386 libmircore1:i386
libmirprotobuf3:i386 libogg0:i386 libpciaccess0:i386 libpcre3:i386 libprotobuf-lite9v5:i386 libpulse0:i386 libsdl2-2.0-0:i386
libselinux1:i386 libsensors4:i386 libsndfile1:i386 libsndio6.1:i386 libsystemd0:i386 libtinfo5:i386 libtxc-dxtn-s2tc0:i386
libvorbis0a:i386 libvorbisenc2:i386 libwayland-client0:i386 libwayland-cursor0:i386 libwayland-egl1-mesa:i386 libwayland-server0:i386
libwrap0:i386 libx11-6:i386 libx11-xcb1:i386 libxau6:i386 libxcb-dri2-0:i386 libxcb-dri3-0:i386 libxcb-present0:i386 libxcb-sync1:i386
libxcb-xfixes0:i386 libxcb1:i386 libxcursor1:i386 libxdmcp6:i386 libxext6:i386 libxfixes3:i386 libxi6:i386 libxinerama1:i386
libxkbcommon0:i386 libxrandr2:i386 libxrender1:i386 libxshmfence1:i386 libxss1:i386 libxxf86vm1:i386 x11-common
0 upgraded, 72 newly installed, 0 to remove and 0 not upgraded.
Need to get 28.1 MB of archives.
After this operation, 240 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Are you sure that installing all of this stuff on a headless server won't break something???

@aidalgol
Copy link

@dad98253

Are you sure that installing all of this stuff on a headless server won't break something???

That's more than I would expect, but if you're not getting any package conflicts, then it should be fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests