flxzt / rnote

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

Crash after using brush with Surface Pen on Linux #1126

Open mitgitumgekippt opened 1 week ago

mitgitumgekippt commented 1 week ago

Describe the bug
After using the brush, the program crashes after some seconds. This happens only after using the brush and not with any other tool. I can use the brush and the lines are displayed on screen. It happens with any file, no matter whether it is a new one or an already stored. This only happens when using my surface pen. When I use the brush with the mouse or with my finger, the program runs normally without crashing.

To Reproduce
Steps to reproduce the behavior:

  1. Open rnote
  2. Use the brush with the surface pen
  3. Crash

Expected behavior
No Crash

Console Output
Run the app in the terminal with flatpak --env=RUST_LOG=rnote=debug --env=RUST_BACKTRACE=1 run com.github.flxzt.rnote and post the output. -> Not applicable, because I installed it from the AUR When starting rnote with the terminal, I get following error: Job 1, 'rnote' terminated by signal SIGSEGV (Address boundary error)

Screenshots
If applicable, add screenshots to help explain your problem. -> Not applicable.

Desktop (please complete the following information):

Additional context
I am using a Surface Pro 7, with the current linux-surface kernel (6.9.3.arch1-2) and the corresponding pen.

flxzt commented 1 week ago

Can you run it with RUST_LOG=rnote=debug rnote and post the log? That does the same as the --env flag for the flatpak

kwevin commented 6 days ago

Hi, same setup, same problem, here's the log (ran with RUST_BACKTRACE=1 RUST_LOG=rnote=debug rnote). rnote.log It crashes with segmentation fault, and it seems to happen after drawing with the stylus then using any touch input.

kwevin commented 6 days ago

Hello again, downgrading hyprland from v0.41.1 to v0.40.0 seems to resolve the issue.

Edit: This seems to also affect xournalpp so it probably not rnote fault Seems to also relate to: #810