Bug 504215 - Tokodon crashes when I scroll
Summary: Tokodon crashes when I scroll
Status: REOPENED
Alias: None
Product: Tokodon
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.04.1
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: binbash
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-14 14:11 UTC by binbash
Modified: 2025-07-05 07:42 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
The entire gdb log (1.98 MB, text/plain)
2025-05-15 07:00 UTC, binbash
Details
GDB log on my machine (20.12 KB, text/vnd.kde.kcrash-report)
2025-06-07 19:58 UTC, brib
Details
the crash dump, copied from KDE's "Report a bug" thingi (53.38 KB, text/plain)
2025-07-05 07:42 UTC, binbash
Details

Note You need to log in before you can comment on or make changes to this bug.
Description binbash 2025-05-14 14:11:42 UTC
SUMMARY
When I scroll in tokodon it crashes after some scrolling.

STEPS TO REPRODUCE
1. Open tokodon
2. Scroll down a few times
3. Segfault

OBSERVED RESULT
The app crashes.

EXPECTED RESULT
The app works.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: 6.9.0
Kernel Version: 6.14.6-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-8550U CPU @ 1.80GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Intel® UHD Graphics 620

ADDITIONAL INFORMATION

tokodon crashes when I scroll on my touchpad, on my touchscreen and when using 'page down'.

These are the last few lines from gdb:

Thread 1 "tokodon" received signal SIGSEGV, Segmentation fault.
Downloading 9.04 K source file /usr/src/debug/tokodon/tokodon-25.04.1/src/timeline/timelinemodel.cpp
operator()<Post*> (timelinePost=@0x555556308160: 0x555556c9ddd0, __closure=<synthetic pointer>)  
    at /usr/src/debug/tokodon/tokodon-25.04.1/src/timeline/timelinemodel.cpp:97
97                                                     return post->postId() == timelinePost->postId();
Comment 1 Antonio Rojas 2025-05-14 16:23:49 UTC
Please post the entire backtrace and not just the last 5 lines
Comment 2 binbash 2025-05-15 07:00:52 UTC
Created attachment 181315 [details]
The entire gdb log

Sorry, I am a bit new to all that gdb thing. Here is (what I hope) the full log.
Comment 3 Bug Janitor Service 2025-05-30 03:48:18 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 binbash 2025-06-04 15:35:08 UTC
Sooo... i dug around a bit and figured out, that I can avoid crashes, when I read current posts on another device with other software. Then the "Last read on $date" thingy is on top of my timeline in tokodon and I can scroll however I like.
Comment 5 Joshua Goins 2025-06-04 17:00:28 UTC
(In reply to kde from comment #4)
> Sooo... i dug around a bit and figured out, that I can avoid crashes, when I
> read current posts on another device with other software. Then the "Last
> read on $date" thingy is on top of my timeline in tokodon and I can scroll
> however I like.

That's good to know!
Comment 6 brib 2025-06-07 19:56:39 UTC
Hi, I get this issue too. I don't know if this is related, but I get a similar crash if I click "Load More" at the top of the screen. 

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.14.0
Qt Version: Using 6.9.1 built against 6.9.0
Kernel Version: 6.14.10-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Intel TigerLake-LP GT2 [Iris Xe Graphics]

I'll upload the gdb log on my end, hope that helps
Comment 7 brib 2025-06-07 19:57:34 UTC
(In reply to brib from comment #6)
> Hi, I get this issue too. I don't know if this is related, but I get a
> similar crash if I click "Load More" at the top of the screen. 
> 
> SOFTWARE/OS VERSIONS
> Operating System: Arch Linux 
> KDE Plasma Version: 6.3.5
> KDE Frameworks Version: 6.14.0
> Qt Version: Using 6.9.1 built against 6.9.0
> Kernel Version: 6.14.10-arch1-1 (64-bit)
> Graphics Platform: Wayland
> Processors: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
> Memory: 15.3 GiB of RAM
> Graphics Processor: Intel TigerLake-LP GT2 [Iris Xe Graphics]
> 
> I'll upload the gdb log on my end, hope that helps

I can't, however, replicate the fix of reading the other posts with another software. I have tried to do this with the Mastodon web client, but I still get the software crash
Comment 8 brib 2025-06-07 19:58:06 UTC
Created attachment 182085 [details]
GDB log on my machine
Comment 9 Bug Janitor Service 2025-06-10 03:05:14 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/tokodon/-/merge_requests/752
Comment 10 brib 2025-06-10 11:23:50 UTC
(In reply to Bug Janitor Service from comment #9)
> A possibly relevant merge request was started @
> https://invent.kde.org/network/tokodon/-/merge_requests/752

Hey, I can confirm that this fixes the issue on my machine 😄
Comment 11 Joshua Goins 2025-06-14 19:32:41 UTC
Git commit da024d8a55193d996d514dd0691808a3a71ad157 by Joshua Goins.
Committed on 14/06/2025 at 14:17.
Pushed by redstrate into branch 'master'.

Prevent a null access in certain timelines

I don't know why this happens exactly, but I have a hunch. It's possible
for us to end up with null pointers because of the post->hidden() check
and that's not really checked in the erasure. I added an early enough
check in there to hopefully stop that from happening.

M  +6    -3    src/timeline/timelinemodel.cpp

https://invent.kde.org/network/tokodon/-/commit/da024d8a55193d996d514dd0691808a3a71ad157
Comment 12 brib 2025-06-14 20:58:46 UTC
(In reply to Joshua Goins from comment #11)
> Git commit da024d8a55193d996d514dd0691808a3a71ad157 by Joshua Goins.
> Committed on 14/06/2025 at 14:17.
> Pushed by redstrate into branch 'master'.
> 
> Prevent a null access in certain timelines
> 
> I don't know why this happens exactly, but I have a hunch. It's possible
> for us to end up with null pointers because of the post->hidden() check
> and that's not really checked in the erasure. I added an early enough
> check in there to hopefully stop that from happening.
> 
> M  +6    -3    src/timeline/timelinemodel.cpp
> 
> https://invent.kde.org/network/tokodon/-/commit/
> da024d8a55193d996d514dd0691808a3a71ad157

Thank you! 😄 I look forward to the next Tokodon release 🙂
Comment 13 Joshua Goins 2025-06-15 02:00:22 UTC
Git commit 717807843d5cb0f973016b429869a144835f2c61 by Joshua Goins.
Committed on 15/06/2025 at 01:53.
Pushed by redstrate into branch 'release/25.04'.

Prevent a null access in certain timelines

I don't know why this happens exactly, but I have a hunch. It's possible
for us to end up with null pointers because of the post->hidden() check
and that's not really checked in the erasure. I added an early enough
check in there to hopefully stop that from happening.


(cherry picked from commit da024d8a55193d996d514dd0691808a3a71ad157)

Co-authored-by: Joshua Goins <josh@redstrate.com>

M  +6    -3    src/timeline/timelinemodel.cpp

https://invent.kde.org/network/tokodon/-/commit/717807843d5cb0f973016b429869a144835f2c61
Comment 14 binbash 2025-07-03 22:10:39 UTC
Just installed the latest release on Arch and so far I had no crashes. Will report back if that changes. Thank you for your effort :)
Comment 15 binbash 2025-07-05 07:42:19 UTC
Created attachment 182969 [details]
the crash dump, copied from KDE's "Report a bug" thingi

It seems as if this did not fix all of the scrolling bugs with me.

$ tokodon --version
tokodon 25.04.3

Here's the crash dump, copied from KDE's "Report a bug" thingi