Bug 354783 - plasmashell crashes on startup after enabling the second GPU (Option BaseMosaic on)
Summary: plasmashell crashes on startup after enabling the second GPU (Option BaseMosa...
Status: RESOLVED DUPLICATE of bug 345563
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.4.2
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-11-03 09:48 UTC by Duun
Modified: 2015-11-09 22:00 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Xorg.0.log (29.63 KB, text/plain)
2015-11-03 10:28 UTC, Duun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Duun 2015-11-03 09:48:46 UTC
Application: plasmashell (5.4.2)

Qt Version: 5.5.0
Operating System: Linux 4.2.3-200.fc22.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
Enabled the second GPU and BasicMosaic Option in xorg.conf:

Section "ServerLayout"
    Identifier     "Layout0"
    Screen         "Screen0" 0 0
    Option         "Xinerama" "0"
EndSection
Section "Module"
    Load           "dbe"
    Load           "extmod"
    Load           "glx"
EndSection
Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
EndSection
Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Option         "BaseMosaic" "on"
    Option         "metamodes" "GPU-0.DP-2: 1920x1200+1600+0, GPU-0.DP-3: 1920x1200+3520+0, GPU-1.DP-2: 1600x1200+0+0"
    SubSection     "Display"
        Modes      "nvidia-auto-select"
        Depth       24
    EndSubSection
EndSection

KDM show login on all three Monitors, after sucessfull login plasma cannot start, ALWAYS crashing.  Dual screen withoud BaseMosaic works fine, with BaseMosaic it is only not possible to manage screens via KDE Settings.

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma (plasmashell), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f0eb9411900 (LWP 3022))]

Thread 7 (Thread 0x7f0e97884700 (LWP 3025)):
#0  0x00007f0eb0dfd2fd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f0eb7266182 in _xcb_conn_wait () from /lib64/libxcb.so.1
#2  0x00007f0eb7267c77 in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007f0e9a1a0999 in QXcbEventReader::run() () from /lib64/libQt5XcbQpa.so.5
#4  0x00007f0eb1a0954e in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#5  0x00007f0eaf9fa555 in start_thread (arg=0x7f0e97884700) at pthread_create.c:333
#6  0x00007f0eb0e08b9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f0e94a27700 (LWP 3027)):
#0  0x00007f0eb0dfd2fd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f0eabf00dbc in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7f0e88003070, timeout=<optimized out>, context=0x7f0e880009b0) at gmain.c:4103
#2  g_main_context_iterate (context=context@entry=0x7f0e880009b0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3803
#3  0x00007f0eabf00ecc in g_main_context_iteration (context=0x7f0e880009b0, may_block=1) at gmain.c:3869
#4  0x00007f0eb1c40dab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f0eb1be7daa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f0eb1a045a4 in QThread::exec() () from /lib64/libQt5Core.so.5
#7  0x00007f0eb5cfb245 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#8  0x00007f0eb1a0954e in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#9  0x00007f0eaf9fa555 in start_thread (arg=0x7f0e94a27700) at pthread_create.c:333
#10 0x00007f0eb0e08b9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f0e8d07a700 (LWP 3038)):
#0  0x00007f0eb0dfd2fd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f0eabf00dbc in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7f0e84002e70, timeout=<optimized out>, context=0x7f0e840009b0) at gmain.c:4103
#2  g_main_context_iterate (context=context@entry=0x7f0e840009b0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3803
#3  0x00007f0eabf00ecc in g_main_context_iteration (context=0x7f0e840009b0, may_block=1) at gmain.c:3869
#4  0x00007f0eb1c40dab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f0eb1be7daa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f0eb1a045a4 in QThread::exec() () from /lib64/libQt5Core.so.5
#7  0x00007f0eb5cfb245 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#8  0x00007f0eb1a0954e in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#9  0x00007f0eaf9fa555 in start_thread (arg=0x7f0e8d07a700) at pthread_create.c:333
#10 0x00007f0eb0e08b9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f0e83366700 (LWP 3041)):
#0  0x00007f0eb0dfd2fd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f0eabf00dbc in g_main_context_poll (priority=2147483647, n_fds=1, fds=0x7f0e7c003070, timeout=<optimized out>, context=0x7f0e7c0009b0) at gmain.c:4103
#2  g_main_context_iterate (context=context@entry=0x7f0e7c0009b0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3803
#3  0x00007f0eabf00ecc in g_main_context_iteration (context=0x7f0e7c0009b0, may_block=1) at gmain.c:3869
#4  0x00007f0eb1c40dab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f0eb1be7daa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f0eb1a045a4 in QThread::exec() () from /lib64/libQt5Core.so.5
#7  0x00007f0eb5cfb245 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#8  0x00007f0eb1a0954e in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#9  0x00007f0eaf9fa555 in start_thread (arg=0x7f0e83366700) at pthread_create.c:333
#10 0x00007f0eb0e08b9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f0e819fb700 (LWP 3042)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f0eb8b35494 in QTWTF::TCMalloc_PageHeap::scavengerThread() () from /lib64/libQt5Script.so.5
#2  0x00007f0eb8b354d9 in QTWTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /lib64/libQt5Script.so.5
#3  0x00007f0eaf9fa555 in start_thread (arg=0x7f0e819fb700) at pthread_create.c:333
#4  0x00007f0eb0e08b9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f0e79552700 (LWP 3046)):
#0  g_mutex_unlock (mutex=0x7f0df00009b0) at gthread-posix.c:1348
#1  0x00007f0eabf00639 in g_main_context_query (context=context@entry=0x7f0df00009b0, max_priority=2147483647, timeout=timeout@entry=0x7f0e79551b24, fds=fds@entry=0x7f0df00013e0, n_fds=n_fds@entry=1) at gmain.c:3557
#2  0x00007f0eabf00d37 in g_main_context_iterate (context=context@entry=0x7f0df00009b0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3790
#3  0x00007f0eabf00ecc in g_main_context_iteration (context=0x7f0df00009b0, may_block=1) at gmain.c:3869
#4  0x00007f0eb1c40dab in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007f0eb1be7daa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#6  0x00007f0eb1a045a4 in QThread::exec() () from /lib64/libQt5Core.so.5
#7  0x00007f0eb689e616 in QQuickPixmapReader::run() () from /lib64/libQt5Quick.so.5
#8  0x00007f0eb1a0954e in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#9  0x00007f0eaf9fa555 in start_thread (arg=0x7f0e79552700) at pthread_create.c:333
#10 0x00007f0eb0e08b9d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f0eb9411900 (LWP 3022)):
[KCrash Handler]
#5  0x00007f0eb0d3a9c8 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#6  0x00007f0eb0d3c65a in __GI_abort () at abort.c:89
#7  0x00007f0eb19f7af1 in QMessageLogger::fatal(char const*, ...) const () from /lib64/libQt5Core.so.5
#8  0x00007f0eb690a971 in QSGRenderLoop::handleContextCreationFailure(QQuickWindow*, bool) () from /lib64/libQt5Quick.so.5
#9  0x00007f0eb690b985 in QSGGuiThreadRenderLoop::renderWindow(QQuickWindow*) () from /lib64/libQt5Quick.so.5
#10 0x00007f0eb690c916 in QSGGuiThreadRenderLoop::exposureChanged(QQuickWindow*) () from /lib64/libQt5Quick.so.5
#11 0x00007f0eb212f585 in QWindow::event(QEvent*) () from /lib64/libQt5Gui.so.5
#12 0x00007f0eb6945e91 in QQuickWindow::event(QEvent*) () from /lib64/libQt5Quick.so.5
#13 0x000000000043f276 in DesktopView::event(QEvent*) ()
#14 0x00007f0eb31a04ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#15 0x00007f0eb31a5976 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#16 0x00007f0eb1bea61b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#17 0x00007f0eb2127abc in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () from /lib64/libQt5Gui.so.5
#18 0x00007f0eb212883d in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /lib64/libQt5Gui.so.5
#19 0x00007f0eb210c5d8 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Gui.so.5
#20 0x00007f0e9a1d1e80 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5XcbQpa.so.5
#21 0x00007f0eabf00a8a in g_main_dispatch (context=0x7f0e90001710) at gmain.c:3122
#22 g_main_context_dispatch (context=context@entry=0x7f0e90001710) at gmain.c:3737
#23 0x00007f0eabf00e20 in g_main_context_iterate (context=context@entry=0x7f0e90001710, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3808
#24 0x00007f0eabf00ecc in g_main_context_iteration (context=0x7f0e90001710, may_block=1) at gmain.c:3869
#25 0x00007f0eb1c40d8f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#26 0x00007f0eb1be7daa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#27 0x00007f0eb1befe6c in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#28 0x00000000004302c3 in main ()

Possible duplicates by query: bug 354685, bug 354554, bug 354325, bug 354059, bug 353981.

Reported using DrKonqi
Comment 1 Duun 2015-11-03 10:25:26 UTC
workaround found:
cd /usr/lib64/xorg/modules/extensions/
mv libglx.so libglx.so.xorg
ln -s /usr/lib64/nvidia-340xx/xorg/libglx.so libglx.so

looks like a nvidia BUG, but plasma should detect that there was no GLX module loaded
Comment 2 Duun 2015-11-03 10:28:14 UTC
Created attachment 95291 [details]
Xorg.0.log
Comment 3 David Edmundson 2015-11-03 12:19:00 UTC
#7 0x00007f0eb19f7af1 in QMessageLogger::fatal(char const*, ...) const () from /lib64/libQt5Core.so.5 #8 0x00007f0eb690a971 in QSGRenderLoop::handleContextCreationFailure(QQuickWindow*, bool) () from /lib64/libQt5Quick.so.5

Arguably it is detecting it - the method is called "handleContextCreationFaiulre" it just handles it by quitting.

This then prints a message to stdout, could you get me that message?
Comment 4 Duun 2015-11-04 08:56:10 UTC
stdout info:
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, blueBufferSize -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...
Comment 5 David Edmundson 2015-11-09 22:00:51 UTC
Thanks

Error raised here means there's something broken with your openGL drivers.
One common cause is NVidia's libGL installed, but the NVidia kernel module missing.

*** This bug has been marked as a duplicate of bug 345563 ***