Bug 462469

Summary: Unable to run on macOS
Product: [Applications] Tokodon Reporter: Joshua Goins <josh>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: carl
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: macOS   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: backtrace from lldb

Description Joshua Goins 2022-11-30 21:54:11 UTC
SUMMARY
I wanted to test Tokodon on macOS while I'm away from my computer, but I found out it segfaults without any fanfare. I can't get a useful debug trace (yet) because of a lack of debug Qt symbols. I installed most of the required KF5 frameworks thanks to the kf5-homebrew project, and the rest (qt5keychain, kirigami-addons, etc) which are not packaged and pointed CMake towards them.

I can confirm the bug happens due to some internal Kirigami failure, but I'm not sure why. Using a simple Kirigami.Header component for example (the one located in AccountCreation.qml, the first view pushed into the pageStack) breaks and segfaults, but replacing the form with a single Text component works for some reason. I haven't tried scouring Kirigami for relevant macOS bugs yet, but other components like the ApplicationWindow and FormLayout works which is even more odd. I peeked in Kirigami.Header a little and I didn't really find anything that could fail like this.

STEPS TO REPRODUCE
1. Build Tokodon on macOS
2. Run the .app in build/bin
3. Observe segfault

OBSERVED RESULT
Some internal QML engine error, it's passing through the JS engine layer curiously but I haven't attempted to debug any farther yet.

EXPECTED RESULT
For Tokodon not to crash ;-)

SOFTWARE/OS VERSIONS
macOS: 13.0
KDE Frameworks Version: 5.99
Qt Version: 5.15.7

ADDITIONAL INFORMATION
I can confirm the issue is not with finding the correct Kirigami qml plugin paths, or anything like that. Certain Kirigami widgets work but not all of them, and it's preventing Tokodon from starting correctly. I plan on investigating this bug more on my own, and convincing LLDB to give me a useful backtrace. I'm just a little burnt out from trying to run it for now
Comment 1 Joshua Goins 2022-11-30 21:59:39 UTC
Created attachment 154181 [details]
backtrace from lldb

Backtrace showing Tokodon crashing, looks like it's some internal QML error.
Comment 2 Joshua Goins 2022-12-03 22:08:51 UTC
Closed as it's fixed on master now.