#124 get_names_of_type error when deleting objects

v1.6.0.0
closed-fixed
None
5
2013-03-29
2012-04-20
Thomas Holder
No

I recently occasionally encounter an error when deleting or renaming objects, on Linux and Windows. Looks like "get_names_of_type" is not thread safe.

PyMOL>set_name foo, morph_in
Cmd-Error: unrecognized name.
CmdException Exception in Tk callback
Function: <function callit at 0x0000000005193518> (type: <type 'function'>)
Args: ()
Traceback (innermost last):
File "C:\Program Files\PyMOL-1.5.0.1\PyMOL/modules\Pmw\Pmw_1_2\lib\PmwBase.py", line 1747, in __call__
return apply(self.func, args)
File "C:\Program Files\PyMOL-1.5.0.1\PyMOL\py27\lib\lib-tk\Tkinter.py", line 495, in callit
func(*args)
File "C:\Program Files\PyMOL-1.5.0.1\PyMOL/modules\pmg_tk\skins\normal\__init__.py", line 518, in update_volume
if len(self.cmd.get_names_of_type("object:volume",public=1))>0:
File "C:\Program Files\PyMOL-1.5.0.1\PyMOL/modules\pymol\querying.py", line 1447, in get_names_of_type
types = map(_self.get_type,obj)
File "C:\Program Files\PyMOL-1.5.0.1\PyMOL/modules\pymol\querying.py", line 1214, in get_type
if _raising(r,_self): raise pymol.CmdException
CmdException: <pymol.CmdException instance at 0x00000000090E5F08>

Discussion

  • Jason Vertrees
    Jason Vertrees
    2012-05-30

    • assigned_to: nobody --> inchoate
    • status: open --> pending-fixed
     
  • Jason Vertrees
    Jason Vertrees
    2012-05-30

    Fixed.

     
  • Thomas Holder
    Thomas Holder
    2013-03-29

    • status: pending-fixed --> closed-fixed
    • milestone: --> v1.6.0.0