Differences in Freecad between 32 bit windows and 64 bit windows
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
Differences in Freecad between 32 bit windows and 64 bit windows
Hi,
I started my work with freecad 32bit on windows 32 bit and made some assemblys with the great assembly2 workbench. Now I changed to freecad 64bit and windows 64 bit and my old assemblys doesnt work. Some parts are changing / flipping or rotating their positions when pressing the button for solving the constraints.
When using assembly2 with freecad 32 bit everything is well.
With linux mint 17.3 64 bit everything is well, too.
Saving the assembly with the flipped / rotated parts under Win 64 bit and reopening the assembly under Win 32 bit and pressing the button for solving the constraints the parts moved to their correct position.
Could it be, that there is a difference in precision between 32 bit and 64 bit windows or in the libraries?
Or could it be a problem with the surface / plane normals direction ?
Best regards
Ralf
I started my work with freecad 32bit on windows 32 bit and made some assemblys with the great assembly2 workbench. Now I changed to freecad 64bit and windows 64 bit and my old assemblys doesnt work. Some parts are changing / flipping or rotating their positions when pressing the button for solving the constraints.
When using assembly2 with freecad 32 bit everything is well.
With linux mint 17.3 64 bit everything is well, too.
Saving the assembly with the flipped / rotated parts under Win 64 bit and reopening the assembly under Win 32 bit and pressing the button for solving the constraints the parts moved to their correct position.
Could it be, that there is a difference in precision between 32 bit and 64 bit windows or in the libraries?
Or could it be a problem with the surface / plane normals direction ?
Best regards
Ralf
Re: Differences in Freecad between 32 bit windows and 64 bit windows
Hi again,
unfortunateli I forgot to give the information about my freecad configurations.
S: Windows 8
Word size of OS: 64-bit
Word size of FreeCAD: 32-bit
Version: 0.15.4671 (Git)
Branch: releases/FreeCAD-0-15
Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
In this configuration everything works fine.
_______________________________________________________
OS: Windows 8
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6076 (Git)
Build type: Release
Branch: master
Hash: 0b0d258afd4ef8c9b42d03d5e43291d7214eeed6
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
In this configuration assembly2 fails
______________________________________
OS: Linux Mint 17.3 Rosa
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6078 (Git)
Build type: None
Branch: master
Hash: eb5ec62ccb7bfc873abe08efdb0759e88cdd5c43
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
In this configuration everything works fine
___________________________________________
OS: Windows 8
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4671 (Git)
Branch: releases/FreeCAD-0-15
Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
In this configuration assembly2 fails
It seems, it is depending on windows 64 bit.
regards
Ralf
unfortunateli I forgot to give the information about my freecad configurations.
S: Windows 8
Word size of OS: 64-bit
Word size of FreeCAD: 32-bit
Version: 0.15.4671 (Git)
Branch: releases/FreeCAD-0-15
Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
In this configuration everything works fine.
_______________________________________________________
OS: Windows 8
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6076 (Git)
Build type: Release
Branch: master
Hash: 0b0d258afd4ef8c9b42d03d5e43291d7214eeed6
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
In this configuration assembly2 fails
______________________________________
OS: Linux Mint 17.3 Rosa
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6078 (Git)
Build type: None
Branch: master
Hash: eb5ec62ccb7bfc873abe08efdb0759e88cdd5c43
Python version: 2.7.6
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
In this configuration everything works fine
___________________________________________
OS: Windows 8
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.15.4671 (Git)
Branch: releases/FreeCAD-0-15
Hash: 244b3aef360841646cbfe80a1b225c8b39c8380c
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
In this configuration assembly2 fails
It seems, it is depending on windows 64 bit.
regards
Ralf
Re: Differences in Freecad between 32 bit windows and 64 bit windows
It may also depend on 3rd party libraries the assembly2 module uses, e.g. numpy. It is possible that different versions for 32-bit and 64-bit are used causing different behaviour. it's probably best to report this to the author of the assembly2 module.
Re: Differences in Freecad between 32 bit windows and 64 bit windows
Thanks wmayerwmayer wrote:<font><font>It may also depend on 3rd party libraries the assembly2 module uses, e.g. numpy. It is possible that different versions for 32-bit and 64-bit are used causing different behaviour. it's probably best to report this to the author of the assembly2 module.</font></font>
Ralf has already reported this issue here:https://github.com/hamish2014/FreeCAD_a ... /issues/83
It seems some direction vectors are flipped between the x86 and x64 Windows versions of FreeCAD. I also suspected numpy, there have been some issues the numpy from the libpack, but I remember the problems being with the x86 version. Peterl94 posted an alternate numpy version that seemed to fix the problem for the other users. I will find the link.
EDIT:link is here:viewtopic.php?f=10&t=8395&start=60#p77244 problem looks different though.
"fight the good fight"
Re: Differences in Freecad between 32 bit windows and 64 bit windows
I downloaded winpython to get a 64-bit version of numpy. Now I am able to load your project file. Which step needs to be done next to see the misbehaviour?
Re: Differences in Freecad between 32 bit windows and 64 bit windows
Hi,
please switch to the assembly2 WB and press the solve button (the rubrik's cube symbol). Now some parts change their position / orientation.
If you save it and reopen it with 32bit freecad the position of the parts will change to the correct position.
regards
Ralf
please switch to the assembly2 WB and press the solve button (the rubrik's cube symbol). Now some parts change their position / orientation.
If you save it and reopen it with 32bit freecad the position of the parts will change to the correct position.
regards
Ralf
Re: Differences in Freecad between 32 bit windows and 64 bit windows
Hi again,
for better understanding I attached the two screenshots to show the situation.
Some of the connecting corners are flipping there position. The same does the mounting bracket for the endswitch.
best regards
Ralf
for better understanding I attached the two screenshots to show the situation.
Some of the connecting corners are flipping there position. The same does the mounting bracket for the endswitch.
best regards
Ralf
- Attachments
-
- 64bit.JPG (75.28 KiB) Viewed 4639 times
-
- 32bit.JPG (73.78 KiB) Viewed 4639 times
Re: Differences in Freecad between 32 bit windows and 64 bit windows
OK, I even changed the placement of an object e.g. "Halter_fuer_Endschalter_01" to make sure that the solver does something. After pressing the solve button the object moved back to its original position as shown in the image 32bit.jpg. Then I saved the project under a new file name and re-opened it and the object is still at the correct position. I don't get the situation as shown in picture 64bit.jpgplease switch to the assembly2 WB and press the solve button (the rubrik's cube symbol). Now some parts change their position / orientation.
If you save it and reopen it with 32bit freecad the position of the parts will change to the correct position.
This was tested with:
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6096 (Git)
Build type: Release
Branch: master
Hash: 38d90ab4c2341e91ce1408937e33f54ed33898ca
Python version: 2.7.6
Qt version: 4.8.5
Coin version: 4.0.0a
OCC version: 6.6.0
numpy version is 1.9.2
But what I realized is that the assembly project references a lot of external files that I don't have like Halter_fuer_Endschalter.FCStd, Standfuss_fuer_Baugruppe.FCStd, ... Does this have an impact on the solution?
Re: Differences in Freecad between 32 bit windows and 64 bit windows
Hi,
on my system numpy 1.9.1 is installed. I will try the 64bit version. I downloaded winpython64bit . How can I tell freecad the new Version of numpy?
If starting freecad, and giving in the python console the commands >>> import numpy and >>>print numpy.__version__ then python tells me the version 1.9.1 of numpy. If I start winpython, it tells me numpy version 1.9.3 version.
The linked parts are the original parts created in freecad. Assembly2 is muxing the parts to single object without history.
best regards
Ralf
on my system numpy 1.9.1 is installed. I will try the 64bit version. I downloaded winpython64bit . How can I tell freecad the new Version of numpy?
If starting freecad, and giving in the python console the commands >>> import numpy and >>>print numpy.__version__ then python tells me the version 1.9.1 of numpy. If I start winpython, it tells me numpy version 1.9.3 version.
The linked parts are the original parts created in freecad. Assembly2 is muxing the parts to single object without history.
best regards
Ralf
Re: Differences in Freecad between 32 bit windows and 64 bit windows
@Ralfrasomei wrote:best regards
Can you try; navigate to FreeCAD/Mod/assembly2 and delete all .pyc files. Then re-start FreeCAD. Try 0.16.4671 x64 first.
"fight the good fight"