Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
libnvidia-glx segfault
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
zebbedi
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2003
Posts: 118

PostPosted: Fri Apr 22, 2016 6:33 am    Post subject: libnvidia-glx segfault Reply with quote

I have a couple of issues since upgrading to plasma.

1. Firstly my machine will randomly crash when unlocking it if it hasn't been used in a while (eg overnight or during a lunch break). Instead of taking me back to my desktop, it returns me to SDDM and I can log back in. I then have to kill off all the applications that were running previously. Only thing I can find is from dmesg:

QSGRenderThread[29287]: segfault at 3c ip 00007f6de676e004 sp 00007f6dd77fe640 error 4 in libnvidia-glcore.so.361.28[7f6de57b6000+12ff000]


2. The lock screen refuses to change theme. It remains as breeze and has white text on a white background across the center banner part with the standard breeze/plasma desktop background. Searching online it looks like when i change it to Oxygen, then it should change but doesn't.


3. When i do log in, my desktop widgets are all gone and the desktop is empty except for my panel at the bottom. If I unlock widgets and then just click 'Add Widgets' then they magically reappear. I don't have to physically re-add anything, just go through that process.


Does any one have any suggestions for any of those issues please?
Back to top
View user's profile Send private message
davidm
Guru
Guru


Joined: 26 Apr 2009
Posts: 557
Location: US

PostPosted: Fri Apr 22, 2016 1:54 pm    Post subject: Reply with quote

x86 or amd64? Which versions of Plasma, applications, and frameworks have you installed?

For #2 that might have been fixed in later versions depending on what you have installed but it is a bug which has been around for a while. Maybe do a search. I want to say that manually creating a /etc/sddm.conf might resolve it or allow you to change things. Here is mine (but I use systemd)

Code:

[Autologin]
Relogin=false
Session=
User=

[General]
HaltCommand=
RebootCommand=

[Theme]
Current=breeze
CursorTheme=breeze_cursors

[Users]
MaximumUid=65000
MinimumUid=1000


It works perfectly for me. As I recall the bug revolved around openrc and a permissions issue when using systemsettings.
Back to top
View user's profile Send private message
zebbedi
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2003
Posts: 118

PostPosted: Fri Apr 22, 2016 1:59 pm    Post subject: Reply with quote

I'm using amd64 with latest stable plasma etc recently upgraded.

I managed to change the SDDM theme by creating the sddm.conf file. I had to do this as I use an active directory login on to a windows domain and the default theme in SDDM doesn't display ANY users as they aren't local or allow you to manually type a username. Had to change it to maldives to allow input. But the problem is the KDE lock screen theme that doesn't change.... when you press CTRL + ALT + L
Back to top
View user's profile Send private message
zebbedi
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2003
Posts: 118

PostPosted: Tue Apr 26, 2016 7:02 am    Post subject: Reply with quote

I've managed to get rid of the segfaults by downgrading back to x11-drivers/nvidia-drivers-361.28. Unfortunately whatever it is still dies overnight causing me to log in again.
Back to top
View user's profile Send private message
Zentoo
Apprentice
Apprentice


Joined: 18 Nov 2002
Posts: 194
Location: /dev/console

PostPosted: Thu Apr 28, 2016 12:36 pm    Post subject: Reply with quote

Hello, I get the same kind of problem and it was caused by a conflict with:
- nvidia kms module (nvidia_modeset)
- uvesafb

So I had removed uvesafb support and add proper FB and KMS support in kernel and I got no problem anymore.
By the way , I'm on unstable amd64.

So we need more informations about your configuration:

Could you print relevant part of your dmesg ? any nvidia related errors ?
Code:
dmesg | grep -Ei "nvidia|nvrm"


What uses flags do you have on x11-drivers/nvidia-drivers ?
Code:
equery u nvidia-drivers


What is your kernel and arch ?
Code:
uname -a


What is your framebuffer related kernel configuration ?
Code:
zgrep -E "^[^#].*KMS|^[^#].*FB" /proc/config.gz

_________________
Kernel 4.14.13-ck| Gcc 7.2 | Glibc 2.26
Core i7 6700K @ 4.6GHz | 32Gb
ACCEPT_KEYWORDS="~amd64"
CFLAGS="-march=native -O2 -pipe"
Back to top
View user's profile Send private message
zebbedi
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2003
Posts: 118

PostPosted: Thu Apr 28, 2016 1:24 pm    Post subject: Reply with quote

Hi, last command doesn't seem to work, but here's the output

Quote:

mbiggs@mbiggs ~ $ dmesg | grep -Ei "nvidia|nvrm"
mbiggs@mbiggs ~ $ equery u nvidia-drivers
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for x11-drivers/nvidia-drivers-361.28:
U I
+ + X : Install the X.org driver, OpenGL libraries, XvMC libraries, and VDPAU libraries
+ + acpi : Add support for Advanced Configuration and Power Interface
+ - driver : Install the kernel driver module
+ + gtk3 : Install nvidia-settings with support for GTK+ 3
+ - kms : Enable support for kernel mode setting (KMS)
+ + multilib : On 64bit systems, if you want to be able to compile 32bit and 64bit binaries
- - pax_kernel : PaX patches from the PaX project
- - static-libs : Build static versions of dynamic libraries as well
+ - tools : Install additional tools such as nvidia-settings
- - uvm : Install the Unified Memory kernel module (nvidia-uvm) for sharing memory between CPU and GPU in CUDA programs
mbiggs@mbiggs ~ $ uname -a
Linux mbiggs 4.1.15-gentoo-r1 #1 SMP Mon Apr 18 08:46:35 BST 2016 x86_64 Intel(R) Core(TM) i7-4910MQ CPU @ 2.90GHz GenuineIntel GNU/Linux
mbiggs@mbiggs ~ $ zgrep -E "^[^#].*KMS|^[^#].*FB" /proc/config.gz
gzip: /proc/config.gz: No such file or directory



I am using the nvidia driver and then have a silly intel card which i then use modesetting on which makes everything much more complicated.
Back to top
View user's profile Send private message
Zentoo
Apprentice
Apprentice


Joined: 18 Nov 2002
Posts: 194
Location: /dev/console

PostPosted: Thu Apr 28, 2016 2:09 pm    Post subject: Reply with quote

So you got a 64 bits gentoo.
But It appears that you have emerged nvidia-drivers without the kernel driver !!! (USE=-driver)
if you try to re-emerge nvidia-drivers, do you have some use flag that appear in green ? (if yes which one)

Try this for KMS/FB kernel configuration:
Code:
grep -E "^[^#].*KMS|^[^#].*FB" /usr/src/linux/.config

_________________
Kernel 4.14.13-ck| Gcc 7.2 | Glibc 2.26
Core i7 6700K @ 4.6GHz | 32Gb
ACCEPT_KEYWORDS="~amd64"
CFLAGS="-march=native -O2 -pipe"
Back to top
View user's profile Send private message
zebbedi
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2003
Posts: 118

PostPosted: Thu Apr 28, 2016 2:10 pm    Post subject: Reply with quote

Quote:

CONFIG_DRM_KMS_HELPER=y
CONFIG_DRM_KMS_FB_HELPER=y
CONFIG_DRM_I915_KMS=y
CONFIG_DRM_I915_FBDEV=y
CONFIG_FB=y
CONFIG_FB_CMDLINE=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_SYS_FILLRECT=y
CONFIG_FB_SYS_COPYAREA=y
CONFIG_FB_SYS_IMAGEBLIT=y
CONFIG_FB_SYS_FOPS=y
CONFIG_FB_DEFERRED_IO=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_TILEBLITTING=y
CONFIG_FB_EFI=y
CONFIG_FB_UDL=y
Back to top
View user's profile Send private message
Zentoo
Apprentice
Apprentice


Joined: 18 Nov 2002
Posts: 194
Location: /dev/console

PostPosted: Thu Apr 28, 2016 2:18 pm    Post subject: Reply with quote

So your kernel configuration seems clean.

Try to emerge x11-drivers/nvidia-drivers with these USE FLAGS: driver kms
Then reboot your box.
_________________
Kernel 4.14.13-ck| Gcc 7.2 | Glibc 2.26
Core i7 6700K @ 4.6GHz | 32Gb
ACCEPT_KEYWORDS="~amd64"
CFLAGS="-march=native -O2 -pipe"
Back to top
View user's profile Send private message
zebbedi
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2003
Posts: 118

PostPosted: Thu Apr 28, 2016 2:22 pm    Post subject: Reply with quote

OK thanks for your help, i'll give that a go.

Actually when doing an emerge -pv nvidia-drivers i get:

Quote:

[ebuild U ] x11-drivers/nvidia-drivers-361.28:0/361::gentoo [358.16-r1:0/358::gentoo] USE="X acpi driver%* gtk3 kms multilib tools -pax_kernel -static-libs% -uvm (-gtk2%*)" 0 KiB



So I think i do have kms (red) and driver (yellow)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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