missionpinball / mpf-monitor

Graphical utilty which connects to MPF to let you visually control, troubleshoot, and see the status of the machine
http://missionpinball.org
MIT License
11 stars 10 forks source link

Placing a device twice crashes Monitor #23

Closed GabeKnuth closed 3 years ago

GabeKnuth commented 5 years ago

I accidentally dragged over a switch that I'd already placed on the playfield picture and Monitor crashed. Here's the log: https://github.com/missionpinball/mpf-monitor/files/3235561/2019-05-30-00-32-57-monitor-Gabes-MBP-2.log.

The crash from the Terminal window is below.

It's good to be back :)

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mpfmonitor/core/mpfmon.py", line 620, in dropEvent drop_y) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mpfmonitor/core/mpfmon.py", line 625, in create_pf_widget drop_y, save) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mpfmonitor/core/mpfmon.py", line 635, in init widget.set_change_callback(self.notify) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/mpfmonitor/core/mpfmon.py", line 44, in set_change_callback raise AssertionError("Can only have one callback") AssertionError: Can only have one callback INFO : root : MPF Monitor run loop ended. INFO : root : Stopping child threads... (2 remaining) INFO : root : All child threads stopped.