<div dir="ltr">Hi,<div><br></div><div>it crashes because it can't allocate enough memory. There must be some limit given by the operating system how much memory it can allocate (altogether and by chunks). I assume the 64-bit version could help with this.</div><div>If you run</div><div>m.nviz.image elevation_map=elevation output=xxx format=ppm size=640,480</div><div><br></div><div>with large regions, you will get:</div><div><div>Loading raster map <elevation@PERMANENT>...</div><div>Current region rows: 13500, cols: 15000</div><div>ERROR: G_malloc: unable to allocate 810000000 bytes of memory</div></div><div><br></div><div>Anna<br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 28, 2015 at 4:25 AM, Helmut Kudrnovsky <span dir="ltr"><<a href="mailto:hellik@web.de" target="_blank">hellik@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Markus Neteler wrote<br>
<span class="">> Hi,<br>
><br>
> while teaching our IRSAE course<br>
> (<a href="http://gis.cri.fmach.it/grass-gis-and-r-course/" rel="noreferrer" target="_blank">http://gis.cri.fmach.it/grass-gis-and-r-course/</a>) we did not have<br>
> success to perform a NVIZ exercise on Windows.<br>
><br>
> Switching to 3D mode leads to a GUI crash when loading the "elevation"<br>
> DEM. We used "elevation" in the new (yet to be improved) Piemont<br>
> location [1].<br>
> No error message shown, just crash.<br>
><br>
> If anyone wants to test:<br>
><br>
> wget <a href="http://geodati.fmach.it/gfoss_geodata/grassdata_course_version1.7z" rel="noreferrer" target="_blank">http://geodati.fmach.it/gfoss_geodata/grassdata_course_version1.7z</a><br>
><br>
> # unpack (7a is contained eg in p7zip-plugins package):<br>
> 7z x grassdata_course_version1.7z<br>
><br>
> --> grassdata_piemonte/user1<br>
><br>
> Note: It is a new issue since 7.0.1, in 7.0.0 which is installed on<br>
> the same machine no such issue.<br>
><br>
> I suspect that it is the elevation map size causing the issue since<br>
> the DEM is larger than that of the NC dataset.<br>
><br>
> Markus<br>
<br>
</span>I confirm this. in large regions, 3D view crashes.<br>
<br>
tested here with<br>
<br>
System Info<br>
GRASS Version: 7.0.2<br>
<br>
and<br>
<br>
System Info<br>
GRASS Version: 7.1.svn<br>
<br>
and the piemonte data set (but also with other large rasters):<br>
<br>
g.region -p -a raster=elevation@PERMANENT align=elevation@PERMANENT<br>
projection: 1 (UTM)<br>
zone:       32<br>
datum:      wgs84<br>
ellipsoid:  wgs84<br>
north:      5146000<br>
south:      4879500<br>
west:       313000<br>
east:       517000<br>
nsres:      25<br>
ewres:      25<br>
rows:       10660<br>
cols:       8160<br>
cells:      86985600<br>
<br>
attached a debug=3 output ( wxnviz_debug.txt<br>
<<a href="http://osgeo-org.1560.x6.nabble.com/file/n5243063/wxnviz_debug.txt" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/file/n5243063/wxnviz_debug.txt</a>>  )<br>
<br>
<br>
<br>
<br>
<br>
<br>
-----<br>
best regards<br>
Helmut<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/winGRASS-OSGeo4W-crashes-when-switching-to-3D-view-tp5243039p5243063.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/winGRASS-OSGeo4W-crashes-when-switching-to-3D-view-tp5243039p5243063.html</a><br>
Sent from the Grass - Dev mailing list archive at Nabble.com.<br>
<div class=""><div class="h5">_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a></div></div></blockquote></div><br></div></div></div>