FreeCAD 0.20.1: impossible to save on SMB share with Windows11

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!
mbordoni
Posts: 5
Joined: Sat Sep 10, 2022 4:54 pm

FreeCAD 0.20.1: impossible to save on SMB share with Windows11

Post by mbordoni »

With:

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: Italian/Italy (it_IT)
If you try to save a project to an SMB share you get the following error: "boost::filesystem:weakly_canonical: The specified path is invalid"
In reality the path use is working perfectly and it has been selected via "Save As" dialog.

In attach the screen dump of the error dialog.

How to fix this?
Attachments
Save As Error
Save As Error
SaveAs_Error.jpeg (19.45 KiB) Viewed 1627 times
WindoAC
Posts: 3
Joined: Mon Sep 05, 2022 1:09 pm

Re: FreeCAD 0.20.1: impossible to save on SMB share with Windows11

Post by WindoAC »

User avatar
thomas-neemann
Veteran
Posts: 11962
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: FreeCAD 0.20.1: impossible to save on SMB share with Windows11

Post by thomas-neemann »

mbordoni wrote: Sat Sep 10, 2022 5:02 pm ...
nfs is better than smb (also from a security point of view). that would be a quick solution (workaround)
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
User avatar
adrianinsaval
Veteran
Posts: 5553
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.20.1: impossible to save on SMB share with Windows11

Post by adrianinsaval »

is the same problem present if you use the 0.21 dev builds? https://github.com/FreeCAD/FreeCAD-Bund ... kly-builds if yes, does it work with 0.19.4?
WindoAC
Posts: 3
Joined: Mon Sep 05, 2022 1:09 pm

Re: FreeCAD 0.20.1: impossible to save on SMB share with Windows11

Post by WindoAC »

adrianinsaval wrote: Mon Sep 12, 2022 3:56 pm is the same problem present if you use the 0.21 dev builds? https://github.com/FreeCAD/FreeCAD-Bund ... kly-builds if yes, does it work with 0.19.4?
Great! Test "FreeCAD_weekly-builds-30345-2022-09-11-conda-Windows-x86_64-py310.7z" save to SMB share path no issue.

Code: Select all

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.21.30345 (Git)
Build type: Release
Branch: master
Hash: f42a47aa0fd8c4f34ef63c185d9f29b9b6e84737
Python 3.10.6, Qt 5.15.4, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)

Code: Select all

>>> ### Begin command Std_Save
>>> Gui.SendMsgToActiveView("Save")
>>> App.getDocument("Unnamed1").saveAs(u"//cheong-ds920/temp/test1.FCStd")
>>> ### End command Std_Save
User avatar
adrianinsaval
Veteran
Posts: 5553
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.20.1: impossible to save on SMB share with Windows11

Post by adrianinsaval »

@wmayer @uwestoehr it seems something was fixed regarding this in 0.21, do you know when and if it was backported to the 0.20 branch? This looks like something related to that change to follow symlinks when saving
User avatar
adrianinsaval
Veteran
Posts: 5553
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.20.1: impossible to save on SMB share with Windows11

Post by adrianinsaval »

wmayer wrote: Wed Sep 14, 2022 1:52 pm master: git commit 84eb5fe9e219
0.20 branch: git commit c00740aa151
hhhmmm according to OP it doesn't work in 0.20.1 though, which should include that change.
mbordoni
Posts: 5
Joined: Sat Sep 10, 2022 4:54 pm

Re: FreeCAD 0.20.1: impossible to save on SMB share with Windows11

Post by mbordoni »

I tried weekly build https://github.com/FreeCAD/FreeCAD-Bund ... kly-builds and it works fine.
Since it is a major issue it would be needed either a hotfix to 0.20.1 current official release or a 0.20.2 version.

What would you think it is going to happen?

Bests
User avatar
adrianinsaval
Veteran
Posts: 5553
Joined: Thu Apr 05, 2018 5:15 pm

Re: FreeCAD 0.20.1: impossible to save on SMB share with Windows11

Post by adrianinsaval »

we first need to identify what exactly makes this work in one but not in the other, the 0.20.1 version you are running is from the installer right? could you try if the problem also exists in the conda build of 0.20.1? https://github.com/FreeCAD/FreeCAD/rele ... 4-py310.7z
Post Reply