Exception KeyError

Bug #1685735 reported by William Chevremont
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yade
Won't Fix
Undecided
Unassigned

Bug Description

I run parametric studies using yade-batch.

I have a stop-condition that I check regularly. If the stop-condition is reach, I exit the script using sys.exit(0); (see attached script).

The script exit well but when I look at the log, I have:

Exception KeyError: KeyError(140414846273280,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored

Yade version: yade-2017-03-30.git-5528a5c
Available features: ['Odeint', 'VTK', 'OpenMP','GTS', 'CGAL', 'PFVFLOW', 'LINSOLV', 'GL2PS', 'LBMFLOW']

Full output:
TCP python prompt on localhost:9013, auth cookie `******'
Welcome to Yade 2017-03-30.git-5528a5c
XMLRPC info provider on http://localhost:21013
Running script scriptV4c.py
/usr/lib/python2.7/dist-packages/matplotlib/artist.py:221: MatplotlibDeprecationWarning: This has been deprecated in mpl 1.5, please use the
axes property. A removal date has not been set.
  warnings.warn(_get_axes_msg, mplDeprecation, stacklevel=1)
Nombre de spheres: 4189
glue
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
reverse
done
Exception KeyError: KeyError(140414846273280,) in <module 'threading' from '/usr/lib/python2.7/threading.pyc'> ignored

=================== JOB SUMMARY ================
id : OMP_NUM_THREADS=1,shearVel=0.01,volfrac=0.52,frictDegree=50
status : 0 (OK)
duration: 23:30:54
command : YADE_BATCH=2017_04_12_friction.table:19 DISPLAY= /data/yade/install/bin/yade-2017-03-30.git-5528a5c --threads=1 --nice=10 -x scriptV4c.py> 2017_04_05_frictcoef/scriptV4c.py.OMP_NUM_THREADS=1,shearVel=0.01,volfrac=0.52,frictDegree=50.log 2>&1
started : Thu Apr 13 11:45:03 2017
finished: Fri Apr 14 11:15:57 2017

Revision history for this message
William Chevremont (william.chevremont) wrote :
Revision history for this message
Anton Gladky (gladky-anton) wrote :

Could you please try to use "O.stop()" insntead of "exit()"?

Revision history for this message
Bruno Chareyre (bruno-chareyre) wrote :

Is there a problem apart from the "KeyError" message?
Do you get the expected results from the batched jobs?

There is usually no need to exit/stop yade scripts. You can simply use "while(...): O.run(..)" if you have a conditional stop.

Bruno

Revision history for this message
William Chevremont (william.chevremont) wrote :

Yes, I get the expected result from the batch, as the exception appear after I've called "exit()". I'll try to change the way I stop the computation.

William.

Changed in yade:
status: New → Won't Fix
Revision history for this message
William Chevremont (william.chevremont) wrote :

Nota: O.stop() doesn't exist. I use instead O.stopAtIter = O.iter+1;

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.