[GRASS-user] multiple runs error

Hi,

I am running 30 programs simultaneously on a super computer. After some time
some of them crash, giving the following error.

Removing raster <tempPERMANENT>
WARNING: misc: couldn't be removed
WARNING: fcell: couldn't be removed
Traceback (most recent call last):
  File "cmaes.py", line 202, in <module>
    main(options)
  File "cmaes.py", line 190, in main
    cma.cmaES(tools, pop, sigma=0.16, ngen=saSteps)
  File "/home/akvah/lib/deap/src/eap/cma.py", line 48, in cmaES
  File "cmaes.py", line 105, in evalmap
    los(individual, i, tempout)
  File "cmaes.py", line 74, in los
    obs_elev=1)
  File
"/software/apps/grass-gis/grass-6.4.0/etc/python/grass/script/core.py", line
246, in parse_command
  File
"/software/apps/grass-gis/grass-6.4.0/etc/python/grass/script/core.py", line
216, in read_command
  File
"/software/apps/grass-gis/grass-6.4.0/etc/python/grass/script/core.py", line
193, in pipe_command
  File
"/software/apps/grass-gis/grass-6.4.0/etc/python/grass/script/core.py", line
155, in start_command
  File
"/software/apps/grass-gis/grass-6.4.0/etc/python/grass/script/core.py", line
53, in __init__
  File "/software/apps/Python-2.6.4/lib/python2.6/subprocess.py", line 621,
in __init__
  File "/software/apps/Python-2.6.4/lib/python2.6/subprocess.py", line 1122,
in _execute_child
  File "/software/apps/Python-2.6.4/lib/python2.6/pickle.py", line 1374, in
loads
  File "/software/apps/Python-2.6.4/lib/python2.6/pickle.py", line 858, in
load
  File "/software/apps/Python-2.6.4/lib/python2.6/pickle.py", line 971, in
load_string
LookupError: unknown encoding: string-escape

There is no pattern in the number of programs crashing, nor on the time they
crash. It seems that it is totally random. I though that there might be a
conflict between different mapsets, so I even used different locations for
different runs, but it didn't change anything. When I was running 4 programs
at the same time on my own machine I wasn't getting any error, so it is a
bit weird for me. I would appreciate if anyone can help.

Thanks in advance,
Ahmad
--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/multiple-runs-error-tp5760423p5760423.html
Sent from the Grass - Users mailing list archive at Nabble.com.

AhmadKhaled wrote:

I am running 30 programs simultaneously on a super computer. After some time
some of them crash, giving the following error.

"/software/apps/grass-gis/grass-6.4.0/etc/python/grass/script/core.py", line 53, in __init__
  File "/software/apps/Python-2.6.4/lib/python2.6/subprocess.py", line 621, in __init__
  File "/software/apps/Python-2.6.4/lib/python2.6/subprocess.py", line 1122, in _execute_child
  File "/software/apps/Python-2.6.4/lib/python2.6/pickle.py", line 1374, in loads
  File "/software/apps/Python-2.6.4/lib/python2.6/pickle.py", line 858, in load
  File "/software/apps/Python-2.6.4/lib/python2.6/pickle.py", line 971, in load_string
LookupError: unknown encoding: string-escape

There is no pattern in the number of programs crashing, nor on the time they
crash. It seems that it is totally random. I though that there might be a
conflict between different mapsets, so I even used different locations for
different runs, but it didn't change anything. When I was running 4 programs
at the same time on my own machine I wasn't getting any error, so it is a
bit weird for me. I would appreciate if anyone can help.

For whatever reason, an exception is being thrown between the fork()
of the child process and the exec() of the command, and the pickle
module fails to find the codec required to decode the backtrace which
the child sends to the parent.

Try the following in an interactive Python session:

  import codecs
  codecs.lookup("string-escape")

If it fails, your Python installation is broken. If it succeeds, I can
only assume either a low-level bug in the interpreter or the
interpreter's memory is getting corrupted.

--
Glynn Clements <glynn@gclements.plus.com>