[GRASS-dev] [GRASS GIS] #2211: g.gui.iclass raise a PyAssertionError

GRASS GIS trac at osgeo.org
Thu Mar 6 08:10:20 PST 2014


#2211: g.gui.iclass raise a PyAssertionError
--------------------------+-------------------------------------------------
 Reporter:  zarch         |       Owner:  grass-dev@…              
     Type:  defect        |      Status:  new                      
 Priority:  normal        |   Milestone:  7.0.0                    
Component:  Display       |     Version:  svn-trunk                
 Keywords:  g.gui.iclass  |    Platform:  Unspecified              
      Cpu:  Unspecified   |  
--------------------------+-------------------------------------------------
 I'm trying to use g.gui.iclass but it seems broken I got this error when I
 try to add a class with the class manager.


 {{{
 Traceback (most recent call last):
   File
 "/home/pietro/docdat/src/gis/grass/grass_trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/iclass/dialogs.py", line
 318, in OnAddCategory

 self.catList.AddCategory(cat = cat, name = defaultName,
 color = defaultColor)
   File
 "/home/pietro/docdat/src/gis/grass/grass_trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/iclass/dialogs.py", line
 414, in AddCategory

 self.stats_data.AddStatistics(cat, name, color)
   File
 "/home/pietro/docdat/src/gis/grass/grass_trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/iclass/statistics.py",
 line 58, in AddStatistics

 self.statisticsAdded.emit(cat = cat, name = name, color =
 color)
   File
 "/home/pietro/docdat/src/gis/grass/grass_trunk/dist.x86_64
 -unknown-linux-gnu/etc/python/grass/pydispatch/signal.py",
 line 229, in emit

 dispatcher.send(signal=self, *args, **kwargs)
   File
 "/home/pietro/docdat/src/gis/grass/grass_trunk/dist.x86_64
 -unknown-linux-
 gnu/etc/python/grass/pydispatch/dispatcher.py", line 343, in
 send

 **named
   File
 "/home/pietro/docdat/src/gis/grass/grass_trunk/dist.x86_64
 -unknown-linux-
 gnu/etc/python/grass/pydispatch/robustapply.py", line 57, in
 robustApply

 return receiver(*arguments, **named)
   File
 "/home/pietro/docdat/src/gis/grass/grass_trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/iscatt/controllers.py",
 line 1055, in AddCategory

 self.cats_mgr.AddCategory(cat_id = cat, name = name, color =
 color, nstd = stats.nstd)
   File
 "/home/pietro/docdat/src/gis/grass/grass_trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/iscatt/controllers.py",
 line 679, in AddCategory

 color = self.cats[cat_id]["color"] )
   File
 "/home/pietro/docdat/src/gis/grass/grass_trunk/dist.x86_64
 -unknown-linux-gnu/etc/python/grass/pydispatch/signal.py",
 line 229, in emit

 dispatcher.send(signal=self, *args, **kwargs)
   File
 "/home/pietro/docdat/src/gis/grass/grass_trunk/dist.x86_64
 -unknown-linux-
 gnu/etc/python/grass/pydispatch/dispatcher.py", line 343, in
 send

 **named
   File
 "/home/pietro/docdat/src/gis/grass/grass_trunk/dist.x86_64
 -unknown-linux-
 gnu/etc/python/grass/pydispatch/robustapply.py", line 57, in
 robustApply

 return receiver(*arguments, **named)
   File
 "/home/pietro/docdat/src/gis/grass/grass_trunk/dist.x86_64
 -unknown-linux-gnu/etc/gui/wxpython/iscatt/frame.py", line
 403, in Update

 self.RefreshItems(0, len(self.cats_mgr.GetCategories()))
   File "/usr/lib64/python2.7/site-
 packages/wx-3.0-gtk2/wx/_controls.py", line 4635, in
 RefreshItems

 return _controls_.ListCtrl_RefreshItems(*args, **kwargs)
 wx._core
 .
 PyAssertionError
 :
 C++ assertion "lineTo < GetItemCount()" failed at
 ./src/generic/listctrl.cpp(1923) in RefreshLines(): invalid
 line range
 }}}

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2211>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list