[GRASS-user] Rosetta Error in "r.fill.dir"

Hi everyone,

I am trying to fill in pits in a large DEM raster (the size of USGS HUC02 “18”) in GRASS 8.0. Everything works in the workflow until I get this error when I run “r.fill.dir”:

r.fill.dir input=DEM output=DEM_filled direction=DEM_dir areas=DEM_area format=agnps --overwrite

Reading input elevation raster map…

100%

Filling sinks…

Determining flow directions for ambiguous cases…

Found 75 unresolved areas

Repeat to get the final directions…

rosetta error: unexpectedly need to EmulateForward on a synchronous exception x86_rip=0x4363626336 arm_pc=0x4363681804 num_insts=6 inst_index=3 x86 instruction bytes: 0x6215344901283465301 0x17042544937633142081

zsh: trace trap r.fill.dir input=DEM output=DEM_filled direction=DEM_dir areas=DEM_area

Can someone help me solve this issue? I am running GRASS 8.0 on an M1 Pro chip in MacOS Monterey. I sense this is an error with Rosetta and the M1 chip, but have not received such an error prior on this computer. I have also tried running the module through GRASS 7.6 and 7.8, but am having no luck due to segmentation fault errors.

Best,

Daniel Kozar
PhD Candidate

UC Davis - Hydrologic Sciences
djkozar@ucdavis.edu
(814) 380-6900

Daniel,

I couldn’t reproduce your issue with a random dem. It would be good if you could share a minimal data set causing the crash for testing.

Also, please take a look if there is a more detailed crash report with '/Applications/Utilities/Console.app’ and share its content.

If this is indeed a Rosetta related issue, an immediate solution would be to install the ‘grass’ port with MacPorts [1], which installs in native architecture also for M1’s.

Side note: The official GRASS Mac app bundle, is based on miniconda for its dependencies. Last time I tried there were issues with arm support for especially condas wxPython, therefore it is still only built for x64.

Best,
Nicklas

[1] https://ports.macports.org/port/grass/

On 22 Apr 2022, at 01:16, Daniel Kozar via grass-user <grass-user@lists.osgeo.org> wrote:

Hi everyone,

I am trying to fill in pits in a large DEM raster (the size of USGS HUC02 “18”) in GRASS 8.0. Everything works in the workflow until I get this error when I run “r.fill.dir”:

r.fill.dir input=DEM output=DEM_filled direction=DEM_dir areas=DEM_area format=agnps --overwrite
Reading input elevation raster map…
100%
Filling sinks…
Determining flow directions for ambiguous cases…
Found 75 unresolved areas
Repeat to get the final directions…
rosetta error: unexpectedly need to EmulateForward on a synchronous exception x86_rip=0x4363626336 arm_pc=0x4363681804 num_insts=6 inst_index=3 x86 instruction bytes: 0x6215344901283465301 0x17042544937633142081
zsh: trace trap r.fill.dir input=DEM output=DEM_filled direction=DEM_dir areas=DEM_area

Can someone help me solve this issue? I am running GRASS 8.0 on an M1 Pro chip in MacOS Monterey. I sense this is an error with Rosetta and the M1 chip, but have not received such an error prior on this computer. I have also tried running the module through GRASS 7.6 and 7.8, but am having no luck due to segmentation fault errors.

Best,

Daniel Kozar
PhD Candidate

UC Davis - Hydrologic Sciences
djkozar@ucdavis.edu
(814) 380-6900


grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user