Crashes when scrolling by a specific embedded image
Describe the bug
When Opening Oci.rnote (attached file), and scrolling down through a specific embedded image, the program crashes
To Reproduce
Steps to reproduce the behavior:
- Go to 'OCI.rnote'
- Scroll with the mouse wheel OR with the pan function down to the point shown in the attached image
- Rnote freezes briefly then crashes
Console Output
Run the app in the terminal
[relma2@relma2-pc ~]$ flatpak --env=RUST_LOG=rnote=debug --env=RUST_BACKTRACE=1 run com.github.flxzt.rnote
F: Not sharing "/usr/share/icons" with sandbox: Path "/usr" is reserved by Flatpak
2023-06-14T15:43:11.603Z DEBUG rnote > ... env_logger initialized
thread '<unknown>' has overflowed its stack
fatal runtime error: stack overflow
Desktop (please complete the following information):
- OS: Endeavour OS
- App Version: 0.6.0
- Installation Source: Flatpak
- Desktop Environment: KDE 5.27.5
- Window Manager: X11
Additional context
Mitigated briefly by pressing print screen just before it was supposed to crash. But then scrolling around some more causes it to crash anyway. Also, more likely to trigger crash if scrolling fast.
Attached File OCI.zip
Thanks for the detailed report. Debugging will probably be easier with the image that causes the crash, can you upload that as well? Thanks!
Its in the original bug report; the image that says "crashes here"
I meant: provide the image that causes the crash directly, as an attachment
Update - I deleted the image in question from my notebook, yet when I scroll too fast down to the spot where the image was, it still crashes at the same spot with the same error
I could reproduce this once on v0.7.0, but not consistently