Crash with Layers and Objects dialog and an extension's Live preview
Summary:
Toggling "Live preview" checkbox on some extensions, if Layers an Objects dialog is open and set to "Only show layers" mode, causes a crash. An extension should be one that generates new objects, I think. Tested some extensions and part of them from Generate from Path
and Render
Extensions submenus crash Inkscape while others don't.
Steps to reproduce:
Variant 1 (SIGSEGV):
- Open Inkscape
- Open Layers an Objects dialog (Ctrl+Shift+L)
- Make sure that the dialog's mode is "Only show layers" (Click on the "gear" button; I also have "Expand to selection" enabled, not sure if it matters)
- Draw two curves using Pencil Tool (P)
- Select both curves (or just select all)
- Go to
Extensions -> Generate from Path -> Interpolate...
- Enable and then disable "Live preview"
=
):
Variant 2 (SIGABRT, common steps are marked with - = Open Inkscape
- Close Layers an Objects dialog if it's open
- (also no need to enable "Only show layers" mode this time)
- = Draw two curves using Pencil Tool (P)
- = Select both curves (or just select all)
- = Go to
Extensions -> Generate from Path -> Interpolate...
- = Enable and then disable "Live preview" (no crash yet)
- Click Close button in the extension dialog
- Open Layers and Objects dialog (Ctrl+Shift+L)
What happened?
Segfault (SIGSEGV) or abnormal process termination (SIGABRT) depending on steps variant.
Backtraces also differ:
backtrace_v1_ObjectWatcher_SIGSEGV.txt
backtrace_v2_getWatcher_SIGABRT.txt
backtrace_v3_ObjectWatcher_SIGSEGV.txt (New; see comment)
Probably the crashes are unrelated to each other and me just that lucky :)
Version info
Inkscape 1.3-dev (4435d25a, 2023-03-12)