VirtualFlow / VFVS

VirtualFlow for Virtual Screening
GNU General Public License v2.0
153 stars 62 forks source link

'Value too great for base' error from one-queue.sh lines 183, 194, 969 #13

Closed ahueb closed 2 years ago

ahueb commented 2 years ago

I began noticing some errors which were causing joblines to fail occasionally. It seems that the error stems from the millisecond calculation located in three places within the 'one-queue.sh' script:

$(date +'%s * 1000 + %-N / 1000000')

I was getting an error concerning the value produced by '%-N' which would occasionally begin with a '0' (zero). It seems this was being interpreted as an octal value rather than decimal, and by prepending '10#' to the '%-N' command, the value is forced to be considered as a decimal no matter what the first character is:

$(date +'%s * 1000 + 10#%-N / 1000000')

It appears that this has prevented the error from recurring, although I am still testing.

Has anyone else experienced this error?

cgorgulla commented 2 years ago

Thank you for the hint. The problems seems to come from the new bash versions >= bash 4.4. I've fixed this, should work now also with the new versions of bash.