Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fail to launch opengl project with primusrun
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Fulgurance
Guru
Guru


Joined: 15 Feb 2017
Posts: 588

PostPosted: Fri Apr 28, 2017 12:29 pm    Post subject: Fail to launch opengl project with primusrun Reply with quote

Hello, i work on OpenGL project on C++ with SFML, and i would like to taken this moment to test primusrun with my program.

But when i use this command, i have an error:
Code:
fulgurance@MSI-GS73VR-6RF ~/Développement/Test $ primusrun ./Test
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Warning: The created OpenGL context does not fully meet the settings that were requested
Requested: version = 1.1 ; depth bits = 32 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false
Created: version = 4.5 ; depth bits = 24 ; stencil bits = 0 ; AA level = 0 ; core = false ; debug = false
Setting vertical sync not supported
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  153 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  32
  Current serial number in output stream:  31
Processus arrêté
fulgurance@MSI-GS73VR-6RF ~/Développement/Test $ eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 420

PostPosted: Fri Apr 28, 2017 12:59 pm    Post subject: Reply with quote

Can you pastebin:
Code:

LIBGL_DEBUG=verbose primusrun ./Test


Does it work for other stuff than your own code?
Back to top
View user's profile Send private message
Fulgurance
Guru
Guru


Joined: 15 Feb 2017
Posts: 588

PostPosted: Fri Apr 28, 2017 1:14 pm    Post subject: Reply with quote

The same result with other application, it's not problem with my code:
Code:
fulgurance@MSI-GS73VR-6RF ~/Développement/Test $ primusrun dolphin
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "mtp"
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "mtp"
Cannot creat accessible child interface for object:  PlacesView(0x16851f0)  index:  16
kf5.kio.core: KSambaShare: Could not find smb.conf!
Back to top
View user's profile Send private message
R0b0t1
Apprentice
Apprentice


Joined: 05 Jun 2008
Posts: 255

PostPosted: Sat Apr 29, 2017 1:09 am    Post subject: Reply with quote

Does `primusrun glxinfo` work? Also I can't be entirely sure, but if you select NVIDIA as your OpenGL provider then it is possible that the card is already in use.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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