FreeCAD 0.21 hangs when opening spreadsheet on windows

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

FreeCAD 0.21 hangs when opening spreadsheet on windows

Post by adrianinsaval »

Reproducible even with clean config, tested on two separate systems, steps:
-open freecad
-new document
-switch to spreadsheet workbench
-create new spreadsheet, the spreadsheet opens automatically
-FreeCAD hangs for some time and eventually is responsive again
-close spreadsheet
-FreeCAD hangs and is responsive again after some time
-reopening the spreadsheet FreeCAD hangs again

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.30121 (Git)
Build type: Release
Branch: master
Hash: 9c929897ac46f2309e2bf34b7106f49fcb737a1d
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: English/United Kingdom (en_GB)
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.21 hangs when opening spreadsheet on windows

Post by adrianinsaval »

@looo issue seems to be with conda packaging, I can reproduce with this version of 0.20.1:

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: (HEAD detached at 0.20.1)
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: English/United Kingdom (en_GB)
and same with py3.8 version:

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.30143 (Git)
Build type: Release
Branch: master
Hash: a72bf218f9917df37e811d7e73a36333282028f5
Python 3.8.13, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: English/United Kingdom (en_GB)
but not with this (installer version):

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/United Kingdom (en_GB)
User avatar
looo
Veteran
Posts: 3941
Joined: Mon Nov 11, 2013 5:29 pm

Re: FreeCAD 0.21 hangs when opening spreadsheet on windows

Post by looo »

@adrianinsaval
Is this also reproducible with the weekly builds?

can't reproduce with from conda:

Code: Select all

OS: macOS 12.4
Word size of FreeCAD: 64-bit
Version: 0.21.30138 (Git)
Build type: Release
Branch: master
Hash: f5c5eec3bbe6cf1499d34d292d154d48e6285c0f
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: German/Austria (de_AT)
Installed mods: 
  * ThreadProfile 1.81.0
  * PieMenu
  * fasteners 0.3.44
  * Assembly4 0.12.0
  * Assembly3 0.11.3
arm64 / and rosetta.

also no problems with linux:

Code: Select all

OS: Ubuntu 22.04 LTS (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.21.30143 (Git)
Build type: Release
Branch: master
Hash: a72bf218f9917df37e811d7e73a36333282028f5
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: German/Austria (de_AT)
Installed mods: 
  * Assembly3 0.11.3
also with this version I can't reproduce (but this is still only conda and not the bundle)

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: (HEAD detached at 0.20.1)
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: German/Austria (de_AT)
Installed mods: 
  * Plot
and also no issue with the bundle:

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: (HEAD detached at 0.20.1)
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.13, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: German/Austria (de_AT)
Installed mods: 
  * Plot

I created a new document, switched to spreadsheet workbench, created a new spreadsheet (was created instantly), closed it (closed normally), opened it again (again no issue). Did I do something wrong?
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.21 hangs when opening spreadsheet on windows

Post by adrianinsaval »

looo wrote: Tue Aug 23, 2022 8:43 am @adrianinsaval
Is this also reproducible with the weekly builds?
Yes, if you see my first post that's where I first noticed this issue
looo wrote: Tue Aug 23, 2022 8:43 am I created a new document, switched to spreadsheet workbench, created a new spreadsheet (was created instantly), closed it (closed normally), opened it again (again no issue). Did I do something wrong?
No, that's exactly what I do but FreeCAD hangs for me, this happens on two different computers so it doesn't look like being specific to my machine.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: FreeCAD 0.21 hangs when opening spreadsheet on windows

Post by GeneFC »

I tried on two different computers, and I saw no delays. Exactly the same source file just downloaded a few minutes ago.

Code: Select all

OS: Windows 7 Version 6.1 (Build 7601: SP 1)
Word size of FreeCAD: 64-bit
Version: 0.21.30143 (Git)
Build type: Release
Branch: master
Hash: a72bf218f9917df37e811d7e73a36333282028f5
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods: 
  * FeedsAndSpeeds 0.4.0
  * FeedsAndSpeeds-master.zip
  * Help 1.0.3
  * offline-documentation

Code: Select all

OS: Windows 10 Version 2009 (Actually Windows 11 21H2 22000.856)
Word size of FreeCAD: 64-bit
Version: 0.21.30143 (Git)
Build type: Release
Branch: master
Hash: a72bf218f9917df37e811d7e73a36333282028f5
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: English/United States (en_US)
Installed mods: 
  * FeedsAndSpeeds 0.4.0
  * FeedsAndSpeeds-master.zip
  * Help 1.0.3
However, in both cases, as well as my previous experience, the spreadsheet did not open automatically. I needed to double-click the Spreadsheet entry in the main tree to get the new spreadsheet window.

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

Re: FreeCAD 0.21 hangs when opening spreadsheet on windows

Post by adrianinsaval »

I can reproduce in two different windows 10 machines

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.30143 (Git)
Build type: Release
Branch: master
Hash: a72bf218f9917df37e811d7e73a36333282028f5
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: C/Default (C) [ OS: Spanish/Paraguay (es_PY) ]
Installed mods: 
  * ArchTextures
  * CurvedShapes 1.0.4
  * Curves 0.5.6
  * Defeaturing
  * fasteners 0.3.38
  * FCsuWB-dev
  * Glass
  * SelectorToolbar
  * Silk 1.0.0
even with clean config, even removing the registry entry for FreeCAD window state, funny enough in one machine the spreadsheet opens automatically when I create one, in the other I have to double click to open. What could be the common factor? Why is it only affecting me?
In both computers the 0.20.1 version from the installer works fine.

Off-topic but how did you convince python 3.10 to run on your win7 machine? Or have they changed something that brought compatibility back? Or is it because it's from conda?
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: FreeCAD 0.21 hangs when opening spreadsheet on windows

Post by GeneFC »

adrianinsaval wrote: Tue Aug 23, 2022 2:55 pm Off-topic but how did you convince python 3.10 to run on your win7 machine?
I added the missing file that was floating around here a couple of weeks ago. I was rather amazed that it worked. I had (mis)understood that there were a number of new API calls in Python 3.9+ that were not part of Windows 7. It appears there were not many, and the single added file works.

Who knows for how long?

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

Re: FreeCAD 0.21 hangs when opening spreadsheet on windows

Post by adrianinsaval »

Ah right! I forgot about that post (since I didn't need it) but I've seen it too.
User avatar
adrianinsaval
Veteran
Posts: 5541
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.21 hangs when opening spreadsheet on windows

Post by adrianinsaval »

I could not reproduce on the appimage on linux, on windows it still hangs but I noticed I need to click on a spreadsheet cell after activating the spreadsheet to make it hang. Is really nobody else having this issue? How can I find out what is going wrong here?
User avatar
Shalmeneser
Veteran
Posts: 9474
Joined: Wed Dec 23, 2020 12:04 am
Location: Fr

Re: FreeCAD 0.21 hangs when opening spreadsheet on windows

Post by Shalmeneser »

adrianinsaval wrote: Tue Aug 30, 2022 12:37 pm I could not reproduce on the appimage on linux, on windows it still hangs but I noticed I need to click on a spreadsheet cell after activating the spreadsheet to make it hang. Is really nobody else having this issue? How can I find out what is going wrong here?
I have the same problem with 0.21 : clicking on a cell will hang FC (I close FC, don't know if it wakes up later).

Code: Select all

OS: Windows 10 Version 1809
Word size of FreeCAD: 64-bit
Version: 0.21.30058 (Git)
Build type: Release
Branch: master
Hash: cb96332a64db8ae855ca700212eebb0f5151230a
Python 3.10.5, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.2
Locale: French/France (fr_FR)
Installed mods: 
  * fasteners 0.4.3
  * fcgear 1.0.0
  * Manipulator 1.4.9
  * sheetmetal 0.2.56
Post Reply