Inkscape.org
Beyond the Basics Inkscape v1.0 freezes while opening an SVG on Windows 10
  1. #1
    Bryan & Trista Gilbert Bryan & Trista Gilbert @level42investments

    The attached file fails to load when I simply do a File/Open in inkscape.  I have about 5 similar files that are doing the same thing.  I don't know what the issue is.  I could not find an inkscape log that might help me determine what the issue is.  The svg opens just fine in chrome.  I ran it through a scanner online and did not find an issue.  I can not import the file either.  When I try to import, just choosing this file in the import dialog causes inkscape to freeze.  It seems as though this may have something to do with the preview of the image.

    Can anyone else reproduce this on Inscape v1.0?

    Does anyone have a thought on how I could get these files to open without recreating them?

    Inkscape v1.0 (4035a4fb49, 2020-05-01)

    Windows 10 build 1093

     

    Burns
  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    Yeah, there are quite a few lines of code that interfere with the file opening in Inkscape 1.0.  (The example seems to open ok in .92.x.)

    You can use a text editor like Textpad (windows), Gedit (linux), BBedit (mac) to delete the strings and save as a new SVG file, then open in Inkscape.

     

     <style
         id="style833"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style873"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style892"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style911"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10193"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10206"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10225"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10244"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10263"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10282"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10301"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10320"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10339"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10358"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10377"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10396"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10415"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         type="text/css"
         id="style884">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10446"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10465"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         type="text/css"
         id="style957">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10496"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         type="text/css"
         id="style2694">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10527"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10549"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10571"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10590"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10609"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10628"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10647"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
      <style
         id="style10666"
         type="text/css">
        .st0{fill:none;stroke:#000000;stroke-width:0.5;stroke-miterlimit:10;}
    </style>
    
    

    Attached is an example cleaned of styles and other useless debris.

     

     
    Burns Nostyles
  3. #3
    Bryan & Trista Gilbert Bryan & Trista Gilbert @level42investments

    Thank you!!!  I deleted the lines and the files opens as expected.  Thank you very much!!

  4. #4
    antoinebx antoinebx @antoinebx
    hello
    I am having the same problem with a file. I tried to open it in the latest version of ubuntu and in windows 10. 
    Inkscape 1.1 (c68e22c387, 2021-05-23)
    
    file

     

     

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Inkscape v1.0 freezes while opening an SVG on Windows 10