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

Draft: cancelling the Split command with Esc results in unhandled exception #13951

Closed
2 tasks done
furgo16 opened this issue May 11, 2024 · 1 comment · Fixed by #14059
Closed
2 tasks done

Draft: cancelling the Split command with Esc results in unhandled exception #13951

furgo16 opened this issue May 11, 2024 · 1 comment · Fixed by #14059
Labels
Bug This issue or PR is related to a bug WB Draft Related to the Draft Workbench

Comments

@furgo16
Copy link
Contributor

furgo16 commented May 11, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Problem description

Steps to reproduce:

  1. Open the attached file
  2. Switch to Draft workbench
  3. Select a line
  4. Activate the Trim command S, P
  5. Press Esc to cancel command
  6. The following unhandled exception is shown. FreeCAD needs to be restarted to be able to use the Split command again.
12:50:49  Traceback (most recent call last):
  File "/snap/freecad/1015/usr/Mod/Draft/draftutils/todo.py", line 140, in doTasks
    f()
TypeError: Tracker._removeSwitch() missing 1 required positional argument: 'switch'

12:50:49  ToDo.doTasks, Unexpected error:
<class 'TypeError'>
in <bound method Tracker._removeSwitch of <draftguitools.gui_trackers.PlaneTracker object at 0x7f0d0180f4f0>>(None)

Full version info

OS: Ubuntu Core 22 (ubuntu:GNOME/ubuntu)
Word size of FreeCAD: 64-bit
Version: 0.22.0dev.37243 (Git) Snap 1015
Build type: Release
Branch: main
Hash: 0095e52466c79c2135fce860a341554f3f51156c
Python 3.10.12, Qt 5.15.10, Coin 4.0.0, Vtk 7.1.1, OCC 7.7.1
Installed mods: 
  * OpenTheme 2024.4.20
  * BIM 2021.12.0
  * Curves 0.6.35
  * ezydxf
  * ExplodedAssembly
  * BillOfMaterials 0.0.8.2
  * Ondsel-Lens 2024.4.16.01
  * Assembly4 0.50.12

Subproject(s) affected?

Draft

Anything else?

  • File to reproduce
  • Update: the file is not even needed to reproduce the bug. Simply start a new document, switch to Draft, activate the Split command and press Esc.

Code of Conduct

  • I agree to follow this project's Code of Conduct
@furgo16 furgo16 changed the title Draft: exception when cancelling Split command Draft: cancelling the Split command with Esc results in exception May 11, 2024
@maxwxyz maxwxyz added Bug This issue or PR is related to a bug WB Draft Related to the Draft Workbench labels May 11, 2024
@furgo16 furgo16 changed the title Draft: cancelling the Split command with Esc results in exception Draft: cancelling the Split command with Esc results in unhandled exception May 11, 2024
@furgo16
Copy link
Contributor Author

furgo16 commented May 15, 2024

This seems to be a regression, as I cannnot reproduce it in FreeCAD 0.21. Could someone else confirm?

Roy-043 added a commit to Roy-043/FreeCAD that referenced this issue May 16, 2024
Roy-043 added a commit that referenced this issue May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This issue or PR is related to a bug WB Draft Related to the Draft Workbench
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants