Unsure crash while drawing wires

Issue #20 new
Sarthak Kalani created an issue

When I already had a wire and tried to bring another one to join, faced a crash. Have done this before, so not sure what caused it. Error log below:

Traceback (most recent call last): File "C:\Software_From_CUIT\ycircuit\src\drawingarea.py", line 1006, in mouseR eleaseEvent self.currentNet.splitNets(netList, self.undoStack) File "C:\Software_From_CUIT\ycircuit\src\components.py", line 850, in splitNet s newNet2.splitNets(newNetList2, undoStack) File "C:\Software_From_CUIT\ycircuit\src\components.py", line 767, in splitNet s newNet1 = net.createCopy() File "C:\Software_From_CUIT\ycircuit\src\components.py", line 617, in createCo py newNet = super().createCopy(parent) File "C:\Software_From_CUIT\ycircuit\src\components.py", line 175, in createCo py self.scene().addItem(newItem) AttributeError: 'NoneType' object has no attribute 'addItem'

Comments (1)

  1. Siddharth Shekar repo owner

    Ya, I've seen issues of the type before and thought that I had caught all of the edge cases. The thing is that the code for merging/splitting nets wasn't as simple as I thought it would be (or maybe there is a better way of doing this that I'm unable to think of). Unfortunately, unless I know exactly what caused it to break, it'll be hard to account for.

  2. Log in to comment