Tiny little inconvenience

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
galou_breizh
Posts: 437
Joined: Wed Sep 15, 2010 9:38 am

Tiny little inconvenience

Post by galou_breizh »

I just discovered a very small bug. Create a new document and save it without doing any change, let's call it "doc_a.fcstd". If you open a new document at that moment, the document "doc_a.fcstd" is being closed. I though that this should happen only on unmodified documents that were never saved.

Gaël

OS: Ubuntu 18.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 690774c0effe4fd7b8d2b5e2fb2b8c8d145e21ce
Python version: 2.7.15rc1
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Tiny little inconvenience

Post by kisolre »

Not reproducible here. Tried from toolbars and file menu- same result. Nothing is closed, new file is created as expected. Also tried opening 6 new docs in a row - all open Ok. Why would you expect something to close without you inteervention?

Code: Select all

OS: Windows 8.1
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16267 (Git)
Build type: Release
Branch: master
Hash: ddb335cfe057336f1958d68126bb0471328d735c
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Bulgarian/Bulgaria (bg_BG)
chrisb
Veteran
Posts: 54302
Joined: Tue Mar 17, 2015 9:14 am

Re: Tiny little inconvenience

Post by chrisb »

I cannt confirm here:

OS: macOS 10.13
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16207 (Git)
Build type: Release
Branch: master
Hash: 741533941c67da2f721bf1b7c2d55c987fd22a0c
Python version: 3.7.2
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 54302
Joined: Tue Mar 17, 2015 9:14 am

Re: Tiny little inconvenience

Post by chrisb »

And cannot confirm here. When you say "open a new document", I guess you mean "create a new document"?

OS: Ubuntu 16.04.6 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16093 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 690774c0effe4fd7b8d2b5e2fb2b8c8d145e21ce
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Tiny little inconvenience

Post by DeepSOIC »

chrisb wrote: Mon Apr 08, 2019 8:41 pm And cannot confirm here. When you say "open a new document", I guess you mean "create a new document"?
I'm pretty sure it was supposed to mean "open an FCStd file in the same FC application instance".
User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: Tiny little inconvenience

Post by DeepSOIC »

Reproduced.
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16267 (Git)
Build type: Release
Branch: master
Hash: ddb335cfe057336f1958d68126bb0471328d735c
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Russian/Russia (ru_RU)
chrisb
Veteran
Posts: 54302
Joined: Tue Mar 17, 2015 9:14 am

Re: Tiny little inconvenience

Post by chrisb »

DeepSOIC wrote: Mon Apr 08, 2019 8:55 pm I'm pretty sure it was supposed to mean "open an FCStd file in the same FC application instance".
Can confirm OP's issue with this modified issue description.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
kisolre
Veteran
Posts: 4166
Joined: Wed Nov 21, 2018 1:13 pm

Re: Tiny little inconvenience

Post by kisolre »

So it is normal for an empty new document to be closed when another document is open? Any idea why? If I create a new doc and then try to open another to copy/paste things from it to the first the empty one will be closed? How does that make sence?
I did some tests and now if an empty doc is active (no matter if it is loaded from saved file or newly created some time ago) and another file is opened the empry doc gets removed.
mlampert
Veteran
Posts: 1772
Joined: Fri Sep 16, 2016 9:28 pm

Re: Tiny little inconvenience

Post by mlampert »

kisolre wrote: Mon Apr 08, 2019 9:47 pm So it is normal for an empty new document to be closed when another document is open?
It doesn't just happen with empty documents - I've had pretty large documents replaced when opening another document. I have never managed to find a reliable process to trigger it though.
galou_breizh
Posts: 437
Joined: Wed Sep 15, 2010 9:38 am

Re: Tiny little inconvenience

Post by galou_breizh »

I actually meant open another existing document in the same FreeCAD instance. Creating a new document doesn't close "doc_a.fcstd".

I also just realized that the effect can only be observed when opening the second document from the File menu. Opening it from the Start Page also doesn't close "doc_a.fcstd".
Post Reply