View Issue Details

IDProjectCategoryView StatusLast Update
0002834FreeCADBugpublic2017-07-11 20:10
ReporterGaryScottMartin Assigned ToKunda1  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionno change required 
PlatformX64OSArchLinux/KDE/Openbox/Plasma5OS VersionCurrent
Product Version0.16 
Summary0002834: SegFault/CoreDump on Start
DescriptionFreeCAD installed normally by pacman ("sudo pacman -Syu freecad").
Starting from menu results in splash screen with "Initalizing ..." messages scrolling through the bottom of the window. That disappears and the FreeCAD SegFaults/CoreDumps immediately. Starting from the console produces the text in the Additional Info block below. I have also included the log file below along with a stack trace from gdb.
Steps To ReproduceSame behavior every time. Repeated at least a dozen times so far.

Additional InformationThe console output, log file, and gdb stack trace are concatenated into the attached file.
TagsNo tags attached.
FreeCAD Information

Activities

GaryScottMartin

2017-01-08 05:38

reporter  

BugReport--martin-gary-s--2017-0107.txt (Attachment missing)

Kunda1

2017-01-11 18:50

administrator   ~0007640

Forum thread: http://forum.freecadweb.org/viewtopic.php?f=4&t=19797

wmayer

2017-01-11 20:24

administrator   ~0007648

A few ideas:

1. Does it work to run the command line version, i.e. freecadcmd? If yes, what happens when e.g. doing

import Part

2. It's funny that all these CSF_ environment variables are set. Especially CSF_GraphicShr has caused problems in the past if not set correctly. Does unsetting CSF_GraphicShr fix the crash?

3. This comes up when using the debugger:
warning: Cannot call inferior functions, Linux kernel PaX protection forbids return to non-executable pages!
Is this debugger related?

4. the debugger output only shows 50 calls. Are there not more? From the 50 calls it's not clear where inside FreeCAD the crash occurs.

GaryScottMartin

2017-01-13 19:14

reporter  

BugReport--martin-gary-s--2017-0113.txt (Attachment missing)

GaryScottMartin

2017-01-13 19:30

reporter   ~0007725

1. Yes, freecadcmd appears to start normally and presents a Python prompt ">>>"

import Part
results in no error and same prompt back in response. (see attached text file from 2017-01-13 for console output)

2. Unsetting CSF_GraphicShr appears to have no impact, behavior appears unchanged as far I can see. (see attached text file from 2017-01-13 for console output, log, and gdb output)

3. Not sure what this means, I'm a newb to gdb. Most of my coding experience is FORTRAN & assembler on Interdata/Perkin Elmer/Concurrent OS/32 minicomputers 30+ years ago.

4. The gdb output in the two text files is complete. gdb only lists 50 calls and appears to completes the bt command without complaint.

Kunda1

2017-01-20 21:10

administrator   ~0007896

@GaryScottMartin can you post your Help > About FreeCAD > 'Copy to clipboard' please? Thanks

GaryScottMartin

2017-01-21 00:56

reporter   ~0007899

Learned enough Python just now to open the main window from the command line. Help > About > Copy to Clipboard produced the following:

OS: Linux
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.Unknown
Build type: Release
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.9.1

GaryScottMartin

2017-01-21 01:10

reporter   ~0007900

I spoke too soon. I was able to get the GUI to open once, but it does not open anymore. The following was cut from interpreter after starting freecadcmd:


>>> import FreeCAD
>>> import FreeCADGui
>>> import Part
>>> modules
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'modules' is not defined
>>> module FreeCAD
  File "<stdin>", line 1
    module FreeCAD
                 ^
SyntaxError: invalid syntax
>>> module(FreeCAD)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>                                                                               
NameError: name 'module' is not defined                                                                             
>>> FreeCAD                                                                                                         
<module 'FreeCAD' (built-in)>                                                                                       
>>> FreeCADGui                                                                                                      
<module 'FreeCADGui' from '/usr/lib/freecad/FreeCADGui.so'>                                                         
>>> Part                                                                                                            
<module 'Part' from '/usr/lib/freecad/Part.so'>                                                                     
>>> FreeCADGui.showMainWindow()                                                                                     
Main window restored                                                                                                
Show main window                                                                                                    
Toolbars restored                                                                                                   
>>>

No apparent error, but GUI did not open.

GaryScottMartin

2017-01-21 01:17

reporter   ~0007901

Not sure of the significance of this but

help("modules")
produced the following:


>>> help("modules")                                                                                                 

Please wait a moment while I gather a list of all available modules...

05:13:21 PM: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8),
and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8).
/usr/lib/python2.7/site-packages/matplotlib/cbook.py:137: MatplotlibDeprecationWarning: The matplotlib.delaunay module was deprecated in version 1.4. Use matplotlib.tri.Triangulation instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

(freecadcmd:3279): Gtk-WARNING **: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version

(freecadcmd:3279): Gtk-WARNING **: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version

(freecadcmd:3279): Gtk-WARNING **: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
/usr/lib/python2.7/site-packages/quodlibet/browsers/_base.py:12: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GObject, GLib, Pango
E: 0.078: util.importhelper.load_dir_modules: thread.py:14:<module>: ImportError: python-futures is missing: ImportError('No module named concurrent.futures',)
/usr/lib/python2.7/site-packages/quodlibet/ext/songsmenu/fingerprint/__init__.py:9: PyGIWarning: Gst was imported without specifying a version first. Use gi.require_version('Gst', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gst

The GUI reappeared after this, as well.

wmayer

2017-01-23 22:29

administrator   ~0007935

>No apparent error, but GUI did not open.
You may have to execute this at the end:

FreeCADGui.exec_loop()

Kunda1

2017-01-29 15:18

administrator   ~0008081

@GaryScottMartin ping ^

Kunda1

2017-02-06 05:27

administrator   ~0008224

@GaryScottMartin please respond to 0002834:0007935

GaryScottMartin

2017-02-08 06:39

reporter   ~0008234

First the good news: update today included FreeCAD, Plasma/KDE, and Linux Kernel. After reboot FreeCAD starts normally both the application launcher and from the console. Console output here:

<quote>
[gary@tehachapimtn ~]$ freecad
FreeCAD 0.16, Libs: 0.16RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  ##### #### ### ####
  # # # # # #
  # ## #### #### # # # # #
  #### # # # # # # # ##### # #
  # # #### #### # # # # #
  # # # # # # # # # ## ## ##
  # # #### #### ### # # #### ## ## ##

[gary@tehachapimtn ~]$
</quote>

However, I can no longer get the GUI to start from the command. Output for that attempt is here:

<quote>
[gary@tehachapimtn ~]$ freecad
FreeCAD 0.16, Libs: 0.16RUnknown
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  ##### #### ### ####
  # # # # # #
  # ## #### #### # # # # #
  #### # # # # # # # ##### # #
  # # #### #### # # # # #
  # # # # # # # # # ## ## ##
  # # #### #### ### # # #### ## ## ##

[gary@tehachapimtn ~]$ freecadcmd
FreeCAD 0.16, Libs: 0.16RUnknown
(c) Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  ##### #### ### ####
  # # # # # #
  # ## #### #### # # # # #
  #### # # # # # # # ##### # #
  # # #### #### # # # # #
  # # # # # # # # # ## ## ##
  # # #### #### ### # # #### ## ## ##

[FreeCAD Console mode <Use Ctrl-D (i.e. EOF) to exit.>]
>>> import FreeCAD
>>> import FreeCADGui
>>> import Part
>>> FreeCADGUI
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'FreeCADGUI' is not defined
>>> FreeCADGui.exec_loop()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Must construct a QApplication before a QPaintDevice

>>> help("modules")
                                                                                                                    
Please wait a moment while I gather a list of all available modules...
                                                                                                                    
10:22:55 PM: Warning: Mismatch between the program and library build versions detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1010,wx containers,compatible with 2.8),
and wxPython used 3.0 (wchar_t,compiler with C++ ABI 1009,wx containers,compatible with 2.8).
/usr/lib/python2.7/site-packages/matplotlib/cbook.py:136: MatplotlibDeprecationWarning: The matplotlib.delaunay module was deprecated in version 1.4. Use matplotlib.tri.Triangulation instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)
                                                                                                                    
(freecadcmd:1491): Gtk-WARNING **: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version
                                                                                                                    
(freecadcmd:1491): Gtk-WARNING **: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version
                                                                                                                    
(freecadcmd:1491): Gtk-WARNING **: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version
/usr/lib/python2.7/site-packages/quodlibet/browsers/_base.py:12: PyGIWarning: Gtk was imported without specifying a version first. Use gi.require_version('Gtk', '3.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GObject, GLib, Pango
E: 0.353: util.importhelper.load_dir_modules: thread.py:14:<module>: ImportError: python-futures is missing: ImportError('No module named concurrent.futures',)
/usr/lib/python2.7/site-packages/quodlibet/ext/songsmenu/fingerprint/__init__.py:9: PyGIWarning: Gst was imported without specifying a version first. Use gi.require_version('Gst', '1.0') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, Gst
Arch libKF5GAPICalendar libgailutil-3 libprocps
ArchAxis libKF5GAPIContacts libgamin-1 libprotobuf
ArchBuilding libKF5GAPICore libgbm libprotobuf-lite
ArchCommands libKF5GAPIDrive libgc libprotoc
[....]
</quote>

Entering
FreeCADGui.exec_loop()
produced the following error:
<quote>
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Must construct a QApplication before a QPaintDevice
</quote>

Previously
help ("modules")
would result in the GUI starting after importing FreeCADGui, but it no longer does.

wmayer

2017-02-08 12:11

administrator   ~0008235

> RuntimeError: Must construct a QApplication before a QPaintDevice
You first mus call FreeCADGui.showMainWindow() which constructs the QApplication instance.

GaryScottMartin

2017-02-11 01:59

reporter   ~0008271

Issue resolved. FreeCADGui starts normally from Application Launcher, Console, & freecadcmd. Thank you, very much.

Kunda1

2017-02-13 16:26

administrator   ~0008286

Resolving and keeping open unless devs decide differently

Issue History

Date Modified Username Field Change
2017-01-08 05:38 GaryScottMartin New Issue
2017-01-08 05:38 GaryScottMartin File Added: BugReport--martin-gary-s--2017-0107.txt
2017-01-11 18:50 Kunda1 Note Added: 0007640
2017-01-11 20:24 wmayer Note Added: 0007648
2017-01-11 20:37 Kunda1 Status new => feedback
2017-01-13 19:14 GaryScottMartin File Added: BugReport--martin-gary-s--2017-0113.txt
2017-01-13 19:30 GaryScottMartin Note Added: 0007725
2017-01-13 19:30 GaryScottMartin Status feedback => new
2017-01-20 21:10 Kunda1 Note Added: 0007896
2017-01-20 21:10 Kunda1 Status new => feedback
2017-01-21 00:56 GaryScottMartin Note Added: 0007899
2017-01-21 00:56 GaryScottMartin Status feedback => new
2017-01-21 01:10 GaryScottMartin Note Added: 0007900
2017-01-21 01:17 GaryScottMartin Note Added: 0007901
2017-01-23 22:29 wmayer Note Added: 0007935
2017-01-23 23:13 Kunda1 Status new => feedback
2017-01-29 15:18 Kunda1 Note Added: 0008081
2017-02-06 05:27 Kunda1 Note Added: 0008224
2017-02-08 06:39 GaryScottMartin Note Added: 0008234
2017-02-08 06:39 GaryScottMartin Status feedback => new
2017-02-08 12:11 wmayer Note Added: 0008235
2017-02-08 12:37 Kunda1 Status new => feedback
2017-02-11 01:59 GaryScottMartin Note Added: 0008271
2017-02-11 01:59 GaryScottMartin Status feedback => new
2017-02-11 02:00 GaryScottMartin Tag Attached: #tobeclosed
2017-02-13 16:26 Kunda1 Note Added: 0008286
2017-02-13 16:26 Kunda1 Status new => resolved
2017-02-13 16:26 Kunda1 Resolution open => fixed
2017-02-13 16:26 Kunda1 Assigned To => Kunda1
2017-02-17 18:03 wmayer Status resolved => closed
2017-02-17 18:03 wmayer Resolution fixed => no change required
2017-07-11 20:10 Kunda1 Tag Detached: #tobeclosed