You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bonsai will crash with a NullReferenceException with the following stack trace:
> SVG.dll!SvgNet.SvgFactory.LoadFromXML(System.Xml.XmlDocument doc, System.Xml.XmlElement el) Line 79 C#
Bonsai.Editor.dll!Bonsai.Editor.GraphView.SvgRendererFactory.TryGetIconRenderer(Bonsai.Editor.GraphModel.ElementIcon icon, out Bonsai.Editor.GraphView.SvgRenderer renderer) Line 675 C#
Bonsai.Editor.dll!Bonsai.Editor.GraphView.SvgRendererFactory.GetIconRenderer(Bonsai.Editor.GraphModel.GraphNode node) Line 627 C#
Bonsai.Editor.dll!Bonsai.Editor.GraphView.GraphViewControl.DrawNode(SvgNet.Interfaces.IGraphics graphics, Bonsai.Editor.GraphView.GraphViewControl.LayoutNode layout, System.Drawing.Size offset, System.Drawing.SolidBrush selection, System.Drawing.SolidBrush fill, System.Drawing.Pen stroke, System.Drawing.Color currentColor, System.Drawing.Color? cursor, bool hot, System.Drawing.Font vectorFont) Line 1099 C#
Bonsai.Editor.dll!Bonsai.Editor.GraphView.GraphViewControl.canvas_Paint(object sender, System.Windows.Forms.PaintEventArgs e) Line 1247 C#
System.Windows.Forms.dll!System.Windows.Forms.Control.OnPaint(System.Windows.Forms.PaintEventArgs e) Unknown
<snipped>
Within SvgNet, the crash happens here: SvgFactory.LoadFromXml specifically because _elementNameDictionary["WorkflowBuilder"] is null (or rather it's missing from the XML document.)
Something seemingly nonsensical is happening. Looking up one level at TryGetIconRenderer, the icon being "opened" is ReplaceNodeWithGroupWorkflowIssue-GroupWorkflow.svg (which is the file I was trying to save.) At the time of crashing this file contains what appears to be my GroupWorkflow saved as a Bonsai workflow:
Found while writing the issue for #1792
I'm not 100% sure what conditions cause this, but I wanted to get this written down before I forgot.
GroupWorkflow
tabBonsai will crash with a
NullReferenceException
with the following stack trace:Within SvgNet, the crash happens here:
SvgFactory.LoadFromXml
specifically because_elementNameDictionary["WorkflowBuilder"]
is null (or rather it's missing from the XML document.)Something seemingly nonsensical is happening. Looking up one level at
TryGetIconRenderer
, theicon
being "opened" isReplaceNodeWithGroupWorkflowIssue-GroupWorkflow.svg
(which is the file I was trying to save.) At the time of crashing this file contains what appears to be myGroupWorkflow
saved as a Bonsai workflow:No idea what's happening here, definitely need to look into it more.
The text was updated successfully, but these errors were encountered: