rnote icon indicating copy to clipboard operation
rnote copied to clipboard

Crashes when scrolling by a specific embedded image

Open relma2 opened this issue 2 years ago • 6 comments

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

  • 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

relma2 avatar Jun 14 '23 15:06 relma2

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

flxzt avatar Jun 14 '23 16:06 flxzt

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

relma2 avatar Jun 14 '23 16:06 relma2

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

flxzt avatar Jun 14 '23 17:06 flxzt

OCI_busted - Selection

relma2 avatar Jun 14 '23 18:06 relma2

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

relma2 avatar Jun 14 '23 21:06 relma2

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

flxzt avatar Jun 30 '23 10:06 flxzt