Skip to content

[Bug] r.fill.dir (main) fails with "ERROR: File read/write operation failed: Invalid argument (22)" #6658

@dhdeangelis

Description

@dhdeangelis

Describe the bug

r.fill.dir (main) fails with "ERROR: File read/write operation failed: Invalid argument (22)", while r.fill.dir (8.4.1) does not fail and produces valid results.
Possibly related to #5783

To reproduce

  1. given a DEM 'dem'
  2. run: 'r.fill.dir input=dem output=demFilled direction=demDir areas=demAreas'
  3. See error

Expected behavior

In this particular case, I expect r.fill.dir should give valid results. If for whatever reason the input data is not considered valid, I expect error messages to be more explicit and clear.

System description

  • Operating System: Linux, openSUSE Tumbleweed

  • GRASS version: 8.4.1 (OK), main (e6e1024) failing

  • details about further software components

g.version -rge
version=8.5.0dev
date=2025
revision=e6e10249c4
build_date=2025-11-21
build_platform=x86_64-pc-linux-gnu
build_off_t_size=8
libgis_revision=85b38da2a3
libgis_date=2025-10-17T14:54:12+00:00
proj=9.8.0
gdal=3.13.0dev-3ccaf135cf-dirty
geos=3.15.0dev
sqlite=3.50.4

python3 -c "import sys, wx; print(sys.version); print(wx.version())"
3.13.9 (main, Nov 15 2025, 21:56:21) [GCC]
4.2.3 gtk3 (phoenix) wxWidgets 3.2.8

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions