Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Updated system, same video driver, can no longer run opengl
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
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 474

PostPosted: Sun Jul 29, 2018 12:05 am    Post subject: Updated system, same video driver, can no longer run opengl Reply with quote

I just did a '-uDN @world' and I am no longer able to run my opengl apps. I also re-emerged xorg-server which is at x11-base/xorg-server-1.19.5-r2.

Any thoughts? This was all working fine. My video card is a GTX-1070.

Code:

$ glxgears                                     
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:  31                                         
  Current serial number in output stream:  32     


$ emerge --info
Code:

--- Invalid atom in /etc/portage/package.unmask/slack-bin: net-im/slack-bin-3.2.
0_beta2                                                                         
Portage 2.3.40 (python 2.7.14-final-0, default/linux/amd64/17.0, gcc-7.3.0, glib
c-2.26-r7, 4.9.95-gentoo x86_64)                                               
=================================================================               
System uname: Linux-4.9.95-gentoo-x86_64-Intel-R-_Core-TM-_i7-4770K_CPU_@_3.50GH
z-with-gentoo-2.4.1                                                             
KiB Mem:    32902228 total,  13057552 free                                     
KiB Swap:    1048572 total,   1048572 free                                     
Timestamp of repository gentoo: Sat, 28 Jul 2018 00:45:01 +0000                 
Head commit of repository gentoo: 3313b2661bef1e56f0d089cc5b2c6f2d470fb6be     
sh bash 4.4_p12                                                                 
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1                                             
app-shells/bash:          4.4_p12::gentoo                                       
dev-java/java-config:     2.2.0-r4::gentoo                                     
dev-lang/perl:            5.24.3-r1::gentoo                                     
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo, 3.6.5::gentoo       
dev-util/cmake:           3.9.6::gentoo                                         
dev-util/pkgconfig:       0.29.2::gentoo                                       
sys-apps/baselayout:      2.4.1-r2::gentoo                                     
sys-apps/openrc:          0.34.11::gentoo                                       
sys-apps/sandbox:         2.13::gentoo                                         
sys-devel/autoconf:       2.13::gentoo, 2.69-r4::gentoo                         
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo                 
sys-devel/binutils:       2.29.1-r1::gentoo, 2.30-r2::gentoo                   
sys-devel/gcc:            6.4.0-r1::gentoo, 7.3.0-r3::gentoo                   
sys-devel/gcc-config:     1.8-r1::gentoo                                       
sys-devel/libtool:        2.4.6-r3::gentoo                                     
sys-devel/make:           4.2.1::gentoo                                         
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)                     
sys-libs/glibc:           2.26-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-max-age: 24

local_overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

Installed sets: @steam
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/ http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ rsync://mirrors.rit.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ http://gentoo.mirrors.tds.net/gentoo rsync://gentoo.cs.uni.edu/gentoo-distfiles http://gentoo.cs.uni.edu/ http://mirror.usu.edu/mirrors/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl alsa alsa-plugin amd64 apng berkdb boost bzip2 cg cli conntrack cracklib crypt cups cxx dbus dri flash fortran freeimage gdbm gtk gudev gui iconv icu ipv6 libtirpc lua minizip modules multilib ncurses nls nptl nsplugin ois opengl openmp pam pcap pcre pcre16 png pulseaudio python qt5 readline rendering sdl seccomp sqlite ssl stats tcl tcpd tiff tk tools transparent-proxy udev unicode widgets xattr xcb xkb zlib" ABI_X86="32 64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby23" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Running my app, I get this error.
Code:

Failed to create an OpenGL 3+ context
terminate called after throwing an instance of 'Ogre::RenderingAPIException'
  what():  OGRE EXCEPTION(3:RenderingAPIException): Unable to create a suitable GLXContext in GLXContext::GLXContext
Back to top
View user's profile Send private message
axl
Guru
Guru


Joined: 11 Oct 2002
Posts: 542
Location: Romania

PostPosted: Sun Jul 29, 2018 12:10 am    Post subject: Reply with quote

this sounds like you should eselect opengl set either nvidia or nouveau. the errors you are describing sound like you have nouveau as primary device, and it's working and it's all fine, but somehow also have nvidia drivers and eselect points to nvidia.

when you have nvidia and it points to mesa stuff, nvidia proprietary drivers just fake everything. but nouveau is the one that usually complains about this sort of stuff.

or maybe you updated kernel, which booted in nouveau mode, and u forgot to update nvidia drivers with new kernel?
Back to top
View user's profile Send private message
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 474

PostPosted: Sun Jul 29, 2018 12:18 am    Post subject: Reply with quote

This is how I've always been running it, using nvidia drivers and has not changed.
Code:

$ eselect opengl list                         
Available OpenGL implementations:                                             
  [1]   nvidia *                                                               
  [2]   xorg-x11                   
Back to top
View user's profile Send private message
axl
Guru
Guru


Joined: 11 Oct 2002
Posts: 542
Location: Romania

PostPosted: Sun Jul 29, 2018 12:21 am    Post subject: Reply with quote

Wizumwalt wrote:
This is how I've always been running it, using nvidia drivers and has not changed.
Code:

$ eselect opengl list                         
Available OpenGL implementations:                                             
  [1]   nvidia *                                                               
  [2]   xorg-x11                   


ok. so is nvidia driver loaded? lsmod | grep nvidia?

if not, and instead you have lsmod | grep nouveau you have your answer right there.

emerge -1v nvidia-drivers and always do that after kernel upgrade.
Back to top
View user's profile Send private message
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 474

PostPosted: Sun Jul 29, 2018 12:25 am    Post subject: Reply with quote

Nothing has changed there either, haven't even rebooted the machine from about an hour ago when it just stopped working as the emerge was happening.

Code:

$ lsmod                                       
Module                  Size  Used by                                         
nvidia_drm             26368  3                                               
nvidia_modeset       1053990  5 nvidia_drm
nvidia              13534789  172 nvidia_modeset
x86_pkg_temp_thermal     5414  0
Back to top
View user's profile Send private message
axl
Guru
Guru


Joined: 11 Oct 2002
Posts: 542
Location: Romania

PostPosted: Sun Jul 29, 2018 12:28 am    Post subject: Reply with quote

Wizumwalt wrote:
Nothing has changed there either, haven't even rebooted the machine from about an hour ago when it just stopped working as the emerge was happening.

Code:

$ lsmod                                       
Module                  Size  Used by                                         
nvidia_drm             26368  3                                               
nvidia_modeset       1053990  5 nvidia_drm
nvidia              13534789  172 nvidia_modeset
x86_pkg_temp_thermal     5414  0


OK. so what emerge was stopped and clearly the first question would be, can you finish update. first packages, kernel, nvidia-drivers.
Back to top
View user's profile Send private message
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 474

PostPosted: Sun Jul 29, 2018 12:31 am    Post subject: Reply with quote

No emerge was stopped. Everything built fine. I did a '-uDN @world', it built about 70 packages.
Back to top
View user's profile Send private message
axl
Guru
Guru


Joined: 11 Oct 2002
Posts: 542
Location: Romania

PostPosted: Sun Jul 29, 2018 12:35 am    Post subject: Reply with quote

Wizumwalt wrote:
haven't even rebooted the machine from about an hour ago when it just stopped working as the emerge was happening.


I was going by your words. these are your words.

so if the kernel is fine, the nvidia drivers have been updated for said kernel, eselect is in order, revdep-rebuild doesn't say anything... i don't know. i'm out. anyone else?
Back to top
View user's profile Send private message
Wizumwalt
Guru
Guru


Joined: 20 Aug 2006
Posts: 474

PostPosted: Sun Jul 29, 2018 12:41 am    Post subject: Reply with quote

Ok, so what I meant by "it" in it just stopped working was the opengl. I appreciated your help. But I think I found the issue. It also updated nvidia-drivers and is now out of sync w/ the kernel. I didn't catch the nvidia update in the logs before. Again, thanks.
Back to top
View user's profile Send private message
axl
Guru
Guru


Joined: 11 Oct 2002
Posts: 542
Location: Romania

PostPosted: Sun Jul 29, 2018 12:43 am    Post subject: Reply with quote

Happy you solved your problem. :)
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