View Issue Details

IDProjectCategoryView StatusLast Update
0004462DraftBugpublic2020-10-16 14:04
Reporterhardrock Assigned Tochrisb  
PrioritynormalSeveritymajorReproducibilitysometimes
Status closedResolutionunable to reproduce 
Platformx86-64OSUbuntuOS Version18.04
Product Version0.19 
Fixed in Version0.19 
Summary0004462: Upgrade from shell to solid failed - UnboundLocalError
DescriptionTherhe is number of faces. Need to make solid from them.
Use Draft Upgrade to make shell. Use it again to make solid -> UnboundLocalError.
Steps To Reproduce1. Select all faces
2. Use Draft Upgrade -> Shell will appear
3. Select shell, use Draft Upgrade -> error
Additional InformationReport

22:30:42 ----------------
22:30:42 GuiCommand: Upgrade
22:30:42 ----------------
22:30:42 Upgrade objects
22:30:42 Found several objects: creating a shell
22:30:45 ----------------
22:30:45 GuiCommand: Upgrade
22:30:45 ----------------
22:30:45 Upgrade objects
22:30:45 Traceback (most recent call last):
  File "/usr/share/freecad-daily/Mod/Draft/draftutils/todo.py", line 167, in doTasks
    Gui.doCommand(string)
  File "<string>", line 1, in <module>
  File "/usr/share/freecad-daily/Mod/Draft/draftfunctions/upgrade.py", line 416, in upgrade
    result = makeSolid(objects[0])
  File "/usr/share/freecad-daily/Mod/Draft/draftfunctions/upgrade.py", line 148, in makeSolid
    return newobj
UnboundLocalError: local variable 'newobj' referenced before assignment

22:30:45 ToDo.doTasks, Unexpected error:
<class 'UnboundLocalError'>
in ['_objs_ = Draft.upgrade(FreeCADGui.Selection.getSelection(), delete=True)', 'FreeCAD.ActiveDocument.recompute()']
TagsNo tags attached.
FreeCAD InformationOS: Ubuntu 18.04.4 LTS (Unity:Unity7:ubuntu/unity)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.
Build type: Release
Branch: unknown
Hash: b0d7850406e046f3b7a8cd5da261e7d54df6bd99
Python version: 3.6.9
Qt version: 5.9.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: Russian/Russia (ru_RU)

Activities

hardrock

2020-10-15 19:31

reporter  

Kunda1

2020-10-15 21:19

administrator   ~0014878

Discussion thread: https://forum.freecadweb.org/viewtopic.php?f=8&t=51204

chrisb

2020-10-15 22:46

developer   ~0014879

fixed in this version:

OS: macOS 10.15
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22670 (Git)
Build type: Release
Branch: master
Hash: 12155f4aab09047c5697db0c1b3cf93b02edda03
Python version: 3.8.6
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)

jmaustpc

2020-10-16 08:11

manager   ~0014884

Many of the original faces do not pass the check geometry test. So it is expected that this would not work.

Issue History

Date Modified Username Field Change
2020-10-15 19:31 hardrock New Issue
2020-10-15 19:31 hardrock File Added: bug_upgrade_from_shell_to_solid_failed.FCStd
2020-10-15 21:19 Kunda1 Note Added: 0014878
2020-10-15 21:19 Kunda1 Tag Attached: #pending-forum
2020-10-15 22:46 chrisb Assigned To => chrisb
2020-10-15 22:46 chrisb Status new => closed
2020-10-15 22:46 chrisb Resolution open => unable to reproduce
2020-10-15 22:46 chrisb Fixed in Version => 0.19
2020-10-15 22:46 chrisb Note Added: 0014879
2020-10-16 08:11 jmaustpc Note Added: 0014884
2020-10-16 14:04 openBrain Tag Detached: #pending-forum