FreeCAD icon indicating copy to clipboard operation
FreeCAD copied to clipboard

UI: Task view disappears

Open macdroid53 opened this issue 1 year ago • 21 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Problem description

In the course of normal work, it appears after an error has been reported, the task view refuses to show. When this happens, if a modal dialog is in process there is no way to close the dialog. In most cases, when this condition arises, a right click in a toolbar area shows the Task view is checked but the word Tasks is greyed. The only consistent way to restore correct display of the Task view is to restart FreeCAD. I have provided no file,because it happens with any file. I have also not been able to define a procedure to duplicate the condition. But, it happens every time I attempt to work in FreeCAD on the platform shown in the version info. It happens whether the Panel is docked or undocked on another monitor. I have not seen the condition on Debian/XFCE, but one user did report it on macos.

Full version info

OS: Manjaro Linux (KDE/plasma/xcb)
Architecture: x86_64
Version: 1.1.0dev.39509 (Git)
Build type: Release
Branch: makepkg
Hash: 46f561e2c585789e5302ba285422b60008ecd5e3
Python 3.12.7, Qt 6.8.1, Coin 4.0.3, Vtk 9.3.1, OCC 7.8.1
Locale: English/United States (en_US)
Stylesheet/Theme/QtStyle: OpenDark.qss/OpenDark/
Installed mods: 
  * Silk 0.1.5
  * Defeaturing 1.2.2
  * Curves 0.6.51
  * CurvedShapes 1.0.13
  * DynamicData 2.70.0
  * lattice2 1.0.0
  * sheetmetal 0.6.1
  * Manipulator 1.5.7
  * kicadStepUpMod 11.4.4
  * fasteners 0.5.33
  * OpenTheme 2024.9.1
  * ProDarkThemePreferencePack 1.0.0
  * freecad.gears 1.3.0
  * ExtremeProDark 2.9.0

Subproject(s) affected?

None

Anything else?

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

macdroid53 avatar Dec 08 '24 15:12 macdroid53

Further use appears that this condition occurs after any initial warning or error message.

macdroid53 avatar Dec 08 '24 16:12 macdroid53

I'll compile the same commit using Qt6.7.2 and see if it behaves differently.

Syres916 avatar Dec 09 '24 17:12 Syres916

Cannot replicate using:

OS: EndeavourOS (KDE/plasmax11/xcb)
Architecture: x86_64
Version: 1.1.0dev.39509 (Git)
Build type: Release
Branch: (HEAD detached at 46f561e2c5)
Hash: 46f561e2c585789e5302ba285422b60008ecd5e3
Python 3.12.4, Qt 6.7.2, Coin 4.0.2, Vtk 9.3.0, OCC 7.7.2
Locale: English/United Kingdom (en_GB)
Stylesheet/Theme/QtStyle: Behave-dark.qss/Behave-dark/
Installed mods: 
  * Behave-Dark-Colors 0.1.1
  * freecad.gears 1.3.0
  * FreeCAD-themes 2024.7.24

Next step is to save a Snapshot, carry out a complete update of the distro and repeat to see if the newer libraries are the cause.

Syres916 avatar Dec 10 '24 15:12 Syres916

As I note I have only seen this on Manjaro (two different PC's), FC built from AUR freecad-git. (I think @obelisk79 has seen similar on his Arch based distro). I have never experienced it on Debian 12 (built from source) or Ubuntu with the weekly appimage. On Manjaro, it happens on every session of FreeCAD and is cleared after a restart of FC. Another symptom noted on Manjaro, the "Report view" and Python console panel(window) are labeled "&Report view" and "Python &console". Before Sketcher is launched the task panel is labeled "Task". After the Sketcher is launched and closed the task panel is labeled "&Tasks". It is after the change in taks panel that, after some operation, task panel will not display and is grayed out. It has been in the freecad-git build for months, and is in the 39564.

macdroid53 avatar Dec 10 '24 16:12 macdroid53

I haven't had the problem in some time so it's likely a dependency related issue that has since been fixed. Manjaro typically lags behind arch a few weeks ago this isn't surprising to hear.

obelisk79 avatar Dec 10 '24 16:12 obelisk79

My feedback is, I'm so glad I did a snapshot before upgrading 776 packages. While I couldn't reproduce the Tasks DockWidget disappearing no matter what I tried using Qt 6.8.1 the overall performance was so poor hence going back to the original snapshot.

Syres916 avatar Dec 11 '24 15:12 Syres916

In 39583 I just did it by closing a sketch, Extrude the sketch, open the sketch again...no Task view. And, the view list shows Task checked but grayed out. Note, the Property view and Task view were un-docked.

macdroid53 avatar Dec 11 '24 15:12 macdroid53

Seen again in: OS: Manjaro Linux (KDE/plasma/xcb) Architecture: x86_64 Version: 1.1.0dev.39675 (Git) Build type: Release Branch: main Hash: d507cf34530837495596c16c1f15ead4dac4cc2e Python 3.12.7, Qt 6.8.1, Coin 4.0.3, Vtk 9.3.1, OCC 7.8.1 Locale: English/United States (en_US) Stylesheet/Theme/QtStyle: OpenDark.qss/OpenDark/ Installed mods:

  • Silk 0.1.5
  • Defeaturing 1.2.2
  • Curves 0.6.52
  • CurvedShapes 1.0.13
  • DynamicData 2.70.0
  • lattice2 1.0.0
  • sheetmetal 0.6.2
  • Manipulator 1.5.7
  • kicadStepUpMod 11.4.4
  • fasteners 0.5.33
  • OpenTheme 2024.9.1
  • ProDarkThemePreferencePack 1.0.0
  • freecad.gears 1.3.0
  • ExtremeProDark 2.9.0

macdroid53 avatar Dec 17 '24 13:12 macdroid53

OS: Windows 10 build 19045
Architecture: x86_64
Version: 1.1.0dev.39646 (Git) Conda
Build type: Release
Branch: main
Hash: b25b83c1a58bf0ae95cbd502d0ccae27e8127cad
Python 3.11.11, Qt 5.15.15, Coin 4.0.3, Vtk 9.3.0, OCC 7.8.1
Locale: English/United States (en_US)

Steps to Reproduce:

  1. Toggle transparency for all objects (Shift+F4).
  2. Create a line using the Draft workbench and finish/exit the task.
  3. Double-click the Draft line object in the tree. Note that a task dialog has opened.
  4. Close the task dialog using the x button instead of the close button.

Observations:

  • The task panel remains greyed out while the task is active.
  • Clicking into the 3D view and pressing Escape will clear the task, and the panel is no longer greyed out.
  • Alternatively, toggle transparent display with F4 and close the task.

Dtays-meanderings avatar Dec 18 '24 01:12 Dtays-meanderings

@luzpaz @maxwxyz @Syres916 Now that others are reporting this and similar things on other platforms... The issue says open at the top, but closed later in the thread. I don't think I can re-open.

macdroid53 avatar Dec 18 '24 17:12 macdroid53

I discovered today, when the Task view is gone and/or a task has been started (i.e. the Pad icon has been clicked and there is no Task panel/Pad dialog displayed F4 will sort of reset things. Unfortunately, it also moves all the panels back into the 3D view and rearranges them. Not terribly useful, since now it takes more time to rearrange things.

macdroid53 avatar Dec 19 '24 19:12 macdroid53

This is getting worse. But, it appears only in Arch/Manjaro. Almost any error report and the Task will go into limbo. Currently 39747.

macdroid53 avatar Dec 30 '24 18:12 macdroid53

I have never experienced it on Debian 12 (built from source) or Ubuntu with the weekly appimage.

Sorry to intrude into a well-established conversation, but, @macdroid53, this is a clearly problem with Qt. Does AppImage work as expected?

xtemp09 avatar Dec 31 '24 07:12 xtemp09

I have never experienced it on Debian 12 (built from source) or Ubuntu with the weekly appimage.

Sorry to intrude into a well-established conversation, but, @macdroid53, this is a clearly problem with Qt. Does AppImage work as expected?

I don't think it was ever in question that it is a Qt6 issue. The AUR package is freecad-git.

The appimage does work as expected.

macdroid53 avatar Dec 31 '24 15:12 macdroid53

I think that this issue and the issue #16640 are strongly related or even the same.

@macdroid53, if you change stylesheets, does the task view show up?

xtemp09 avatar Dec 31 '24 20:12 xtemp09

I take that back. The appimage suffers the same task view zombie. It does correct the '&' in panel titles.

macdroid53 avatar Dec 31 '24 20:12 macdroid53

As I use this on Manjaro I try to track and possibly find a repeatable sequence to produce the problem. So far no luck. But, I have observed that the panel tiles with "&" are always there for the Report and Python panels. And, ampersands don't appear in the Property and Task view until an error is reported. The other common thing is the Task view going zombie appears to have something to do with the Task view being hidden after an error. While it does happen when the panels are docked, this is most prevalent when the Task and Property are separate and and undocked on a separate monitor.

macdroid53 avatar Jan 04 '25 13:01 macdroid53

Just encountered this on: OS: openSUSE Tumbleweed (KDE/plasmawayland/xcb) Architecture: x86_64 Version: 1.0.0.39109 (Git) Conda AppImage Build type: Release Branch: (HEAD detached at 1.0.0) Hash: 2fcc5317fe3aee96ca73475986a577719fc78e20 Python 3.11.9, Qt 5.15.13, Coin 4.0.3, Vtk 9.2.6, OCC 7.7.2 Locale: English/United Kingdom (en_GB) Stylesheet/Theme/QtStyle: unset/FreeCAD Classic/Qt default Installed mods:

  • 3DfindIT 1.2.0
  • Assembly3 0.12.2
  • fasteners 0.5.15
  • frame 0.1.1
  • Help 1.0.3
  • lattice2 1.0.0
  • Manipulator 1.5.7
  • POV-Ray-Rendering
  • Render 2024.1.23
  • sheetmetal 0.4.10
  • Silk 0.1.5
  • ThreadProfile 1.89.0
  • workfeature
  • PieMenu 1.2.7
  • ExplodedAssembly

NohWayJose avatar Jan 11 '25 19:01 NohWayJose

just for clarity, I drag-undocked the task panel, with a view to having the main view on one screen and the tools on the other. Not sure how I disappeared the panel (now a window) but it didn't appear in my KDE task panel and only a restart of FreeCAD brought it back

NohWayJose avatar Jan 11 '25 19:01 NohWayJose

For others who may stumble on the Task view zombie issue: Thanks to help from @hyarion in the Discord the following Python seems to recover from the zombie state.

Gui.runCommand('Std_Edit',0)

I have added it to a global toolbar and it has worked every time.

macdroid53 avatar Jan 24 '25 14:01 macdroid53

The Python I mention above no longer works all the time.

I have also noticed, since this occurs when the Task and Property view are un-docked. If Toggle floating in the docked Treeview is toggled (this moves the Task/Property view back to the main window) it resets the Task being greyed out and zombied. Then the user needs to undock them again until the issue is triggered again.

macdroid53 avatar Jun 15 '25 12:06 macdroid53

I am having that bug too. Only thing I did was creating a new cube while the placement UI is open. ... I really have no Idea why this happenned. Is there any logs that I can send instead?

juni3227 avatar Aug 27 '25 07:08 juni3227

https://github.com/user-attachments/assets/39adb38d-4c9a-46be-b577-801637e141af

juni3227 avatar Aug 27 '25 07:08 juni3227

@juni3227, you should provide About info every time you report a bug.

It is clear from the video that you are using 1.0.0. Is the problem reproducible with the newer version and with a weekly bundle?


@juni3227, if you run Gui.runCommand('Std_Edit', 0) in Python Console, does it solve the problem?

xtemp09 avatar Aug 27 '25 10:08 xtemp09

I just hit this bug on 1.0.2. About info:

OS: Arch Linux (wayland) Architecture: x86_64 Version: 1.0.2.39319 (Git) Build type: Release Branch: makepkg Hash: 256fc7eff3379911ab5daf88e10182c509aa8052 Python 3.13.7, Qt 6.9.2, Coin 4.0.5, Vtk 9.5.1, OCC 7.9.1 Locale: English/United States (en_US) Stylesheet/Theme/QtStyle: FreeCAD Dark.qss/FreeCAD Dark/ Installed mods:

  • FusedFilamentDesign 0.25.380
  • Gridfinity 0.11.9

In my case, the task panel was not checked after disappearing, but was still greyed out. Happy to provide more info on request. (I'm pretty new to CAD and very new to FreeCAD, so if this is obvious user error I apologize for the noise)

Image

annabunches avatar Oct 14 '25 18:10 annabunches

One workaround is to toggle overlay for all. In my case it restored the tasks panel which didn't reappear after restarting.

OS: EndeavourOS (KDE/plasma/wayland) Architecture: x86_64 Version: 1.0.2.39319 (Git) Build type: Release Branch: makepkg Hash: 256fc7eff3379911ab5daf88e10182c509aa8052 Python 3.13.7, Qt 6.10.0, Coin 4.0.5, Vtk 9.5.2, OCC 7.9.1

Image

danicc097 avatar Oct 20 '25 15:10 danicc097

Is this an Overlay bug ?

luzpaz avatar Dec 16 '25 10:12 luzpaz

Is this an Overlay bug ?

I guess so? at least in 1.0.2. It randomly won't show the tasks panel and it's always fixed with a "Toggle overlay for all" for me at least

danicc097 avatar Dec 18 '25 13:12 danicc097

@danicc097 can you test with the development version ? https://github.com/FreeCAD/FreeCAD/releases/tag/weekly-2025.12.17

luzpaz avatar Dec 19 '25 18:12 luzpaz

@danicc097 can you test with the development version ? https://github.com/FreeCAD/FreeCAD/releases/tag/weekly-2025.12.17

I've been playing part design/assembly with FreeCAD_weekly-2025.12.17-Linux-x86_64-py311.AppImage for 30min and the docked task panel seems to work nicely with transparency enabled, no issues at all.

I also tried 1.0.2 (39319) again after +1 month and couldn't reproduce anymore, might have been a mismatch of Qt libs in my system as well? Before, even dragging the panels around felt sluggish IIRC

danicc097 avatar Dec 20 '25 00:12 danicc097