Bug 465855

Summary: Kalk flatpak instantly crashes in KDE Plasma 5.27.0
Product: [Applications] Kalk Reporter: yizel7
Component: GeneralAssignee: hanyoung
Status: CLOSED NOT A BUG    
Severity: crash CC: espidev
Priority: NOR    
Version First Reported In: 23.01.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description yizel7 2023-02-16 17:22:07 UTC
SUMMARY
Prior to KDE Plasma 5.27.0 I had no issue with launching flatpak Kalk. I updated last night and now I cannot launch Kalk anymore. The first error is complaining about network (which I don't see why Kalk would need) and then when I granted it network it fails for another reason.

This might be due to a conflict with the new Discover KCM flatpak permissions and Flatseal?

Putting severity urgent as I rely on kalk daily and have to use my phone currently lol.

When launching in Konsole this is printed:

without network permission, which I used to not give prior to 5.27.0
Warning: fallback to QtQuick software backend.
Qt: Session management error: Could not open network socket
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
...........
this is printed about 50 times
..........

after giving network permission

Warning: fallback to QtQuick software backend.
QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
...........
this is printed about 50 times
..........

STEPS TO REPRODUCE
1. Update to KDE Plasma 5.27.0 and have flatpak-kcm maybe?
2. Try to launch flatpak Kalk

OBSERVED RESULT
Application does not launch

EXPECTED RESULT
Application launches.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.10.hardened1-1-hardened (64-bit)

flatpak 1:1.15.2-1
flatpak-kcm 5.27.0-1
bubblewrap 0.7.0-1
Comment 1 Devin Lin 2023-02-16 18:08:05 UTC
I don't seem to get this issue, could you please try updating all your flatpaks? Specifically, the KDE runtime flatpaks.
Comment 2 yizel7 2023-02-16 19:42:29 UTC
(In reply to Devin Lin from comment #1)
> I don't seem to get this issue, could you please try updating all your
> flatpaks? Specifically, the KDE runtime flatpaks.

Thank you for your reply. I did a full flatpak update after a computer restart as usual after doing a sudo pacman -Syu. I did a restart again now and Discover says there's nothing new for flatpak.

flatpak list --runtime
Name                                            Application ID                         Version      Branch          Installation
KDE Application Platform         org.kde.Platform                                       5.15-21.08   system
KDE Application Platform         org.kde.Platform                                       5.15-22.08   system
KDE Application Platform         org.kde.Platform                                       6.3          system
KDE Application Platform         org.kde.Platform                                       6.4          system
Comment 3 Devin Lin 2023-02-16 20:00:31 UTC
Could you please try resetting your flatpaks permissions for kalk? In my flatseal, I don't see network being needed to launch...
Comment 4 yizel7 2023-02-16 20:33:23 UTC
(In reply to Devin Lin from comment #3)
> Could you please try resetting your flatpaks permissions for kalk? In my
> flatseal, I don't see network being needed to launch...

No luck. The only difference between what I had and the default was disabling GPU acceleration. It still prints the same line 50 times. If I reset to default and give it GPU acceleration the only difference is it no longer prints this specific line "Warning: fallback to QtQuick software backend." but still prints the below 50 times.

QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0

You have the new flatpak-kcm installed?
Comment 5 yizel7 2023-02-17 01:54:56 UTC
sort of my bad. My flatpak kalk was not fully updated. I forgot I downgraded it with the last updated because the new font setting made it unusable where everything is tiny.

Regardless I updated to latest version and kalk still does not launch. In fact it does not even print anything besides missing network permission in Konsole if I do flatpak run org.kde.kalk. If I give it network permission it does not even print anything at all so I cannot even give a useful log.
Comment 6 Devin Lin 2023-02-17 02:49:02 UTC
I don't really know what else to try other than running `rm -rf ~/.var/app/org.kde.kalk/cache/` to remove the Qt cache...
Comment 7 yizel7 2023-02-17 03:44:08 UTC
(In reply to Devin Lin from comment #6)
> I don't really know what else to try other than running `rm -rf
> ~/.var/app/org.kde.kalk/cache/` to remove the Qt cache...

thanks for help Devin! It works after deleting cache. I cannot explain what go wrong, last night before I was 5.27.0 all good, then update full system, flatpaks, reboot and no longer work this morning lol.