SVG doesn't preview and doesn't export properly
Got some issues with Gingerbread today. I'm using the same settings as usual. When I drag the file into Gingerbread I don't see any preview. It does show the edge cuts measurements, though. Pasting the Gingerbread file in KiCad, I get only the edge cuts frame.
Also tried to open the example files (the ones on the Gingerbread homepage). They also don't show preview, but they do paste into KiCad.
Same here on Chrom(uim)e bases browsers. Safari works okay for the preview. Copy also not working
Same issues, on chrome no preview and on firefox no export for me. I keep getting stuff like this in the console logs
XML Parsing Error: not well-formed
Location: https://gingerbread.wntr.dev/index.html
Line Number 9, Column 17: [index.html:9:17](https://gingerbread.wntr.dev/index.html)
<parsererror>
ariaActiveDescendantElement: null
ariaAtomic: null
ariaAutoComplete: null
ariaBrailleLabel: null
ariaBrailleRoleDescription: null
ariaBusy: null
ariaChecked: null
ariaColCount: null
ariaColIndex: null
ariaColIndexText: null
ariaColSpan: null
ariaControlsElements: null
ariaCurrent: null
ariaDescribedByElements: null
ariaDescription: null
ariaDetailsElements: null
ariaDisabled: null
ariaErrorMessageElements: null
ariaExpanded: null
ariaFlowToElements: null
ariaHasPopup: null
ariaHidden: null
ariaInvalid: null
ariaKeyShortcuts: null
ariaLabel: null
ariaLabelledByElements: null
ariaLevel: null
ariaLive: null
ariaModal: null
ariaMultiLine: null
ariaMultiSelectable: null
ariaOrientation: null
ariaOwnsElements: null
ariaPlaceholder: null
ariaPosInSet: null
ariaPressed: null
ariaReadOnly: null
ariaRelevant: null
ariaRequired: null
ariaRoleDescription: null
ariaRowCount: null
ariaRowIndex: null
ariaRowIndexText: null
ariaRowSpan: null
ariaSelected: null
ariaSetSize: null
ariaSort: null
ariaValueMax: null
ariaValueMin: null
ariaValueNow: null
ariaValueText: null
assignedSlot: null
attributes: NamedNodeMap []
baseURI: "https://gingerbread.wntr.dev/index.html"
childElementCount: 1
childNodes: NodeList [ #text, sourcetext
]
children: HTMLCollection { 0: sourcetext
, length: 1 }
classList: DOMTokenList []
className: ""
clientHeight: 0
clientLeft: 0
clientTop: 0
clientWidth: 0
currentCSSZoom: 1
firstChild: #text "XML Parsing Error: not well-formed\nLocation: https://gingerbread.wntr.dev/index.html\nLine Number 9, Column 17:"
firstElementChild: <sourcetext>
id: ""
innerHTML: 'XML Parsing Error: not well-formed\nLocation: https://gingerbread.wntr.dev/index.html\nLine Number 9, Column 17:<sourcetext xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml"> <script defer type="text/javascript" src="./scripts/bulma.js"></script>\n----------------^</sourcetext>'
isConnected: true
lastChild: <sourcetext>
lastElementChild: <sourcetext>
localName: "parsererror"
namespaceURI: "http://www.mozilla.org/newlayout/xml/parsererror.xml"
nextElementSibling: null
nextSibling: null
nodeName: "parsererror"
nodeType: 1
nodeValue: null
onfullscreenchange: null
onfullscreenerror: null
outerHTML: '<parsererror xmlns="http://www.mozilla.org/newlayout/xml/parsererror.xml">XML Parsing Error: not well-formed\nLocation: https://gingerbread.wntr.dev/index.html\nLine Number 9, Column 17:<sourcetext> <script defer type="text/javascript" src="./scripts/bulma.js"></script>\n----------------^</sourcetext></parsererror>'
ownerDocument: XMLDocument { … }
parentElement: null
parentNode: XMLDocument { … }
part: DOMTokenList []
prefix: null
previousElementSibling: null
previousSibling: ProcessingInstruction { }
role: null
scrollHeight: 0
scrollLeft: 0
scrollLeftMax: 0
scrollTop: 0
scrollTopMax: 0
scrollWidth: 0
shadowRoot: null
slot: ""
tagName: "parsererror"
textContent: 'XML Parsing Error: not well-formed\nLocation: https://gingerbread.wntr.dev/index.html\nLine Number 9, Column 17: <script defer type="text/javascript" src="./scripts/bulma.js"></script>\n----------------^'
<prototype>: ElementPrototype { getAttributeNames: getAttributeNames(), getAttribute: getAttribute(), getAttributeNS: getAttributeNS(), … }
[xv.js:1301:13](moz-extension://94d98ef5-26a5-4300-84dc-3545fa35c04c/xv.js)
XV Extension: Unable to render document: invalid XML
{
"zig": {
"inst": {},
"wasi": {
"memory": {},
"buffers": {
"1": [],
"2": [
{},
{},
{
"0": 80,
"1": 111,
"2": 108,
"3": 121,
"4": 108,
"5": 105,
"6": 115,
"7": 116,
"8": 32,
"9": 102,
"10": 114,
"11": 97,
"12": 99,
"13": 116,
"14": 117,
"15": 114,
"16": 101,
"17": 100,
"18": 10
}
]
}
}
},
"image_array_ptr": {
"zigwasm": {
"inst": {},
"wasi": {
"memory": {},
"buffers": {
"1": [],
"2": [
{},
{},
{
"0": 80,
"1": 111,
"2": 108,
"3": 121,
"4": 108,
"5": 105,
"6": 115,
"7": 116,
"8": 32,
"9": 102,
"10": 114,
"11": 97,
"12": 99,
"13": 116,
"14": 117,
"15": 114,
"16": 101,
"17": 100,
"18": 10
}
]
}
}
},
"address": 16969764,
"byteLength": 38550000
}
}
hey @yry-dev !
you are getting this in firefox console? In chrome I do not see anything like this.
hm, this is strange.
On MacOS, with firefox 138.0.4 (aarch64) the preview is okay.
Export and copy are also working fine (for all sample files)