Plasmashell crashes with nvidia

I removed the G04 drivers (which was actually working fine) and install the G03 drivers from Nvidia. After reboot Plasma crashes and the resolution is very small.
I then reinstalled the G04 drivers, but the problem persisted. If I remove nvidia completely I have no problem starting up Plasma.

I just want to get the Nvidia G04 drivers back up and working again.

I managed to get open konsole and executed plasmashell


djviking@alnitak:~> plasmashell  
kscreen: Primary output changed from KScreen::Output(Id: 81 , Name: "default" ) ( "default" ) to KScreen::Output(Id: 81 , Name: "default" ) ( "default" )
kscreen: Primary output changed from KScreen::Output(Id: 81 , Name: "default" ) ( "default" ) to KScreen::Output(Id: 81 , Name: "default" ) ( "default" )
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBu
fferSize -1, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile  0)  
Application::crashHandler() called with signal 6; recent crashes: 1
/usr/bin/plasmashell  --crashes 1 &
KCrash: Application 'plasmashell' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0
kscreen: Primary output changed from KScreen::Output(Id: 81 , Name: "default" ) ( "default" ) to KScreen::Output(Id: 81 , Name: "default" ) ( "default" )
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
kscreen: Primary output changed from KScreen::Output(Id: 81 , Name: "default" ) ( "default" ) to KScreen::Output(Id: 81 , Name: "default" ) ( "default" )
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBu
fferSize -1, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile  0)  
Application::crashHandler() called with signal 6; recent crashes: 2
/usr/bin/plasmashell  --crashes 2 &
KCrash: Application 'plasmashell' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0

[1]+  Stopped                 plasmashell
djviking@alnitak:~> kscreen: Primary output changed from KScreen::Output(Id: 81 , Name: "default" ) ( "default" ) to KScreen::Output(Id: 81 , Name: "defaul
t" ) ( "default" )
kscreen: Primary output changed from KScreen::Output(Id: 81 , Name: "default" ) ( "default" ) to KScreen::Output(Id: 81 , Name: "default" ) ( "default" )
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
org.kde.plasma: unversioned plugin detected, may result in instability
QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBu
fferSize -1, alphaBufferSize 8, stencilBufferSize 8, samples -1, swapBehavior 2, swapInterval 1, profile  0)  
Application::crashHandler() called with signal 6; recent crashes: 3
/usr/bin/plasmashell  --crashes 3 &
Too many crashes in short order or respawning disabled, not restarting automatically.
KCrash: Application 'plasmashell' crashing...
KCrash: Attempting to start /usr/lib64/libexec/drkonqi from kdeinit
sock_file=/run/user/1000/kdeinit5__0


Don’t know about your plasmashell details, but this sounds like the G03 left something behind that is currently interfering with the reinstalled G04.
Generally speaking, it is NOT ENOUGH to “reinstall” an Nvidia driver; you must COMPLETELY uninstall the previous version, preferably by the same means it was installed in the first place (Yast or zypper, rpm, or the NVIDIA*****.run file), and afterwards install a new version.
If by “install the G03 drivers from Nvidia” you mean “via the NVIDIA***.run file”, you should find a list of all installed elements in the README file extracted from the same package.

Hope This Helps.

I installed both G03 and G04 from nvidia opensuse repository
I first zypper removed G04, then zypper install G03
Then when it didn’t work I reinstalled G04 and removed G03 in the same process with zypper.

I have completely removed every nvidia package with zypper (not using nvidia at the moment) and have no problem with Plasma.

If you FIRST reinstalled G04 and THEN removed G03, you likely wiped some (just reinstalled) G04 files as well. If now you have cleaned everything nvidia* I think reinstalling G04 should work.

Zypper first removed G03 before it installed G04
I have tried to reinstall G04 after completely removing nvidia, but plasmashell still crashes.

The crash in your first post here is because OpenGL is not working:

QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled

This either means that the nvidia driver is not working/in use at all, or there’s a problem with its OpenGL libraries.

Can you please post /var/log/Xorg.0.log? That should show more details.

Btw, there’s currently a problem in Leap 42.1 that virtualbox-guest-kmp-default breaks the nvidia installation (to be precise the symlink creation for the kernel module, which means the kernel won’t find the nvidia module).
Uninstall it if you have it installed (you don’t need it on the host anyway, it’s only for guests), and reinstalling the nvidia driver should work.
https://bugzilla.opensuse.org/show_bug.cgi?id=983927

Virtualbox is not installed.

This Xorg.0.log is from my current setup running without Nvidia. I am going to reinstall G04 and then post the new Xorg.0.log.
http://paste.opensuse.org/3093389

Ok.

This Xorg.0.log is from my current setup running without Nvidia.

That’s useless.
We need a log when the problem occurs.

I am going to reinstall G04 and then post the new Xorg.0.log.

Yes, please.

Btw, if you prefer you can remove the nvidia driver again after reproducing the problem, reboot, and then post /var/log/Xorg.0.log.old (which is the log from the previous boot).

Here is the Xorg.0.log when plasmashell crashes when KDE starts up.
http://paste.opensuse.org/97766042

The problem is this:

    30.755] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the
    30.755] (EE) NVIDIA:     system's kernel log for additional error messages and
    30.755] (EE) NVIDIA:     consult the NVIDIA README for details.

and the system ends up using the generic fbdev driver instead (with broken OpenGL because nvidia’s OpenGL libraries are installed/used which only work with the nvidia driver).

Please run this and post the output:

sudo zypper in -f nvidia-gfxG04-kmp-default

Here is the output from the install
http://paste.opensuse.org/86284481

I suspect perhaps the problem is the last two warnings after the install
Warning: /lib/modules/4.1.27-27-default is inconsistent
Warning: weak-updates symlinks might not be created

The VBox drivers are pre installed for the case of running openSUSE in a VM you do not have to have virtual box installed to have them. They at present seem to interfere with NVIDA installs. Removing the VBox driver may help

Yes, that’s exactly the problem.

In particular this:


depmod: WARNING: //lib/modules/4.1.27-27-default/weak-updates/updates/nvidia-modeset.ko needs unknown symbol nvidia_unregister_module

depmod: WARNING: //lib/modules/4.1.27-27-default/weak-updates/updates/nvidia-uvm.ko needs unknown symbol nvUvmInterfaceChannelDestroy

You seem to have old nvidia modules lying around that are incompatible with the current kernel (self-compiled while running a different kernel? or maybe some older nvidia package that’s still installed).

Try this:

sudo rpm -e --nodeps --allmatches nvidia-gfxG04-kmp-default
sudo zypper in nvidia-gfxG04-kmp-default

If you still get the same error, we should find out where the offending modules are located and remove them IMHO.

ls -l /lib/modules/4.1.27-27-default/weak-updates/updates/

They are only pre-installed if you actually do install openSUSE inside VirtualBox.

You may refer to the LiveCDs, they do include the VirtualBox guest additions (and vmware too). When you install them, the content gets copied 1:1 basically to the hard disk, so you’ll end up with the guest additions.

This is no longer relevant though, there is no LiveCD for Leap 42.1, and also the old LiveCD-Installer has been dropped recently, they use the same installer now as the NETinstall CD.

I had installed nvidia 367 G04 drivers. I uninstalled those and installed the 340 G03 drivers. That is when the problem occurred.
I reinstalled back the G04 drivers and the problem persisted. Right now I have removed/uninstalled all nvidia packages.

Seems I have some broken symlinks that did not get deleted when I removed nvidia.


**alnitak:~ #** ll /lib/modules/4.1.27-27-default/weak-updates/updates/
totalt 0
lrwxrwxrwx 1 root root 51 13.08.2016 20:49:54 **nvidia-drm.ko** -> **/lib/modules/4.1.12-1-default/updates/nvidia-drm.ko**
lrwxrwxrwx 1 root root 55 13.08.2016 20:49:54 **nvidia-modeset.ko** -> **/lib/modules/4.1.12-1-default/updates/nvidia-modeset.ko**
lrwxrwxrwx 1 root root 51 13.08.2016 20:49:54 **nvidia-uvm.ko** -> **/lib/modules/4.1.12-1-default/updates/nvidia-uvm.ko**

I deleted those broken symlinks and installed the nvidia G04 drivers. Looking at the output it seems it managed to install them right this time.
http://paste.opensuse.org/36952802

I don’t know whether the broken symlinks should cause a problem. I’d expect them to be removed/replaced actually.
And if you install nvidia-gfxG04-kmp-default, they should not be broken anyway, as the package installs the corresponding files.

Still, it’s a good idea to remove them I think, to be sure they don’t interfere somehow (and they are pointless anyway).

I deleted those broken symlinks and installed the nvidia G04 drivers. Looking at the output it seems it managed to install them right this time.
http://paste.opensuse.org/36952802

Looks fine, yes, so the driver should work now.
Of course you’d still need to install the other nvidia packages if you haven’t done so already, i.e. x11-video-nvidiaG04, nvidia-glG04, nvidia-computeG04

Yes, they have all been installed. Will try a reboot tomorrow and verify for sure. Right now I am going to take a break and enjoy whats left of the sun.

I worked. Rebooted into Plasma with Nvidia G04.