<div dir="ltr">just to mention that the loop was already running for about 20 hours...<br><br>Juan<br><br><div class="gmail_quote">On Tue, Aug 19, 2008 at 6:31 PM, Juan Manuel Barreneche <span dir="ltr">&lt;<a href="mailto:jumanbar@gmail.com">jumanbar@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Dear users, <br>I got this problem and i don&#39;t have a clue of what it could be happening...<br>
<br>The context: i&#39;m running a loop in which i extract information from a raster map (I work with GRASS and R, using spgrass6 package), and rearrange it to create a matrix. I&#39;ve tried it with small maps and it works smoothly, but in large maps I have to resort to saving data in the hard disk regularly in order to avoid the &quot;cannot allocate vector of size...&quot; problem (builted in the loop itself). <br>

<br>Even so, the message &quot;address (nil), cause &#39;memory not mapped&#39;&quot; appeared, and i really don&#39;t have a clue of what it means. <br><br>I run R 2.7.0 on openSUSE 10.2<br><br>If anyone can be of any help, it&#39;ll be greatly appreciated... below I&#39;m writing the output i got (and the R.Version() output...)<br>

<br>thank you,<br><br>Juan<br><br>&lt;grass output&gt;<br>Null cells excluded from cost evaluation.<br>Source map is: Floating point (double) cell type<br>189 rows, 178 cols<br>Creating some temporary files<br>Reading riosypondas3000<br>

&nbsp;100%<br>Initializing output<br>&nbsp;100%<br>Finding cost path<br>Writing nombre<br>Double cell type.<br>Writing...<br>&nbsp;100%<br>Peak cost value: 13.614127<br>Creating BIL support files...<br>Header File =<br>/home/mastermind/GRASSDATA//yacare1/jmb/.tmp/SpongeBob/nombre.hdr<br>

World File =<br>/home/mastermind/GRASSDATA//yacare1/jmb/.tmp/SpongeBob/nombre.wld<br>Exporting raster as double values (bytes=8)<br>Using the current region settings...<br>north=6681799.617727<br>south=6115500.667945<br>
east=756812.903880<br>
west=223200.856418<br>r=189<br>c=178<br>&nbsp;100%<br>&lt;end of grass output&gt;<br><br>&nbsp;*** caught segfault ***<br>address (nil), cause &#39;memory not mapped&#39;<br><br>Traceback:<br>&nbsp;1: system(&quot;g.proj -j -f&quot;, intern = TRUE, ignore.stderr = ignore.stderr)<br>

&nbsp;2: ifelse(.Platform$OS.type == &quot;windows&quot;, projstr &lt;- system(&quot;g.proj -j -f&quot;,&nbsp;&nbsp;&nbsp;&nbsp; intern = TRUE), projstr &lt;- system(&quot;g.proj -j -f&quot;, intern = TRUE,&nbsp;&nbsp;&nbsp;&nbsp; ignore.stderr = ignore.stderr))<br>

&nbsp;3: getLocationProj()<br>&nbsp;4: nchar(projargs)<br>&nbsp;5: CRS(getLocationProj())<br>&nbsp;6: readRAST6(&quot;nombre&quot;)<br>&nbsp;7: dist.grass(matrizPaisaje.riosypondas3000, &quot;riosypondas3000&quot;,&nbsp;&nbsp;&nbsp;&nbsp; direct = &quot;/home/mastermind/r/distancias&quot;, division = 17)<br>

&nbsp;8: eval(expr, envir, enclos)<br>&nbsp;9: eval(parse(text = sprintf(&quot;dist.%s &lt;&lt;- dist.grass(matrizPaisaje.%s, &#39;%s&#39;, direct=&#39;%s&#39;, division=%s)&quot;,&nbsp;&nbsp;&nbsp;&nbsp; i, i, i, direct, division)))<br>10: dist.grass.loop(c(&quot;riosypondas3000&quot;, &quot;maxent3000&quot;, &quot;alturas3000.2&quot;),&nbsp;&nbsp;&nbsp;&nbsp; direct = &quot;/home/mastermind/r/distancias&quot;, division = 17)<br>

11: eval(expr, envir, enclos)<br>12: eval(expr, envir = loc.frame)<br>13: system.time(dist.grass.loop(c(&quot;riosypondas3000&quot;, &quot;maxent3000&quot;,&nbsp;&nbsp;&nbsp;&nbsp; &quot;alturas3000.2&quot;), direct = &quot;/home/mastermind/r/distancias&quot;,&nbsp;&nbsp;&nbsp;&nbsp; division = 17))<br>

<br>Possible actions:<br>1: abort (with core dump, if enabled)<br>2: normal R exit<br>3: exit R without saving workspace<br>4: exit R saving workspace<br><br>&gt; R.Version()<br>$platform<br>[1] &quot;i686-pc-linux-gnu&quot;<br>

<br>$arch<br>[1] &quot;i686&quot;<br><br>$os<br>[1] &quot;linux-gnu&quot;<br><br>$system<br>[1] &quot;i686, linux-gnu&quot;<br><br>$status<br>[1] &quot;&quot;<br><br>$major<br>[1] &quot;2&quot;<br><br>$minor<br>[1] &quot;7.0&quot;<br>

<br>$year<br>[1] &quot;2008&quot;<br><br>$month<br>[1] &quot;04&quot;<br><br>$day<br>[1] &quot;22&quot;<br><br>$`svn rev`<br>[1] &quot;45424&quot;<br><br>$language<br>[1] &quot;R&quot;<br><br>$version.string<br>[1] &quot;R version 2.7.0 (2008-04-22)&quot;<br>

<br></div>
</blockquote></div><br></div>