On Wed, 12 Oct 2005, bulia byak wrote:
Connectors
Waiting for Michael's fix of sp_use_update and Bryce's crash fix confirmation
Firstly, Bryce still gets this crash but I don't see it on my Mac or any of the Linux machines I've just tried CVS HEAD on. I'd be grateful if a some other people could try to reproduce the crash, and provide more information, e.g., a backtrace.
The bug report is: https://sourceforge.net/tracker/index.php?func=detail&aid=1303488&gr... Bryce's initial and then most recent comment give the steps to reproduce.
Secondly, it turns out sp_use_update wasn't the problem... For those just joining us, the connector tool has a problem with clones. This is because it responds to the transformed signal of a clone Use to update connectors attached to it. The connector code calls sp_item_invoke_bbox which returns the wrong bbox for the Use object. I originally thought this was because the bbox code used information from the object's internal information that was not yet updated (by the sp_*_update functions).
It turns out that the actual problem is that the Use object keeps a copy of the original object, and this copy is not brought in sync with the original moved object till after the transformed signal has been handled. The bbox code uses this copy of the original object so returns the object's bbox as it was before the move.
There is a trivial fix, but it may not be completely safe. So, after discussing it with Bulia and mental on Jabber, we have decided to wait till after the release to apply it.
Cheers, Michael