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

AutoRecovery does not work #5

Closed
akvadrako opened this issue Sep 5, 2022 · 5 comments
Closed

AutoRecovery does not work #5

akvadrako opened this issue Sep 5, 2022 · 5 comments

Comments

@akvadrako
Copy link

Every time I open a document in FreeCAD, I see an error message like this:

16:53:53 Document with the UUID '2d38467b-cbb2-4db3-a735-3fc73eb2855c' already exists, change to 'e2cca819-bbd6-42e1-9ffe-930a332170db'

Because FreeCAD thinks it's a different document, AutoRecovery doesn't work.This seems to be because FreeCAD uses the PID as part of a lock file and that lockfile always has PID=2 in flatpak, so it thinks I'm opening a document with a duplicate UUID instead of the same document.

The lock file is /home/dev/.var/app/org.freecadweb.FreeCAD/cache/FreeCAD/Cache/FreeCAD_2.lock.

@hfiguiere
Copy link
Collaborator

this should be an upstream issue. Using PID for that isn't a good idea. the Flatpak being in a container, it uses namespaces for PID.

@adrianinsaval
Copy link
Collaborator

Is this still an issue? if yes please provide full version information

@dfrank-a
Copy link

dfrank-a commented Jan 17, 2024

Still an issue for me.

OS: KDE Flatpak runtime (X-Cinnamon/cinnamon)
Word size of FreeCAD: 64-bit
Version: 0.21.2.33771 (Git)
Build type: Release
Branch: (HEAD detached at b9bfa5c)
Hash: b9bfa5c5507506e4515816414cd27f4851d00489
Python 3.11.7, Qt 5.15.10, Coin 4.0.0, Vtk 8.2.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * fasteners 0.5.0
  * A2plus 0.4.61
  * WebTools 1.0.0

@adrianinsaval
Copy link
Collaborator

this should be an upstream issue. Using PID for that isn't a good idea. the Flatpak being in a container, it uses namespaces for PID.

what should be used instead of PID then? I believe this is also the root cause of #4

@adrianinsaval adrianinsaval transferred this issue from flathub/org.freecadweb.FreeCAD Oct 30, 2024
@adrianinsaval
Copy link
Collaborator

this has now been fixed upstream and will be available on flathub soon

@adrianinsaval adrianinsaval closed this as not planned Won't fix, can't repro, duplicate, stale Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants