[GRASS-dev] [GRASS GIS] #1639: wingrass: launching wxNviz fails

#1639: wingrass: launching wxNviz fails
------------------------------+---------------------------------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: wxGUI | Version: svn-releasebranch64
Keywords: wingrass, wxnviz | Platform: MSWindows 2K
      Cpu: Unspecified |
------------------------------+---------------------------------------------
When launching wxNviz on Windows (OSGeo4W framework)

{{{
Traceback (most recent call last):
   File "C:\OSGeo4W_dev\apps\grass\grass-6.4.3svn\etc\wxpytho
n\mapdisp\toolbars.py", line 229, in OnSelectTool

self.parent.AddNviz()
   File "C:\OSGeo4W_dev\apps\grass\grass-6.4.3svn\etc\wxpytho
n\mapdisp\frame.py", line 299, in AddNviz

self._layerManager.AddNvizTools()
   File "C:\OSGeo4W_dev\apps\grass\grass-6.4.3svn\etc\wxpytho
n\lmgr\frame.py", line 299, in AddNvizTools

display = self.curr_page.maptree.GetMapDisplay())
   File "C:\OSGeo4W_dev\apps\grass\grass-6.4.3svn\etc\wxpytho
n\nviz\tools.py", line 96, in __init__

self.AddPage(page = self._createAnimationPage(),
   File "C:\OSGeo4W_dev\apps\grass\grass-6.4.3svn\etc\wxpytho
n\nviz\tools.py", line 385, in _createAnimationPage

usage = "record", label = _("Record"))
   File "C:\OSGeo4W_dev\apps\grass\grass-6.4.3svn\etc\wxpytho
n\gui_core\widgets.py", line 197, in __init__

buffer.SetMaskColour(maskColor)
   File "C:\OSGeo4W_dev\apps\Python27\lib\site-
packages\wx-2.8-msw-unicode\wx\_gdi.py", line 649, in
SetMaskColour

return _gdi_.Bitmap_SetMaskColour(*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
}}}

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

#1639: wingrass: launching wxNviz fails
------------------------------+---------------------------------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: wxGUI | Version: svn-releasebranch64
Keywords: wingrass, wxnviz | Platform: MSWindows 2K
      Cpu: Unspecified |
------------------------------+---------------------------------------------

Comment(by annakrat):

I haven't found any better solution than this (r51410). I'll backport it
to grass 6.5 and 7.

Anna

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

#1639: wingrass: launching wxNviz fails
------------------------------+---------------------------------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: wxGUI | Version: svn-releasebranch64
Keywords: wingrass, wxnviz | Platform: MSWindows 2K
      Cpu: Unspecified |
------------------------------+---------------------------------------------

Comment(by annakrat):

Also ported to grass 6.5 and 7 in r51412, r51414.

I'm closing the ticket for now. Please reopen if needed.

Anna

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

#1639: wingrass: launching wxNviz fails
------------------------------+---------------------------------------------
Reporter: martinl | Owner: grass-dev@…
     Type: defect | Status: new
Priority: blocker | Milestone: 6.4.3
Component: wxGUI | Version: svn-releasebranch64
Keywords: wingrass, wxnviz | Platform: MSWindows 2K
      Cpu: Unspecified |
------------------------------+---------------------------------------------

Comment(by hellik):

Replying to [comment:2 annakrat]:
> Also ported to grass 6.5 and 7 in r51412, r51414.
>
> I'm closing the ticket for now. Please reopen if needed.
>
> Anna

tested here with

osgeo4w-wingrass6.4.3svn r52715
osgeo4w-wingrass6.5svn r52495

seems to work

Helmut

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

#1639: wingrass: launching wxNviz fails
---------------------------+------------------------------------------------
  Reporter: martinl | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: blocker | Milestone: 6.4.3
Component: wxGUI | Version: svn-releasebranch64
Resolution: fixed | Keywords: wingrass, wxnviz
  Platform: MSWindows 2K | Cpu: Unspecified
---------------------------+------------------------------------------------
Changes (by neteler):

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

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