ID 356525 - Mari crashes when adding a Locator via a custom node layer

Follow

Problem summary
When adding a Locator via a custom node layer, Mari will crash

Customer reported version
4.1v1
Customer reported platform
multiple

Steps to reproduce

1) Create a node that exposed the Locator list (as attached)
2) Register the custom node

mari.gl_render.registerCustomNodeFromXMLFile("/Basic/nodename", "/path/to/node.xml")

3) In the Layers palette > Add Procedural Layer > Basic > nodename. Create your layer.

4) Select the [+] in the layer properties.
Result: Mari crashes

5) In the Node Graph, right click and navigate to Basic and create your node.

6) In the Node Properties, select the [+] to create a locator
Result: Locator created - no crash


Workaround
Adding the locator via the Mari default shortcuts in the Objects palette or via the custom node in the Node Properties works as expected

Reproduced by support
This bug has been reproduced in:
4.1v1 - Win 7, CentOS7
4.0v4
3.4v1
3.3v1 - Win 7, CentOS7

Unable to reproduce bug in:
3.2v1

Earliest version tested
3.2v1 - Last Working Version

Expected behaviour
A locator should be created with no crash encountered

Actual behaviour
If the locator was created via the layerstack, Mari would crash

    We're sorry to hear that

    Please tell us why