Open survivalbloke opened 4 years ago
How did you install gamemode? Also, please provide the output of
ls /usr/lib/*/libgamemodeauto.so.0
I suspect that the 32bit libs are missing.
I installed gamemode using "apt install gamemode"(After adding the repository).
/usr/lib/x86_64-linux-gnu/libgamemodeauto.so.0
Sent with ProtonMail Secure Email.
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Friday, June 12, 2020 8:39 AM, Stephan Lachnit notifications@github.com wrote:
How did you install gamemode? Also, please provide the output of
ls /usr/lib/
*
/libgamemodeauto.so.0
I suspect that the 32bit libs are missing.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I installed gamemode using "apt install gamemode"(After adding the repository).
Yeah so you're missing the 32bit libs. Remove gamemode (apt remove gamemode --autoremove
), and download the Debian packages:
https://packages.debian.org/sid/amd64/gamemode/download
https://packages.debian.org/sid/amd64/gamemode-daemon/download
https://packages.debian.org/sid/amd64/libgamemode0/download
https://packages.debian.org/sid/amd64/libgamemodeauto0/download
https://packages.debian.org/sid/i386/libgamemode0/download
https://packages.debian.org/sid/i386/libgamemodeauto0/download
then install all .deb's with this command:
apt install -f path/to/gamemode.deb path/to/gamemode-daemon.deb ...
This should fix your problem.
I installed gamemode using "apt install gamemode"(After adding the repository).
Yeah so you're missing the 32bit libs. Remove gamemode (
apt remove gamemode --autoremove
), and download the Debian packages: https://packages.debian.org/sid/amd64/gamemode/download https://packages.debian.org/sid/amd64/gamemode-daemon/download https://packages.debian.org/sid/amd64/libgamemode0/download https://packages.debian.org/sid/amd64/libgamemodeauto0/download https://packages.debian.org/sid/i386/libgamemode0/download https://packages.debian.org/sid/i386/libgamemodeauto0/downloadthen install all .deb's with this command:
apt install -f path/to/gamemode.deb path/to/gamemode-daemon.deb ...
This should fix your problem.
I am having the same issue but following these instructions did not help, the message stays the same.
Here is the output of ls /usr/lib/*/libgamemodeauto.so.0
:
/usr/lib/i386-linux-gnu/libgamemodeauto.so.0
/usr/lib/x86_64-linux-gnu/libgamemodeauto.so.0
What exactly did you try? Also please give me the output of apt list --installed *gamemode*
.
I tried the following:
I'm currently trying (and failing) to build the 32bit gamemode on my machine to see if that might solve it.
Here is the output:
Listing... Done
gamemode-daemon/unstable,now 1.6-1+b1 amd64 [installed]
gamemode/unstable,now 1.6-1+b1 amd64 [installed]
libgamemode0/unstable,now 1.6-1+b1 amd64 [installed]
libgamemode0/unstable,now 1.6-1+b1 i386 [installed]
libgamemodeauto0/unstable,now 1.6-1+b1 amd64 [installed]
libgamemodeauto0/unstable,now 1.6-1+b1 i386 [installed]
Can you run gamemoded -t
and say what you did to get the missing libs error?
Here is the output:
: Loading config
Loading config file [/usr/share/gamemode/gamemode.ini]
: Running tests
:: Basic client tests
:: Passed
:: Dual client tests
gamemode request succeeded and is active
Quitting by request...
:: Passed
:: Gamemoderun and reaper thread tests
...Waiting for child to quit...
...Waiting for reaper thread (reaper_frequency set to 5 seconds)...
:: Passed
:: Supervisor tests
:: Passed
:: Feature tests
::: Verifying CPU governor setting
::: Passed
::: Verifying Scripts
::: Passed (no scripts configured to run)
::: Verifying GPU Optimisations
::: Passed (gpu optimisations not configured to run)
::: Verifying renice
::: Passed (no renice configured)
::: Verifying ioprio
::: Passed
:: Passed
: All Tests Passed!
Noting here that when running it right after trying to run the game I get:
: Loading config
Loading config file [/usr/share/gamemode/gamemode.ini]
: Running tests
GameMode was active, waiting for the reaper thread (5 seconds)!
Waiting...
Waiting...
Waiting...
Waiting...
Waiting...
ERROR: GameMode still active, cannot run tests!
I realised my message is slightly different, and I am getting these errors when running via Lutris:
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.```
Noting here that when running it right after trying to run the game I get:
This is to be expected, but it only happens right after the game, a couple of seconds later and it should be fine.
I realised my message is slightly different, and I am getting these errors when running via Lutris:
Can you run gamemoderun glxgears
or something equivalent?
That explains it, I confirmed with gamemoded --status
that gamemode runs correctly. Thank you for the help.
glxgears runs correctly with gamemoderun too.
I'm having the same problem but with star citizen (using lutris)
On Ubuntu 20.04 I installed gamemod in 64 AND 32 bits using this method: https://github.com/FeralInteractive/gamemode/issues/254#issuecomment-740117461 and I have no more errors messages. Why this packages are not available in Ubuntu 20.04???
@stephanlachnit Is the problem this bug or should i file a new one at launchpad? https://bugs.launchpad.net/ubuntu/+source/gamemode/+bug/1883253
@stephanlachnit Is the problem this bug or should i file a new one at launchpad? https://bugs.launchpad.net/ubuntu/+source/gamemode/+bug/1883253
The Ubuntu 20.04 package has multi arch support for quite a while now. It is still an old version, but if you want new versions, Ubuntu LTS is the wrong distribution.
I installed gamemode using "apt install gamemode"(After adding the repository).
Yeah so you're missing the 32bit libs. Remove gamemode (
apt remove gamemode --autoremove
), and download the Debian packages: https://packages.debian.org/sid/amd64/gamemode/download https://packages.debian.org/sid/amd64/gamemode-daemon/download https://packages.debian.org/sid/amd64/libgamemode0/download https://packages.debian.org/sid/amd64/libgamemodeauto0/download https://packages.debian.org/sid/i386/libgamemode0/download https://packages.debian.org/sid/i386/libgamemodeauto0/downloadthen install all .deb's with this command:
apt install -f path/to/gamemode.deb path/to/gamemode-daemon.deb ...
This should fix your problem.
Hi i was trying to install 32bit drivers but it trows an error of "E: Unsupported file /gamemode-daemon_1.6.1-1_i386.deb given on commandline",
these are the results from commands
command : ls /usr/lib/*/libgamemodeauto.so.0 result : /usr/lib/x86_64-linux-gnu/libgamemodeauto.so.0
command : gamemoded -t result : : Loading config Loading config file [/usr/share/gamemode/gamemode.ini] Loading config file [/etc/gamemode.ini] : Running tests
:: Basic client tests :: Passed
:: Dual client tests gamemode request succeeded and is active Quitting by request... :: Passed
:: Gamemoderun and reaper thread tests ...Waiting for child to quit... ...Waiting for reaper thread (reaper_frequency set to 5 seconds)... :: Passed
:: Supervisor tests :: Passed
:: Feature tests ::: Verifying CPU governor setting ::: Passed ::: Verifying Scripts ::: Passed (no scripts configured to run) ::: Verifying GPU Optimisations ::: Passed (gpu optimisations not configured to run) ::: Verifying renice ::: Passed (no renice configured) ::: Verifying ioprio ::: Passed :: Passed
: All Tests Passed!
command : apt list --installed gamemode result : Listing... Error! E: input:0-26: error: Expected pattern gamemode_1.6.1-1_amd64.deb ^^^^^^^^^^^^^^^^^^^^^^^^^^
command : gamemoded --version result : gamemode version: v1.6.1
can you please help me as i was trying to run a game in lutris but it throws an error "ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored."
Thank you!
Which version of Ubuntu do you use?
Which version of Ubuntu do you use?
Ubuntu 20.04.2 LTS 64-bit
Hi i was trying to install 32bit drivers but it trows an error of "E: Unsupported file /gamemode-daemon_1.6.1-1_i386.deb given on commandline",
You've downloaded the incorrect files. Please see the file list from above:
https://packages.debian.org/sid/amd64/gamemode/download https://packages.debian.org/sid/amd64/gamemode-daemon/download https://packages.debian.org/sid/amd64/libgamemode0/download https://packages.debian.org/sid/amd64/libgamemodeauto0/download https://packages.debian.org/sid/i386/libgamemode0/download https://packages.debian.org/sid/i386/libgamemodeauto0/download
Make sure to remove all installed gamemode libraries. Check via
apt list --installed *gamemode*
Hi i was trying to install 32bit drivers but it trows an error of "E: Unsupported file /gamemode-daemon_1.6.1-1_i386.deb given on commandline",
You've downloaded the incorrect files. Please see the file list from above:
https://packages.debian.org/sid/amd64/gamemode/download https://packages.debian.org/sid/amd64/gamemode-daemon/download https://packages.debian.org/sid/amd64/libgamemode0/download https://packages.debian.org/sid/amd64/libgamemodeauto0/download https://packages.debian.org/sid/i386/libgamemode0/download https://packages.debian.org/sid/i386/libgamemodeauto0/download
Make sure to remove all installed gamemode libraries. Check via
apt list --installed *gamemode*
Still same response i have downloaded files from above and removed gamemode, restart pc.
command : sudo apt install -f /gamemode/gamemode_1.6.1-1_amd64.deb /gamemode/gamemode-daemon_1.6.1-1_amd64.deb /gamemode/gamemode-daemon_1.6.1-1_i386.deb /gamemode/libgamemode0_1.6.1-1_amd64.deb /gamemode/libgamemode0_1.6.1-1_i386.deb /gamemode/libgamemodeauto0_1.6.1-1_amd64.deb /gamemode/libgamemodeauto0_1.6.1-1_i386.deb
Result : Reading package lists... Done E: Unsupported file /gamemode/gamemode_1.6.1-1_amd64.deb given on commandline E: Unsupported file /gamemode/gamemode-daemon_1.6.1-1_amd64.deb given on commandline E: Unsupported file /gamemode/gamemode-daemon_1.6.1-1_i386.deb given on commandline E: Unsupported file /gamemode/libgamemode0_1.6.1-1_amd64.deb given on commandline E: Unsupported file /gamemode/libgamemode0_1.6.1-1_i386.deb given on commandline E: Unsupported file /gamemode/libgamemodeauto0_1.6.1-1_amd64.deb given on commandline E: Unsupported file /gamemode/libgamemodeauto0_1.6.1-1_i386.deb given on commandline
Thanks!
Where did you download the files to? The path /gamemode/
sounds rather wrong to me.
Please run the following code:
cd /tmp
mkdir gamemode
cd gamemode
sudo apt remove *gamemode* --autoremove
wget http://ftp.debian.org/debian/pool/main/g/gamemode/gamemode_1.6.1-1_amd64.deb http://ftp.debian.org/debian/pool/main/g/gamemode/gamemode-daemon_1.6.1-1_amd64.deb http://ftp.debian.org/debian/pool/main/g/gamemode/libgamemode0_1.6.1-1_amd64.deb http://ftp.debian.org/debian/pool/main/g/gamemode/libgamemodeauto0_1.6.1-1_amd64.deb http://ftp.debian.org/debian/pool/main/g/gamemode/libgamemode0_1.6.1-1_i386.deb http://ftp.debian.org/debian/pool/main/g/gamemode/libgamemodeauto0_1.6.1-1_i386.deb
sudo apt install ./gamemode_1.6.1-1_amd64.deb ./gamemode-daemon_1.6.1-1_amd64.deb ./libgamemode0_1.6.1-1_amd64.deb ./libgamemode0_1.6.1-1_i386.deb ./libgamemodeauto0_1.6.1-1_amd64.deb ./libgamemodeauto0_1.6.1-1_i386.deb
Yes downloaded files to /gamemode folder.
i have successfully installed gamemode with the commands provided by you, now no error show up when i run game, but still the game crashes, don't know why no errors in console too haha, nevermind as we achieved to getrid of error which is the objective of this discussion, Thankyou soo much for your time to help me out.
Yes downloaded files to /gamemode folder.
i have successfully installed gamemode with the commands provided by you, now no error show up when i run game, but still the game crashes, don't know why no errors in console too haha, nevermind as we achieved to getrid of error which is the objective of this discussion, Thankyou soo much for your time to help me out.
Hah, same here.
built gamemode from source but it only installed the x86-64 libraries, this error appear whenever i run gamemoderun, running sudo gamemoderun
starts to use an enormous amount of cpu power but does nothing, even a simple echo just hangs out in the terminal (it also makes boot times longer), using gamemoded -r works fine though.
For some reason the library file is executable and running it gives an address boundary error, and if i actually need those 32-bit libs, how can i make them auto update (that's the reason why i built from source, even Pop Os' apt gives some outdated packages)
I installed gamemode using "apt install gamemode"(After adding the repository).
Yeah so you're missing the 32bit libs. Remove gamemode (
apt remove gamemode --autoremove
), and download the Debian packages: https://packages.debian.org/sid/amd64/gamemode/download https://packages.debian.org/sid/amd64/gamemode-daemon/download https://packages.debian.org/sid/amd64/libgamemode0/download https://packages.debian.org/sid/amd64/libgamemodeauto0/download https://packages.debian.org/sid/i386/libgamemode0/download https://packages.debian.org/sid/i386/libgamemodeauto0/downloadthen install all .deb's with this command:
apt install -f path/to/gamemode.deb path/to/gamemode-daemon.deb ...
This should fix your problem.
All mirrors give corrupted, unsecure files
All mirrors give corrupted, unsecure files
They are literally signed with the official Debian Archive Keys but ok
When downloading, the browser complains and on install, apt is unable to install it. Built from source and now the error only appears when running gamemoderun sudo
When downloading, the browser complains
This is because some browsers complain when downloading any .deb
, which IMHO is stupid, but not a Debian issue.
apt is unable to install it
This seems somewhat unlikely to me, but I guess this depends on your OS. Without an error message I can't help.
Built from source and now the error only appears when running
gamemoderun sudo
Just gamemoderun sudo
? Why would you do that? Also, using gamemoderun
with sudo
afterwards seems like a bad idea anyway...
The files were being downloaded incompletely which explains apt not installing them, but gamemoderun sudo apt install
is the sole purpose for me when installing big binaries, also for some reason the "other way around" (sudo gamemoderun
) froze on my first linux install and now simply aborts on this install
Hello, I'm new to Linux. I would like to install some games like Warcraft, Fronzen Throne, and Age of Mythology on my PC. What would be the steps to follow if I use Linux Mint? Also, this error appears when I have it in Lutris. Started initial process 19985 from gamemoderun /home/david/.local/share/lutris/runners/wine/lutris-5.6-5-x86_64/bin/wine /home/david/Descargas/warcraft-iii-reign-of-chaos/drive_c/windows/syswow64/wineconsole.exe c:\warcraft_iii_digit.bat Start monitoring process. ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored. ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Hi,
I was also getting the same error message while I was trying to launch Dave the diver with ubuntu 22.04/Lutris/proton
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
I actually installed the latest gamemode debian packages:
apt list --installed \*gamemode\*
Listing... Done
gamemode-daemon/now 1.7-2+b1 amd64 [installed,local]
gamemode/now 1.7-2+b1 amd64 [installed,local]
libgamemode0/now 1.7-2+b1 amd64 [installed,local]
libgamemode0/now 1.7-2+b1 i386 [installed,local]
libgamemodeauto0/now 1.7-2+b1 amd64 [installed,local]
libgamemodeauto0/now 1.7-2+b1 i386 [installed,local]
All the tests are passing (and glxgears are working too):
gamemoded -t
: Loading config
Loading config file [/usr/share/gamemode/gamemode.ini]
: Running tests
:: Basic client tests
:: Passed
:: Dual client tests
gamemode request succeeded and is active
Quitting by request...
:: Passed
:: Gamemoderun and reaper thread tests
...Waiting for child to quit...
...Waiting for reaper thread (reaper_frequency set to 5 seconds)...
:: Passed
:: Supervisor tests
:: Passed
:: Feature tests
::: Verifying CPU governor setting
::: Passed
::: Verifying Scripts
::: Passed (no scripts configured to run)
::: Verifying GPU Optimisations
::: Passed (gpu optimisations not configured to run)
::: Verifying renice
::: Passed (no renice configured)
::: Verifying ioprio
::: Passed
:: Passed
: All Tests Passed!
the log doesn't display any more error messages about wrong ELF class:
Started initial process 205968 from gamemoderun ~/.local/share/lutris/runners/wine/lutris-GE-Proton8-10-x86_64/bin/wine /home/obs/Games/dave-the-diver/drive_c/Games/Dave the Diver/UnityCrashHandler64.exe
Start monitoring process.
gamemodeauto:
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
Found 0 potential reports:
Done.
Initial process has exited (return code: 0)
Monitored process exited.
Exit with return code 0
But the game still doesn't run. Am I missing something?
vulkan or DXVK or other libs
vulkan or DXVK or other libs
What?
I found I was missing these packages, as I had to roll-back my nvidia drivers for stability reasons that are long-winded:
sudo apt install libnvidia-fbc1-535:i386=535.113.01-0ubuntu0.23.04.1 libnvidia-gl-535:i386=535.113.01-0ubuntu0.23.04.1 libnvidia-encode-535:i386=535.113.01-0ubuntu0.23.04.1 libnvidia-decode-535:i386=535.113.01-0ubuntu0.23.04.1 libnvidia-compute-535:i386=535.113.01-0ubuntu0.23.04.1
Once I installed them I was able to actually get battle.net to launch, and uhh the libegamemodeauto.so.0 stuff sitll happens but seems to... not matter? Dunno, gamemode is running though. Hope that helps someone out there on the interbutts!
for me the following fixed it:
sudo apt purge *gamemode*
sudo apt install gamemode gamemode:i386
for me the following fixed it:
sudo apt purge *gamemode* sudo apt install gamemode gamemode:i386
How did you install both gamemode
and gamemode:i386
?
Every game I try to launch in Lutris gives ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Yeah so you're missing the 32bit libs. Remove gamemode (
apt remove gamemode --autoremove
), and download the Debian packages: https://packages.debian.org/sid/amd64/gamemode/download https://packages.debian.org/sid/amd64/gamemode-daemon/download https://packages.debian.org/sid/amd64/libgamemode0/download https://packages.debian.org/sid/amd64/libgamemodeauto0/download https://packages.debian.org/sid/i386/libgamemode0/download https://packages.debian.org/sid/i386/libgamemodeauto0/download
Could I still be missing those libraries despite successfully building gamemode from source?
The only error I keep getting for gamemoded -t test
is Governor was not set to performance (was actually powersave)!
If so, where can I safely download the correct libraries for my distro*, since the official repo only has version 1.6.1-1build2 instead of 1.8.1-2?
*Ubuntu 22.04 LTS - Jammy Jellyfish
Thanks!
Every game I try to launch in Lutris gives
ERROR: ld.so: object 'libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Yeah so you're missing the 32bit libs. Remove gamemode (
apt remove gamemode --autoremove
), and download the Debian packages: https://packages.debian.org/sid/amd64/gamemode/download https://packages.debian.org/sid/amd64/gamemode-daemon/download https://packages.debian.org/sid/amd64/libgamemode0/download https://packages.debian.org/sid/amd64/libgamemodeauto0/download https://packages.debian.org/sid/i386/libgamemode0/download https://packages.debian.org/sid/i386/libgamemodeauto0/downloadCould I still be missing those libraries despite successfully building gamemode from source? The only error I keep getting for
gamemoded -t test
isGovernor was not set to performance (was actually powersave)!
If so, where can I safely download the correct libraries for my distro*, since the official repo only has version 1.6.1-1build2 instead of 1.8.1-2?
*Ubuntu 22.04 LTS - Jammy Jellyfish
Thanks!
Some background. I wonder if its related. https://github.com/lutris/lutris/issues/5467
to fix governor test fail try adding gamemode to your user. usermod -aG gamemode $USER
Describe the bug If I attempt to use any other runner in lutris besides "lutris-5.6-2-x86_64" the game(battle.net) will not load and I receive the following error message in the logs: _Running gamemoderun /opt/wine-staging/bin/wine /home/mike/Games/battlenet/drive_c/Program Files (x86)/Battle.net/Battle.net.exe Initial process has started with pid 13467 Game is considered started. ERROR: ld.so: object '/usr/$LIB/libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. ERROR: ld.so: object '/usr/$LIB/libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. neboot.exe: unix/virtual.c:581: free_ranges_remove_range: Assertion
range->base <= view_base && range->end >= view_end' failed. plorer.exe: unix/virtual.c:581: free_ranges_remove_range: Assertion
range->base <= view_base && range->end >= view_end' failed. ERROR: ld.so: object '/usr/$LIB/libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. ERROR: ld.so: object '/usr/$LIB/libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. ERROR: ld.so: object '/usr/$LIB/libgamemodeauto.so.0' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. t=48: unix/virtual.c:581: free_ranges_remove_range: Assertion `range->base <= view_base && range->end >= view_end' failed. [0610/144414.001:ERROR:network_change_notifier_win.cc(156)] WSALookupServiceBegin failed with: 0 ERROR: ld.so: object '/usr/$LIB/libgamemodeauto.so.0' from LDPRELOAD cannot be preloaded (cannot open shared object file): ignored. Initial process has exited. Game is considered exited. All monitored processes have exited. Exit with returncode 256To Reproduce Steps used to reproduce the behavior:
Expected behavior I expect the game to load
System Info (please complete the following information):
Additional context I'm using Lutris. I installed Lutris and all dependencies. After that, I used Lutris to install Battle.net using this script. I then launched Battle.net and installed World of Warcraft(bfa) from there. The Default lutris settings have Battle.net running "lutris-5.6-2-x86_64 as the runner. Battle.net will launch properly with this setting. If I change that setting however to "WineHQ Staging 5.10", the program will NOT launch and when I check the logs, I see the errors which I've posted in the beginning of this thread.
Thank you very much for looking into this.