flxzt / rnote

Sketch and take handwritten notes.
https://rnote.flxzt.net
GNU General Public License v3.0
8.02k stars 275 forks source link

Crashes when scrolling by a specific embedded image #709

Open relma2 opened 1 year ago

relma2 commented 1 year ago

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:

  1. Go to 'OCI.rnote'
  2. Scroll with the mouse wheel OR with the pan function down to the point shown in the attached image
  3. Rnote freezes briefly then crashes

image

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):

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

flxzt commented 1 year ago

Thanks for the detailed report. Debugging will probably be easier with the image that causes the crash, can you upload that as well? Thanks!

relma2 commented 1 year ago

Its in the original bug report; the image that says "crashes here"

flxzt commented 1 year ago

I meant: provide the image that causes the crash directly, as an attachment

relma2 commented 1 year ago

OCI_busted - Selection

relma2 commented 1 year ago

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 image

flxzt commented 1 year ago

I could reproduce this once on v0.7.0, but not consistently