[GRASS-dev] [GRASS GIS] #2542: wxGUI adding text : PyAssertionError : C++ assertion "!m_cols || idx < (size_t)m_cols" failed at ../src/common/sizer.cpp(1980) in AddGrowableCol(): invalid column index

#2542: wxGUI adding text : PyAssertionError : C++ assertion "!m_cols || idx <
(size_t)m_cols" failed at ../src/common/sizer.cpp(1980) in
AddGrowableCol(): invalid column index
-------------------------+--------------------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: wxGUI | Version: svn-releasebranch70
Keywords: wxGUI text | Platform: Unspecified
      Cpu: Unspecified |
-------------------------+--------------------------------------------------
In the grass7release wxGUI, trying to add text to the display window gives
me the following error (and the gui for adding text does not open):

{{{
Traceback (most recent call last):
   File
"/data/home/mlennert/SRC/GRASS/grass70release/dist.x86_64
-unknown-linux-gnu/gui/wxpython/mapdisp/frame.py", line
1252, in OnAddText

size = (400, 200))
   File
"/data/home/mlennert/SRC/GRASS/grass70release/dist.x86_64
-unknown-linux-gnu/gui/wxpython/mapwin/decorations.py", line
323, in __init__

box.AddGrowableCol(1)
   File "/usr/lib/python2.7/dist-
packages/wx-3.0-gtk2/wx/_core.py", line 15364, in
AddGrowableCol

return _core_.FlexGridSizer_AddGrowableCol(*args, **kwargs)
wx._core
.
PyAssertionError
:
C++ assertion "!m_cols || idx < (size_t)m_cols" failed at
../src/common/sizer.cpp(1980) in AddGrowableCol(): invalid
column index

}}}

This is on Debian testing, with wxpython 3.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2542&gt;
GRASS GIS <http://grass.osgeo.org>

#2542: wxGUI adding text : PyAssertionError : C++ assertion "!m_cols || idx <
(size_t)m_cols" failed at ../src/common/sizer.cpp(1980) in
AddGrowableCol(): invalid column index
------------------------------------+---------------------------------------
Reporter: mlennert | Owner: grass-dev@…
     Type: defect | Status: new
Priority: critical | Milestone: 7.0.0
Component: wxGUI | Version: svn-releasebranch70
Keywords: wxGUI text, wxPython 3 | Platform: Unspecified
      Cpu: Unspecified |
------------------------------------+---------------------------------------
Changes (by annakrat):

  * keywords: wxGUI text => wxGUI text, wxPython 3

Comment:

Should be fixed r64030 and backported. Please test and close it.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2542#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#2542: wxGUI adding text : PyAssertionError : C++ assertion "!m_cols || idx <
(size_t)m_cols" failed at ../src/common/sizer.cpp(1980) in
AddGrowableCol(): invalid column index
--------------------------+-------------------------------------------------
  Reporter: mlennert | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: critical | Milestone: 7.0.0
Component: wxGUI | Version: svn-releasebranch70
Resolution: fixed | Keywords: wxGUI text, wxPython 3
  Platform: Unspecified | Cpu: Unspecified
--------------------------+-------------------------------------------------
Changes (by mlennert):

  * status: new => closed
  * resolution: => fixed

Comment:

Replying to [comment:1 annakrat]:
> Should be fixed r64030 and backported. Please test and close it.

Yes, fixed. Thanks a lot !

Closing.

Moritz

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2542#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>