Inkscape.org
Beginners' Questions SVG file created using older Inkscape version crashes latest Inkscape
  1. #1
    scadametrics scadametrics @scadametrics

    Hello Forum,

    Several years ago, I created a new company logo (SVG file) using Inkscape 0.92.4 (Win64, Windows10). I have probably modified this SVG file using progressively newer versions of Inkscape, though, but I don't have version history.

    I update Inkscape whenever I run it... and presently, I am using the latest version 1.3 (Win64, Windows10) -- But when I open this SVG file and "select all", the program hard crashes (no message -- the main window just disappears).

    I duplicated the setup on another computer (Windows10, Win64, running version 1.3), but the same thing happens.  Both computers have plenty of resources (64GB and 128GB ram respectively, both have several free TB disk space).

    Both computers were rebooted to no positive effect. Running Inkscape as "administrator" also had no positive effect.

    When I uninstalled v1.3 and re-installed the oldest version at my disposal, v0.92.4 -- I am able to open, "select all", and generally manipulate the graphic again.

    Did older versions of Inkscape create SVG files that are incompatible with the newest Inkscape?  Anyone else run into this problem? I've attached the .SVG file in question.

    Thank you, in advance, for reading this!!

    ~Jim

    Ethermeter Logo 293
  2. #2
    TNHH Tinh Phụng TNHH Tinh Phụng @VeTuDo

    Same problem but use Mac OS X 10.13.6. File here create use Inkscape 0.48.5 and Mac OS X 10.7.5:

    https://inkscape.org/~VeTuDo/★hoa-tiet-tieu-xanh-2

    Inkscape 1.2.2 and 1.3 stop work if select this file for open. All other Inkscape 0.48.5 file can open. When upload file in Inkscape web sit also no show preview for SVG file. I upload PNG preview export from Inkscape 0.48.5. 

     

     

     

  3. #3
    scadametrics scadametrics @scadametrics

    Follow-Up, Additional Information: I also installed a somewhat later version -- Inkscape version 1.2.2_2022-12-09 (Windows 10, 64-bit) -- and I was able to open, "select all", and generally modify this SVG file without any problems.

  4. #4
    TNHH Tinh Phụng TNHH Tinh Phụng @VeTuDo

    I try open in Inkscape 1.3 but turn off brose when open files in directory and crash happen. Top part of crash report for thread 0 (report is very long):

    Process:               inkscape [24236]
    Path:                  /Applications/Inkscape.app/Contents/MacOS/inkscape
    Identifier:            org.inkscape.Inkscape
    Version:               1.3.0 (22605)
    Code Type:             X86-64 (Native)
    Parent Process:        ??? [1]
    Responsible:           inkscape [24236]
    User ID:               501

    Date/Time:             2023-08-24 19:07:58.374 +0700
    OS Version:            Mac OS X 10.13.6 (17G14042)
    Report Version:        12
    Bridge OS Version:     3.0 (14Y901)
    Anonymous UUID:        8B63A05D-5879-DBAD-91BA-7DDD4CAB5DA0

    Sleep/Wake UUID:       4610F1A2-4B69-4F5A-AA38-B821724B828F

    Time Awake Since Boot: 3400000 seconds
    Time Since Wake:       2800 seconds

    System Integrity Protection: enabled

    Crashed Thread:        0  Dispatch queue: com.apple.main-thread

    Exception Type:        EXC_BREAKPOINT (SIGTRAP)
    Exception Codes:       0x0000000000000002, 0x0000000000000000
    Exception Note:        EXC_CORPSE_NOTIFY

    Termination Signal:    Trace/BPT trap: 5
    Termination Reason:    Namespace SIGNAL, Code 0x5
    Terminating Process:   exc handler [0]

    Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
    0   libglib-2.0.0.dylib               0x000000010f37e04b g_log_structured_array + 171
    1   libglib-2.0.0.dylib               0x000000010f37d98f g_log_default_handler + 223
    2   libglib-2.0.0.dylib               0x000000010f37d4b1 g_logv + 1057
    3   libglib-2.0.0.dylib               0x000000010f37d022 g_log + 130
    4   libglibmm-2.4.1.dylib             0x000000011061cdd2 Glib::exception_handlers_invoke() + 354
    5   libglibmm-2.4.1.dylib             0x000000011061dc46 (anonymous namespace)::glibmm_source_callback(void*) + 54
    6   libglib-2.0.0.dylib               0x000000010f370923 g_timeout_dispatch + 67
    7   libglib-2.0.0.dylib               0x000000010f374b8e g_main_context_dispatch + 414
    8   libglib-2.0.0.dylib               0x000000010f374eb2 g_main_context_iterate + 450
    9   libglib-2.0.0.dylib               0x000000010f374f48 g_main_context_iteration + 104
    10  libgio-2.0.0.dylib                0x000000010f0ed51d g_application_run + 589
    11  org.inkscape.Inkscape             0x000000010cefdebb main + 4795
    12  libdyld.dylib                     0x00007fff6e2fd015 start + 1

  5. #5
    Paddy_CAD Paddy_CAD @Paddy_CAD

    Open the svg file with a text editor and delete all lines starting with inkscape:path-effect= then save. Open with Inkscape and [File > Clean Up Document]. One or maybe more of the path effects is causing the problem. If you have the patience, delete them one by one to identify the culprits.

  6. #6
    TNHH Tinh Phụng TNHH Tinh Phụng @VeTuDo

     'inkscape:path-effect=' no exist in that file. I upload file here for you guys can try it:

    https://inkscape.org/~VeTuDo/★hoa-tiet-tieu-xanh-2

  7. #7
    dwhall dwhall @dwhall

    Hello: with some copy and paste have created this edited version (attached) the cable loop element appeared to be the problem and requires some re-editing in this edit copy. Hope this is of some help.

  8. #8
    Aero Aero @Aero◻️

    Also, to remove all Inkscape code from a file:

    File > Save a Copy..., Save as type Plain SVG

  9. #9
    Paddy_CAD Paddy_CAD @Paddy_CAD
    *
    VeTuDo

    Same problem

    @VeTuDo: Not quite the same problem. On my system (MacOS 13.5 & Inkcape 1.3), the File Open dialog freezes when I try to open your file. I moved the file out of the active folder to another folder then [File > Open...] [Enable preview: No]. With preview disabled I navigated to the new location and successfully opened the file.

    It's possible to create svg files that are poisonous to Inkscape and this is one of them. Thankfully this is rare. Bad fonts are usually to blame, in my experience. I deleted all font attributes from your file but the problem persisted.

    Next I removed all filters from your drawing [Edit > Select All] [Filters > Remove Filters] [File > Clean Up Document] [File > Save] and the preview window works again. There's a bad filter or maybe several bad filters in your drawing. Finding the culprits is a tedious bisection process. Delete half the shapes. Save and test. If the problem remains, delete half the remaining shapes. Repeat until you isolate the poisonous filters.

    Please submit a bug report when you track down the problematic filters.

  10. #10
    TNHH Tinh Phụng TNHH Tinh Phụng @VeTuDo

    Thanks for you work. I never use filter, surprise me file have filter. :).

    ¡But you method work and fix my file problem!

     

    [Edit → Select All] [Filters → Remove Filters] [File → Clean Up Document] [File → Save]

     

    ¡Muchas gracias!

  11. #11
    TNHH Tinh Phụng TNHH Tinh Phụng @VeTuDo

    I use FileMerge program from Xcode for compare file before  [Filters → Remove Filters] [File → Clean Up Document] [File → Save] and have two <filter> I think cause problem (for help Inkscape progamers)

     

       <filter
           color-interpolation-filters="sRGB"
           inkscape:collect="always"
           id="filter21442-8"
           x="-1575.7431"
           y="-0.31989072"
           width="3152.8606"
           height="1.6397814">
          <feGaussianBlur
             inkscape:collect="always"
             stdDeviation="2.8211857"
             id="feGaussianBlur21444-8" />
        </filter>


       <filter
           color-interpolation-filters="sRGB"
           inkscape:collect="always"
           id="filter21442-8"
           x="-1575.7431"
           y="-0.31989072"
           width="3152.8606"
           height="1.6397814">
          <feGaussianBlur
             inkscape:collect="always"
             stdDeviation="2.8211857"
             id="feGaussianBlur21444-8" />
        </filter>
     

  12. #12
    Tyler Durden Tyler Durden @TylerDurden
    *

    The file does not crash on 1.3 in Linux mint 21.

    However, examination of the file shows the group g21466 is a mile wide due to the filter: url(#filter21442-8).

    This was easy to detect by first using the Zoom to Drawing button (4 key), then holding the TAB key to scroll through the document's objects.

    (I will upload screenshots when the site is feeling better.)

     

     

    Inkscape 20230829082258
Inkscape Inkscape.org Inkscape Forum Beginners' Questions SVG file created using older Inkscape version crashes latest Inkscape