Bug 504644 - Crash when UseSingleInstance=true is set in preferences (Flatpak)
Summary: Crash when UseSingleInstance=true is set in preferences (Flatpak)
Status: RESOLVED WORKSFORME
Alias: None
Product: Haruna
Classification: Applications
Component: generic (other bugs)
Version First Reported In: 1.4.0
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: george fb
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-22 00:55 UTC by marenhachmann
Modified: 2025-08-07 17:03 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description marenhachmann 2025-05-22 00:55:42 UTC
SUMMARY

I downloaded the flatpak today and played with the settings and the functionality.

When I tried to restart Haruna after changing the preferences a couple times, among others changing the setting for using a single instance only to true, it crashes on startup.

STEPS TO REPRODUCE
1. Open Haruna with new preferences
2. Check the box at 'Allow only one instance'
3. Close Haruna
4. Try to open it again

OBSERVED RESULT

Haruna does not open.
On the commandline, I see:

flatpak run org.kde.haruna 
Gtk-Message: 02:50:17.857: Failed to load module "xapp-gtk3-module"
unknown() : Qt: Session management error: Could not open network socket

unknown() : QProcess: Destroyed while process ("/app/bin/yt-dlp") is still running.

QThreadStorage: entry 2 destroyed before end of thread 0x5f4c430768b0
QThreadStorage: entry 1 destroyed before end of thread 0x5f4c430768b0


EXPECTED RESULT

Haruna starts. And I can only have a single instance.


SOFTWARE/OS VERSIONS

Linux Mint 22.1 / XFCE, using Flatpak (so all packages should be provided by that)
Comment 1 george fb 2025-05-26 08:17:19 UTC
Can't reproduce. Tested on my system, openSUSE TW, and linux mint in a VM.

Try testing in a new user account with all system settings untouched.

Try to get a backtrace https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
Comment 2 marenhachmann 2025-05-29 17:57:38 UTC
Hi @george fb, thanks for testing. Right now, I can't reproduce it, either. 

Unfortunately, I had not saved / appended my config file, where this was reliably reproducible. It might still live in a backup from two weeks ago, I'll check that when I do my next backup.

It must have been some combination of settings, then. If it happens again, I'll try to investigate more (hope running gdb with flatpak works as expected).