View Issue Details

IDProjectCategoryView StatusLast Update
0000821FreeCADBugpublic2012-09-16 15:43
Reportermjdemilliano Assigned Toyorik  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Fixed in Version0.13 
Summary0000821: IndexError in DraftSnap
DescriptionWhen moving any object, the following error appears in the console:

Traceback (most recent call last):
  File "/usr/local/Mod/Draft/DraftTools.py", line 1809, in action
    point,ctrlPoint,info = getPoint(self,arg)
  File "/usr/local/Mod/Draft/DraftTools.py", line 144, in getPoint
    point = FreeCADGui.Snapper.snap(args["Position"],lastpoint=last,active=amod,constrain=cmod)
  File "/usr/local/Mod/Draft/DraftSnap.py", line 291, in snap
    if snap[0] == None:
IndexError: list index out of range

On inspection, the variable `snaps' is a list with an empty list:
    >>> print snaps
    [[]]
Additional InformationVersion: current Git master branch on Linux
TagsNo tags attached.
FreeCAD Information

Activities

yorik

2012-09-16 15:43

administrator   ~0002400

I cannot reproduce this error, as far as I can test all works ok, probably some exceptional case. I added code to handle this specific error, so at least it should work without spitting error messages. (commit 1593ce9)

If you have more info or precise and complete step-by-step instructions that makes the problem happen, please reopen this bug report...

Issue History

Date Modified Username Field Change
2012-09-02 18:31 mjdemilliano New Issue
2012-09-06 17:59 yorik Status new => assigned
2012-09-06 17:59 yorik Assigned To => yorik
2012-09-16 15:43 yorik Note Added: 0002400
2012-09-16 15:43 yorik Status assigned => closed
2012-09-16 15:43 yorik Resolution open => unable to reproduce
2012-09-16 15:43 yorik Fixed in Version => 0.13