Bug 403362

Summary: Xinerama with Nvidia not showing other monitor contents, only cursors and tooltips
Product: [Plasma] plasmashell Reporter: codywohlers <kde>
Component: generalAssignee: David Edmundson <kde>
Status: RESOLVED UPSTREAM    
Severity: crash CC: kde, plasma-bugs
Priority: NOR Keywords: drkonqi
Version: 5.12.7   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: screenshot
xorg.conf

Description codywohlers 2019-01-18 15:36:30 UTC
Application: plasmashell (5.12.7)

Qt Version: 5.9.5
Frameworks Version: 5.44.0
Operating System: Linux 4.15.0-43-generic x86_64
Distribution: Ubuntu 18.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:

4 monitor setup with GTX-560 and GTX-550Ti using 2 Twinview X Screens with Xinerama to make it one big desktop.  Login screen shows correctly on all 4 monitors.
After logging in only the primary monitor displays a dektop and 3 of the 4 monitors are black but will display a cursor.  Windows can be moved on to those monitors but will not be displayed.  I have window move/resizing tooltips on and when you move a window on those monitors it leaves trails of the tooltips.
https://i.imgur.com/bmnkO67.png

Notes: 
The exact same Nvidia driver and and xorg.conf worked in KDE4 (Mint 17.3) yesterday.
If I maximize a window it stretches across all monitors and it should not with Twinview enabled.
If I disable Twinview then 2 of the 4 monitors (X Screen 1) will be black but show the cursor and leave trails of tooltips.
Twinview without Xinerama and just 2 monitors in total (one X Screen) works fine.
The 4 monitor setup works as expected with the Nouveau driver.
During the Nvidia driver install, the installer found "An incomplete installation of libglvnd" and installed it's own "full copy".

xorg.conf - https://www.dropbox.com/s/q4vt3nrapmm2s0a/xorg.conf2019-01-18?dl=0

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma (plasmashell), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f014bb00c80 (LWP 5393))]

Thread 10 (Thread 0x7f0069ffb700 (LWP 5562)):
[KCrash Handler]
#6  0x00007f009ae10ba8 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.390.87
#7  0x00007f009b0e1d0a in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.390.87
#8  0x00007f009afa970a in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.390.87
#9  0x00007f009afbfe14 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.390.87
#10 0x00007f009afb8bc5 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.390.87
#11 0x00007f009b0c6a16 in ?? () from /usr/lib/x86_64-linux-gnu/libnvidia-glcore.so.390.87
#12 0x00007f0149527f0f in QSGBatchRenderer::Renderer::renderMergedBatch(QSGBatchRenderer::Batch const*) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#13 0x00007f014952900d in QSGBatchRenderer::Renderer::renderBatches() () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#14 0x00007f014952e85e in QSGBatchRenderer::Renderer::render() () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#15 0x00007f014951f2a0 in QSGRenderer::renderScene(QSGBindable const&) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#16 0x00007f014951f75b in QSGRenderer::renderScene(unsigned int) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#17 0x00007f0149559af0 in QSGDefaultRenderContext::renderNextFrame(QSGRenderer*, unsigned int) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#18 0x00007f01495b7b68 in QQuickWindowPrivate::renderSceneGraph(QSize const&) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#19 0x00007f0149562bbc in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#20 0x00007f0149567ac8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#21 0x00007f01457e116d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x00007f01449626db in start_thread (arg=0x7f0069ffb700) at pthread_create.c:463
#23 0x00007f01450dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 9 (Thread 0x7f0074bfd700 (LWP 5561)):
#0  0x00007f01449689f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564760947ee0) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x564760947e90, cond=0x564760947eb8) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x564760947eb8, mutex=0x564760947e90) at pthread_cond_wait.c:655
#3  0x00007f01457e259b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f01495676a8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#5  0x00007f0149567b0a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007f01457e116d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f01449626db in start_thread (arg=0x7f0074bfd700) at pthread_create.c:463
#8  0x00007f01450dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f0091104700 (LWP 5550)):
#0  0x00007f01449689f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564761852d40) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x564761852cf0, cond=0x564761852d18) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x564761852d18, mutex=0x564761852cf0) at pthread_cond_wait.c:655
#3  0x00007f01457e259b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f01495676a8 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#5  0x00007f0149567b0a in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007f01457e116d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f01449626db in start_thread (arg=0x7f0091104700) at pthread_create.c:463
#8  0x00007f01450dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f0091907700 (LWP 5529)):
#0  0x00007fff52de8c4f in clock_gettime ()
#1  0x00007f01450ebea6 in __GI___clock_gettime (clock_id=1, tp=0x7f0091906aa0) at ../sysdeps/unix/clock_gettime.c:115
#2  0x00007f0145a18221 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007f0145a16a59 in QTimerInfoList::updateCurrentTime() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f0145a17035 in QTimerInfoList::timerWait(timespec&) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f0145a1867e in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f013fc20a98 in g_main_context_prepare () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#7  0x00007f013fc2146b in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#8  0x00007f013fc2164c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007f0145a1890b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f01459bd9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#11 0x00007f01457dc22a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f01494e82a6 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#13 0x00007f01457e116d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007f01449626db in start_thread (arg=0x7f0091907700) at pthread_create.c:463
#15 0x00007f01450dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f0125743700 (LWP 5517)):
#0  0x00007f01449689f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x7f014b4bdfb8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x7f014b4bdf68, cond=0x7f014b4bdf90) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x7f014b4bdf90, mutex=0x7f014b4bdf68) at pthread_cond_wait.c:655
#3  0x00007f014b1c75f4 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#4  0x00007f014b1c7639 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#5  0x00007f01449626db in start_thread (arg=0x7f0125743700) at pthread_create.c:463
#6  0x00007f01450dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f0127598700 (LWP 5490)):
#0  0x00007f01450cb0b4 in __GI___libc_read (fd=12, buf=0x7f0127597b70, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f013fc65cd0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f013fc21027 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f013fc214e0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f013fc2164c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f0145a1890b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f01459bd9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f01457dc22a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f014894e6f5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#9  0x00007f01457e116d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f01449626db in start_thread (arg=0x7f0127598700) at pthread_create.c:463
#11 0x00007f01450dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f012d6f2700 (LWP 5487)):
#0  0x00007f01450cb0b4 in __GI___libc_read (fd=11, buf=0x7f012d6f1b70, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:27
#1  0x00007f013fc65cd0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f013fc21027 in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f013fc214e0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f013fc2164c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f0145a1890b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f01459bd9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007f01457dc22a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f014894e6f5 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#9  0x00007f01457e116d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007f01449626db in start_thread (arg=0x7f012d6f2700) at pthread_create.c:463
#11 0x00007f01450dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f012f137700 (LWP 5420)):
#0  0x00007f01450cfbf9 in __GI___poll (fds=0x7f01280137b0, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f013fc21539 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f013fc2164c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f0145a1890b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f01459bd9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f01457dc22a in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#6  0x00007f0145e95d45 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#7  0x00007f01457e116d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#8  0x00007f01449626db in start_thread (arg=0x7f012f137700) at pthread_create.c:463
#9  0x00007f01450dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f0135833700 (LWP 5403)):
#0  0x00007f01450cfbf9 in __GI___poll (fds=0x7f0135832ca8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f014a0f4747 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f014a0f636a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f0137fba2a9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f01457e116d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#5  0x00007f01449626db in start_thread (arg=0x7f0135833700) at pthread_create.c:463
#6  0x00007f01450dc88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f014bb00c80 (LWP 5393)):
#0  0x00007f01449689f3 in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x564762205240) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x5647622051f0, cond=0x564762205218) at pthread_cond_wait.c:502
#2  __pthread_cond_wait (cond=0x564762205218, mutex=0x5647622051f0) at pthread_cond_wait.c:655
#3  0x00007f01457e259b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#4  0x00007f0149563e7d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#5  0x00007f014956696d in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#6  0x00007f0149567259 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#7  0x00007f0146217375 in QWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#8  0x00007f01495c16c5 in QQuickWindow::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5
#9  0x00007f01469c782c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007f01469cf0f4 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007f01459bf9a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#12 0x00007f014620c43f in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#13 0x00007f014620d07d in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#14 0x00007f01461e42eb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#15 0x00007f013801d1c0 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#16 0x00007f013fc21387 in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007f013fc215c0 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007f013fc2164c in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007f0145a188ef in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007f01459bd9ea in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007f01459c6a84 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x000056475f382cfa in ?? ()
#23 0x00007f0144fdcb97 in __libc_start_main (main=0x56475f382320, argc=1, argv=0x7fff52d17358, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff52d17348) at ../csu/libc-start.c:310
#24 0x000056475f38309a in _start ()

Possible duplicates by query: bug 402975, bug 401966, bug 401257, bug 400718, bug 400680.

Reported using DrKonqi
Comment 1 codywohlers 2019-01-18 15:41:59 UTC
Created attachment 117540 [details]
screenshot
Comment 2 codywohlers 2019-01-18 15:42:27 UTC
Created attachment 117541 [details]
xorg.conf
Comment 3 codywohlers 2019-01-18 16:00:13 UTC
WORKAROUND:

If I change the Compositor setting "Rendering backend" to something not OpenGL (like XRender) then my other 3 monitors instantly work again.
OpenGL 2.0 and 3.1 settings do not work.

https://devtalk.nvidia.com/default/topic/1026340/linux/black-or-incorrect-textures-in-kde/

Similar bugs have indicated this is probably an Nvidia driver issue and I should submit the bug to them.
Comment 4 codywohlers 2019-01-18 17:42:37 UTC
from Xorg.0.log:
[  8419.445] (WW) NVIDIA: The Composite and Xinerama extensions are both enabled, which
[  8419.445] (WW) NVIDIA:     is an unsupported configuration.  The driver will continue
[  8419.445] (WW) NVIDIA:     to load, but may behave strangely.

Closing as upstream issue.
Comment 5 codywohlers 2019-01-18 17:45:19 UTC
Closing as upstream issue.
Comment 6 Bug Janitor Service 2019-02-02 04:33:06 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!