core icon indicating copy to clipboard operation
core copied to clipboard

coresendmsg crashes core-daemon if interacting with a node not in the active canvas

Open dwiden opened this issue 10 years ago • 1 comments

If you are running a session with two or more canvases, and you try to issue a command to a node in the non-active canvas, core-daemon will crash.

To test, make a new simulation, put a single host onto canvas 1, make a new canvas (canvas 2). Start the simulation, and on the CLI, run the following command:

coresendmsg node=17 xpos=100 ypos=100

This command will work. Now, click on canvas 2. Run the following command:

coresendmsg node=17 xpos=200 ypos=200

This will cause a popup error from Core-GUI, and will cause the core-daemon to crash

dwiden avatar Oct 31 '16 19:10 dwiden

the issue would be tied to not providing the canvas option, assuming this is how the script worked then:

coresendmsg node=17 xpos=100 ypos=100 canvas=0

bharnden avatar Mar 26 '18 21:03 bharnden