Open gdevenyi opened 9 years ago
This would seem a tad strange, if you run with a -verbose flag is there an extremely long argument list anywhere?
On most Linux based systems ARG_MAX is massive these days (for me):
$ getconf ARG_MAX 2097152
Which OS are you running on? or is this a perl problem with the internals of spawn?
a
Well, it was run with verbose, and debug, so that's all the output I got. I can try and add a print somewhere and see what I get.
This is on Debian 6.0, Linux x86_64
I'll check ARG_MAX to be sure tomorrow.
A very late followup, ARG_MAX is the same for me.
The root cause of this seems to be the case where dcm2mnc is called with an entire directory tree of DICOMs at once (like an entire study) and then the -fname/-dname features are used to split up the MINC files. This produces a huge history entry from the conversion, which is much longer than ARG_MAX.
While working with autocrop, the cropping would succeed, but then throw the following error:
The command I was using to start autocrop
Commenting out the instances of update_history in autocrop solved the crash.