Bug 441085 - Disabling "remember window size" causes Konsole to crash
Summary: Disabling "remember window size" causes Konsole to crash
Status: RESOLVED DUPLICATE of bug 439871
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 21.08.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-08-17 13:59 UTC by Reiddragon
Modified: 2021-08-20 22:37 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
konsole backtrace (3.31 KB, text/plain)
2021-08-20 22:14 UTC, kerossin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Reiddragon 2021-08-17 13:59:06 UTC
SUMMARY
Disabling "remember window size" causes Konsole to crash

STEPS TO REPRODUCE
1. open Konsole settings
2. Uncheck "Remember window size" and apply
3. launch another konsole window

OBSERVED RESULT
New window crashes on launch

EXPECTED RESULT
not supposed to crash ofc

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.22
KDE Frameworks Version: 5.85
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Ahmad Samir 2021-08-17 14:31:36 UTC
I couldn't reproduce this issue; is there a crash backtrace?
Comment 2 Spirit 2021-08-18 15:16:42 UTC
I have the same issue.

gdb results:
--------------------------------------------------------------
Starting program: /usr/bin/konsole 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff0481640 (LWP 143638)]
[New Thread 0x7fffef9d6640 (LWP 143639)]

Thread 1 "konsole" received signal SIGSEGV, Segmentation fault.
0x00007ffff6ff5cc5 in QWindow::winId() const () from /usr/lib/libQt5Gui.so.5
------------------------------------------

Software/OS Version
KDE Plasma: 5.22.4
KDE Framework: 5.85.0
QT Version: 5.15.2
Comment 3 Nate Graham 2021-08-18 16:08:27 UTC

*** This bug has been marked as a duplicate of bug 441045 ***
Comment 4 Ahmad Samir 2021-08-18 18:06:00 UTC
@Spirit: in gdb, after the crash, use the bt command to get more frames/info, the post the output here. (And if possible, please install the debuginfo packages for libqt5gui).
Comment 5 kerossin 2021-08-20 22:03:21 UTC
Same issue.

I noticed that if I switch my default Konsole profile to the "Default" and then disable "Remember window size" it doesn't crash anymore.

I created a new profile, didn't modify it, made it the default, "Remember window size" still disabled and Konsole launches without problems.

Started looking what settings differ between my profile and the default one, set the initial terminal size to 130x28 for my new profile. Still works.

Up next color scheme, switched it to "White on Black" and boom, crashes on startup.

Tested other color schemes, working ones:
Black on Light Yellow
Black on Random Light
Black on White
Blue on Black
Breeze
Dark Pastels
Green on Black
Linux Colors
Solarized
Solarized Light

Crash on startup:
Red on Black
White on Black

Looking further I've noticed that only the 2 crashing color schemes had "Blur background" enabled. With that disabled it no longer crashes.

So it seems an issue with combining blurred backgroung (even with 0% transparency) with NOT remembering window size. Weird.
Comment 6 Ahmad Samir 2021-08-20 22:10:13 UTC
OK, not a crash backtrace, but the blur issue gives us a clue.

*** This bug has been marked as a duplicate of bug 439871 ***
Comment 7 kerossin 2021-08-20 22:14:58 UTC
Created attachment 140885 [details]
konsole backtrace

Forgot the backtrace, attached it now.

Also, this happens on my PC with Nvidia GTX 1060 (proprietary driver) and on a ThinkPad with a Ryzen APU. Both openSUSE TW, should be identical QT, KDE versions.
Comment 8 Ahmad Samir 2021-08-20 22:19:23 UTC
Thanks for that. The backtrace confirms it's bug 439871.
Comment 9 kerossin 2021-08-20 22:37:03 UTC
I see a fix was already committed.

Thanks @Ahmad_Samir.