Bug 461747

Summary: Crash after setting an account
Product: [Applications] Tokodon Reporter: Luca Beltrame <lbeltrame>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: berlinuxer, carl, davmor2, martin, mundolibre, newbytee
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Backtrace
Tokodon crash

Description Luca Beltrame 2022-11-12 22:42:14 UTC
Created attachment 153700 [details]
Backtrace

SUMMARY

After adding an account (tested with sakurajima.moe) subsequent starts of Tokodon will result in a crash deep in Qt.

STEPS TO REPRODUCE
1. Add an account to a fresh configuration of Tokodon
2. Close the application
3. Restart

OBSERVED RESULT

Tokodon crashes.

EXPECTED RESULT

Tokodon should not crash.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: latest master
(available in About System)
KDE Plasma Version: latest master
KDE Frameworks Version:  latest master
Qt Version: 5.15.7 + KDE patches

ADDITIONAL INFORMATION

I've tried to start fresh with no configuration and no cache and the crash still occurs. I can't rule out some kind of local issue, though.
Comment 1 Martin Brodbeck 2022-11-18 09:29:04 UTC
I can confirm this with KDE 5.26.3 and Tokodon 22.09 (Arch Linux). But it does work starting it with LC_ALL=en. Normally, I use German translation.

Loaded from settings: Account(0x555796d64720)
QObject::connect(AccountManager, TimelineModel): invalid nullptr parameter
Speicherzugriffsfehler (Speicherabzug geschrieben)
Comment 2 newbytee 2022-11-22 17:07:45 UTC
I have the same problem with the latest Tokodon from Flathub. `$ flatpak run --env=LC_ALL=en org.kde.tokodon` does not help for me.
Comment 3 Dave Morley 2022-11-26 21:16:51 UTC
Created attachment 154055 [details]
Tokodon crash

Confirmed I have the issue once the account is setup and the app has been closed once it will then not open again.
Comment 4 berlinuxer 2022-11-27 18:55:10 UTC
Hello, 
same failure here.
Deleting .config/KDE/tokodon.conf and creating new account will help for while. At least until next action e.g. a click onto "+Toot"
Comment 5 Carl Schwan 2022-12-02 23:41:17 UTC
This was fixed with https://invent.kde.org/network/tokodon/-/merge_requests/69

If you are using tokodon from git, I would appreciate some testing just to be sure
Comment 6 David Marzal 2022-12-22 22:51:08 UTC
(In reply to Carl Schwan from comment #5)
> This was fixed with
> https://invent.kde.org/network/tokodon/-/merge_requests/69
> 
> If you are using tokodon from git, I would appreciate some testing just to
> be sure

Problem fix in 22.11.2 from flathub. Thanks!