Bug 347548 - Kwin i965 crash on external display connect/disconnect
Summary: Kwin i965 crash on external display connect/disconnect
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 5.3.0
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-05-11 08:50 UTC by Edward Oubrayrie
Modified: 2018-04-12 18:24 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-24248-0.html (1.28 KB, text/html)
2018-04-11 20:18 UTC, Joseph Yasi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Edward Oubrayrie 2015-05-11 08:50:01 UTC
Application: kwin_x11 (5.3.0)

Qt Version: 5.4.1
Operating System: Linux 4.0.1-300.fc22.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:
Connect/Disconnect HDMI screen
- Unusual behavior I noticed:
I think screen goes black when disconnecting, and when I reconnect again (to trigger a new autodetect) I got the crash window.

* latest fedora 22 beta
* kwin 5.3.0-2.fc22
* xorg-x11-drv-intel 2.99.917-6.20150211.fc22
* lscpu: Intel(R) Core(TM) i5-4310U CPU @ 2.00GHz
* lspci: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)

Not sure if I should report downstream first, orwhat more information to provide.

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

Thread 4 (Thread 0x7ff1d8a43700 (LWP 1545)):
#0  0x00007ff1ef01466d in poll () from /lib64/libc.so.6
#1  0x00007ff1f0071182 in _xcb_conn_wait () from /lib64/libxcb.so.1
#2  0x00007ff1f0072cff in xcb_wait_for_event () from /lib64/libxcb.so.1
#3  0x00007ff1d9d785e9 in QXcbEventReader::run() () from /usr/lib64/qt5/plugins/platforms/libqxcb.so
#4  0x00007ff1f032945e in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#5  0x00007ff1ee8c5555 in start_thread () from /lib64/libpthread.so.0
#6  0x00007ff1ef01ff3d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7ff1d17c8700 (LWP 1554)):
#0  0x00007ff1ef0163d3 in select () from /lib64/libc.so.6
#1  0x00007ff1f0553b5f in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timespec const*) () from /lib64/libQt5Core.so.5
#2  0x00007ff1f055565e in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timespec*) () from /lib64/libQt5Core.so.5
#3  0x00007ff1f0555b8e in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#4  0x00007ff1f04ff27a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#5  0x00007ff1f0324494 in QThread::exec() () from /lib64/libQt5Core.so.5
#6  0x00007ff1f6a5d935 in QQmlThreadPrivate::run() () from /lib64/libQt5Qml.so.5
#7  0x00007ff1f032945e in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
#8  0x00007ff1ee8c5555 in start_thread () from /lib64/libpthread.so.0
#9  0x00007ff1ef01ff3d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7ff1c9c9f700 (LWP 1573)):
#0  0x00007ff1ee8ca530 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007ff1f7c176d4 in QTWTF::TCMalloc_PageHeap::scavengerThread() () from /lib64/libQt5Script.so.5
#2  0x00007ff1f7c17719 in QTWTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /lib64/libQt5Script.so.5
#3  0x00007ff1ee8c5555 in start_thread () from /lib64/libpthread.so.0
#4  0x00007ff1ef01ff3d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7ff1f8e58900 (LWP 1539)):
[KCrash Handler]
#5  0x00007ff1d03bcbeb in gen7_update_renderbuffer_surface () from /usr/lib64/dri/i965_dri.so
#6  0x00007ff1d03a9a1d in brw_update_renderbuffer_surfaces () from /usr/lib64/dri/i965_dri.so
#7  0x00007ff1d0389710 in brw_upload_state () from /usr/lib64/dri/i965_dri.so
#8  0x00007ff1d031fc5a in brw_draw_prims () from /usr/lib64/dri/i965_dri.so
#9  0x00007ff1d0180d4c in vbo_draw_arrays () from /usr/lib64/dri/i965_dri.so
#10 0x00007ff1f295d264 in KWin::GLVertexBuffer::draw(QRegion const&, unsigned int, int, int, bool) () from /lib64/libkwinglutils.so.6
#11 0x00007ff1f2961069 in KWin::GLVertexBuffer::render(QRegion const&, unsigned int, bool) () from /lib64/libkwinglutils.so.6
#12 0x00007ff1f29610fa in KWin::GLVertexBuffer::render(unsigned int) () from /lib64/libkwinglutils.so.6
#13 0x00007ff1f8778e9a in KWin::SceneOpenGL2::doPaintBackground(QVector<float> const&) () from /lib64/libkwin.so.5
#14 0x00007ff1f877d935 in KWin::SceneOpenGL::paintBackground(QRegion) () from /lib64/libkwin.so.5
#15 0x00007ff1f8767058 in KWin::Scene::paintSimpleScreen(int, QRegion) () from /lib64/libkwin.so.5
#16 0x00007ff1f8778bf3 in KWin::SceneOpenGL2::paintSimpleScreen(int, QRegion) () from /lib64/libkwin.so.5
#17 0x00007ff1f8760724 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkwin.so.5
#18 0x00007ff1f879c02f in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkwin.so.5
#19 0x00007ff1f843d51f in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkwineffects.so.6
#20 0x00007ff1f879bfda in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkwin.so.5
#21 0x00007ff1f843d51f in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkwineffects.so.6
#22 0x00007ff1f879bfda in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkwin.so.5
#23 0x00007ff1f843d51f in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkwineffects.so.6
#24 0x00007ff1f879bfda in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkwin.so.5
#25 0x00007ff1f8760346 in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*) () from /lib64/libkwin.so.5
#26 0x00007ff1f877e5e7 in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () from /lib64/libkwin.so.5
#27 0x00007ff1f87571c5 in KWin::Compositor::performCompositing() () from /lib64/libkwin.so.5
#28 0x00007ff1f05323a3 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
#29 0x00007ff1f11b3dec in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#30 0x00007ff1f11b9370 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
#31 0x00007ff1f05017fb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
#32 0x00007ff1f05572ed in QTimerInfoList::activateTimers() () from /lib64/libQt5Core.so.5
#33 0x00007ff1f0555b06 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#34 0x00007ff1d9dce5bd in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt5/plugins/platforms/libqxcb.so
#35 0x00007ff1f04ff27a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
#36 0x00007ff1f0506cdc in QCoreApplication::exec() () from /lib64/libQt5Core.so.5
#37 0x00007ff1f8ac8967 in kdemain () from /lib64/libkdeinit5_kwin_x11.so
#38 0x00007ff1eef3e790 in __libc_start_main () from /lib64/libc.so.6
#39 0x0000000000400bc9 in _start ()

Reported using DrKonqi
Comment 1 Edward Oubrayrie 2015-05-11 08:56:44 UTC
Maybe related (konqi didn't find them): Bug 343307 duplicate of Bug 339760
Comment 2 Telmo Xtra 2015-05-20 09:05:12 UTC
I have exactly the same problem. When using Plasma 5.2.0 on my laptop I could connect and disconnect the external monitor without any issues. Also closing the laptop lid worked fine.

With kwin_x11 version 5.3.0, both activities, connecting/disconnecting the external monitor and closing the laptop lid with the external monitor connect, makes kwin_x11 to crash.

The laptop is an i7 and I'm using the i965 driver on the latest Arch Linux packages.
Comment 3 Telmo Xtra 2015-05-20 09:06:07 UTC
Ohh, by the way, I have compositing effects on, using SNA acceleration and OpenGl 3.1 + EGL.
Comment 4 Magnus Hoff 2015-08-18 13:25:38 UTC
I have the same problem, and the same graphics driver.

My hardware according to `sudo dmidecode -s system-product-name`: MacBookPro10,2
Comment 5 Magnus Hoff 2015-08-18 13:35:25 UTC
Distribution: Kubuntu 15.04
Comment 6 Joseph Yasi 2015-11-02 02:19:25 UTC
I'm seeing the same issue with Kubuntu 15.10. When disconnecting a 4k monitor, kwin crashes.
Comment 7 Alexander Mentyu 2018-04-10 17:25:50 UTC
Can you still reproduce this crash?
Comment 8 Joseph Yasi 2018-04-11 20:18:12 UTC
Created attachment 111960 [details]
attachment-24248-0.html

I can't. This turned out to be a Qt bug that was fixed a while ago.

On Tue, Apr 10, 2018, 6:25 PM Alexander Mentyu <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=347548
>
> Alexander Mentyu <notuxius@gmail.com> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>                  CC|                            |notuxius@gmail.com
>
> --- Comment #7 from Alexander Mentyu <notuxius@gmail.com> ---
> Can you still reproduce this crash?
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 9 Martin Flöser 2018-04-12 18:24:22 UTC
Crash happens in the Intel driver. Setting to upstream.