Crash when selecting node with Widget::NumberInput in properties panel
When the cursor is in a text box, such as in the Text node, and the transform node is clicked, the editor crashes. This is due to the Value::String not being reset when switching nodes, so the string value from the text box gets passed to the number input, which causes a panic.
Note that this doesn't happen in firefox and only in chromium. Also the text node needs to be selected in the graph with the cursor in the text box before clicking on the transform node.
Yeah, I've run into other bugs where Firefox and Chrome had different event ordering. I can try looking into this. Thanks for that extra data @0HyperCube.
- (Use a Chromium browser)
- Draw something with the Text tool
- Open the node graph
- Click the text node so it's the only selection in the graph
- Select the text field in the Properties panel so your text cursor is somewhere that'd allow you to type
- Click on a different node, such as Transform, Fill, or Stroke
I found a more general issue: 0. (This happens in both Firefox and Chromium browsers)
- Draw a rectangle with some fill color, so it'll be visible even without a stroke
- Open the graph
- Select the Stroke node, click the Weight, set it to 0, and hit enter because the bug only works when the initial value of the field is 0
- Select that Weight field again and type something like 500 but don't hit enter yet
- Click the Transform node and you'll find that it has applied the 500 to the rotation as 500°
hello @Keavon is this still an issue? when I tried to follow the steps in the most recent comment, i was unable to reproduce
I found a more general issue: 0. (This happens in both Firefox and Chromium browsers)
- Draw a rectangle with some fill color, so it'll be visible even without a stroke
- Open the graph
- Select the Stroke node, click the Weight, set it to 0, and hit enter because the bug only works when the initial value of the field is 0
- Select that Weight field again and type something like 500 but don't hit enter yet
- Click the Transform node and you'll find that it has applied the 500 to the rotation as 500°
I think I recall when we might have fixed this or something related to this (it involved how the widgets were displaying the unit, such as °, across widgets when clicking between nodes). I also can't reproduce the issue, so I'm going to close this. Thanks for bringing this up @prestonbourne.