WaitCursor bug

About the development of the FEM module/workbench.

Moderator: bernd

dwightprice616
Posts: 4
Joined: Mon Feb 11, 2019 1:18 am

WaitCursor bug

Postby dwightprice616 » Mon Feb 11, 2019 1:50 am

Cursor sticks on WaitCursor bug

MacBook Pro - Trackpad
OS: Mac OS X
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
Python version: 2.7.14
Qt version: 5.10.1
Coin version: 4.0.0a
OCC version: 7.2.0

I've run into a minor annoyance on the FreeCAD version I'm using.
After Fem actions that call up spinning colored beachball like: write .inp file, or run ccx, or open results, or work on results; the cursor does not change back to the ArrowCursor but hangs on the WaitCursor.
A simular issue was posted as "WaitCursor bug" by sponssi Sun Jun 29, 2014 with a patch posted.

I currently work around this by running Macro:
>>from PySide import QtCore, QtGui
>>QtGui.QApplication.setOverrideCursor(QtGui.QCursor(QtCore.Qt.ArrowCursor))
but it's irritating to need to run macro every 5 minutes.
chrisb
Posts: 17494
Joined: Tue Mar 17, 2015 9:14 am

Re: WaitCursor bug

Postby chrisb » Mon Feb 11, 2019 6:36 am

Moved to FEM forum. (For future reference: Help forum would have been ok as well, open discussions is not for discussing bugs).
User avatar
bernd
Posts: 8208
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: WaitCursor bug

Postby bernd » Mon Feb 11, 2019 8:26 am

Hi dwightprice616, and welcome to FreeCAD FEM

I have not had this for years on neiter Linux nor Windows ...

@dwightprice616:
How do you trigger an analysis. There are two possibilities:
- select the solver and press run icon in icon bar
- double click on solver and press write file and run solver in task panel

Which solver do you use?
- If CalculiX, wich one the CcxToolsSolver or the CalculiX_Solver?


Would you test on latest dev version 0.18.xxxxx too? You can download them here: https://github.com/FreeCAD/FreeCAD/releases


Bernd
dwightprice616
Posts: 4
Joined: Mon Feb 11, 2019 1:18 am

Re: WaitCursor bug

Postby dwightprice616 » Wed Feb 20, 2019 5:27 pm

Hi bernd, thanks for the response.

I ran some more tests, Let's see if I can keep the results straight.
In FC0.17, Using CcxToolsSolver by double clicking or from icon in menu bar, the cursor does not stick until actions have been performed a couple of times (write, run or analyze). From then on cursor sticks as soon as write file is pressed and again on run analysis or view results.

Using CalculiX_Solver the cursor does not stick at all running from double clicking or from icon.

On FC0.18(downloaded binary) the cursor does not stick at all, but if I try to select Netgen mesh the program crashes instantly. Gmsh works without problems. There is also a issue with long solids not showing the opposing face (face 2 on cubes missing, showing inside a shell).

The missing face is also a issue with long skinny extrusions on FC0.17 (100mm x 20mm x2000). The second 100x20 face is often missing if the extrusion gets over 800mm (allowing you to select the interior side of faces). I can work around this by using loft instead of extrusion.
dwightprice616
Posts: 4
Joined: Mon Feb 11, 2019 1:18 am

Re: WaitCursor bug

Postby dwightprice616 » Mon Mar 04, 2019 3:39 am

I found my solution.
In _ViewProviderFemResultMechanical.py
replace QtGui.qApp.restoreOverrideCursor() with QtGui.QApplication.restoreOverrideCursor()

Everything seems to run without problem now.
User avatar
bernd
Posts: 8208
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: WaitCursor bug

Postby bernd » Mon Mar 04, 2019 5:50 am

do you have background knowledge what the dofference is?
User avatar
bernd
Posts: 8208
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: WaitCursor bug

Postby bernd » Mon Mar 04, 2019 8:33 am

Thanks for reporting back. ... git commit be5ea83

cheers bernd