Closed dicethrow closed 2 years ago
Build freecad from source
that's very courageous from you, but could you please verify this problem (the crash) on a release version ? (the error when opening variant link files is "normal" (as in "documented") but it still works)
I'm surprised but that did it! any idea why?
Steps:
$ sudo apt-get install freecad
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
gnome-panel-data libcgi-fast-perl libcgi-pm-perl libconfig-general-perl libdbi-perl libdbi1
libemail-date-format-perl libfcgi-bin libfcgi-perl libfcgi0ldbl libfwupdplugin1 libgnome-panel0
libhttp-server-simple-perl libmime-lite-perl libmime-types-perl librrd8 librrds-perl libxml-simple-perl
rrdtool
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
calculix-ccx freecad-common freecad-python3 libfreecad-python3-0.19 libspooles2.2
python3-pyside2.qtuitools python3-pyside2.qtxml
Suggested packages:
povray
The following NEW packages will be installed:
calculix-ccx freecad freecad-common freecad-python3 libfreecad-python3-0.19 libspooles2.2
python3-pyside2.qtuitools python3-pyside2.qtxml
0 to upgrade, 8 to newly install, 0 to remove and 4 not to upgrade.
Need to get 49.6 MB of archives.
After this operation, 211 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://au.archive.ubuntu.com/ubuntu impish/universe amd64 libspooles2.2 amd64 2.2-14 [466 kB]
Get:2 http://au.archive.ubuntu.com/ubuntu impish/universe amd64 calculix-ccx amd64 2.17-3 [1,825 kB]
Get:3 http://au.archive.ubuntu.com/ubuntu impish/universe amd64 freecad-common all 0.19.1+dfsg1-2 [17.2 MB]
Get:4 http://au.archive.ubuntu.com/ubuntu impish/universe amd64 python3-pyside2.qtxml amd64 5.15.2-1 [114 kB]
Get:5 http://au.archive.ubuntu.com/ubuntu impish/universe amd64 python3-pyside2.qtuitools amd64 5.15.2-1 [141 kB]
Get:6 http://au.archive.ubuntu.com/ubuntu impish/universe amd64 libfreecad-python3-0.19 amd64 0.19.1+dfsg1-2 [29.9 MB]
76% [6 libfreecad-python3-0.19 19.8 MB/29.9 MB 66%] 2,087 kB/Get:7 http://au.archive.ubuntu.com/ubuntu impish/universe amd64 freecad-python3 amd64 0.19.1+dfsg1-2 [19.5 kB]
Get:8 http://au.archive.ubuntu.com/ubuntu impish/universe amd64 freecad all 0.19.1+dfsg1-2 [6,264 B]
Fetched 49.6 MB in 28s (1,800 kB/s)
Selecting previously unselected package libspooles2.2:amd64.
(Reading database ... 307169 files and directories currently installed.)
Preparing to unpack .../0-libspooles2.2_2.2-14_amd64.deb ...
Unpacking libspooles2.2:amd64 (2.2-14) ...
Selecting previously unselected package calculix-ccx.
Preparing to unpack .../1-calculix-ccx_2.17-3_amd64.deb ...
Unpacking calculix-ccx (2.17-3) ...
Selecting previously unselected package freecad-common.
Preparing to unpack .../2-freecad-common_0.19.1+dfsg1-2_all.deb ...
Unpacking freecad-common (0.19.1+dfsg1-2) ...
Selecting previously unselected package python3-pyside2.qtxml.
Preparing to unpack .../3-python3-pyside2.qtxml_5.15.2-1_amd64.deb ...
Unpacking python3-pyside2.qtxml (5.15.2-1) ...
Selecting previously unselected package python3-pyside2.qtuitools.
Preparing to unpack .../4-python3-pyside2.qtuitools_5.15.2-1_amd64.deb ...
Unpacking python3-pyside2.qtuitools (5.15.2-1) ...
Selecting previously unselected package libfreecad-python3-0.19.
Preparing to unpack .../5-libfreecad-python3-0.19_0.19.1+dfsg1-2_amd64.deb ...
Unpacking libfreecad-python3-0.19 (0.19.1+dfsg1-2) ...
Selecting previously unselected package freecad-python3.
Preparing to unpack .../6-freecad-python3_0.19.1+dfsg1-2_amd64.deb ...
Unpacking freecad-python3 (0.19.1+dfsg1-2) ...
Selecting previously unselected package freecad.
Preparing to unpack .../7-freecad_0.19.1+dfsg1-2_all.deb ...
Unpacking freecad (0.19.1+dfsg1-2) ...
Setting up libfreecad-python3-0.19 (0.19.1+dfsg1-2) ...
Setting up libspooles2.2:amd64 (2.2-14) ...
Setting up freecad-common (0.19.1+dfsg1-2) ...
Setting up python3-pyside2.qtxml (5.15.2-1) ...
Setting up calculix-ccx (2.17-3) ...
Setting up python3-pyside2.qtuitools (5.15.2-1) ...
Setting up freecad-python3 (0.19.1+dfsg1-2) ...
update-alternatives: using /usr/lib/freecad/bin/freecad-python3 to provide /usr/bin/freecad (freecad) in auto mode
Setting up freecad (0.19.1+dfsg1-2) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.34-0ubuntu3.2) ...
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for shared-mime-info (2.1-1) ...
Processing triggers for mailcap (3.69ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu2) ...
2. Repeat the 'method 2 to trigger the crash' from above, here is my terminal output
```bash
$ freecad
FreeCAD 0.19, Libs: 0.19R
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2021
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##
Assembly4 workbench (v0.11.12) loaded
connect failed: No such file or directory
Initializing Assembly4 workbench (v0.11.12) ............................ done.
Initialising ...
Attaching VariantLink ...
x@E595 $
it didn't crash! amazing. Thanks heaps.
I'd say that this is still an issue until we know why the crash happened, but I don't think it's a priority, so I'll close this for now.
Interestingly, on the topic of differences between self-compiled and release-version of freecad: using the release version, the graphics seems snappier, and using the animation/variables slider is definitely less laggy / has higher fps rate. Not sure why.
Thank-you for testing and reporting. By chance, why did you compile v0.19 and not v0.20 ?
I wasn't able to work out what 0.20 actually is, I couldn't find a git tag or any reference to 0.20 in git. Does it just mean the current state of the master branch? But I did try to stick to the 0.19 git tag in an attempt to get an identical build to what the release version would be... but I'm not sure why the behavior is different, I'll need to spend more time understanding on this later. For context, I would like to contribute to the freecad code/plugins at some point.
Hello all,
I was following this example project and downloaded and opened the project files. All opened fine except for
MainAssembly.FCStd
, which after a second or two crashed.Method 1 to trigger the crash:
FreeCAD-0-19
tag (commit reference 0a49fd05a4)MainAssembly.FCStd
. After a second or two, the crash will then occur. Here is what is shown in my terminal:Method 2 to trigger the crash:
create a variant link
button and select a part to link to, follow the prompts. When the popup menu closes, freecad crashes with this output:I also tried to use the development version of Assembly 4 by doing this (is this a valid way to do that?)
~/.FreeCAD/Mod/Assembly4/
git checkout development
I hope I'm doing something wrong and that this is a straightforward fix. Any ideas?
Here's the output of pressing the About button in freecad: