Opened 5 years ago

Last modified 5 days ago

#2418 new enhancement

t.unregister: circumvent OS limit for "maps"-parameter input

Reported by: sbl Owned by: grass-dev@…
Priority: normal Milestone: 7.8.2
Component: Temporal Version: unspecified
Keywords: Cc:
CPU: Unspecified Platform: Linux

Description

In t.unregister the "maps" parameter seems to be limited to ca. 5000 maps.

I have a strds with ca. 20k raster maps and tried to remove all by piping the output from t.rast.list to the "maps" parameter in t.unregister. After some testing I found out that the "maps" parameter works fine with 5000 maps, but with 6000 maps and more I got an "Argument list to long" error.

However, unregistering of all 20k maps worked fine when output from t.rast.list was stored in a file and then t.unregister`s "file" parameter used.

BTW, maybe a flag for unregistering all maps in a stds would be useful?

Change History (13)

comment:1 in reply to:  description Changed 5 years ago by huhabla

Replying to sbl:

In t.unregister the "maps" parameter seems to be limited to ca. 5000 maps.

I have a strds with ca. 20k raster maps and tried to remove all by piping the output from t.rast.list to the "maps" parameter in t.unregister. After some testing I found out that the "maps" parameter works fine with 5000 maps, but with 6000 maps and more I got an "Argument list to long" error.

This is not a defect, its the os specific limitation of argument lists[1].

However, unregistering of all 20k maps worked fine when output from t.rast.list was stored in a file and then t.unregister`s "file" parameter used.

The reason for the input file option is the os limit of command line arguments. So you did exactly the right thing by using it in case of 20k maps.

BTW, maybe a flag for unregistering all maps in a stds would be useful?

Sounds useful indeed, feel free to add it to t.unregister. :)

[1] https://wiki.debian.org/CommonErrorMessages/ArgumentListTooLong

comment:2 Changed 4 years ago by neteler

Milestone: 7.1.07.2.0

Milestone renamed

comment:3 Changed 3 years ago by neteler

See also #2957

comment:4 Changed 3 years ago by neteler

Milestone: 7.2.07.2.1

Ticket retargeted after milestone closed

comment:5 Changed 3 years ago by martinl

Milestone: 7.2.17.2.2

comment:6 Changed 2 years ago by neteler

Milestone: 7.2.27.2.3

Ticket retargeted after milestone closed

comment:7 Changed 20 months ago by martinl

Milestone: 7.2.3

Ticket retargeted after milestone closed

comment:8 Changed 20 months ago by martinl

Milestone: 7.2.4

comment:9 Changed 7 months ago by martinl

Still relevant?

comment:10 Changed 7 months ago by veroandreo

I would close this as wontfix, since the reported issue comes from a limitation of the OS as explained in comment:1. The request for a flag to unregister all maps (cool!) should be filed in a new ticket, IMO.

comment:11 Changed 7 months ago by sbl

Milestone: 7.2.47.8.0
Summary: t.unregister: "maps"-parameter limited to ca. 5000 mapst.unregister: circumvent OS limit for "maps"-parameter input
Type: defectenhancement

comment:12 Changed 2 months ago by neteler

Milestone: 7.8.07.8.1

Ticket retargeted after milestone closed

comment:13 Changed 5 days ago by neteler

Milestone: 7.8.17.8.2

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.