Opened 12 years ago

Closed 12 years ago

#1639 closed defect (fixed)

wingrass: launching wxNviz fails

Reported by: martinl Owned by: grass-dev@…
Priority: blocker Milestone: 6.4.3
Component: wxGUI Version: svn-releasebranch64
Keywords: wingrass, wxnviz Cc:
CPU: Unspecified Platform: MSWindows 2K

Description

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

Change History (4)

comment:1 by annakrat, 12 years ago

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

Anna

comment:2 by annakrat, 12 years ago

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

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

Anna

in reply to:  2 comment:3 by hellik, 12 years ago

Replying to 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

comment:4 by neteler, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.