Ubuntu, hang when File->New

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
MikeMak
Posts: 6
Joined: Fri May 20, 2022 10:11 pm

Ubuntu, hang when File->New

Post by MikeMak »

I downloaded FreeCad using the Ubuntu Software Installer. It worked properly the first time I opened it and looked at a couple of examples without any problems. However, after closing it and reopening it, it crashes if I try either to open an example or try to open a new project. I have removed and reinstalled several times, and never been able to open a project, either new or example.

In addition to the following information, I
-- performed a software update
-- have an Nvidia RTX 3070 gpu

grappa: uname -a
Linux grappa 5.13.0-40-generic #45~20.04.1-Ubuntu SMP Mon Apr 4 09:38:31 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

FreeCAD 0.19, Libs: 0.19R24267 +148 (Git)
© 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.
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

Adding snap-specific PYTHONPATH to sys.path: /home/mike/snap/freecad/common/.local/lib/python3.8/site-packages:/snap/freecad/29/lib/python3.8/site-packages:/snap/freecad/29/usr/lib/python3/dist-packages
connect failed: No such file or directory


OS: Ubuntu Core 20 (ubuntu:GNOME/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24267 +148 (Git)
Build type: Release
Branch: tag: 0.19.4
Hash: 476ecf091941bead59b14e44afa6064d5a66afa3
Python version: 3.8.10
Qt version: 5.15.3
Coin version: 4.0.0
OCC version: 7.5.2
Locale: English/United States (en_US)
chrisb
Veteran
Posts: 53932
Joined: Tue Mar 17, 2015 9:14 am

Re: Ubuntu, hang when File->New

Post by chrisb »

Please retry with the AppImage of 0.20, you find it here: https://github.com/FreeCAD/FreeCAD-AppI ... kly-builds.

In future posts put log output in code tags using the button </>. That makes the post easier to read and shows immediately if there are indentations or not.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
MikeMak
Posts: 6
Joined: Fri May 20, 2022 10:11 pm

Re: Ubuntu, hang when File->New

Post by MikeMak »

FreeCad window never opened:

grappa: cat FreeCAD_weekly-builds-28909-2022-05-20-conda-Linux-x86_64-py39.AppImage-SHA256.txt
76f54da96bcc04a6c7f5c132bae397ab0b6a75ff296a5eeed32b8217bc14a717 FreeCAD_weekly-builds-28909-2022-05-20-conda-Linux-x86_64-py39.AppImage
grappa: ./FreeCAD_weekly-builds-28909-2022-05-20-conda-Linux-x86_64-py39.AppImage
FreeCAD 0.20, Libs: 0.20R28909 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
##### #### ### ####
# # # # # #
# ## #### #### # # # # #
#### # # # # # # # ##### # #
# # #### #### # # # # #
# # # # # # # # # ## ## ##
# # #### #### ### # # #### ## ## ##

/tmp/.mount_FreeCAXtP4J4/AppRun: line 42: 352383 Aborted (core dumped) ${MAIN} "$@"
MikeMak
Posts: 6
Joined: Fri May 20, 2022 10:11 pm

Re: Ubuntu, hang when File->New

Post by MikeMak »

Same result with today's build:

FreeCAD_weekly-builds-28918-2022-05-22-conda-Linux-x86_64-py39.AppImage
chrisb
Veteran
Posts: 53932
Joined: Tue Mar 17, 2015 9:14 am

Re: Ubuntu, hang when File->New

Post by chrisb »

You can try starting FreeCAD from the console with the additional parameter --write-log. It places a log file in your FreeCAD directory.

Please put the code in code tags using the button </>. That makes the post easier to read and shows immediately if there are indentations or not.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
MikeMak
Posts: 6
Joined: Fri May 20, 2022 10:11 pm

Re: Ubuntu, hang when File->New

Post by MikeMak »

Code: Select all

Msg: FreeCAD 0.20, Libs: 0.20R28918 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Log: Time = 2022-May-23 07:41:59
Log: AboutImage = freecadabout
Log: AppDataSkipVendor = true
Log: AppHomePath = /tmp/.mount_FreeCAQVADVR/usr/
Log: AppIcon = freecad
Log: AppTempPath = /tmp/
Log: BOOST_VERSION = 1_74
Log: BinPath = /tmp/.mount_FreeCAQVADVR/usr/bin/
Log: BuildRepositoryURL = https://github.com/looooo/freecad-feedstock
Log: BuildRevision = 28918 (Git)
Log: BuildRevisionBranch = (HEAD detached at 69a4963)
Log: BuildRevisionDate = 2022/05/21 18:09:51
Log: BuildRevisionHash = 69a4963ebfdbdda0d069347d013f28f2d6ba687a
Log: BuildVersionMajor = 0
Log: BuildVersionMinor = 20
Log: Console = 0
Log: CopyrightInfo = © Juergen Riegel, Werner Mayer, Yorik van Havre and others 2001-2022
FreeCAD is free and open-source software licensed under the terms of LGPL2+ license.
FreeCAD wouldn't be possible without FreeCAD community.
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##


Log: Debug = 0
Log: DocPath = /tmp/.mount_FreeCAQVADVR/usr/doc/
Log: EIGEN_VERSION = 3.4.0
Log: ExeName = FreeCAD
Log: ExeVendor = FreeCAD
Log: ExeVersion = 0.20
Log: LoggingConsole = 1
Log: LoggingFile = 1
Log: LoggingFileName = /home/mike/.local/share/FreeCAD/FreeCAD.log
Log: MaintainerUrl = http://www.freecadweb.org/wiki/Main_Page
Log: OCC_VERSION = 7.5.3
Log: PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
Log: PYSIDE_VERSION = 5.13.2
Log: PYTHONHOME = /tmp/.mount_FreeCAQVADVR/usr
Log: PYTHONPATH = 
Log: PYTHON_VERSION = 3.9.12
Log: PythonSearchPath = /tmp/.mount_FreeCAQVADVR/usr/lib/python39.zip:/tmp/.mount_FreeCAQVADVR/usr/lib/python3.9:/tmp/.mount_FreeCAQVADVR/usr/lib/python3.9/lib-dynload
Log: QT_VERSION = 5.12.9
Log: RunMode = Gui
Log: SplashAlignment = Bottom|Left
Log: SplashInfoColor = #c8c8c8
Log: SplashInfoPosition = 15.210
Log: SplashScreen = freecadsplash
Log: SplashTextColor = #ffffff
Log: StartWorkbench = StartWorkbench
Log: SystemParameter = /home/mike/.config/FreeCAD/system.cfg
Log: UserAppData = /home/mike/.local/share/FreeCAD/
Log: UserCachePath = /home/mike/.cache/FreeCAD/Cache/
Log: UserConfigPath = /home/mike/.config/FreeCAD/
Log: UserHomePath = /home/mike
Log: UserMacroPath = /home/mike/.local/share/FreeCAD/Macro/
Log: UserParameter = /home/mike/.config/FreeCAD/user.cfg
Log: Verbose = 
Log: XERCESC_VERSION = 3.2.3
Log: Create Application
Log: Run App init script
Log: Init: starting App::FreeCADInit.py
Log: Init:   Searching for modules...
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/AddonManager... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Arch... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Draft... done
Log: Drawing became obsolete in 0.17; consider using TechDraw instead.
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Drawing... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Fem... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Idf... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Image... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Import... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Inspection... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Material... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Measure... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Mesh... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/MeshPart... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/OpenSCAD... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Part... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/PartDesign... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Path... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Plot(Init.py not found)... ignore
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Points... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Raytracing... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/ReverseEngineering... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Robot... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Show(Init.py not found)... ignore
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Sketcher... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Spreadsheet... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Start... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Surface... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/TechDraw... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Test... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Tux(Init.py not found)... ignore
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Web... done
Log: Init: Initializing freecad.appimage
Log: Init: No init module found in freecad.appimage, skipping
Log: Init: Initializing freecad.asm3
Log: Init: No init module found in freecad.asm3, skipping
Log: Init: Initializing freecad.freecad_glider
Log: Init: Initializing freecad.freecad_glider... done
Log: Using /tmp/.mount_FreeCAQVADVR/usr/Mod as module path!
Log: System path after init:
Log:    /tmp/.mount_FreeCAQVADVR/usr/bin
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/AddonManager
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Arch
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Draft
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Drawing
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Fem
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Idf
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Image
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Import
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Inspection
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Material
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Measure
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Mesh
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/MeshPart
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/OpenSCAD
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Part
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/PartDesign
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Path
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Plot
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Points
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Raytracing
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/ReverseEngineering
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Robot
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Show
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Sketcher
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Spreadsheet
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Start
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Surface
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/TechDraw
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Test
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Tux
Log:    /tmp/.mount_FreeCAQVADVR/usr/Mod/Web
Log:    /usr/local/sbin
Log:    /usr/local/bin
Log:    /usr/sbin
Log:    /usr/bin
Log:    /sbin
Log:    /bin
Log:    /usr/games
Log:    /usr/local/games
Log:    /snap/bin
Log: Init: App::FreeCADInit.py done
Log: Init: Creating Gui::Application and QApplication
Log: Local server 'FreeCAD' failed to start
Log: Run Gui init script
Log: Init: Running FreeCADGuiInit.py start script...
Log: Init:   Searching modules...
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/AddonManager... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Arch... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Draft... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Drawing... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Fem... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Idf(InitGui.py not found)... ignore
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Image... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Import... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Inspection... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Material... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Measure(InitGui.py not found)... ignore
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Mesh... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/MeshPart... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/OpenSCAD... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Part... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/PartDesign... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Path... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Plot(InitGui.py not found)... ignore
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Points... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Raytracing... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/ReverseEngineering... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Robot... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Show(InitGui.py not found)... ignore
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Sketcher... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Spreadsheet... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Start... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Surface... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/TechDraw... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Test... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Tux... done
Log: Init:      Initializing /tmp/.mount_FreeCAQVADVR/usr/Mod/Web... done
Log: All modules with GUIs using InitGui.py are now initialized
Log: Init: Initializing freecad.appimage
Log: Init: Initializing freecad.appimage... done
Log: Init: Initializing freecad.asm3
Log: Module: Part
Log: Loading Part module... done
Log: Init: Initializing freecad.asm3... done
Log: Init: Initializing freecad.freecad_glider
Log: Init: Initializing freecad.freecad_glider... done
Log: All modules with GUIs initialized using pkgutil are now initialized
Log: Init: Loading FreeCAD GUI
Log: Init: Running FreeCADGuiInit.py start script... done
Log: Init: Activating default workbench StartWorkbench
Log: Loading GUI of Web module... done
Log: Loading GUI of Start module... done
Log: Loading Start module... done
Log: Sandboxing disabled by user.
Log: WebEngineContext used before QtWebEngine::initialize() or OpenGL context creation failed.
Log: Init: Showing main window
Log: Main window restored
Log: Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples 0, swapBehavior QSurfaceFormat::DefaultSwapBehavior, swapInterval 1, colorSpace QSurfaceFormat::DefaultColorSpace, profile  QSurfaceFormat::NoProfile) 
grappa: 

User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Ubuntu, hang when File->New

Post by adrianinsaval »

are you using the proprietary driver or nouveau? sounds like a graphic driver issue, try doing this: https://forum.freecadweb.org/viewtopic. ... 10#p594540

Also, are you sure it's a good idea to use 20.04 for such new hardware? you're probably better of with something newer that has proper support for it.
MikeMak
Posts: 6
Joined: Fri May 20, 2022 10:11 pm

Re: Ubuntu, hang when File->New

Post by MikeMak »

Suggestion didn't work. No change in log file.
Checked the driver: Using NVIDIA driver metapackage from nvidia-driver 470 (see attachment)
OpenGL and Nvidia work properly with Mathematica
I will try changing driver next (hate to do it; always causes problems ... )
Attachments
Driver listing
Driver listing
Screenshot from 2022-05-23 23-02-18.png (67.71 KiB) Viewed 1134 times
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: Ubuntu, hang when File->New

Post by adrianinsaval »

you are running an xorg session right? because nvidia is known to have issues on wayland and I'm not sure if FreeCAD itself doesn't have problems with wayland. Try the newer driver and try installing freecad 0.20 from the edge channel of the snap or from the ppa.
MikeMak
Posts: 6
Joined: Fri May 20, 2022 10:11 pm

Re: Ubuntu, hang when File->New

Post by MikeMak »

Wayland was the problem. Modified the /etc/gdm3/custom.conf file as per the instructions in

https://linuxconfig.org/how-to-enable-d ... 04-desktop

and rebooted. Both FreeCAD 0.19 and 0.20 work now. No need to mess with drivers.

Many, Many thanks

Mike
Post Reply