Inkscape crashes when using path trace
<!-- See our full bug reporting guidelines at https://inkscape.org/contribute/report-bugs/ Writing a good bug report will ensure we'll be able to help efficiently. 🙂 --> #### Summary: <!-- Summarize the issue/suggestion concisely: --> Inkscape #### Steps to reproduce: <!-- Describe what you did (step-by-step) so we can reproduce: --> - Open Inkscape - Use defaults for setup dialog/window - Click "New Document" - Open this image (File -> Open...) *file attached in attachments* - Click image - Open "Trace Bitmap..." - Choose options: - Multicolor - Detection Mode: Autotrace (slower) - Scans: 256 - Smooth: checked - Remove Background: checked - Speckles: 1000 - Smooth Corners: 1.34 - Optimize: 5.0000 - Hit "Apply" Inkscape immediately crashes. I've reproduced it like 5 times. #### What happened? When using maximum settings on Trace Bitmap, on this image, the software crashes. #### What should have happened? I would have expected it to either: a. do the trace correctly b. if my computer isn't capable for some reason, to show a warning at least. Sample attachments: <!-- Attach the sample file(s) highlighting the issue, if appropriate. --> ![cooper-abby-fall-red-tree](/uploads/12537f5daa873e00e8aa1ea5ac43be91/cooper-abby-fall-red-tree.jpg) #### Version info <!-- Open 'Help > About' and click on the little bug icon in the bottom right corner that copies the debug information to your clipboard. For command line users, run 'inkscape --debug-info'. For Inkscape 1.0.2 and older, please manually add the Inkscape Version and Operating System Version. The Inkscape version is listed in the About dialog. For command line users, run 'inkscape -V' Paste the information in the empty space between the apostrophes below: --> ``` <pre> 0# Inkscape::Application::crash_handler(int) in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.4.0.0 1# 0x00007FEBCCA25DD0 in /lib64/libc.so.6 2# 0x00007FEBCCB64153 in /lib64/libc.so.6 3# quantize in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.4.0.0 4# at_splines_new_full in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.4.0.0 5# Inkscape::Trace::Autotrace::AutotraceTracingEngine::trace(Glib::RefPtr<Gdk::Pixbuf> const&, Inkscape::Async::Progress<double>&) in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.4.0.0 6# Inkscape::Trace::TraceTask::do_async_work(std::unique_ptr<Inkscape::Trace::TraceTask, std::default_delete<Inkscape::Trace::TraceTask> >) in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.4.0.0 7# 0x00007FEBCD7E1E1B in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.4.0.0 8# std::__future_base::_State_baseV2::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>*, bool*) in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.4.0.0 9# 0x00007FEBCCA8207B in /lib64/libc.so.6 10# pthread_once in /lib64/libc.so.6 11# 0x00007FEBCD7DBE7F in /usr/bin/../lib64/inkscape/libinkscape_base.so.1.4.0.0 12# 0x00007FEBCCC4B524 in /lib64/libstdc++.so.6 13# 0x00007FEBCCA7CCD7 in /lib64/libc.so.6 14# 0x00007FEBCCB00C8C in /lib64/libc.so.6 </pre> <details><summary>System info</summary> Inkscape 1.4 (e7c3feb100, 2024-10-09) Compile (Run) GLib version: 2.82.1 GTK version: 3.24.43 (3.24.43) glibmm version: 2.66.7 gtkmm version: 3.24.9 libxml2 version: 2.12.8 libxslt version: 1.1.42 Cairo version: 1.18.0 (1.18.2) Pango version: 1.54.0 (1.54.0) HarfBuzz version: 9.0.0 (9.0.0) OS version: Fedora Linux 41 (KDE Plasma) </details> ``` <!-- ❤️ Thank you for filling in a new bug report, we appreciate the help! ❤️ Please be patient while we try to find the time to look into your issue. Remember that Inkscape is developed by volunteers in their spare time, we'll try our best to respond to all reports. --> <!-- Please be careful when/after writing # for example in logs, code, or versions of linux - use inline code span - single backticks (`) before and after it, like this - `#1618` - use multi-line code block - triple backticks (```) to fence/enclose console logs - attach long logs as a text file. -->
issue