Desura client and segfaults (why/a fix)

A place where Linux Gamers can share their experience and help each other with Linux Games, native or emulated ;)

Moderator: Moderators

Post Reply
tomkriz
Baby Hen
Posts: 4
Joined: Fri Sep 10, 2010 9:25

Desura client and segfaults (why/a fix)

Post by tomkriz » Wed Oct 05, 2011 6:45

Hey all, hopefully you've heard of Desura by now. The short story of it is it's a clone of Steam with a working (eventually, in beta now) native Linux client giving us working Linux games. The Humble Indie Bundle gave out Desura keys along with Steam keys. It's currently in an invite only beta, available from http://www.desura.com/ . You are able to download the client but not login. Signing up for the beta is easy and you should get in fast. I did. Visiting the desura home page will give you instructions at the top in red.

Moving on to the issues: Desura segfaults when running on a default Sabayon install. The problem is with x11-libs/cairo . The default Cairo install for Sabayon has three experimental options enabled that are causing problems. The three possible problems are xcb, qt4 and opengl. Ubuntu disables qt4 and opengl by default, and I know xcb isn't compiled into Fedora. Gentoo users and Sabayon users are the only ones that seem to have this particular segfault problem.

The fix is to recompile cairo using Gentoo tools. I tried opening a bug report about it but the Cairo library will stay compiled with the expirimental plugins enabled. So much for extreme gaming.

From emerge log:
--- The XCB surface backend feature is still under active development and is
--- included in this release only as a preview. It does NOT fully work yet
--- and incompatible changes may yet be made to XCB surface backend specific
--- API.
--- The Qt surface backend feature is still under active development and is
--- included in this release only as a preview. It does NOT fully work yet
--- and incompatible changes may yet be made to Qt surface backend specific
--- API.

--- The OpenGL surface backend feature is still under active development and
--- is included in this release only as a preview. It does NOT fully work yet
--- and incompatible changes may yet be made to OpenGL surface backend
--- specific API.

--- The tee surface backend feature is still under active development and is
--- included in this release only as a preview. It does NOT fully work yet
--- and incompatible changes may yet be made to tee surface backend specific
--- API.
Now, qt4 and xcb don't seem to give me problems yet. I just had to disable opengl from Cairo. Other Gentoo users in the Gentoo forums had to disable qt4 and xcb but not opengl.

To do this, I'm going to give a quick guide. No warranty is implied here as it is using Gentoo tools and I'm not thoroughly explaining it.
First, type "emerge --sync" (no quotes)
Then, "layman -S" (no quotes, ever)
Edit "/etc/portage/package.use" with your favorite editor. Look for "x11-libs/cairo" and add "-opengl" to the line. You may also have to add "-xcb" and "-qt4" and might not need to add "-opengl". Experiment and let me know what you find. I had to do "-opengl" on both my laptop and my desktop so I'm 2/2.

To compile Cairo, type "emerge cairo". If everything succeeds, try out the Desura installer. If it didn't work, try a different combination of the three experimental packages. If it still doesn't work, please let me know.

pxc
Growing Hen
Posts: 175
Joined: Mon Aug 28, 2006 20:57

Re: Desura client and segfaults (why/a fix)

Post by pxc » Sun Oct 09, 2011 18:21

Thanks for the tip. Disabling OpenGL support and recompiling Cairo fixed the problem for me, too.

Maybe the OpenGL issue depends on your OpenGL driver? I'm using Nvidia here. What about you?

tomkriz
Baby Hen
Posts: 4
Joined: Fri Sep 10, 2010 9:25

Re: Desura client and segfaults (why/a fix)

Post by tomkriz » Mon Oct 10, 2011 6:05

pxc wrote:Maybe the OpenGL issue depends on your OpenGL driver? I'm using Nvidia here. What about you?
Sounds reasonable. I am also using Nvidia, and my laptop has Nvidia as well (and I had the same problems there).

mastersrp
Baby Hen
Posts: 1
Joined: Fri Nov 18, 2011 12:57

Re: Desura client and segfaults (why/a fix)

Post by mastersrp » Fri Nov 25, 2011 20:21

Just posting to update the thread.
This is no longer an issue. At least, I have not had any trouble with it from the default settings and compilations.

yaeld
Baby Hen
Posts: 9
Joined: Wed Nov 16, 2011 18:24

Re: Desura client and segfaults (why/a fix)

Post by yaeld » Wed Aug 15, 2012 17:55

I have tried to do the above with or without -opengl and it still doesn't work.
Here is the error message I get when I try to run desura:

Code: Select all

ln: failed to create symbolic link ‘../lib/libcrypto.so.0.9.8’: File exists
ln: failed to create symbolic link ‘../lib/libgconf-2.so.4’: File exists
ln: failed to create symbolic link ‘../lib/libjpeg.so.62’: File exists
ln: failed to create symbolic link ‘../lib/libnspr4.so.0d’: File exists
ln: failed to create symbolic link ‘../lib/libnss3.so.1d’: File exists
ln: failed to create symbolic link ‘../lib/libnssutil3.so.1d’: File exists
ln: failed to create symbolic link ‘../lib/libplc4.so.0d’: File exists
ln: failed to create symbolic link ‘../lib/libplds4.so.0d’: File exists
ln: failed to create symbolic link ‘../lib/libpng12.so.0’: File exists
ln: failed to create symbolic link ‘../lib/libsmime3.so.1d’: File exists
ln: failed to create symbolic link ‘../lib/libssl3.so.1d’: File exists
ln: failed to create symbolic link ‘../lib/libssl.so.0.9.8’: File exists
ln: failed to create symbolic link ‘../lib/libz.so.1’: File exists
include/SharedObjectLoader.h:75 - Error loading library libuicore.so: 'libjpeg.so.62: cannot open shared object file: No such file or directory' [LD_LIBRARY_PATH=/home/yaeld/desura/lib]
I do have a nvidia GPU on my laptop, Sabayon is up to date.
I wasn't able to find /etc/portage/package.use using nano, so I tried to modify package.use.sabayon.entropy instead which didn't change anything.

Could you guys guide me through it?

yael

Post Reply