Import SVG, crashing illustrator
I'm on MAC and I'm using the latest versin of Illustrator 25.3.1 and when i import an svg (who come Adobe XD), illustrator do not respond and crash.
-
I confirm this SVG is crashing Ai on import, after a long freeze.
Endo, as for the attaching SVGs, unfortunately, UserVoice believes these can be potentially harmful and restricts attaching them: https://feedback.uservoice.com/forums/1-general-feedback/suggestions/38205193-support-svg-attachments-on-ideas-and-comments
-
Endo commented
I created a smaller example which can be pasted here.
This is empty svg without style but crashes Illustrator.```
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="41.632px" height="61.864px" viewBox="0 -1925.5 2300 3418" aria-hidden="true" style="">
<style>
mjx-container[jax="SVG"] {
direction: ltr;
}mjx-container[jax="SVG"] > svg {
overflow: visible;
min-height: 1px;
min-width: 1px;
}mjx-container[jax="SVG"] > svg a {
fill: blue;
stroke: blue;
}mjx-assistive-mml {
position: absolute !important;
top: 0px;
left: 0px;
clip: rect(1px, 1px, 1px, 1px);
padding: 1px 0px 0px 0px !important;
border: 0px !important;
display: block !important;
width: auto !important;
overflow: hidden !important;
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}mjx-assistive-mml[display="block"] {
width: 100% !important;
}mjx-container[jax="SVG"][display="true"] {
display: block;
text-align: center;
margin: 1em 0;
}mjx-container[jax="SVG"][display="true"][width="full"] {
display: flex;
}mjx-container[jax="SVG"][justify="left"] {
text-align: left;
}mjx-container[jax="SVG"][justify="right"] {
text-align: right;
}g[data-mml-node="merror"] > g {
fill: red;
stroke: red;
}g[data-mml-node="merror"] > rect[data-background] {
fill: yellow;
stroke: none;
}g[data-mml-node="mtable"] > line[data-line], svg[data-table] > g > line[data-line] {
stroke-width: 70px;
fill: none;
}g[data-mml-node="mtable"] > rect[data-frame], svg[data-table] > g > rect[data-frame] {
stroke-width: 70px;
fill: none;
}g[data-mml-node="mtable"] > .mjx-dashed, svg[data-table] > g > .mjx-dashed {
stroke-dasharray: 140;
}g[data-mml-node="mtable"] > .mjx-dotted, svg[data-table] > g > .mjx-dotted {
stroke-linecap: round;
stroke-dasharray: 0,140;
}g[data-mml-node="mtable"] > g > svg {
overflow: visible;
}[jax="SVG"] mjx-tool {
display: inline-block;
position: relative;
width: 0;
height: 0;
}[jax="SVG"] mjx-tool > mjx-tip {
position: absolute;
top: 0;
left: 0;
}mjx-tool > mjx-tip {
display: inline-block;
padding: .2em;
border: 1px solid #888;
font-size: 70%;
background-color: #F8F8F8;
color: black;
box-shadow: 2px 2px 5px #AAAAAA;
}g[data-mml-node="maction"][data-toggle] {
cursor: pointer;
}mjx-status {
display: block;
position: fixed;
left: 1em;
bottom: 1em;
min-width: 25%;
padding: .2em .4em;
border: 1px solid #888;
font-size: 90%;
background-color: #F8F8F8;
color: black;
}foreignObject[data-mjx-xml] {
font-family: initial;
line-height: normal;
overflow: visible;
}mjx-container[jax="SVG"] path[data-c], mjx-container[jax="SVG"] use[data-c] {
stroke-width: 3;
}
</style>
</svg>
``` -
Endo commented
I tried but I'm not being able to upload file here.
Instead, I'll explain how to create the SVG file which cause the crash.1. Open https://viereck.ch/latex-to-svg/
2. Type the following LaTeX code
```
\begin{align}
\hline
A&A\\
\hline
\vdots\\
\\
\end{align}
```3. Download SVG file.
4. Open the SVG file with Adobe Illustrator from Finder.
-
Endo commented
This is also happening to me on M2 MacBook Pro 2022 on macOS Monterey 12.6.2.
Version of my Illustrator is 27.2.Here's the SVG file which crashes Illustrator.
The SVG file is not from XD but from https://viereck.ch/latex-to-svg/. -
MarkR commented
PLEASE FIX THIS, ADOBE. I'm experiencing the same thing! There is nothing that XD can create and or export, that can be opened in Illustrator, without Illustrator locking-up and crashing! I can NOT copy-and-past from XD to Illustrator, I can NOT open any XD files with Illustrator, I can NOT open an SVG file created with XD, in Illustrator, NOTHING!
It's is a serious flaw and serious problem, when I work with a team who is creating mockups in XD and they want me to refine elements using Illustrator, and I CAN'T! I have to recreate the whole blasted XD mockup in Illustrator before I can do anything!
I'm using the latest of everything: XD version 44.1.12, and Illustrator version 24.3.2.