Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Phantom nets #442

Closed
tomhajjar opened this issue Jan 8, 2024 · 6 comments
Closed

Phantom nets #442

tomhajjar opened this issue Jan 8, 2024 · 6 comments

Comments

@tomhajjar
Copy link

tomhajjar commented Jan 8, 2024

Attached is a schematic with a type of "Phantom" nets I talked about in #426. A "phantom" net can be caused by a deleting a cell connected to a net(s) or a cut-paste or moving multiple items containing labeled nets.

In this case I deleted 2 OpAmps in the original schematic and tried to substitute new ones. This created 4 "floating" nets. When I try to replace the OpAmps, all 4 nets move when OP1 is selected.

1st pic is schematic before trying to move OP1 into position. 2nd pic shows how all 4 nets move in sync with OP1 even though only OP1 was selected.

To get around the problem I have to deleted the two OpAmps and place them individually. The nets are undisturbed and connect properly since the new OpAmp has the same symbol as the original.

2024-01-08_184005

2024-01-08_184022

AC_TRAN_Active_Filter_analysis.zip

@wawuwo
Copy link
Contributor

wawuwo commented Jan 14, 2024

I've been trying to reproduce the issue using using two OpAmps like in the attached schematic and I haven't succeeded. Moving and deleting OpAmps in my synthetic example seems to work fine:
3

I also tried to take the attached schematic, delete dangling labels and put OpAmps in their places, add labels again. Then I moved and deleted OpAmps, copied and pasted them in a new place — and there was no problem with labels… But if the schematic is taken "as is", then moving OpAmps moves labels as well. It's strange.

I've discovered a case when moving a component causes movement of a label:
2

It may be the same bug or a related one… It may also be somehow related to an accumulated internal state of Schematic object. There is definitely a problem that should be looked further into.

In this case I deleted 2 OpAmps in the original schematic and tried to substitute new ones.

@tomhajjar could you please provide the original schematic without dangling labels and describe step by step how to transition it into "having dangling labels" state?

@tomhajjar
Copy link
Author

tomhajjar commented Jan 14, 2024

I can't replicate the issue on my end with the ORIGINAL schematic. I don't know what sequence caused the nets to remain after deleting the two opamps and placing two back.

On my PC, the original schematic (attached) I sent you still has the phantom nets.

AC_TRAN_Active_Filter_analysis.zip

@tomhajjar
Copy link
Author

The nets need to be connected via wires to the component.

If the net is connected directly to the component without a wire it will disappear if the component is deleted.

@wawuwo
Copy link
Contributor

wawuwo commented Jan 16, 2024

The nets need to be connected via wires to the component.

If the net is connected directly to the component without a wire it will disappear if the component is deleted.

Well, this seems to be alike to the bug with a resistor and a wire I showed in a previous reply. I'm working on the problem, but unfortunately the source code is not so easy to comprehend, so no quick results on the horizon :(

@tomhajjar
Copy link
Author

tomhajjar commented Jan 16, 2024

I would call this a very low priority "bug". It happens so rarely and when it does it's generally obvious and can be fixed by deleting the nets/wires and re-place them.

It's always better to do nothing if there is a chance of introducing a worse problem...

@ra3xdh
Copy link
Owner

ra3xdh commented Jun 2, 2024

Closing because of unknown conditions to reproduce this issue. This is very rare schematic editing issue, which should not appear when using a normal schematic editing procedure. I have never observed floating 1x1 point nets in my schematics.

@ra3xdh ra3xdh closed this as not planned Won't fix, can't repro, duplicate, stale Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants