Bug 488396 - konsole --tabs-from-file sometimes fails to open a window
Summary: konsole --tabs-from-file sometimes fails to open a window
Status: REPORTED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 24.02.2
Platform: Solus Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-12 03:26 UTC by TraceyC
Modified: 2024-06-13 01:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description TraceyC 2024-06-12 03:26:50 UTC
After creating and testing a couple of tab configuration files, Konsole would no longer open a window with --tabs-from-file

STEPS TO REPRODUCE
1. Create a simple tab configuration file with just one line
title: Tab1;; command: /usr/bin/top

2. Attempt to launch Konsole with the file using:  konsole --hold --tabs-from-file konsole_layouts/test1

OBSERVED RESULT
A window of the right size appears for a split second and immediately disappears

EXPECTED RESULT
A new window opens with the tab specified in the config file

SOFTWARE/OS VERSIONS
Operating System: Solus 4.5
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.1
Kernel Version: 6.8.11-292.current (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
I'm happy to help troubleshoot the problem. If necessary, please let me know what I can do to provide more information.

During my testing, at first the feature worked. At some point, perhaps due to a command in a tab Konsole didn't like? --tabs-from-file stopped opening a new window. 
Closing all editors that had the config files opened allowed it to work again, but it stopped working again after additional testing.
I made sure only one konsole process was running after pressing Ctrl-C to get rid of the ghost window
I rebooted, but that didn't change anything

There are no lines written to the system log at the time of the window failing to open
This is the only output in terminal (from what I've read, the error isn't really related)

Then, I launched with a different profile that had this and it was successful
title: SysAdminNotes ;; workdir: ~/Nextcloud/Notes/SysAdmin ;; profile: Sand
title: htpc ;; command: ssh htpc

I don't know if it was opening a very different tabs config or some timeout happened in the background that allowed it to work again.

❯ konsole --tabs-from-file konsole_layouts/test1
Qt: Session management error: None of the authentication protocols specified are supported

There is no crash, the process list shows the command still running
❯ pgrep -fla konsole
3379 /usr/bin/konsole
10770 konsole --tabs-from-file konsole_layouts/test1
Comment 1 TraceyC 2024-06-13 01:23:43 UTC
gdb didn't produce anything useful

Starting program: /usr/bin/konsole --hold --tabs-from-file konsole_layouts/onlyvps
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
[New Thread 0x7fffe96006c0 (LWP 52830)]
[New Thread 0x7fffe8c006c0 (LWP 52831)]
Qt: Session management error: None of the authentication protocols specified are supported
[New Thread 0x7fffe1e006c0 (LWP 52833)]
[New Thread 0x7fffe14006c0 (LWP 52834)]
[New Thread 0x7fffe0a006c0 (LWP 52835)]
[New Thread 0x7fffd7e006c0 (LWP 52836)]
[Detaching after fork from child process 52837]
[Detaching after fork from child process 52839]
[New Thread 0x7fffd6c006c0 (LWP 52854)]
[New Thread 0x7fffd62006c0 (LWP 52855)]
[New Thread 0x7fffd58006c0 (LWP 52856)]
[Thread 0x7fffd62006c0 (LWP 52855) exited]
[Thread 0x7fffd58006c0 (LWP 52856) exited]
[Thread 0x7fffd6c006c0 (LWP 52854) exited]
[Thread 0x7fffe0a006c0 (LWP 52835) exited]
[Thread 0x7fffe14006c0 (LWP 52834) exited]
[Thread 0x7fffe1e006c0 (LWP 52833) exited]
[Thread 0x7fffd7e006c0 (LWP 52836) exited]

I have been able to reproduce the disappearing with a one line tabs file "onlyvps" which uses one profile (which invokes eternal terminal)

    title: VPS ;; profile: VPS

Or using a tabs file htpc which has

    title: htpc ;; command: ssh htpc

When the bug is happening, I *can* open tabs from a file *if* it has no commands using ssh or et
But this also works:

    title: SysAdminNotes ;; workdir: ~/Nextcloud/Notes/SysAdmin ;; profile: Sand
    title: htpc ;; command: ssh htpc ;; profile: NavyBlue

This does not:

    title: SysAdminNotes ;; workdir: ~/Nextcloud/Notes/SysAdmin ;; profile: Sand
    title: htpc ;; command: ssh htpc ;; profile: NavyBlue
    title: SysMon ;; command: btm ;; profile: Ocean

This opens the window but the 'btm" command is not run (no profile for the SysMon tab)

    title: SysAdminNotes ;; workdir: ~/Nextcloud/Notes/SysAdmin ;; profile: Sand
    title: htpc ;; command: ssh htpc ;; profile: NavyBlue
    title: SysMon ;; command: btm

The "Ocean" profile is OK, I can open konsole with it this way

    konsole --profile Ocean

This does not work (window disappears)

    title: SysAdminNotes ;; workdir: ~/Nextcloud/Notes/SysAdmin ;; profile: Sand
    title: htpc ;; command: ssh htpc ;; profile: NavyBlue
    title: SysMon ;; command: /usr/bin/btm