View previous topic :: View next topic |
Author |
Message |
m27315 Apprentice
Joined: 10 Dec 2004 Posts: 253 Location: 2 workstations down
|
Posted: Thu Jan 07, 2016 10:40 pm Post subject: [SOLVED] OpenGL & Genymotion: failure to load swrast |
|
|
Hi,
I recently upgraded my Gentoo system to the latest nvidia drivers, mesa, and genymotion (2.6.0). Now, whenever I launch genymotion, the player freezes when launching a VM, and I see the following in the console:
Code: | $ genymotion
Logging activities to file: /home/tbowen/.Genymobile/genymotion.log
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Logging activities to file: /home/tbowen/.Genymobile/genymotion.log
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Logging activities to file: /local/.Genymobile/Genymotion/deployed/MyAndroidVM/genymotion-player.log
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast |
In addition to using the nvidia-drivers, I am also using KDE 4.11.19.
I noticed the new version of genymotion uses Qt5, if it makes a difference.
Any suggestions?
Thanks!
Last edited by m27315 on Fri Jan 08, 2016 4:04 am; edited 1 time in total |
|
Back to top |
|
|
m27315 Apprentice
Joined: 10 Dec 2004 Posts: 253 Location: 2 workstations down
|
Posted: Fri Jan 08, 2016 4:03 am Post subject: Solved |
|
|
I reinstalled nvidia-drivers, but that did not help. I think there is some issue with either symlinks being messed up during nvidia-drivers ebuild or by genymotion's start-up ruining the LD_LIBRARY_PATH. Regardless, this fixed it for me:
Code: | # cd /usr/lib64
# mv libGL.so.1.2.0 libGL.so.1.2.0.orig
# ln -snf /usr/lib64/opengl/nvidia/lib/libGL.so libGL.so.1.2.0 |
Genymotion popped up immediately after that. Actually, the symptoms are much broader than Genymotion. Any OpenGL application will produce the same errors, even something as simple as:
Code: | $ glxgears
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 153 (GLX)
Minor opcode of failed request: 3 (X_GLXCreateContext)
Value in failed request: 0x0
Serial number of failed request: 35
Current serial number in output stream: 37 |
The glxinfo command will also produce the same error. I used these commands to debug, and once they worked, genymotion worked again too.
Hope this helps someone else! |
|
Back to top |
|
|
Mistwolf Apprentice
Joined: 07 Mar 2007 Posts: 189 Location: Edmonton, AB
|
Posted: Fri Jan 08, 2016 4:50 am Post subject: |
|
|
sounds like it is trying to use mesa's opengl implementation.
what does the following say:
Code: | eselect opengl list |
should be set to nvidia in your case. |
|
Back to top |
|
|
m27315 Apprentice
Joined: 10 Dec 2004 Posts: 253 Location: 2 workstations down
|
Posted: Fri Jan 08, 2016 1:26 pm Post subject: eselect opengl |
|
|
Mistwolf wrote: | sounds like it is trying to use mesa's opengl implementation.
what does the following say:
Code: | eselect opengl list |
should be set to nvidia in your case. |
Sorry, I had not documented that, but that was one of the first things I tried. I toggled it to xorg-x11 and then back to nvidia, but it made no difference. Here's the final value as we would hope and expect:
Code: | $ eselect opengl list
Available OpenGL implementations:
[1] nvidia *
[2] xorg-x11
|
My current solution is definitely a hack, so if there is a way to fix this within the design and intent of the system, I'd much rather do that.
Thanks! |
|
Back to top |
|
|
jimniemira n00b
Joined: 13 Jan 2016 Posts: 9
|
Posted: Sat Jan 16, 2016 5:03 pm Post subject: |
|
|
See my thread here: https://forums.gentoo.org/viewtopic-t-1037122.html
You are probably using Mesa instead of nvidia-drivers libGL.so. See what these commands show for you:
Code: |
# equery belongs /usr/lib/libGL.so
* Searching for /usr/lib/libGL.so ...
media-libs/mesa-11.0.6 (/usr/lib/libGL.so -> libGL.so.1.2.0)
media-libs/mesa-11.0.6 (/usr/lib/libGL.so.1.2.0)
# equery belongs /usr/lib/opengl/nvidia/lib/libGL.so
* Searching for /usr/lib/opengl/nvidia/lib/libGL.so ...
x11-drivers/nvidia-drivers-340.96 (/usr/lib/opengl/nvidia/lib/libGL.so.340.96)
x11-drivers/nvidia-drivers-340.96 (/usr/lib/opengl/nvidia/lib/libGL.so -> libGL.so.1)
# echo $LD_LIBRARY_PATH
# strings /etc/ld.so.cache | grep libGL.so
libGL.so.1
/usr/lib/opengl/nvidia/lib/libGL.so.1
libGL.so.1
/usr/lib/libGL.so.1
libGL.so
/usr/lib/opengl/nvidia/lib/libGL.so
libGL.so
/usr/lib/libGL.so |
I originally had an LD_LIBRARY_PATH defined that did not have /usr/lib/opengl/nvidia/lib defined, so was not using Nvidia's library. Erasing that uses the order in /etc/ld.so.cache, I think, so now it works for me. |
|
Back to top |
|
|
m27315 Apprentice
Joined: 10 Dec 2004 Posts: 253 Location: 2 workstations down
|
Posted: Sun Jan 17, 2016 3:40 am Post subject: |
|
|
jimniemira wrote: | See my thread here: https://forums.gentoo.org/viewtopic-t-1037122.html
You are probably using Mesa instead of nvidia-drivers libGL.so. ... I originally had an LD_LIBRARY_PATH defined that did not have /usr/lib/opengl/nvidia/lib defined, so was not using Nvidia's library. Erasing that uses the order in /etc/ld.so.cache, I think, so now it works for me. |
Ahh, good catch! I originally had PATH, MANPATH, LD_LIBRARY_PATH, LANG, LC_ALL, and LC_CTYPE in my ~/.bash_profile script. I wonder which of these I should delete in addition to LD_LIBRARY_PATH? I don't have any customizations except to add ~/bin to my user's path.
Thanks! |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|