LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-13-2017, 09:57 PM   #1
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Slackware -current and Unity based games on steam not working?


Since the past week or so, i've noticed that any game using the Unity engine on steam, refuses to load.

Can anyone with any steam games that run under Unity confirm if they are having the same problem? As two games which have had no updates in months are suddenly not launching.

2 games i've tested:
* Dungeons II
* 7 Days to Die

When trying to launch them, you just get a black screen, and have to kill the process manually.

It seems like some other system package may be causing this? I've tried downgrading my nvidia driver to a previous version which worked fine with the games, however it still shows the black screen.
 
Old 05-13-2017, 10:58 PM   #2
bosth
Member
 
Registered: Apr 2011
Location: British Columbia, Canada
Posts: 304

Rep: Reputation: 127Reputation: 127
Use this first:

LD_PRELOAD="/usr/lib64/libjemalloc.so.1"
 
2 members found this post helpful.
Old 05-14-2017, 12:13 AM   #3
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by bosth View Post
Use this first:

LD_PRELOAD="/usr/lib64/libjemalloc.so.1"
Thankyou! I used:
Code:
LD_PRELOAD="/usr/lib64/libjemalloc.so.1" /usr/bin/steam
then launched 7Days to Die, and it worked!

Would anyone be able to explain why this lets the game run?

Edit: This seems to cause problems with the steam client itself, mostly with the built in web browser when navigating the store / forums. Although, it still works to let Unity games run.

Last edited by coralfang; 05-14-2017 at 12:31 AM.
 
Old 05-14-2017, 12:50 AM   #4
bosth
Member
 
Registered: Apr 2011
Location: British Columbia, Canada
Posts: 304

Rep: Reputation: 127Reputation: 127
It has to do with the upgrade to glibc to version 2.25 and a change to malloc. The LD_PRELOAD allows you to use a different malloc implementation that works with Unity.
 
1 members found this post helpful.
Old 05-14-2017, 09:33 AM   #5
af7567
Member
 
Registered: Nov 2012
Posts: 295

Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by bosth View Post
Use this first:

LD_PRELOAD="/usr/lib64/libjemalloc.so.1"
Thanks. I had no idea that jemalloc was included in slackware. I had tried to fix this problem with unity games the other day using jemalloc. I looked on slackbuilds.org and it wasn't there so I downloaded it from github and built it and used it which got me a bit further but the games crashed after a few secs. Using the system installed one everything seems ok.

I was thinking about downgrading glibc if it didn't get fixed soon, but it seems the solution was already installed. I'm glad someone else posted the problem before I went and messed up my glibc
 
1 members found this post helpful.
Old 06-10-2017, 06:00 PM   #6
moldavia
LQ Newbie
 
Registered: Apr 2016
Distribution: slackware
Posts: 16

Rep: Reputation: Disabled
I ran across this bug the other day. Glad someone had already found a fix. Of course, the developer has to point me to this thread.
One thing I discovered, this only affected x86_64 games. x86 binaries ran fine.
 
Old 06-12-2017, 05:57 PM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,242

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
I was going to suggest renaming ~/.config/unity.

I recently had an issue with Pillars of Eternity (a Unity game) launching to a black window. That fixed it.
 
Old 07-05-2017, 11:35 AM   #8
af7567
Member
 
Registered: Nov 2012
Posts: 295

Rep: Reputation: 106Reputation: 106
Using jemalloc has been working for me for a while now, but I noticed that whenever I start steam this way then the steam store/activity/profiles (all the web stuff) doesn't work. Anyone else have that problem?

I can just start steam normally and then just launch the game from the command line using jemalloc, but some games don't like that.
 
Old 07-05-2017, 12:11 PM   #9
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,242

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Can you set it per game, using the "Launch Options" that Steam makes available for each game?

I haven't tried it yet, but it looks promising:

https://wiki.archlinux.org/index.php...Launch_options
 
2 members found this post helpful.
Old 07-05-2017, 01:40 PM   #10
coralfang
Member
 
Registered: Nov 2010
Location: Bristol, UK
Distribution: Slackware, FreeBSD
Posts: 836

Original Poster
Blog Entries: 3

Rep: Reputation: 297Reputation: 297Reputation: 297
Quote:
Originally Posted by af7567 View Post
Using jemalloc has been working for me for a while now, but I noticed that whenever I start steam this way then the steam store/activity/profiles (all the web stuff) doesn't work. Anyone else have that problem?

I can just start steam normally and then just launch the game from the command line using jemalloc, but some games don't like that.
Yes i noticed that almost immediately, but as dugan suggested, modifying the launch options per each game effected is a nice workaround, i just tried it now with the Unity games (7DaysToDie and Dungeons II), setting this works fine, whilst allowing the store/browser to function normally.
Code:
LD_PRELOAD="/usr/lib64/libjemalloc.so.1" %command%
 
2 members found this post helpful.
Old 07-06-2017, 05:24 AM   #11
af7567
Member
 
Registered: Nov 2012
Posts: 295

Rep: Reputation: 106Reputation: 106
Oh thanks. I thought the launch options only allowed you to pass args to be appended to the command. Didn't know you could add stuff before the command too.
 
  


Reply

Tags
current, engine, games, unity



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Steam client (32bit games lacking sound) due to -current updates coralfang Slackware 22 01-13-2016 06:52 AM
[SOLVED] Some Steam games crash X (64-current w/ multilib | 2015.11.25) ryanpcmcquen Slackware 26 12-16-2015 05:22 PM
[SOLVED] Unity 3D and games like SuperTux 2 and Neverball does not working. Subhraman Sarkar Ubuntu 5 12-04-2014 03:18 AM
LXer: Valve video shows Steam Controller working with a variety of games LXer Syndicated Linux News 0 10-13-2013 02:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration