Bug 436676 - Crash on window resize
Summary: Crash on window resize
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 21.04.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
: 435439 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-05-06 08:30 UTC by pho
Modified: 2021-09-29 21:58 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.08, 21.04.1
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pho 2021-05-06 08:30:13 UTC
SUMMARY

I could reproduce a crash just opening VIM and resizing the window dragging the bottom-right corner to make the window really small, then going big again

Only seems to happen in fast motions, going slowly doesnt crash


STEPS TO REPRODUCE
1. Open konsole
2. run vim/micro
3. Drag the botton-right corner to make the window as small as possible, then drag it to make it as big as possible, doing fast repetitions (going slowly doesnt crash to me)

OBSERVED RESULT

Core was generated by `konsole'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007ff460b33b84 in ?? () from /usr/lib/libkonsoleprivate.so.21
[Current thread is 1 (Thread 0x7ff45b27d840 (LWP 60028))]
(gdb) bt
#0  0x00007ff460b33b84 in ?? () from /usr/lib/libkonsoleprivate.so.21
#1  0x00007ff460b328d4 in Konsole::Screen::displayCharacter(unsigned int) () from /usr/lib/libkonsoleprivate.so.21
#2  0x00007ff460b47743 in ?? () from /usr/lib/libkonsoleprivate.so.21
#3  0x00007ff460b21a1a in Konsole::Emulation::receiveData(char const*, int) () from /usr/lib/libkonsoleprivate.so.21
#4  0x00007ff4610f59e6 in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007ff460b131be in Konsole::Pty::receivedData(char const*, int) () from /usr/lib/libkonsoleprivate.so.21
#6  0x00007ff460b29ed7 in Konsole::Pty::dataReceived() () from /usr/lib/libkonsoleprivate.so.21
#7  0x00007ff4610f59e6 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007ff45eb7613d in ?? () from /usr/lib/libKF5Pty.so.5
#9  0x00007ff45eb76ae9 in ?? () from /usr/lib/libKF5Pty.so.5
#10 0x00007ff4610f5a20 in ?? () from /usr/lib/libQt5Core.so.5
#11 0x00007ff4610f8fe5 in QSocketNotifier::activated(int, QSocketNotifier::QPrivateSignal) () from /usr/lib/libQt5Core.so.5
#12 0x00007ff4610f9798 in QSocketNotifier::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#13 0x00007ff460044762 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#14 0x00007ff4610be68a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#15 0x00007ff461117da6 in ?? () from /usr/lib/libQt5Core.so.5
#16 0x00007ff45ec6702c in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#17 0x00007ff45ecbab59 in ?? () from /usr/lib/libglib-2.0.so.0
#18 0x00007ff45ec64781 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#19 0x00007ff461117191 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#20 0x00007ff4610bcfec in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#21 0x00007ff4610c54a4 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#22 0x00007ff46141fd50 in kdemain () from /usr/lib/libkdeinit5_konsole.so
#23 0x00007ff460c62b25 in __libc_start_main () from /usr/lib/libc.so.6
#24 0x0000555b41d0d05e in ?? ()
(gdb) 


SOFTWARE/OS VERSIONS

KDE Frameworks Version: 5.81
Qt Version: 5.12.2

ADDITIONAL INFORMATION

I'm using dwm without a DE, just in case this relevant for the resizing window stuff
Comment 1 Carlos Alves 2021-05-08 11:51:15 UTC
Probably related to this fix.

https://invent.kde.org/utilities/konsole/-/merge_requests/390
Comment 2 Bernhard 2021-05-12 22:25:59 UTC
This seems to be pretty bad as it is very easy to trigger, all you need it to produce lots of output in the alternate screen:

(for instance by using this oneliner)
echo -e "\e[?1049h"; yes

and it will be impossible to reduce the window size diagonally without inducing a crash.
Crashes happen on when the vertical size changes, although they happen faster if resizing diagonally.
Comment 3 Bernhard 2021-05-12 22:53:52 UTC
Okay this gets even worse.
If you start the same command and only open a new tab it will also crash in in 50% of cases from what I've seen. Same for zooming.

This also means bug 436916 is a duplicate as it triggers under the exact same conditions.


Operating System: Arch Linux
KDE Plasma Version: 5.21.5
KDE Frameworks Version: 5.82.0
Qt Version: 5.15.2
Kernel Version: 5.12.2-arch1-1
OS Type: 64-bit
Graphics Platform: X11
Processors: 24 × AMD Ryzen 9 5900X 12-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon ™ RX 480 Graphics
Comment 4 Magnus Boman 2021-05-14 12:30:05 UTC
I had this bug but installed konsole-git and at least as of 110d705f it's fixed.
Comment 5 ninjalj 2021-05-25 20:47:08 UTC
*** Bug 436916 has been marked as a duplicate of this bug. ***
Comment 6 Mosin 2021-05-27 14:08:46 UTC
(In reply to Magnus Boman from comment #4)
> I had this bug but installed konsole-git and at least as of 110d705f it's
> fixed.

I installed konsole-git from AUR and although vim no longer crashes when resizing (for me vim never crashed from zooming), Amp still crashes when zooming in or resizing.
Comment 7 Lemuel Simon 2021-09-29 21:58:14 UTC
*** Bug 435439 has been marked as a duplicate of this bug. ***