Bug 389225 - qBadAlloc in rearrange windows
Summary: qBadAlloc in rearrange windows
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: effects-present-windows (show other bugs)
Version: 5.11.5
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-01-19 20:56 UTC by Amir
Modified: 2021-01-06 04:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Amir 2018-01-19 20:56:27 UTC
Application: kwin_x11 (5.11.5)

Qt Version: 5.9.3
Frameworks Version: 5.42.0
Operating System: Linux 4.13.0-26-generic x86_64
Distribution: KDE neon User Edition 5.11

-- Information about the crash:
- What I was doing when the application crashed:
This happen all the times when I leave my computer and it turns off the screen and I resume the PC.

The display getsdistorted and then the program crashesh. My desktop background is gone

I am using neon 5.1.5

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f88ff1da940 (LWP 2709))]

Thread 15 (Thread 0x7f88dbfff700 (LWP 11438)):
#0  0x00007f88febe7811 in __GI_ppoll (fds=fds@entry=0x7f881c000ac8, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:50
#1  0x00007f88fc2250b1 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f881c000ac8) at kernel/qcore_unix.cpp:81
#3  qt_safe_poll (fds=0x7f881c000ac8, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:102
#4  0x00007f88fc226742 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:500
#5  0x00007f88fc1d1e2a in QEventLoop::exec (this=this@entry=0x7f88dbffec60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007f88fbffa8f4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#7  0x00007f88f692fd25 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f88fbfff709 in QThreadPrivate::start (arg=0x1dd4570) at thread/qthread_unix.cpp:368
#9  0x00007f88f7c1f6ba in start_thread (arg=0x7f88dbfff700) at pthread_create.c:333
#10 0x00007f88febf341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 14 (Thread 0x7f88bbfff700 (LWP 6229)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f88d8e8e60b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#2  0x00007f88d8e8e517 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#3  0x00007f88f7c1f6ba in start_thread (arg=0x7f88bbfff700) at pthread_create.c:333
#4  0x00007f88febf341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 13 (Thread 0x7f88bb7fe700 (LWP 2814)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f88fb187d04 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007f88fb187d49 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007f88f7c1f6ba in start_thread (arg=0x7f88bb7fe700) at pthread_create.c:333
#4  0x00007f88febf341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 12 (Thread 0x7f88c0990700 (LWP 2810)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f88d8e8e60b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#2  0x00007f88d8e8e517 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#3  0x00007f88f7c1f6ba in start_thread (arg=0x7f88c0990700) at pthread_create.c:333
#4  0x00007f88febf341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 11 (Thread 0x7f88c1191700 (LWP 2809)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f88d8e8e60b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#2  0x00007f88d8e8e517 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#3  0x00007f88f7c1f6ba in start_thread (arg=0x7f88c1191700) at pthread_create.c:333
#4  0x00007f88febf341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 10 (Thread 0x7f88c1992700 (LWP 2808)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f88d8e8e60b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#2  0x00007f88d8e8e517 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#3  0x00007f88f7c1f6ba in start_thread (arg=0x7f88c1992700) at pthread_create.c:333
#4  0x00007f88febf341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7f88c2193700 (LWP 2807)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f88d8e8e60b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#2  0x00007f88d8e8e517 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#3  0x00007f88f7c1f6ba in start_thread (arg=0x7f88c2193700) at pthread_create.c:333
#4  0x00007f88febf341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7f88c2994700 (LWP 2806)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f88d8e8e60b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#2  0x00007f88d8e8e517 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#3  0x00007f88f7c1f6ba in start_thread (arg=0x7f88c2994700) at pthread_create.c:333
#4  0x00007f88febf341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7f88c3195700 (LWP 2805)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f88d8e8e60b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#2  0x00007f88d8e8e517 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#3  0x00007f88f7c1f6ba in start_thread (arg=0x7f88c3195700) at pthread_create.c:333
#4  0x00007f88febf341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f88c3bce700 (LWP 2804)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f88d8e8e60b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#2  0x00007f88d8e8e517 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#3  0x00007f88f7c1f6ba in start_thread (arg=0x7f88c3bce700) at pthread_create.c:333
#4  0x00007f88febf341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f88c43cf700 (LWP 2803)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f88d8e8e60b in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#2  0x00007f88d8e8e517 in ?? () from /usr/lib/x86_64-linux-gnu/dri/radeonsi_dri.so
#3  0x00007f88f7c1f6ba in start_thread (arg=0x7f88c43cf700) at pthread_create.c:333
#4  0x00007f88febf341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f88db5bc700 (LWP 2801)):
#0  0x00007f88febe7811 in __GI_ppoll (fds=fds@entry=0x7f88c8000ac8, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:50
#1  0x00007f88fc2250b1 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f88c8000ac8) at kernel/qcore_unix.cpp:81
#3  qt_safe_poll (fds=0x7f88c8000ac8, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:102
#4  0x00007f88fc226742 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:500
#5  0x00007f88fc1d1e2a in QEventLoop::exec (this=this@entry=0x7f88db5bbc60, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007f88fbffa8f4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#7  0x00007f88f692fd25 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f88fbfff709 in QThreadPrivate::start (arg=0x16d30a0) at thread/qthread_unix.cpp:368
#9  0x00007f88f7c1f6ba in start_thread (arg=0x7f88db5bc700) at pthread_create.c:333
#10 0x00007f88febf341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f88e1ec9700 (LWP 2754)):
#0  0x00007f88febe7811 in __GI_ppoll (fds=fds@entry=0x7f88d400be68, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:50
#1  0x00007f88fc2250b1 in ppoll (__ss=<optimized out>, __timeout=<optimized out>, __nfds=<optimized out>, __fds=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/poll2.h:77
#2  qt_ppoll (timeout_ts=0x0, nfds=1, fds=0x7f88d400be68) at kernel/qcore_unix.cpp:81
#3  qt_safe_poll (fds=0x7f88d400be68, nfds=1, timeout_ts=timeout_ts@entry=0x0) at kernel/qcore_unix.cpp:102
#4  0x00007f88fc226742 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=...) at kernel/qeventdispatcher_unix.cpp:500
#5  0x00007f88fc1d1e2a in QEventLoop::exec (this=this@entry=0x7f88e1ec8c50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#6  0x00007f88fbffa8f4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:515
#7  0x00007f88f5af3315 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#8  0x00007f88fbfff709 in QThreadPrivate::start (arg=0x7f88f5d67d40) at thread/qthread_unix.cpp:368
#9  0x00007f88f7c1f6ba in start_thread (arg=0x7f88e1ec9700) at pthread_create.c:333
#10 0x00007f88febf341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f88e4300700 (LWP 2729)):
#0  0x00007f88febe774d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f88fdd1cc62 in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f88fdd1e8d7 in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f88e4da81f9 in QXcbEventReader::run (this=0x1566e40) at qxcbconnection.cpp:1330
#4  0x00007f88fbfff709 in QThreadPrivate::start (arg=0x1566e40) at thread/qthread_unix.cpp:368
#5  0x00007f88f7c1f6ba in start_thread (arg=0x7f88e4300700) at pthread_create.c:333
#6  0x00007f88febf341d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f88ff1da940 (LWP 2709)):
[KCrash Handler]
#6  0x00007f88feb21428 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:54
#7  0x00007f88feb2302a in __GI_abort () at abort.c:89
#8  0x00007f88fbc6084d in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#9  0x00007f88fbc5e6b6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#10 0x00007f88fbc5e701 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#11 0x00007f88fbc5e919 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#12 0x00007f88fbfe3202 in qBadAlloc () at global/qglobal.cpp:3057
#13 0x00007f88fc04fd0a in QListData::detach_grow (this=this@entry=0x1e86ac8, idx=idx@entry=0x7ffd4cb8f98c, num=num@entry=1) at tools/qlist.cpp:80
#14 0x00007f88fb4d95cd in QList<KWin::EffectWindow*>::detach_helper_grow (this=0x1e86ac8, i=i@entry=2147483647, c=c@entry=1) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:756
#15 0x00007f88fb4e407d in QList<KWin::EffectWindow*>::append (this=<optimized out>, t=@0x7ffd4cb8fa70: 0x1eac810) at /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:582
#16 0x00007f88fb502a31 in KWin::PresentWindowsEffect::rearrangeWindows (this=this@entry=0x18ee2d0) at /workspace/build/effects/presentwindows/presentwindows.cpp:930
#17 0x00007f88fb503990 in KWin::PresentWindowsEffect::reCreateGrids (this=0x18ee2d0) at /workspace/build/effects/presentwindows/presentwindows.cpp:1965
#18 0x00007f88fc2005a6 in QtPrivate::QSlotObjectBase::call (a=0x7ffd4cb8fc10, r=0x18ee2d0, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#19 QMetaObject::activate (sender=0x18b0800, signalOffset=<optimized out>, local_signal_index=<optimized out>, argv=<optimized out>) at kernel/qobject.cpp:3749
#20 0x00007f88fc2005a6 in QtPrivate::QSlotObjectBase::call (a=0x7ffd4cb8fd80, r=0x18b0800, this=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qobject_impl.h:101
#21 QMetaObject::activate (sender=sender@entry=0x16d5fa0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd4cb8fd80) at kernel/qobject.cpp:3749
#22 0x00007f88fc200b87 in QMetaObject::activate (sender=sender@entry=0x16d5fa0, m=m@entry=0x7f88feae4420 <KWin::Screens::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd4cb8fd80) at kernel/qobject.cpp:3628
#23 0x00007f88fe8285fc in KWin::Screens::countChanged (this=this@entry=0x16d5fa0, _t1=2, _t2=1) at /workspace/build/obj-x86_64-linux-gnu/moc_screens.cpp:255
#24 0x00007f88fe70c961 in KWin::Screens::setCount (this=this@entry=0x16d5fa0, count=<optimized out>) at /workspace/build/screens.cpp:130
#25 0x00007f88e14a54b3 in KWin::XRandRScreens::update<KWin::Xcb::RandR::CurrentResources> (this=0x16d5fa0) at /workspace/build/plugins/platforms/x11/standalone/screens_xrandr.cpp:116
#26 0x00007f88fc200279 in QMetaObject::activate (sender=sender@entry=0x1692a60, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd4cb90050) at kernel/qobject.cpp:3766
#27 0x00007f88fc200b87 in QMetaObject::activate (sender=sender@entry=0x1692a60, m=m@entry=0x7f88fc68aea0 <QTimer::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffd4cb90050) at kernel/qobject.cpp:3628
#28 0x00007f88fc20cb07 in QTimer::timeout (this=this@entry=0x1692a60, _t1=...) at .moc/moc_qtimer.cpp:200
#29 0x00007f88fc20ce08 in QTimer::timerEvent (this=0x1692a60, e=<optimized out>) at kernel/qtimer.cpp:255
#30 0x00007f88fc201273 in QObject::event (this=0x1692a60, e=<optimized out>) at kernel/qobject.cpp:1268
#31 0x00007f88fcf30b9c in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x1692a60, e=0x7ffd4cb90340) at kernel/qapplication.cpp:3722
#32 0x00007f88fcf385a7 in QApplication::notify (this=0x7ffd4cb90630, receiver=0x1692a60, e=0x7ffd4cb90340) at kernel/qapplication.cpp:3481
#33 0x00007f88fc1d3df8 in QCoreApplication::notifyInternal2 (receiver=0x1692a60, event=event@entry=0x7ffd4cb90340) at kernel/qcoreapplication.cpp:1018
#34 0x00007f88fc228a7e in QCoreApplication::sendEvent (event=0x7ffd4cb90340, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:233
#35 QTimerInfoList::activateTimers (this=this@entry=0x15a0ca0) at kernel/qtimerinfo_unix.cpp:643
#36 0x00007f88fc225c4c in QEventDispatcherUNIXPrivate::activateTimers (this=this@entry=0x15a0c00) at kernel/qeventdispatcher_unix.cpp:249
#37 0x00007f88fc2269b2 in QEventDispatcherUNIX::processEvents (this=<optimized out>, flags=..., flags@entry=...) at kernel/qeventdispatcher_unix.cpp:514
#38 0x00007f88e4e078bd in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at qunixeventdispatcher.cpp:68
#39 0x00007f88fc1d1e2a in QEventLoop::exec (this=this@entry=0x7ffd4cb90510, flags=..., flags@entry=...) at kernel/qeventloop.cpp:212
#40 0x00007f88fc1dad64 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1291
#41 0x00007f88fc7ba20c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1679
#42 0x00007f88fcf30af5 in QApplication::exec () at kernel/qapplication.cpp:2910
#43 0x00007f88feebf1d4 in kdemain (argc=1, argv=0x7ffd4cb907c8) at /workspace/build/main_x11.cpp:466
#44 0x00007f88feb0c830 in __libc_start_main (main=0x400710 <main(int, char**)>, argc=3, argv=0x7ffd4cb907c8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffd4cb907b8) at ../csu/libc-start.c:291
#45 0x0000000000400749 in _start ()

Possible duplicates by query: bug 277629, bug 269746, bug 265865.

Reported using DrKonqi
Comment 1 Justin Zobel 2020-12-07 04:14:23 UTC
Thank you for the report.

As it has been a while since this was reported, can you please test and confirm if this issue is still occurring or if this bug report can be marked as resolved.

I have set the bug status to "needsinfo" pending your response, please change back to "reported" or "resolved/worksforme" when you respond, thank you.
Comment 2 Bug Janitor Service 2020-12-22 04:34:41 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!
Comment 3 Bug Janitor Service 2021-01-06 04:34:12 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now 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

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