Skip to content

[Bug] t.register crash using file option #5585

@Dankotchev

Description

@Dankotchev

Describe the bug

When I run the t.register command using the file option, an error occurs and the following message is displayed.

To reproduce

Steps to reproduce the behavior:

  1. run the command t.register --overwrite input=region@PERMANENT file=file.txt
  2. Observe the following error:
Process Process-2:
Traceback (most recent call last):
  File "/usr/lib64/python3.13/multiprocessing/process.py",
line 313, in _bootstrap
    self.run()
    ~~~~~~~~^^
  File "/usr/lib64/python3.13/multiprocessing/process.py",
line 108, in run
    self._target(*self._args, **self._kwargs)
    ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/grass84/etc/python/grass/temporal/c_libra
ries_interface.py", line 1275, in c_library_server
    functions[data[0]](lock, conn, data)
    ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/grass84/etc/python/grass/temporal/c_libra
ries_interface.py", line 589, in _write_semantic_label
    if libraster.Rast_legal_semantic_label(semantic_label)
is False:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'grass.lib.raster' has no attribute
'Rast_legal_semantic_label'. Did you mean:
'Rast_read_semantic_label'?
ERROR: Exception raised: [Errno 104] Connection reset by peer Message: write_raster_timestamp
WARNING:root:Needed to restart the libgis server, caller:
Server check thread

Expected behavior

Rasters should be registered correctly without error.

System description

  • Operating System: Fedora 42 with Kernel 6.14.2-300.fc42.x86_64
  • GRASS GIS version:
version=8.4.1
date=2025
revision=45ca3179ab
build_date=2025-02-24
build_platform=x86_64-redhat-linux-gnu
build_off_t_size=8
libgis_revision=45ca3179ab
libgis_date=2025-02-24T10:57:24+00:00
proj=9.5.1
gdal=3.10.2
geos=3.13.0
sqlite=3.47.2
  • Python: 3.13.3 (main, Apr 9 2025, 00:00:00) [GCC 15.0.1 20250410 (Red Hat 15.0.1-0)]
  • wxPython: 4.2.2 gtk3 (phoenix) wxWidgets 3.2.6

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions