Bug 480689

Summary: Tokodon crashes / shuts down when logging in
Product: [Applications] Tokodon Reporter: Kimmo Kujansuu <mrkujansuu>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED UPSTREAM    
Severity: crash CC: arsen, carl, dougshaw77, josh, tilldusan30
Priority: NOR    
Version: 23.08.4   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: backtrace

Description Kimmo Kujansuu 2024-02-01 16:36:27 UTC
Tokodon crashes / shuts down when logging in

Tokodon asks for an email address and password (mastodon.social) and then disappears.
I am using KDE Neon Plasma 6.1 unstable.
If I log into Mastedon with a browser, it shows that I tried to log in.
The problem is same X and Wayland

I also have a Solus Plasma 5 and Tokodon works. It asks to copy the key to Tokodon and works fine.

The problem may be that Tokodon cannot open a window asking me to confirm the code.
Comment 1 Doug 2024-02-02 05:32:16 UTC
*** Bug 480418 has been marked as a duplicate of this bug. ***
Comment 2 Doug 2024-02-02 05:33:28 UTC
Can reproduce

Operating System: KDE neon Testing Edition
KDE Plasma Version: 6.0.0
KDE Frameworks Version: 5.249.0
Qt Version: 6.6.1
Kernel Version: 6.5.0-15-generic (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon Pro WX 3200 Series
Comment 3 Arsen Arsenović 2024-02-05 21:07:51 UTC
Created attachment 165581 [details]
backtrace

can reprod, but in my case when launching while already logged in - i am guessing this is a kirigami bug.  i reduced the crash to a property:

diff --git a/src/content/ui/Main.qml b/src/content/ui/Main.qml
index 512d9d8..0d3a983 100644
--- a/src/content/ui/Main.qml
+++ b/src/content/ui/Main.qml
@@ -277,7 +277,7 @@ Kirigami.ApplicationWindow {
 
     globalDrawer: Kirigami.OverlayDrawer {
         id: drawer
-        enabled: AccountManager.hasAccounts && AccountManager.isReady
+        enabled: true || (AccountManager.hasAccounts && AccountManager.isReady)
         edge: Qt.application.layoutDirection === Qt.RightToLeft ? Qt.RightEdge : Qt.LeftEdge
         modal: !enabled || Kirigami.Settings.isMobile || Kirigami.Settings.tabletMode || (applicationWindow().width < Kirigami.Units.gridUnit * 50 && !collapsed) // Only modal when not collapsed, otherwise collapsed won't show.
         z: modal ? Math.round(position * 10000000) : 100


obviously, the above is a nonfix.

the trace generated by the program is attached.  I couldn't get a QML dump due to the QML stack trace script thing running into an optimized out value while trying to generate one, so I can't provide that info as of right now :/
Comment 4 Carl Schwan 2024-02-07 16:46:56 UTC
This crash should be fixed with 6.6.2. I created a patch upstrean in Qt for it https://codereview.qt-project.org/c/qt/qtdeclarative/+/522438