Bug, crashes using multitransform.

About the development of the Part Design module/workbench. PLEASE DO NOT POST HELP REQUESTS HERE!
tex_downey
Posts: 6
Joined: Thu Nov 24, 2016 5:52 pm
Location: USA/Italy
Contact:

Bug, crashes using multitransform.

Postby tex_downey » Thu Nov 24, 2016 10:50 pm

Sorry if this is the wrong place.

Running version 0.17.8866 on Linux mint 17.3, X86.

FreeCAD crashes when using the multitransform tool. Seems to be really constant. If I make a few selections and then hit the cancel button the program closes out.

I may try to download the stable 0.16 tomorrow and use that.
User avatar
NormandC
Posts: 12072
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Bug, crashes using multitransform.

Postby NormandC » Fri Nov 25, 2016 3:58 am

I can't reproduce but you have given us almost no detail. Can you post an example file, as well as the steps to reproduce?

0.17.8866 is outdated, the latest daily PPA package is 0.17.8975 from 2 days ago. You should update.
tex_downey
Posts: 6
Joined: Thu Nov 24, 2016 5:52 pm
Location: USA/Italy
Contact:

Re: Bug, crashes using multitransform.

Postby tex_downey » Fri Nov 25, 2016 11:09 am

I have updated to 0.17.8975 and I am still getting the crash. Attached is the file that I have been using to reproduce the error. I am running a ThinkPad T420 with a i5 and 8 Gb of RAM.

To crash FreeCAD I would open up the file, switching to the part design workbench and then clicking on the multitransform button. (Instant crash)

I was able to repeat the failure 4 times this morning. Then It worked the last time. :(
Attachments
plate_2.fcstd
(16.62 KiB) Downloaded 16 times
tex_downey
Posts: 6
Joined: Thu Nov 24, 2016 5:52 pm
Location: USA/Italy
Contact:

Re: Bug, crashes using multitransform.

Postby tex_downey » Fri Nov 25, 2016 11:49 am

I made a video and posted it as an unlisted line in YouTube.

Take a look, https://youtu.be/RV5wm3X9-ts

This is using the fresh daily install.

Austin.
User avatar
NormandC
Posts: 12072
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Bug, crashes using multitransform.

Postby NormandC » Sat Nov 26, 2016 5:06 pm

Okay, now I get it, indeed it's a bug. The reason why I couldn't reproduce before is because you are not using PartDesign as it's expected.

When working on a PartDesign body, the Body needs to be active. In the file you attached, you had not activated the body prior to creating the Multitransform feature. This is why the Multitransform feature is outside the body. In your video, you did not activate the body either.

To activate a body, you need to either double click on its label in the Model tree, or right-click on it and select "Toggle active body". You know a body is active when its label is on a light blue background as shown in the screen capture below.

FC017_active_body_01.png
An active body shows a light blue hue as a background in the Model tree.
FC017_active_body_01.png (20.18 KiB) Viewed 896 times


When activating the body in your file, you will be prompted with the following message:
The document "plate_2" seems to be either in the middle of the migration process from legacy PartDesign or have a slightly broken structure.

Do you want to make the migration automatically?

Show details | Migrate manually | Yes

The "Show details" button will show you an explanation worth a read. The automatic migration will not work reliably. I've had it give me two different results, neither of them good, and with a failed Multitransform feature.

I recommend you delete the Multitransform feature, then activate the body and redo the Multitransform feature. If you do that FreeCAD will crash no further.

Would you be willing to report the crash on the bug tracker? You would need to run a backtrace which might give a little more info. The procedure is explained in the wiki: http://www.freecadweb.org/wiki/index.php?title=Debugging#Generating_a_Backtrace
tex_downey
Posts: 6
Joined: Thu Nov 24, 2016 5:52 pm
Location: USA/Italy
Contact:

Re: Bug, crashes using multitransform.

Postby tex_downey » Sun Nov 27, 2016 8:32 pm

Absolutely, I want to help out as much as I can.

I will see if I can get this sorted out tonight or tomorrow.

Thanks for the advice on the bodies. I ran into trouble with this when trying to position parts.

Austin.

edit: What is the best way to obtain a debug build? I could compile one on my machine, but I want to see if there is a simple way to download one first.
User avatar
NormandC
Posts: 12072
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Bug, crashes using multitransform.

Postby NormandC » Fri Dec 16, 2016 3:19 am

tex_downey wrote:edit: What is the best way to obtain a debug build? I could compile one on my machine, but I want to see if there is a simple way to download one first.

I hadn't noticed your edit. I'm afraid the only way to get a debug build on Ubuntu and derivatives is to compile one.
User avatar
Kunda1
Posts: 631
Joined: Thu Jan 05, 2017 9:03 pm

Re: Bug, crashes using multitransform.

Postby Kunda1 » Sun Jan 15, 2017 3:11 pm

@tex_downey any luck with the debug build ?
User avatar
Kunda1
Posts: 631
Joined: Thu Jan 05, 2017 9:03 pm

Re: Bug, crashes using multitransform.

Postby Kunda1 » Mon Jan 30, 2017 3:52 pm

tex_downey wrote:Absolutely, I want to help out as much as I can.

I will see if I can get this sorted out tonight or tomorrow.

Thanks for the advice on the bodies. I ran into trouble with this when trying to position parts.

Austin.

edit: What is the best way to obtain a debug build? I could compile one on my machine, but I want to see if there is a simple way to download one first.

Any luck?
Could you try recreate with the latest trunk?
Also can you please paste the contents of Help > About FreeCAD > Copy to clipboard

ref: issue #2808
User avatar
NormandC
Posts: 12072
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Bug, crashes using multitransform.

Postby NormandC » Tue Jan 31, 2017 3:03 am

NormandC wrote:I'm afraid the only way to get a debug build on Ubuntu and derivatives is to compile one.

@tex_downey,

The PPA now provides debug symbols, but I have yet to test whether it really makes a difference with a backtrace log.

[Ubuntu Daily PPA] How to install debug symbols package : https://forum.freecadweb.org/viewtopic.php?f=4&t=20347

EDIT: I reproduced the crash and provided a backtrace in the bug report. Debug symbols seem to be working, but we'd need to compare the backtrace without the dbgsym package installed.

Steps to reproduce:

  1. Debug symbols package is installed
  2. Launch freecad-daily using gdb (see Debugging)
  3. Open plate_2.fcstd file
  4. Delete existing MultiTransform feature
  5. Select Pocket
  6. Click on the MultiTransform feature icon
  7. At the prompt, select "Migrate manually"
  8. FreeCAD crashes
  9. Generate the backtrace

Just before issuing the bt command, the console output reported the following:

Code: Select all

gdb freecad-daily
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from freecad-daily...Reading symbols from /usr/lib/debug//usr/lib/freecad-daily/bin/FreeCAD...done.
done.
(gdb) handle SIG33 noprint nostop
Signal        Stop   Print   Pass to program   Description
SIG33         No   No   Yes      Real-time event 33
(gdb) run
Starting program: /usr/bin/freecad-daily
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
FreeCAD 0.17, Libs: 0.17R9898 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2016
  #####                 ####  ###   #### 
  #                    #      # #   #   #
  #     ##  #### ####  #     #   #  #   #
  ####  # # #  # #  #  #     #####  #   #
  #     #   #### ####  #    #     # #   #
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Fasteners workbench Loaded
[New Thread 0x7fffdf897700 (LWP 4190)]
[New Thread 0x7fffdf096700 (LWP 4191)]
[New Thread 0x7fffd65d5700 (LWP 4192)]
[New Thread 0x7fffd5dd4700 (LWP 4193)]
[New Thread 0x7fffd55d3700 (LWP 4194)]
[Thread 0x7fffd5dd4700 (LWP 4193) exited]
[New Thread 0x7fffd5dd4700 (LWP 4198)]
[New Thread 0x7fff6d5cd700 (LWP 4199)]
[New Thread 0x7fff6c6ed700 (LWP 4200)]
[New Thread 0x7fff6a928700 (LWP 4201)]
[New Thread 0x7fff6a127700 (LWP 4202)]
[New Thread 0x7fff69926700 (LWP 4203)]
[Thread 0x7fffd55d3700 (LWP 4194) exited]
[New Thread 0x7fffd55d3700 (LWP 4223)]
[New Thread 0x7fff5bfff700 (LWP 4224)]
[Thread 0x7fffd55d3700 (LWP 4223) exited]
[Thread 0x7fff5bfff700 (LWP 4224) exited]
Can't find Origin for "Body"
Can't find Origin for "Body"
[Thread 0x7fff69926700 (LWP 4203) exited]
[Thread 0x7fff6a127700 (LWP 4202) exited]

Program received signal SIGSEGV, Segmentation fault.
App::PropertyLink::getValue (this=0x2d8)
    at /build/freecad-daily-Hcj62j/freecad-daily-0.17~alpha1+git201701310035~ubuntu14.04.1/src/App/PropertyLinks.cpp:89
89   /build/freecad-daily-Hcj62j/freecad-daily-0.17~alpha1+git201701310035~ubuntu14.04.1/src/App/PropertyLinks.cpp: Aucun fichier ou dossier de ce type.
(gdb)

Note: "Aucun fichier ou dossier de ce type." means "No file or folder with this name".