[GRASS-dev] Problems 3D rendering with WxNviz (Ubuntu)

Johannes Radinger johannesradinger at gmail.com
Fri Mar 28 04:46:50 PDT 2014


Hi Anna,
Hi all,

to report back. I know successfully built and installed wxPython3.
Subsequently I rebuilt and installed GRASS7
based on the newest revision. Here my system and version output:

GRASS version:
7.0.svn
GRASS SVN Revision:
59491M
Build Date:
2014-03-28
Build Platform:
i686-pc-linux-gnu
GDAL/OGR:
1.10.0
PROJ.4:
4.8.0
GEOS:
3.3.8
SQLite:
3.7.9
Python:
2.7.3
wxPython:
3.0.0.0
Platform:
Linux-3.2.0-60-generic-pae-i686-with-Ubuntu-12.04-precise


GRASS 7.0.svn (2014)
libgis Revision: 59317
libgis Date: 2014-03-24 20:38:32 +0100 (Mon, 24 Mar 2014)
PROJ.4: 4.8.0
GDAL/OGR: 1.10.0
GEOS: 3.3.8
SQLite: 3.7.9

I again tried setting all 4 possible numbers for the depth buffer. But
still, GRASS does not render any 3D rastermap. In contrast to before, now I
don't the message that I should try changing the buffer number.
Here some output from the Python Shell that may or may not be helpful:

import wx
import wxversion
wx.glcanvas.GLCanvas_IsDisplaySupported([0,16,24,32])
False
wx.glcanvas.GLCanvas_IsDisplaySupported([0])
False
wx.glcanvas.GLCanvas_IsDisplaySupported([16])
False
wx.glcanvas.GLCanvas_IsDisplaySupported([24])
False
wx.glcanvas.GLCanvas_IsDisplaySupported([32])
False
wxversion.getInstalled
<function getInstalled at 0xb6f89bfc>
wxversion.getInstalled()
['3.0-gtk2']


I get now a problem reported in the GUI's command console which is printed
when I start the 3D viewing mode:
Starting 3D view
mode...
Traceback (most recent call last):
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/mapdisp/to
olbars.py", line 230, in OnSelectTool

self.parent.AddNviz()
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/mapdisp/fr
ame.py", line 362, in AddNviz

Map = self.Map, tree = self.tree, lmgr = self._layerManager)
  File "/usr/local/grass-7.0.svn/etc/gui/wxpython/nviz/mapwi
ndow.py", line 118, in __init__

self.context = glcanvas.GLContext(self)
  File "/usr/local/lib/python2.7/dist-
packages/wx-3.0-gtk2/wx/glcanvas.py", line 67, in __init__

_glcanvas.GLContext_swiginit(self,_glcanvas.new_GLContext(*a
rgs, **kwargs))
wx._core
.
PyAssertionError
:
C++ assertion "vi" failed at /usr/local/src/wxPython-
src-3.0.0.0/src/unix/glx11.cpp(59) in wxGLContext(): invalid
visual for OpenGL

So maybe this can give some hints. Just let me know what I can do that you
can help me solving the problem.

Best,
Johannes


On Wed, Mar 26, 2014 at 5:40 PM, Anna Petrášová <kratochanna at gmail.com>wrote:

>
>
>
> On Wed, Mar 26, 2014 at 5:27 AM, Johannes Radinger <
> johannesradinger at gmail.com> wrote:
>
>> Hi,
>>
>> I just reinstalled wxPython and recompiled GRASS to be sure that I am
>> working with the newest versions.
>> The problem still persists. Here how I installed wxPython:
>>
>>   sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-doc wx2.8-examples wx2.8-headers wx2.8-i18n
>>
>> and then I also followed another procedure explained here:
>> http://stackoverflow.com/questions/14007557/installing-wxpython-on-ubuntu-12-04
>>
>>    1. First make sure that you have Python installed
>>    2. Install wxGTK 2.8 with the command, 'sudo apt-get install
>>    python-wxgtk2.8'
>>    3. Run the command, 'apt-get source -d wxwidgets2.8'
>>    4. Now run, 'dpkg-source -x wxwidgets2.8_2.8.12.1-6ubuntu2.dsc'
>>    5. cd wxwidgets2.8-2.8.12.1
>>    6. cd wxPython
>>    7. Now run the command, 'sudo python setup.py install'
>>    8. wxPython and wxWidgets are now successfully installed!
>>
>>
>> Now it seems that two versions are installed
>> >>> import wxversion
>> >>> wxversion.getInstalled()
>> ['2.8-gtk2-unicode', '2.8-gtk2-unicode']
>>
>> Does that help?
>>
>> Is there a way the GRASS itself reports the versions of e.g. wxpython?
>> Maybe via the g.version command?!
>>
>
> When you go in menu Help ->About system you should be able to see it.
> Also, when you go to Python Shell, you can type:
> import wx
> wx.version()
>
> In wxPython >= 2.9, there is a method IsDisplaySupported which would help
> to understand more about the problem [1]. The only thing which I know you
> could try is to install wxPython 3. You can either compile it yourself or
> update Ubuntu to the latest one and install the package. However I can't
> guarantee it helps.
>
> Anna
>
> [1]
> http://stackoverflow.com/questions/14715739/how-can-i-determine-the-max-allowable-wx-gl-depth-size-for-a-wx-glcanvas/
>
>>
>>
>> /Johannes
>>
>>
>>
>> On Wed, Mar 26, 2014 at 5:11 AM, Anna Petrášová <kratochanna at gmail.com>wrote:
>>
>>>
>>>
>>>
>>> On Tue, Mar 25, 2014 at 6:30 AM, Johannes Radinger <
>>> johannesradinger at gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> it wanted to try out the 3D capabilities of GRASS 7. However when I
>>>> change to the 3d view (WxNviz) nothing is rendered, instead I get the
>>>> message that I should try a different depth buffer number. This procedure
>>>> is also mentioned in the wiki (http://grasswiki.osgeo.org/wiki/WxNviz).
>>>> However, I tried now all possible numbers (0,16,24,32) saved the
>>>> preferences and restarted the gui with the new settings but the problem
>>>> persists (BTW, the possible number 0 is mentioned in the wiki but not in
>>>> the preferences GUI).
>>>>
>>>> I am not sure what is causing the problem in my case. Here I just need
>>>> to mention that I am working on a slightly special set up. GRASS is running
>>>> on a virtual Ubuntu machine (via VMWare) which is installed on a central
>>>> multi core machine (Intel® Xeon(R) CPU X5675 @ 3.07GHz × 8, Ubuntu 12.04,
>>>> 32 bit). I connect to the virtual machine via a remote desktop connection
>>>> (RDP connection) from a so called thin-client.
>>>>
>>>> My GRASS setup as follows:
>>>> version=7.0.svn
>>>> date=2014
>>>> revision=59321M
>>>> build_date=2014-03-25
>>>> build_platform=i686-pc-linux-gnu
>>>> libgis_revision=59317
>>>> libgis_date="2014-03-24 20:38:32 +0100 (Mon, 24 Mar 2014) "
>>>> proj4=4.8.0
>>>> gdal=1.10.0
>>>> geos=3.3.8
>>>> sqlite=3.7.9
>>>>
>>>>
>>>> Does anyone have a suggestion how to deal with that problem or how to
>>>> find out where the exact problem (remote connection, Ubuntu, GRASS) is
>>>> located?
>>>>
>>>
>>> Could you post also wxPython version?
>>>
>>> Thanks
>>> Anna
>>>
>>>
>>>> Thanks,
>>>> Johannes
>>>>
>>>> _______________________________________________
>>>> grass-dev mailing list
>>>> grass-dev at lists.osgeo.org
>>>> http://lists.osgeo.org/mailman/listinfo/grass-dev
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20140328/3f85e979/attachment.html>


More information about the grass-dev mailing list