crash when I open a file

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
sket
Posts: 61
Joined: Sun May 11, 2014 4:50 pm

crash when I open a file

Post by sket »

Hi all, I have updated FreeCAD and now it crash when I click on a file o folder of the pop-up window to open or browse a file.


OS: Ubuntu 12.04.2 LTS
Word size: 64-bit
Version: 0.14.3702 (Git)
Branch: releases/FreeCAD-0-14
Hash: b3368125c63289ec8ce9faec2b2ae4c78d436406
Python version: 2.7.3
Qt version: 4.8.1
Coin version: 3.1.3
SoQt version: 1.5.0
wmayer
Founder
Posts: 20307
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: crash when I open a file

Post by wmayer »

Do the following from a terminal window:

Code: Select all

gdb freecad
run
# let freecad crash
bt
Report back the output. Btw, what was your previous FreeCAD version?
User avatar
sket
Posts: 61
Joined: Sun May 11, 2014 4:50 pm

Re: crash when I open a file

Post by sket »

sorry, but I don't know what I do, anyway:

Code: Select all

:~$ gdb freecad
GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
Copyright (C) 2012 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".
For bug reporting instructions, please see:
<http://bugs.launchpad.net/gdb-linaro/>...
Reading symbols from /usr/bin/freecad...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/freecad 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
FreeCAD 0.14, Libs: 0.14R3702 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2011
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

[New Thread 0x7fffdfe6e700 (LWP 3450)]
[New Thread 0x7fffdf66d700 (LWP 3451)]
[New Thread 0x7fffdd931700 (LWP 3452)]
[New Thread 0x7fffca369700 (LWP 3453)]
[New Thread 0x7fffc3570700 (LWP 3456)]
[New Thread 0x7fffc2c6f700 (LWP 3457)]
[New Thread 0x7fffc0810700 (LWP 3459)]
[New Thread 0x7fff766b8700 (LWP 3460)]
[Thread 0x7fffdd931700 (LWP 3452) exited]
[Thread 0x7fff766b8700 (LWP 3460) exited]
then I don't know what I do, so I try to open a file and I have this result after

Code: Select all

[New Thread 0x7fff766b8700 (LWP 3565)]
[New Thread 0x7fffdd931700 (LWP 3566)]

Program received signal SIGABRT, Aborted.
0x00007ffff4b2d425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) 
the Software is blocked with the pop-up window to browse file open, so I try with other command and I have this

Code: Select all

(gdb) # let freecad crash
(gdb) bt
#0  0x00007ffff4b2d425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007ffff4b30b8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007ffff543e50b in qt_message_output(QtMsgType, char const*) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007ffff543e8bf in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007ffff543ea64 in qFatal(char const*, ...) ()
   from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007fffcbbb024f in AtSpiAdaptor::notify(int, QAccessibleInterface*, int)
    ()
   from /usr/lib/x86_64-linux-gnu/qt4/plugins/accessiblebridge/libqspiaccessiblebridge.so
#6  0x00007ffff61d0571 in QAccessible::updateAccessibility(QObject*, int, QAccessible::Event) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#7  0x00007ffff61fc778 in QListView::currentChanged(QModelIndex const&, QModelIndex const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#8  0x00007ffff555c281 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007ffff622c8ea in QItemSelectionModel::currentChanged(QModelIndex const&, QModelIndex const&) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#10 0x00007ffff622c9e0 in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#11 0x00007ffff61db084 in QAbstractItemView::mousePressEvent(QMouseEvent*) ()
---Type <return> to continue, or q <return> to quit---
I don't remember the previous version, but I think 0.14.35xx (of sure subsequent 3567)
wmayer
Founder
Posts: 20307
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: crash when I open a file

Post by wmayer »

#5 0x00007fffcbbb024f in AtSpiAdaptor::notify(int, QAccessibleInterface*, int)
That's what I have expected. So, it's not a FreeCAD bug but an error in a 3rd party module which the system also loads when opening the file dialog.
To fix the crash you have to un-install the package qt-at-spi
User avatar
sket
Posts: 61
Joined: Sun May 11, 2014 4:50 pm

Re: crash when I open a file

Post by sket »

thanks, I remove the pkg and now seems all ok
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: crash when I open a file

Post by NormandC »

Would it make sense to prevent the FreeCAD package from installing if the qt-at-spi is found?
User avatar
Crossleyuk
Posts: 165
Joined: Wed Jun 20, 2018 7:47 am
Location: United Kingdom
Contact:

Re: crash when I open a file

Post by Crossleyuk »

Sorry, very inexperienced outside general Freecad and Paraview modeling operations.

I have the same problem. Freecad crashes whenever I open a file. I cannot open any file. I had not made any changes or added anything from addon manager, the problem just started after I restarted work on a model I've been working on for weeks.

The other problem is that Parview will not start at all.

I have uninstalled Freecad and Paraview and reinstalled both but nothing has changed. Freecad fails when I open a file and Paraview will not open at all.

I have no experience other than building models.

I cannot get the latest data but this is what I had when everything was working okay

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13541 (Git)
Build type: Release
Branch: releases/FreeCAD-0-17
Hash: 9948ee4f1570df9216862a79705afb367b2c6ffb
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.0
Locale: English/UnitedStates (en_US)[/b][/b]
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: crash when I open a file

Post by kisolre »

Can you try with latest stable version - 0.18.2?
Syres
Veteran
Posts: 2899
Joined: Thu Aug 09, 2018 11:14 am

Re: crash when I open a file

Post by Syres »

Crossleyuk wrote: Fri Jul 19, 2019 8:15 am I have the same problem. Freecad crashes whenever I open a file. I cannot open any file. I had not made any changes or added anything from addon manager, the problem just started after I restarted work on a model I've been working on for weeks.

The other problem is that Parview will not start at all.
Firstly I'll put the Paraview fault to one side for now and just concentrate on getting FreeCAD to load cleanly. This is the procedure I've put together, I've tried to make it easy to follow, I hope it makes sense:

1) Rename C:\Users\username\AppData\Roaming\FreeCAD\Mod folder to oldMod
2) Rename C:\Users\username\AppData\Roaming\FreeCAD\user.cfg to olduser.cfg
3) Rename C:\Users\username\AppData\Roaming\FreeCAD\system.cfg to oldsystem.cfg
4) Start FreeCAD and check Report View is open at the bottom right of the FreeCAD main Window, if not, click the View menu > Panels and ensure Report View is ticked. This is so you can copy an errors for feedback if required.
5) In the Start Center (Start Wb) there's some Example projects, click the 'Load an FEM 3D example analysis'. If the file doesn't load then you'll have to report back as this is the most simple config I can think of.
6) Close FreeCAD
7) Rename C:\Users\username\AppData\Roaming\FreeCAD\oldMod folder back to Mod (this will enable all the AddOn Workbenches)
8) Start FreeCAD, do you see any errors in the Report View? If not, then go into Edit menu > Preferences > Cfd and copy and paste the folder where you have OpenFOAM installed e.g. E:\Program Files\blueCFD-Core-2017\OpenFOAM-5.x and Run Dependency Checker, Click Apply and OK to close the Pretences window
9) Try opening the attached CFD_Elbowstage2.FCStd file built with the previous CfdOF Wb and loads fine on my PC using 0.17 with the matching previous CfdOF Wb.
10) Assuming FreeCAD is still working fine then you can retry opening your project file. If your project file causes FreeCAD to close (crash) then hopefully you have a backup file generated with the same name but with .FCStd1 extension (this should be a version that saved cleanly before all this started). You will need to rename the faulty FCStd file first and then change the extension of the FCStd1 file to FCStd.
11) Start FreeCAD and try to open your project file.


@kisolre, normally I'd fully agree with your suggestion of trying the later version of FreeCAD but in this instance as there's been recent changes to the CfdOF Wb and as this is one of @Crossleyuk's main uses I think it's best to get this working first. By the time 0.18.3 has been released do the upgrade then otherwise there'll be too many variables to comprehend what's going on.
Attachments
CFD_ElbowStage2.FCStd
(341.03 KiB) Downloaded 111 times
chrisb
Veteran
Posts: 54197
Joined: Tue Mar 17, 2015 9:14 am

Re: crash when I open a file

Post by chrisb »

You can try to reset the configuration with the button in the preferences. Another possibility is to delete your config files or to move them in case you want to restore them.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply