Shapestring move behavior

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
bluebaer
Posts: 24
Joined: Wed Aug 21, 2019 8:29 pm
Location: Germany

Shapestring move behavior

Post by bluebaer »

Hello,

I encountered an unexpected shapestring behavior in connection with translation functions.

- generate a default shapestring
- move the shape string from 2 random points
- the move operation will be executed twice => shapestring is move the double distance!
- you have to rewind the second operation to get the expected result

see gif attached.
----
OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.20.25844 (Git)
Build type: Release
Branch: master
Hash: 1b20118dfa3fb9f127f0e4fb122701f7fcdaa9fc
Python version: 3.8.12
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: German/Germany (de_DE)
---

Can anybody reproduce?

Best regards

Thomas
move shape_string_error105.gif
move shape_string_error105.gif (890.39 KiB) Viewed 4032 times
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Shapestring move behavior

Post by thomas-neemann »

bluebaer wrote: Wed Sep 29, 2021 9:20 pm
I have observed such effects in other places as well. e.g. downgrade of step files. if you know it is not a problem in my opinion
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
carlopav
Veteran
Posts: 2062
Joined: Mon Dec 31, 2018 1:49 pm
Location: Venice, Italy

Re: Shapestring move behavior

Post by carlopav »

I'll have a look.
thomas-neemann wrote: Thu Sep 30, 2021 7:48 am I have observed such effects in other places as well. e.g. downgrade of step files.
If so please report them. Those are problems indeed
follow my experiments on BIM modelling for architecture design
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Shapestring move behavior

Post by thomas-neemann »

carlopav wrote: Thu Sep 30, 2021 9:57 am ... please report them. Those are problems indeed
the next time it happens I'll report about it
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: Shapestring move behavior

Post by Roy_043 »

bluebaer wrote: Wed Sep 29, 2021 9:20 pm Can anybody reproduce?
No, works fine here. Looking at the GIF it seems there is an error BEFORE you add the ShapeString.

Code: Select all

OS: Windows 8.1 (6.3)
Word size of FreeCAD: 64-bit
Version: 0.20.25844 (Git)
Build type: Release
Branch: master
Hash: 1b20118dfa3fb9f127f0e4fb122701f7fcdaa9fc
Python version: 3.8.12
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: Dutch/Netherlands (nl_NL)
bluebaer
Posts: 24
Joined: Wed Aug 21, 2019 8:29 pm
Location: Germany

Re: Shapestring move behavior

Post by bluebaer »

Update: I investaged a bit further:

1. Yes there is an error in starting freecad of the weekly build. But thats not the point.
2. I can reproduce the effect on 2 further versions on windows (see below).
The point is that the move operation seems to be executed 2 times.
If you do "undo" there are to enteries that you can rewinded. If you undo one, then everything is the way it should be.
3. With the most recent "20.04.2 LTS" see below I can not reproduce.

For me this seems as the glitch has been around a while. I definitly is connected only to "shapestring" element....

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2021.922.24301 +3888 (Git)
Build type: Release
Branch: LinkStage3
Hash: 399863d7e37b354fea6687767605e661beace504
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: German/Germany (de_DE)

and an old V19 version.

OS: Windows 10 Version 2009
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24276 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: a88db11e0a908f6e38f92bfc5187b13ebe470438
Python version: 3.8.6+
Qt version: 5.15.1
Coin version: 4.0.1
OCC version: 7.5.0
Locale: German/Germany (de_DE)

Ubuntu 20.04.2 LTS

OS: Ubuntu 20.04.2 LTS
Word size of FreeCAD: 64-bit
Version: 0.20.25844 (Git) AppImage
Build type: Release
Branch: master
Hash: 1b20118dfa3fb9f127f0e4fb122701f7fcdaa9fc
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: C/Default (C)
User avatar
Roy_043
Veteran
Posts: 8450
Joined: Thu Dec 27, 2018 12:28 pm

Re: Shapestring move behavior

Post by Roy_043 »

I have tried to closely follow the animation (snaps, stylesheet, initial zoom, calling Fit all from the context menu, selection bounding box) but I still cannot reproduce the problem. Either with V0.20 or V0.19. Have you tried renaming user.cfg?

Code: Select all

OS: Windows 8.1 Version 6.3 (Build 9600)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git)
Build type: Release
Branch: releases/FreeCAD-0-19
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.6+
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: Dutch/Netherlands (nl_NL)
bluebaer
Posts: 24
Joined: Wed Aug 21, 2019 8:29 pm
Location: Germany

Re: Shapestring move behavior

Post by bluebaer »

Nop. renameing "user.cfg" does not solve to issue. Any other ideas? Logs...?
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Shapestring move behavior

Post by thomas-neemann »

carlopav wrote: Thu Sep 30, 2021 9:57 am I'll have a look.
thomas-neemann wrote: Thu Sep 30, 2021 7:48 am I have observed such effects in other places as well. e.g. downgrade of step files.
If so please report them. Those are problems indeed
today it happened again. here is the message

21:39:41 GuiCommand: Verschieben
21:39:41 Startpunkt wählen
21:39:43 Endpunkt wählen
21:39:45 562.431 <App> Document.cpp(3815): Recursive calling of recompute for document _158





and here the video


https://www.youtube.com/watch?v=nO1yrK6UU8g



phpBB [video]





OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2021.922.24301 +4188 (Git) AppImage
Build type: Release
Branch: LinkDaily
Hash: 3de879c7a2ba7111cc769d98636eb6d43189459d
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.2
Locale: German/Germany (de_DE)
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
thomas-neemann
Veteran
Posts: 11801
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Shapestring move behavior

Post by thomas-neemann »

carlopav wrote: Thu Sep 30, 2021 9:57 am ...
If so please report them. Those are problems indeed
here is the next one


after draft downgrade with this message

7.86e-07 <App> Document.cpp(3439): Recursive calling of recompute for document Unnamed

95 pillow block.stp.zip
(172.23 KiB) Downloaded 53 times


OS: Ubuntu 20.04.1 LTS (XFCE/xubuntu)
Word size of FreeCAD: 64-bit
Version: 0.20.25997 (Git) AppImage
Build type: Release
Branch: master
Hash: 77b198048a63f1e9ca15eef64c8042d599a14cf3
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: German/Germany (de_DE)
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
Post Reply