Bug 497633

Summary: Dragging a tab on a 'Configure - Konsole' window crashes with a 'invalid nullptr' exception
Product: [Applications] konsole Reporter: Bowarc
Component: tabbarAssignee: Konsole Developer <konsole-devel>
Status: REPORTED ---    
Severity: crash    
Priority: NOR    
Version: 24.12.0   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Quick video showing the crash in gdb
attachment-3605067-0.html

Description Bowarc 2024-12-18 01:32:40 UTC
Created attachment 176736 [details]
Quick video showing the crash in gdb

Im a new Linux user so if i did something wrong please tell me

SUMMARY
Dragging a tab on the 'Configure Konsole' window crashes



STEPS TO REPRODUCE
1. Open Konsole
2. Open the Configure window ( ctrl + shift + , )
3. Drag a tab onto that new window

OBSERVED RESULT
Segfault
Stacktrace:
``` 
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffe03ff6c0 (LWP 45632)]
[New Thread 0x7fffdf7ff6c0 (LWP 45633)]
[New Thread 0x7fffdeffe6c0 (LWP 45634)]
[New Thread 0x7fffde4e96c0 (LWP 45635)]
[New Thread 0x7fffddb1e6c0 (LWP 45637)]
[New Thread 0x7fffdd31d6c0 (LWP 45638)]
[New Thread 0x7fffd53ff6c0 (LWP 45639)]
[New Thread 0x7fffd4bfe6c0 (LWP 45640)]
[Detaching after fork from child process 45641]
[New Thread 0x7fffbffff6c0 (LWP 45666)]
[New Thread 0x7fffbf7fe6c0 (LWP 45667)]
qt.qpa.wayland: Creating a popup with a parent, QWidgetWindow(0x555555a81bc0, name="MainWindow#1Window") which does not match the current topmost grabbing popup, QWidgetWindow(0x555555d6dfc0, name="QMenuClassWindow") With some shell surface protocols, this is not allowed. The wayland QPA plugin is currently handling it by setting the parent to the topmost grabbing popup. Note, however, that this may cause positioning errors and popups closing unxpectedly. Please fix the transient parent of the popup.
qt.core.qobject.connect: QObject::connect(Konsole::Session, Unknown): invalid nullptr parameter

Thread 1 "konsole" received signal SIGSEGV, Segmentation fault.
Konsole::ViewManager::registerTerminal (this=this@entry=0x0, terminal=terminal@entry=0x555555b5ce10)
    at /usr/src/debug/konsole-24.12.0-1.fc41.x86_64/src/ViewManager.cpp:1697
1697        connect(terminal, &TerminalDisplay::requestToggleExpansion, _viewContainer, &TabbedViewContainer::toggleMaximizeCurrentTerminal, Qt::UniqueConnection);
``` 

EXPECTED RESULT
User not being able to move the tab, and the tab returning to the tabbar

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.4-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: NV166

ADDITIONAL INFORMATION
I made a quick video showing the bug inside gdb
Comment 1 tcanabrava 2024-12-18 09:01:34 UTC
Created attachment 176741 [details]
attachment-3605067-0.html

Wayland issue, I currently am working on x11 only because of other
unrelated bugs.
if anyone has a working wayland setup and wanna try to fix this.

On Wed, Dec 18, 2024 at 2:32 AM <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=497633
>
>             Bug ID: 497633
>            Summary: Dragging a tab on a 'Configure - Konsole' window
>                     crashes with a 'invalid nullptr' exception
>     Classification: Applications
>            Product: konsole
>            Version: 24.12.0
>           Platform: Fedora RPMs
>                 OS: Linux
>             Status: REPORTED
>           Severity: crash
>           Priority: NOR
>          Component: tabbar
>           Assignee: konsole-devel@kde.org
>           Reporter: Bowarc@proton.me
>   Target Milestone: ---
>
> Created attachment 176736 [details]
>   --> https://bugs.kde.org/attachment.cgi?id=176736&action=edit
> Quick video showing the crash in gdb
>
> Im a new Linux user so if i did something wrong please tell me
>
> SUMMARY
> Dragging a tab on the 'Configure Konsole' window crashes
>
>
>
> STEPS TO REPRODUCE
> 1. Open Konsole
> 2. Open the Configure window ( ctrl + shift + , )
> 3. Drag a tab onto that new window
>
> OBSERVED RESULT
> Segfault
> Stacktrace:
> ```
> Using host libthread_db library "/lib64/libthread_db.so.1".
> [New Thread 0x7fffe03ff6c0 (LWP 45632)]
> [New Thread 0x7fffdf7ff6c0 (LWP 45633)]
> [New Thread 0x7fffdeffe6c0 (LWP 45634)]
> [New Thread 0x7fffde4e96c0 (LWP 45635)]
> [New Thread 0x7fffddb1e6c0 (LWP 45637)]
> [New Thread 0x7fffdd31d6c0 (LWP 45638)]
> [New Thread 0x7fffd53ff6c0 (LWP 45639)]
> [New Thread 0x7fffd4bfe6c0 (LWP 45640)]
> [Detaching after fork from child process 45641]
> [New Thread 0x7fffbffff6c0 (LWP 45666)]
> [New Thread 0x7fffbf7fe6c0 (LWP 45667)]
> qt.qpa.wayland: Creating a popup with a parent,
> QWidgetWindow(0x555555a81bc0,
> name="MainWindow#1Window") which does not match the current topmost
> grabbing
> popup, QWidgetWindow(0x555555d6dfc0, name="QMenuClassWindow") With some
> shell
> surface protocols, this is not allowed. The wayland QPA plugin is currently
> handling it by setting the parent to the topmost grabbing popup. Note,
> however,
> that this may cause positioning errors and popups closing unxpectedly.
> Please
> fix the transient parent of the popup.
> qt.core.qobject.connect: QObject::connect(Konsole::Session, Unknown):
> invalid
> nullptr parameter
>
> Thread 1 "konsole" received signal SIGSEGV, Segmentation fault.
> Konsole::ViewManager::registerTerminal (this=this@entry=0x0,
> terminal=terminal@entry=0x555555b5ce10)
>     at
> /usr/src/debug/konsole-24.12.0-1.fc41.x86_64/src/ViewManager.cpp:1697
> 1697        connect(terminal, &TerminalDisplay::requestToggleExpansion,
> _viewContainer, &TabbedViewContainer::toggleMaximizeCurrentTerminal,
> Qt::UniqueConnection);
> ```
>
> EXPECTED RESULT
> User not being able to move the tab, and the tab returning to the tabbar
>
> SOFTWARE/OS VERSIONS
> Operating System: Fedora Linux 41
> KDE Plasma Version: 6.2.4
> KDE Frameworks Version: 6.9.0
> Qt Version: 6.8.1
> Kernel Version: 6.12.4-200.fc41.x86_64 (64-bit)
> Graphics Platform: Wayland
> Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
> Memory: 15.6 GiB of RAM
> Graphics Processor: NV166
>
> ADDITIONAL INFORMATION
> I made a quick video showing the bug inside gdb
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.