Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] FreeCAD automatically switches to first tab/document #517

Open
nadarbreicq opened this issue Mar 17, 2021 · 23 comments
Open

[Bug] FreeCAD automatically switches to first tab/document #517

nadarbreicq opened this issue Mar 17, 2021 · 23 comments

Comments

@nadarbreicq
Copy link

Hi !

I'm stuck with an issue. Don't know if it's a bug or a feature, but every time I work on multiple document, when I want to make a new sketch or everything else, FreeCAD select the first tab/document and I loose the focus on my document.
Someone got the same issue here : https://forum.freecadweb.org/viewtopic.php?t=55306 ... It seems to be a bug in the 0.18 version...

OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2021.311.24301 +3373 (Git)
Build type: Release
Branch: LinkStage3
Hash: 91ca94db328bf6126c4a01547b6aa2202d876ebc
Python version: 3.6.8
Qt version: 5.12.6
Coin version: 4.0.0a
OCC version: 7.5.0
Locale: French/France (fr_FR)
@realthunder
Copy link
Owner

This annoying problem keeps coming back and haunting me. It seems never appear on Linux, more often in Mac, and sometimes Windows. Can you please provide a screencast showing the problem? Also please attach here your user configuration file in c:\Users\<your_username>\AppData\Roaming\FreeCAD\link.user.cfg

@nadarbreicq
Copy link
Author

nadarbreicq commented Mar 17, 2021

Yhea, I made some researchs and it seems to be an annoying bug since 0.14 (as far as I know... ). I will send you a screencast tomorrow, but you can find le configuration file here :
link.user.zip
Thanks a lot for your work on this branch btw ! I'm using it every day since October 2020 (previous fusion user ;) ) and it's so pleasant to use (even white the "bug" ;) )

@nadarbreicq
Copy link
Author

Ok so today, I didn't manage to reproduce the issue with exactly the same files and without changing anything... So strange... I'll keep trying today...

@realthunder
Copy link
Owner

Thanks for the appreciation!

Regarding this problem, it is related to how Qt handles focus change in child widget of the QMdiArea, i.e. those document sub-windows. So, to catch the problem, please pay attention to anything you are running that can grab focus in some unusual way.

@nadarbreicq
Copy link
Author

Okay ! I will pay attention to that. My screencast soft is ready to record if anything happened :D

@irmantus
Copy link

irmantus commented Mar 25, 2021

I'm having same issue on MacOS. Only way to work around is to have only one file open and close "Start page" tab. But there is also one more bug that you can't close "Start page" tab with "X" button, you have to do right click->close.

Screencast: https://youtu.be/3yQZIi67y1w

@luzpaz
Copy link
Collaborator

luzpaz commented Aug 4, 2021

Is this still a problem?

@luzpaz
Copy link
Collaborator

luzpaz commented Aug 4, 2021

dupe of #407 ?

@nadarbreicq
Copy link
Author

Never reproduced on my computer. Got a similar issue with one of my student some month ago. But after changing his version for a more recent one, he also never reproduced the issue.

@luzpaz
Copy link
Collaborator

luzpaz commented Aug 4, 2021

@irmantus is what you're seeing the same as #407 ?

Is this ticket (#517) safe to close for now, y'all ?

@irmantus
Copy link

irmantus commented Aug 4, 2021

I can still reproduce this issue on the latest release.

@MarcoPSP
Copy link

I am having the same problem, it makes it very annoying to have multiple files opened at the same time.
No messages in “report view”.
Is there a way to modify this behaviour using the python console?

OS: macOS 12.0
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2021.1015.24301 +3962 (Git)
Build type: Release
Branch: LinkStage3
Hash: c6cb39697eb439caf7e5bd0208ca3082a7820547
Python version: 3.9.6
Qt version: 5.15.2
Coin version: 4.0.1
OCC version: 7.5.0
Locale: English/United States (en_US)

@realthunder
Copy link
Owner

Are you using the BigSur image or the conda one? Can you please post a screencast showing the steps to reproduce the problem? Also please post your application settings here, Tools -> Edit parameters -> Export.

@MarcoPSP
Copy link

Are you using the BigSur image or the conda one? Can you please post a screencast showing the steps to reproduce the problem? Also please post your application settings here, Tools -> Edit parameters -> Export.

Hi real thunder, Thank you for your help and for your great branche.

Here you can find a screencast: https://youtu.be/dCPWVJTWOO4

The behaviour was observed just before the recording, also while adding a part. this case was to show the bug so the files were not saved and had the same name, but it happens with any saved project.

I am using the BigSur image, i didn't try the conda one, I will download it.

Here are my application settings

@MarcoPSP
Copy link

Just tested with conda, i got the same behavior...

@meprakarsa
Copy link

I experienced the same (using MacOS Catalina), and my colleague too (Mac OS Big Sur).
The strange thing is... it just happened recently (since last week only).

It Happened to FreeCad Link Daily & Stable (RealThunder branch), also daily main FC 0.20.
Simple operation like toggle visibility on/off (pressing space bar) reproduced this issue consistently, same with @irmantus .

Another strange behaviour: the problem resolved in 0.20 main branch after I reset the preference.
But when I applied the same technic to the RealThunder branches, it didn't work.
I have trialled ticked-unticked any suspicious preference setting, but nothing solves yet.

OS: macOS 10.15
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2021.922.24301 +4188 (Git)
Build type: Release
Branch: LinkDaily
Hash: 3de879c7a2ba7111cc769d98636eb6d43189459d
Python version: 3.9.7
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.2
Locale: C/Default (C)

OS: macOS 10.15
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 2022.111.28429 (Git)
Build type: Release
Branch: LinkStage3
Hash: ec814c42d02f15171f9dbb7f650400c9943abfe0
Python version: 3.9.9
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.3
Locale: C/Default (C)

## FreeCAD 0.20: ##
OS: macOS 10.15
Word size of FreeCAD: 64-bit
Version: 0.20.25065 (Git)
Build type: Release
Branch: master
Hash: 4de2ad46b2b9c78ac2721a0dbea7c19306261095
Python version: 3.9.4
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: C/Default (C)

@pureselfmade
Copy link

Hello, I have the exact same issue as @irmantus described in the screencast: https://youtu.be/3yQZIi67y1w

I use freecad for production and design of technical drawings in my small company so it is a really annoying bug that kills the workflow. Any help is very much appreciated and I would like to make a donation if that can be solved!
No matter if I use the Official stable or dev. releases or Realthunder's stable or daily. It keeps coming back with all of them.

The weird thing is that it is not always behaving the same. Sometimes it does also switch to the first document in the tree view when I use the space bar to toggle the visibility of a part or body of another open document.
I do remember working for hours with multiple documents open in the past and not experiencing this issue. I have completely removed freecad from my computer and deleted all related files in the library folder but the issue keeps coming back.

Mostly I work with this setup:

OS: macOS High Sierra (10.13)
Word size of FreeCAD: 64-bit
Version: 0.20.27078 (Git)
Build type: Release
Python version: 3.9.9
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.3
Locale: C/Default (C)

@gotchoices
Copy link

gotchoices commented Nov 8, 2022

I have this issue in the latest build.

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.21.30868 (Git)
Build type: Release
Branch: master
Hash: b3372a52054fc34c243ac508ce67717b1476f2a9
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: C/Default (C)
Installed mods: 
  * sheetmetal 0.2.58

To reproduce:

  • Create two separate documents.
  • In each one, create a body and a sketch
  • Choose to edit the sketch in the second document

Results: Instead of seeing the sketch you just chose to edit, the screen focus will change to the first part. You won't be viewing the edited sketch (in the second part). If you manually select that tab, you will see editing mode on the sketch has been selected--you just lost focus of it.

This issue also discussed in the forum

@luzpaz luzpaz changed the title Freecad automatically switche to first tab/document [Bug] FreeCAD automatically switches to first tab/document Nov 8, 2022
@luzpaz
Copy link
Collaborator

luzpaz commented Nov 8, 2022

Can anyone else confirm ? @nadarbreicq etc.. ?

@lagnat
Copy link

lagnat commented Nov 8, 2022

I've seen that as well

@gotchoices
Copy link

Sorry, I was confused about the distinction between the realthunder fork and the mainstream FreeCAD distro. I downloaded the latest realthunder version and this bug is NOT present--seems to have been fixed (at least in my case). I will report this in the main FreeCAD repo (where the bug is still present). Here's the version I have working with the bug apparently solved:

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 2022.1021.26244 +5249 (Git)
Build type: Release
Branch: LinkDaily
Hash: d307b5c936403e8dca3f24b5c1e64bd16c88b28d
Python version: 3.9.13
Qt version: 5.12.9
Coin version: 4.0.1
OCC version: 7.5.3
Locale: C/Default (C)

Sorry for the confusion!

@luzpaz
Copy link
Collaborator

luzpaz commented Nov 9, 2022

@gotchoices can you link to the FreeCAD 'master' ticket please?

@gotchoices
Copy link

Master ticket Here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants