Crash opening 1.2-dev if file inside recently used list (Windows 10)

Steps to reproduce:

  • delete config folder (%APPDATA%\inkscape)
  • open Inkscape
  • using the open dialog, open Font_Glitch.svg, taken from inkscape#2907, which was created inside inkscape but has unicode characters
  • close Inkscape
  • open inkscape

What happened?

  • crash, never starts up inkscape_backtrace_startup.txt, inkscape_backtrace_with_syms.txt
  • (org.inkscape.Inkscape:3564): GLib-GIO-ERROR **: 16:03:51.984: g_menu_item_set_detailed_action: Detailed action name 'app.file-open-window('C:\Users\User\Downloads\Font Glitch.svg')' has invalid format: 5:invalid 8-character unicode escape

Minimal file that can replace Font_Glitch.svg:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<svg
   width="100mm" height="100mm" viewBox="0 0 100 100"
   version="1.1"
   xmlns="http://www.w3.org/2000/svg"
   xmlns:svg="http://www.w3.org/2000/svg">
    <text style="fill:#000000"><tspan>asdあ</tspan></text>
</svg>

What should have happened?

  • no crash

Version info

  • Inkscape 1.2-dev (b18bad7c, 2021-11-08) Windows 10.0.19043 N/A Build 19043
  • Inkscape 1.2-dev (742c897e, 2021-11-07) Windows 10.0.19043 N/A Build 19043

But

Edited by Nathan Lee