a2plus/a2+ bug? freecad crashes when duplicating external object

Discussion about the development of the Assembly workbench.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
bzb.dev001
Posts: 102
Joined: Sun May 05, 2019 3:08 am

a2plus/a2+ bug? freecad crashes when duplicating external object

Post by bzb.dev001 »

In a2plus, when add an external object and then duplicate, FreeCAD would crash and disappear.

Instructions:
--------------
open sample-main.FCStd
[comment]This file contains a reference to an external solid located in sample-ext.FCStd
switch to A2plus v0.4.24 WB
select the solid
press shift key
select menu:A2plus>Create duplicate of part
left click once to create a duplicate
release shift key
press esc
[issue] FreeCAD crashes and disappears

FreeCAD details:
-------------------
OS: Ubuntu 18.04.3 LTS (LXDE/Lubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17445 (Git) AppImage
Build type: Release
Branch: master
Hash: 741dddf25485f692596faa9b7911e2e0f5d362a3
Python version: 3.7.3
Qt version: 5.9.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)
Attachments
sample-main.FCStd
(3.5 KiB) Downloaded 65 times
sample-ext.FCStd
(3.32 KiB) Downloaded 53 times
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: a2plus/a2+ bug? freecad crashes when duplicating external object

Post by Jee-Bee »

The last A2 version is 4.26a does it work with that one?
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: a2plus/a2+ bug? freecad crashes when duplicating external object

Post by kbwbe »

bzb.dev001 wrote: Wed Aug 07, 2019 2:41 am In a2plus, when add an external object and then duplicate, FreeCAD would crash and disappear.
Hi,
this chrash seems to depend on the FC version.

I can reproduce it with:

Code: Select all

OS: Linux Mint 18.3 (X-Cinnamon/cinnamon)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17499 (Git) AppImage
Build type: Release
Branch: master
Hash: 6b1be38f35686faf21e1015bf562520929890870
Python version: 3.7.3
Qt version: 5.9.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
The crash does not happen with Py2/Qt4 builds of FC0.18.1 and FC0.18.3
I will try to investigate what's happening there...
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
bzb.dev001
Posts: 102
Joined: Sun May 05, 2019 3:08 am

Re: a2plus/a2+ bug? freecad crashes when duplicating external object

Post by bzb.dev001 »

The issue still occurs with the latest 0.19 build with A2plus 0.4.26a.

FreeCAD detail
-----------------
OS: Ubuntu 18.04.3 LTS (LXDE/Lubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17512 (Git) AppImage
Build type: Release
Branch: master
Hash: 7b315d3a15f6c0a3e796b2bf000cb791092de079
Python version: 3.7.3
Qt version: 5.9.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Canada (en_CA)

Jee-Bee wrote: Wed Aug 07, 2019 5:16 am The last A2 version is 4.26a does it work with that one?
Laurie Hartley
Posts: 526
Joined: Mon Feb 27, 2017 5:33 am
Location: Australia

Re: a2plus/a2+ bug? freecad crashes when duplicating external object

Post by Laurie Hartley »

I have just moved from Windows to MX Linux and am having trouble with older assembly files that I try to open with A2Plus workbench installed. I have attached a sample file which was created before I had my new installation of FreeCAD on Linux. With A2Plus installed FreeCAD crashes when I try to open this file. This only happens with assemblies - single parts open. Strangely I can also create a new assembly with A2Plus installed.

When I removed A2Plus and installed Assembly 2 it opened the file. I have since added Assembly 4 to my installed workbenches and it opened the file. I also have exploded assembly installed which is working fine.

I can get by with what I have installed (I think) but thought this information might be helpful.

OS: Debian GNU/Linux 10 (buster)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4.
Build type: Release
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Australia (en_AU)
Attachments
Chord Connector Bolt, Washers & Nut _ M16 X 125mm.FCStd
(41.5 KiB) Downloaded 39 times
kbwbe
Veteran
Posts: 1052
Joined: Tue Apr 10, 2018 3:12 pm
Location: Germany, near Köln (Cologne)

Re: a2plus/a2+ bug? freecad crashes when duplicating external object

Post by kbwbe »

Laurie Hartley wrote: Thu Jun 11, 2020 6:30 am
Hi,
opening your file with FC0.18.4 (AppImage) causes a crash on my system too, whereas opening it with recent FC0.19-daily works fine.
Perhaps you should upgrade to FC0.19.
KBWBE

https://github.com/kbwbe/A2plus
latest release: v0.4.56, installable via FreeCAD's addon manager
Tutorial: gripper assembly https://www.youtube.com/watch?v=QMxcQ5tssWk
Documentation: https://www.freecadweb.org/wiki/A2plus_Workbench
Laurie Hartley
Posts: 526
Joined: Mon Feb 27, 2017 5:33 am
Location: Australia

Re: a2plus/a2+ bug? freecad crashes when duplicating external object

Post by Laurie Hartley »

Perhaps you should upgrade to FC0.19.
Thanks kbwbe. I would like to but I would need some help as to how to go about that on Linux - Version 19 is not in any of my repos for MX
Syres
Veteran
Posts: 2899
Joined: Thu Aug 09, 2018 11:14 am

Re: a2plus/a2+ bug? freecad crashes when duplicating external object

Post by Syres »

Laurie Hartley wrote: Fri Jun 12, 2020 4:17 am Version 19 is not in any of my repos for MX
Just for starters though, you can download and make the 0.19 AppImage executable and then give it a try which includes all it's dependencies hence it's name. https://github.com/FreeCAD/FreeCAD/rele ... g/0.19_pre currently FreeCAD_0.19-21514-Linux-Conda_glibc2.12-x86_64.AppImage

I still run both Windows and Linux Mint 19.3 in dual boot, I started in Linux by using the AppImage, progressing onto the Daily build and now I compile as it's reasonably easy but you stay on the AppImage if you feel comfortable using it.
User avatar
Zolko
Veteran
Posts: 2213
Joined: Mon Dec 17, 2018 10:02 am

Re: a2plus/a2+ bug? freecad crashes when duplicating external object

Post by Zolko »

Laurie Hartley wrote: Thu Jun 11, 2020 6:30 am I have since added Assembly 4 to my installed workbenches and it opened the file.
...
Version: 0.18.4.
Please be aware that Assembly4 relies on the App::Link framework introduced with FreeCAD v0.19, therefore you'll not be able to make much use of it with v0.18
try the Assembly4 workbench for FreCAD — tutorials here and here
Laurie Hartley
Posts: 526
Joined: Mon Feb 27, 2017 5:33 am
Location: Australia

Re: a2plus/a2+ bug? freecad crashes when duplicating external object

Post by Laurie Hartley »

Syres and Zorko thank you for your responses. I have downloaded the V.19 appimage. Just one question do I have to uninstall my existing 18.4 version of FreeCAD?
Post Reply