Differences in Freecad between 32 bit windows and 64 bit windows

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
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!
Post Reply
rasomei
Posts: 19
Joined: Fri May 01, 2015 11:54 am

Differences in Freecad between 32 bit windows and 64 bit windows

Post by rasomei »

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
rasomei
Posts: 19
Joined: Fri May 01, 2015 11:54 am

Re: Differences in Freecad between 32 bit windows and 64 bit windows

Post by rasomei »

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
wmayer
Founder
Posts: 20241
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Differences in Freecad between 32 bit windows and 64 bit windows

Post by wmayer »

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.
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Differences in Freecad between 32 bit windows and 64 bit windows

Post by sgrogan »

wmayer 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>
Thanks wmayer
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"
wmayer
Founder
Posts: 20241
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Differences in Freecad between 32 bit windows and 64 bit windows

Post by wmayer »

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?
rasomei
Posts: 19
Joined: Fri May 01, 2015 11:54 am

Re: Differences in Freecad between 32 bit windows and 64 bit windows

Post by rasomei »

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
rasomei
Posts: 19
Joined: Fri May 01, 2015 11:54 am

Re: Differences in Freecad between 32 bit windows and 64 bit windows

Post by rasomei »

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
Attachments
64bit.JPG
64bit.JPG (75.28 KiB) Viewed 4585 times
32bit.JPG
32bit.JPG (73.78 KiB) Viewed 4585 times
wmayer
Founder
Posts: 20241
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: Differences in Freecad between 32 bit windows and 64 bit windows

Post by wmayer »

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.
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.jpg

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?
rasomei
Posts: 19
Joined: Fri May 01, 2015 11:54 am

Re: Differences in Freecad between 32 bit windows and 64 bit windows

Post by rasomei »

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
User avatar
sgrogan
Veteran
Posts: 6499
Joined: Wed Oct 22, 2014 5:02 pm

Re: Differences in Freecad between 32 bit windows and 64 bit windows

Post by sgrogan »

rasomei wrote:best regards
@Ralf
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"
Post Reply