[GRASS-dev] [GRASS GIS] #1960: wingrass wx carto composer: adding north arrow causes Error and traceback

#1960: wingrass wx carto composer: adding north arrow causes Error and traceback
-----------------------------------+----------------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.3
Component: wxGUI | Version: svn-develbranch6
Keywords: cartographic composer | Platform: MSWindows XP
      Cpu: x86-32 |
-----------------------------------+----------------------------------------
Hi,

testing latest 6.5svn nightly wingrass build.

If you open the wxGUI cartographic composer and pick 'add map element'
then 'North Arrow' you get a pop-up Error message window (screenshot
attached), twice, and the following different error message in the wxGUI
command console module output window:

{{{
Traceback (most recent call last):
   File "C:\Program Files\GRASS GIS 6.5.svn\Python27\lib
\site-packages\wx-2.8-msw-
unicode\wx\lib\filebrowsebutton.py", line 140, in OnChanged

self.changeCallback(evt)
   File "c:\Program Files\GRASS GIS
6.5.svn\etc\wxpython\psmap\dialogs.py", line 4272, in
OnDirChanged

self.OnImageSelectionChanged(None)
   File "c:\Program Files\GRASS GIS
6.5.svn\etc\wxpython\psmap\dialogs.py", line 4317, in
OnImageSelectionChanged

self.ClearPreview()
   File "c:\Program Files\GRASS GIS
6.5.svn\etc\wxpython\psmap\dialogs.py", line 4386, in
ClearPreview

mask = wx.Mask(buffer, wx.WHITE)
   File "C:\Program Files\GRASS GIS 6.5.svn\Python27\lib
\site-packages\wx-2.8-msw-unicode\wx\_gdi.py", line 1212, in
__init__

_gdi_.Mask_swiginit(self,_gdi_.new_Mask(*args, **kwargs))
wx._core
.
PyAssertionError
:
C++ assertion "!bitmap.GetSelectedInto()" failed at
..\..\src\msw\bitmap.cpp(1509) in wxMask::Create(): bitmap
can't be selected in another DC
Traceback (most recent call last):
   File "c:\Program Files\GRASS GIS
6.5.svn\etc\wxpython\psmap\frame.py", line 676, in
OnAddNorthArrow

dlg = NorthArrowDialog(self, id = id, settings =
self.instruction)
   File "c:\Program Files\GRASS GIS
6.5.svn\etc\wxpython\psmap\dialogs.py", line 4490, in
__init__

imagePanelName = _("North Arrow"))
   File "c:\Program Files\GRASS GIS
6.5.svn\etc\wxpython\psmap\dialogs.py", line 4093, in
__init__

self.OnDirChanged(None)
   File "c:\Program Files\GRASS GIS
6.5.svn\etc\wxpython\psmap\dialogs.py", line 4272, in
OnDirChanged

self.OnImageSelectionChanged(None)
   File "c:\Program Files\GRASS GIS
6.5.svn\etc\wxpython\psmap\dialogs.py", line 4317, in
OnImageSelectionChanged

self.ClearPreview()
   File "c:\Program Files\GRASS GIS
6.5.svn\etc\wxpython\psmap\dialogs.py", line 4386, in
ClearPreview

mask = wx.Mask(buffer, wx.WHITE)
   File "C:\Program Files\GRASS GIS 6.5.svn\Python27\lib
\site-packages\wx-2.8-msw-unicode\wx\_gdi.py", line 1212, in
__init__

_gdi_.Mask_swiginit(self,_gdi_.new_Mask(*args, **kwargs))
wx._core
.
PyAssertionError
:
C++ assertion "!bitmap.GetSelectedInto()" failed at
..\..\src\msw\bitmap.cpp(1509) in wxMask::Create(): bitmap
can't be selected in another DC
}}}

and no image selection gui window. On my linux it works.

(the first half of the above is very similar to the traceback error in
#1959)

thanks,
Hamish

ps- todo: replace those eps with native GRASS symbols

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

#1960: wingrass wx carto composer: adding north arrow causes Error and traceback
---------------------------------------------+------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.3
Component: wxGUI | Version: svn-develbranch6
Keywords: cartographic composer, wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
---------------------------------------------+------------------------------
Changes (by hamish):

  * keywords: cartographic composer => cartographic composer, wingrass

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

#1960: wingrass wx carto composer: adding north arrow causes Error and traceback
---------------------------------------------+------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.3
Component: wxGUI | Version: svn-develbranch6
Keywords: cartographic composer, wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
---------------------------------------------+------------------------------

Comment(by annakrat):

The first part is the same problem as in #1959. The second part is the
same problem as with preview, try r56121.

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

#1960: wingrass wx carto composer: adding north arrow causes Error and traceback
---------------------------------------------+------------------------------
Reporter: hamish | Owner: grass-dev@…
     Type: defect | Status: new
Priority: major | Milestone: 6.4.3
Component: wxGUI | Version: svn-develbranch6
Keywords: cartographic composer, wingrass | Platform: MSWindows XP
      Cpu: x86-32 |
---------------------------------------------+------------------------------

Comment(by annakrat):

This particular issue seems to be fixed but there is another error, see
#1959 comment:3

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

#1960: wingrass wx carto composer: adding north arrow causes Error and traceback
---------------------------+------------------------------------------------
  Reporter: hamish | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: major | Milestone: 6.4.3
Component: wxGUI | Version: svn-develbranch6
Resolution: fixed | Keywords: cartographic composer, wingrass
  Platform: MSWindows XP | Cpu: x86-32
---------------------------+------------------------------------------------
Changes (by annakrat):

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

Comment:

Replying to [comment:3 annakrat]:
> This particular issue seems to be fixed but there is another error, see
#1959 comment:3
I am closing this ticket, the remaining problem is in #1959

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