Bug 358004 - Kwin crash on closing matlab figures / closing matlab
Summary: Kwin crash on closing matlab figures / closing matlab
Status: RESOLVED DUPLICATE of bug 357032
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2016-01-15 01:31 UTC by Christian Butcher
Modified: 2016-01-18 00:49 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Butcher 2016-01-15 01:31:43 UTC
Application: kwin_x11 (5.5.90)
 (Compiled from sources)
Qt Version: 5.5.1
Operating System: Linux 4.3.0 x86_64

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

Matlab command line entry

figure();
close(gcf); % This line closes the active figure

reproduces (almost) every time.

Backtraces are available (one probably attached to this report by KCrash) additionally at 
https://paste.kde.org/pu8niuxq5 (figure closing)
https://paste.kde.org/pxwcosz7a (exit of matlab)

Using Nouveau drivers, output of kwin_x11 --replace is:

QXcbConnection: XCB error: 8 (BadMatch), sequence: 1584, resource id: 81788933, major code: 42 (SetInputFocus), minor code: 0
OpenGL vendor string:                   nouveau
OpenGL renderer string:                 Gallium 0.4 on NVC3
OpenGL version string:                  4.1 (Core Profile) Mesa 11.2.0-devel (git-86fa484)
OpenGL shading language version string: 4.10
Driver:                                 Nouveau
GPU class:                              Unknown
OpenGL version:                         4.1
GLSL version:                           4.10
Mesa version:                           11.2
X server version:                       1.18.99
Linux kernel version:                   4.3
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
QMetaProperty::read: Unable to handle unregistered datatype 'KWayland::Server::SurfaceInterface*' for property 'KWin::Toplevel::surface'

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f22ec51c800 (LWP 1978))]

Thread 4 (Thread 0x7f22d1c9a700 (LWP 1982)):
#0  0x00007f22e11f86cd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f22e2253ef2 in _xcb_conn_wait (c=c@entry=0x21ec0d0, cond=cond@entry=0x21ec110, vector=vector@entry=0x0, count=count@entry=0x0) at xcb_conn.c:479
#2  0x00007f22e2255c07 in xcb_wait_for_event (c=0x21ec0d0) at xcb_in.c:693
#3  0x00007f22d2c825b9 in ?? () from /opt/qt5/lib64/libQt5XcbQpa.so.5
#4  0x00007f22e250e09f in ?? () from /opt/qt5/lib64/libQt5Core.so.5
#5  0x00007f22e4ae32c4 in start_thread (arg=0x7f22d1c9a700) at pthread_create.c:310
#6  0x00007f22e1200ebd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f22ca792700 (LWP 1987)):
#0  0x00007f22e11f9e03 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f22e272d72f in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) () from /opt/qt5/lib64/libQt5Core.so.5
#2  0x00007f22e272f0a4 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) () from /opt/qt5/lib64/libQt5Core.so.5
#3  0x00007f22e272f576 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/qt5/lib64/libQt5Core.so.5
#4  0x00007f22e26dc09a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/qt5/lib64/libQt5Core.so.5
#5  0x00007f22e250928c in QThread::exec() () from /opt/qt5/lib64/libQt5Core.so.5
#6  0x00007f22ea0db7e5 in ?? () from /opt/qt5/lib64/libQt5Qml.so.5
#7  0x00007f22e250e09f in ?? () from /opt/qt5/lib64/libQt5Core.so.5
#8  0x00007f22e4ae32c4 in start_thread (arg=0x7f22ca792700) at pthread_create.c:310
#9  0x00007f22e1200ebd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f22ba1ed700 (LWP 2003)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f22eb275714 in ?? () from /opt/qt5/lib64/libQt5Script.so.5
#2  0x00007f22eb275759 in ?? () from /opt/qt5/lib64/libQt5Script.so.5
#3  0x00007f22e4ae32c4 in start_thread (arg=0x7f22ba1ed700) at pthread_create.c:310
#4  0x00007f22e1200ebd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f22ec51c800 (LWP 1978)):
[KCrash Handler]
#5  0x00007f22ebe08698 in KWin::Scene::Window::buildQuads(bool) const [clone .constprop.113] () from /opt/kde/lib64/libkwin.so.5
#6  0x00007f22ebe09ae2 in KWin::Scene::paintSimpleScreen(int, QRegion) () from /opt/kde/lib64/libkwin.so.5
#7  0x00007f22ebe1c4f3 in KWin::SceneOpenGL2::paintSimpleScreen(int, QRegion) () from /opt/kde/lib64/libkwin.so.5
#8  0x00007f22ebe041e4 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () from /opt/kde/lib64/libkwin.so.5
#9  0x00007f22ebe32dff in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /opt/kde/lib64/libkwin.so.5
#10 0x00007f22eba9cddf in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /opt/kde/lib64/libkwineffects.so.7
#11 0x00007f22ebe32dba in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /opt/kde/lib64/libkwin.so.5
#12 0x00007f22eba9cddf in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /opt/kde/lib64/libkwineffects.so.7
#13 0x00007f22ebe32dba in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /opt/kde/lib64/libkwin.so.5
#14 0x00007f22eba9cddf in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /opt/kde/lib64/libkwineffects.so.7
#15 0x00007f22ebe32dba in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /opt/kde/lib64/libkwin.so.5
#16 0x00007f22ebe03e43 in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*) () from /opt/kde/lib64/libkwin.so.5
#17 0x00007f22ebe21c18 in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () from /opt/kde/lib64/libkwin.so.5
#18 0x00007f22ebdfbbb4 in KWin::Compositor::performCompositing() () from /opt/kde/lib64/libkwin.so.5
#19 0x00007f22e270c09b in QObject::event(QEvent*) () from /opt/qt5/lib64/libQt5Core.so.5
#20 0x00007f22e33f014c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /opt/qt5/lib64/libQt5Widgets.so.5
#21 0x00007f22e33f5266 in QApplication::notify(QObject*, QEvent*) () from /opt/qt5/lib64/libQt5Widgets.so.5
#22 0x00007f22e26de543 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /opt/qt5/lib64/libQt5Core.so.5
#23 0x00007f22e2730c1d in QTimerInfoList::activateTimers() () from /opt/qt5/lib64/libQt5Core.so.5
#24 0x00007f22e272f4f6 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/qt5/lib64/libQt5Core.so.5
#25 0x00007f22d2ce5a4d in ?? () from /opt/qt5/lib64/libQt5XcbQpa.so.5
#26 0x00007f22e26dc09a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /opt/qt5/lib64/libQt5Core.so.5
#27 0x00007f22e26e3c4d in QCoreApplication::exec() () from /opt/qt5/lib64/libQt5Core.so.5
#28 0x00007f22ec183ed6 in kdemain () from /opt/kde/lib64/libkdeinit5_kwin_x11.so
#29 0x00007f22e1139050 in __libc_start_main (main=0x400c20 <main>, argc=3, argv=0x7fff06e6ff18, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff06e6ff08) at libc-start.c:289
#30 0x0000000000400c4e in _start () at ../sysdeps/x86_64/start.S:122

Possible duplicates by query: bug 357032, bug 356692, bug 356620, bug 356141, bug 355103.

Reported using DrKonqi
Comment 1 Thomas Lübking 2016-01-15 17:47:25 UTC
Sounds and looks a lot like bug #357032 (we'd need a better backtrace with line numbers to be sure)

*** This bug has been marked as a duplicate of bug 357032 ***
Comment 2 Christian Butcher 2016-01-18 00:49:54 UTC
Fixed by diff in comment 11 of the bug of which this is marked a duplicate - see https://git.reviewboard.kde.org/r/126787