Bug 480689 - Tokodon crashes / shuts down when logging in
Summary: Tokodon crashes / shuts down when logging in
Status: RESOLVED UPSTREAM
Alias: None
Product: Tokodon
Classification: Applications
Component: general (show other bugs)
Version: 23.08.4
Platform: Neon Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 480418 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-02-01 16:36 UTC by Kimmo Kujansuu
Modified: 2024-02-07 16:46 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
backtrace (26.66 KB, text/plain)
2024-02-05 21:07 UTC, Arsen Arsenović
Details

Note You need to log in before you can comment on or make changes to this bug.
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