[go: up one dir, main page]

Crashing after copy paste mesh gradient, exporting damaged pdf

Summary:

Copying and pasting elements (that have mesh gradients) results in crash

Subsequent PDF export results in damaged pdf - cannot be opened.

(I previously had similar problems with PDF exports, most of the works with faulty PDFs included gradients)

crash log from inkscape:

<pre>
 0# boost::stacktrace::basic_stacktrace<std::allocator<boost::stacktrace::frame> >::init(unsigned long long, unsigned long long) in libinkscape_base
 1# Inkscape::Application::crash_handler(int) in libinkscape_base
 2# 0x00007FF7FE9C23F2 in inkscape
 3# _C_specific_handler in ntdll
 4# _chkstk in ntdll
 5# _RtlRaiseException in ntdll
 6# _KiUserExceptionDispatcher in ntdll
 7# SPItem::desktopGeometricBounds() const in libinkscape_base
 8# SPPage::itemOnPage(SPItem const*, bool, bool) const in libinkscape_base
 9# Inkscape::PageManager::getPageFor(SPItem*, bool) const in libinkscape_base
10# Inkscape::Selection::_emitModified(unsigned int) in libinkscape_base
11# Inkscape::Selection::_emit_modified(Inkscape::Selection*) in libinkscape_base
12# _g_clear_list in libglib_2_0_0
13# _g_get_monotonic_time in libglib_2_0_0
14# _g_main_context_iteration in libglib_2_0_0
15# _g_application_run in libgio_2_0_0
16# 0x00007FF7FE9C4122 in inkscape
17# 0x00007FF7FE9C12E9 in inkscape
18# 0x00007FF7FE9C13D6 in inkscape
19# _BaseThreadInitThunk in KERNEL32
20# _RtlUserThreadStart in ntdll
</pre>
<details><summary>System info</summary>
Inkscape 1.4 (86a8ad7, 2024-10-11)

                      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.9
    libxslt version:  1.1.42
    Cairo version:    1.18.2 (1.18.2)
    Pango version:    1.54.0 (1.54.0)
    HarfBuzz version: 10.0.1 (10.0.1)

    OS version:       Windows 10 22H2
</details>

Steps to reproduce:

  • open Inkscape

  • copy the object and paste it (ctrl c, ctrl v)

  • inkscape crashes

    PDF export

  • open inkscape

  • save copy as pdf / export to pdf

  • open pdf (acrobat reader or other pdf reader)

    • "There was an error opening this document. The file is damaged and could not be repaired."

What happened?

inkscape crashes

exporting pdf is done without issue, but the pdf is damaged and cannot be opened in pdf readers

What should have happened?

elements are pasted without crash

exported pdf can be opened

Sample attachments: (the mesh gradient is not rendered here)

CRASHINGonCopyAndPaste.svg

CRASHINGonCopyAndPaste.pdf

Version info


Inkscape 1.4 (86a8ad7, 2024-10-11)

                      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.9
    libxslt version:  1.1.42
    Cairo version:    1.18.2 (1.18.2)
    Pango version:    1.54.0 (1.54.0)
    HarfBuzz version: 10.0.1 (10.0.1)

    OS version:       Windows 10 22H2
Edited by Iwua