-
Notifications
You must be signed in to change notification settings - Fork 847
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
check disconnect/reconnect behavior when changing voltage on a power symbol #1326
Comments
From irasc...@gmail.com on January 22, 2011 08:51:49 Crashes under Windoze as well. If the part is unconnected before the voltage is changed, then there's no crash. When you change the voltage, and the part is connected, the wire is deleted, and the direct cause of the crash is that somehow the wire isn't completely removed, and so when trying to save the partly deleted object there's a crash. The reason the wire is deleted is that when the voltage is changed, the power part tries to connect to a different net (using a new wire) with that voltage. Maybe some other approach would be better. Status: Accepted |
From tjtomk...@gmail.com on January 22, 2011 13:18:36 I tried to recreate the issue using your workaround, I have a circuit already heavily populated including 5v powers. If I perform "If the part is unconnected before the voltage is changed, then there's no crash.", I find the application crashes. I would assume (haven't tried), recreating the circuit from scratch. |
From irasc...@gmail.com on January 29, 2011 14:50:22 r4676 . Added a patch which seems to prevent the crash. Leaving the bug open, because I'm not sure about the current disconnect/reconnect behavior: the disconnect may be ok, but I'm wondering why there's no reconnect. |
From tjtomk...@gmail.com on January 29, 2011 21:39:38 Re-tested; comfirmed correct behaviour. Thx |
From irasc...@gmail.com on July 02, 2011 02:07:01 Summary: check disconnect/reconnect behavior when changing voltage on a power symbol |
From bitsybof...@gmail.com on October 01, 2013 15:43:19 When changing the voltage on a power symbol, all wires in schematic which were connected to it are deleted. |
From irasc...@gmail.com on October 01, 2013 20:10:46 @6: Because it could lead to a situation where some parts are connected to two voltages, though I suppose we could check for this, and leave the wires connected in that case. |
From bitsybof...@gmail.com on October 02, 2013 15:33:50 @7, if this removing-wires-for-label-change-on-power-symbol feature is useful (I beg to differ), it should just remove up to the first bend point. IMHO, such checking should be done as part of a ERC function, initiated by a user, and left for the user to resolve as with DRC, not automatically on the fly. |
When changing the voltage in a power symbol, the wires which were connected to it are deleted. This still happens in 0.9.4. However, I think this is not the right behaviour. Users should known what they are doing and if you put the power pin, wire it and then change the voltage you have to wire it again. |
Remove imported label and add schematic view |
This is caused by function SchematicSketchWidget::setVoltage(double v, bool doEmit)
The if we remove the loop that removes the wires, the issue is that the ratsnets are not updated when you change to BB or PCB view. @KjellMorgenstern , any ideas about how to fix this? There are CleanUpRatsnestsCommand and CleanUpWiresCommand before and after the setPropCommand, but they do not have any effect. The issue is the same in #2669, but in the SchematicSketchWidget::setProp(ItemBase * itemBase, const QString & prop, const QString & trProp, const QString & oldValue, const QString & newValue, bool redraw) function. |
…etlabel text fixes fritzing#2669 and fritzing#1326
OK, I think I found the solution. We need to force the flag of doRatsnest in updateRoutingStatus (SketchWidget). We can do that by adding the connector of the netlabel or power symbol to the list of updated connectors, which triggers the doRatsnets flag when calling checkUpdateRatsnest(). Proposed code (see more in my PR):
|
…etlabel text fixes fritzing#2669 and fritzing#1326
From tjtomk...@gmail.com on January 22, 2011 05:01:12
What steps will reproduce the problem? 1. Create a small circuit using power.fpz
2. Modify power value to 3.3 or 12 volts
3. Try to save circuit
What is the expected output?
Expected outcome is a saved circuit.
What do you see instead?
The application crashes.
What version of the product are you using?
Fritzing 0.4.4 (b4641)
On what operating system?
OSX 10.6.6 Please provide any additional information below.
Original issue: http://code.google.com/p/fritzing/issues/detail?id=1326
The text was updated successfully, but these errors were encountered: