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

FC shall not just crash and disappear from screen when encountering an exception. #13474

Open
2 tasks done
ajohn77 opened this issue Apr 15, 2024 · 1 comment
Open
2 tasks done
Labels
Mod: Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD Type: Feature FR for improvements or new features

Comments

@ajohn77
Copy link

ajohn77 commented Apr 15, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

FC shall not just crash and disappear from screen when encountering an exception.

It shall catch all exceptions internally and try to survive a bit longer while trying:

  • to revert the change which forced the crash (if possible)
  • to allow the user to backup its work (if possible)
  • to create a bug report or error message (mandatory)

It is often not feasible to reproduce the crash repeating the action with running debugger so any information from actual crash shall be saved already at the very moment of the crash.

User would expect as a minimum an error message, silent disappearing from screen is clearly inappropriate behavior.

Next: all modules (Sketcher, TechDraw etc.) shall have their high level exception catching mechanism so the failure of - e.g. missing Constrain in sketcher - doesn't crash the whole FC.

Full version info

[code]
OS: Ubuntu 22.04.4 LTS (KDE/plasma)
Word size of FreeCAD: 64-bit
Version: 0.21.2.33771 (Git)
Build type: Release
Branch: (HEAD detached at 0.21.2)
Hash: b9bfa5c5507506e4515816414cd27f4851d00489
Python 3.10.12, Qt 5.15.3, Coin 4.0.0, Vtk 9.1.0, OCC 7.6.3
Locale: English/United States (en_US)
[/code]

Subproject(s) affected?

None

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@maxwxyz
Copy link
Collaborator

maxwxyz commented Apr 15, 2024

@maxwxyz maxwxyz added Type: Feature FR for improvements or new features Process labels Apr 15, 2024
@maxwxyz maxwxyz added Mod: Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD and removed Process labels Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mod: Core Issue or PR touches core sections (App, Gui, Base) of FreeCAD Type: Feature FR for improvements or new features
Projects
None yet
Development

No branches or pull requests

2 participants