<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"><<a href="mailto:jumanbar@gmail.com">jumanbar@gmail.com</a>></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't have a clue of what it could be happening...<br>
<br>The context: i'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'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 "cannot allocate vector of size..." problem (builted in the loop itself). <br>
<br>Even so, the message "address (nil), cause 'memory not mapped'" appeared, and i really don'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'll be greatly appreciated... below I'm writing the output i got (and the R.Version() output...)<br>
<br>thank you,<br><br>Juan<br><br><grass output><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>
100%<br>Initializing output<br> 100%<br>Finding cost path<br>Writing nombre<br>Double cell type.<br>Writing...<br> 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> 100%<br><end of grass output><br><br> *** caught segfault ***<br>address (nil), cause 'memory not mapped'<br><br>Traceback:<br> 1: system("g.proj -j -f", intern = TRUE, ignore.stderr = ignore.stderr)<br>
2: ifelse(.Platform$OS.type == "windows", projstr <- system("g.proj -j -f", intern = TRUE), projstr <- system("g.proj -j -f", intern = TRUE, ignore.stderr = ignore.stderr))<br>
3: getLocationProj()<br> 4: nchar(projargs)<br> 5: CRS(getLocationProj())<br> 6: readRAST6("nombre")<br> 7: dist.grass(matrizPaisaje.riosypondas3000, "riosypondas3000", direct = "/home/mastermind/r/distancias", division = 17)<br>
8: eval(expr, envir, enclos)<br> 9: eval(parse(text = sprintf("dist.%s <<- dist.grass(matrizPaisaje.%s, '%s', direct='%s', division=%s)", i, i, i, direct, division)))<br>10: dist.grass.loop(c("riosypondas3000", "maxent3000", "alturas3000.2"), direct = "/home/mastermind/r/distancias", division = 17)<br>
11: eval(expr, envir, enclos)<br>12: eval(expr, envir = loc.frame)<br>13: system.time(dist.grass.loop(c("riosypondas3000", "maxent3000", "alturas3000.2"), direct = "/home/mastermind/r/distancias", 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>> R.Version()<br>$platform<br>[1] "i686-pc-linux-gnu"<br>
<br>$arch<br>[1] "i686"<br><br>$os<br>[1] "linux-gnu"<br><br>$system<br>[1] "i686, linux-gnu"<br><br>$status<br>[1] ""<br><br>$major<br>[1] "2"<br><br>$minor<br>[1] "7.0"<br>
<br>$year<br>[1] "2008"<br><br>$month<br>[1] "04"<br><br>$day<br>[1] "22"<br><br>$`svn rev`<br>[1] "45424"<br><br>$language<br>[1] "R"<br><br>$version.string<br>[1] "R version 2.7.0 (2008-04-22)"<br>
<br></div>
</blockquote></div><br></div>