Inkscape crashes when using Draw freehand line tool and tapping raster image with a graphics tablet stylus

Summary:

Inkscape crashes when using Draw freehand lines tool and tapping the canvas with a graphics tablet stylus over raster image element. My tablet is the Wacom One (CTL-472).

Steps to reproduce:

  • open Inkscape
  • open attached file or paste an image from clipboard (for example make a screenshot and press Ctrl-V) on canvas
  • touch the image with a pen

What happened?

Inkscape crashes with a message "Inkscape encountered an internal error and will close now."

What should have happened?

Nothing should have after the touch.

Sample attachments:

rasterimage.svgi

Version info

~ inkscape -V          
Inkscape 1.0.2 (e86c870879, 2021-01-15)
    Pango version: 1.48.2

~ uname -a
Linux 5.11.0-7620-generic x86_64 GNU/Linux