Re: initialization bus error

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Fri, 1 Sep 2006 15:11:45 -0600 (MDT)


Jim figured this out on his own. Apparently if you call Ngl.end to
clean things up, and then call Ngl.open_wks again, you will see the
problem that Jim saw below. The problem doesn't appear to be with the
PyNGL code, but rather with the internal C software that Ngl.end
calls. I will report this to our developers and hopefully get a fix

Meanwhile, the work-around is to not call Ngl.end multiple times.
Leave it for the very end after you are done with all of your PyNGL
graphics calls.


On Fri, 1 Sep 2006, James Boyle wrote:

> very, very often as I am attempting to plot during a python session (using
> ipython) I get the error below.
> I think it happens when I get an error using an pyngl routine and ngl fails
> to clean up after itself.
> the bus error kicks me out of my session and I have to start over again -
> this is quite tiresome.
> Am I doing something dumb - to my way to thinking I should never get a bus
> error - if I do something stupid the code should have a more graceful way to
> die. I do realize that when things like ngl are wrapped the error occurs
> where it cannot be trapped by python.
> Any words of wisdom?
> --Jim
> In [178]: plotNgl(title,lons,lats,uERA,vERA,psl,1000.,1.,10.,title)
> info:The HLU library can only be initialized once!
> fatal:["Error.c":408]:ErrorInitialize:Only one instance of ErrorClass is
> supported
> fatal:Unable to initialize layer-Can't Create
> fatal:Error Creating ErrorClass object
> fatal:Unable to initialize layer-Can't Create
> fatal:Unable to initialize layer-Can't Create
> Bus error
> _______________________________________________
> pyngl-talk mailing list
pyngl-talk mailing list
Received on Fri Sep 01 2006 - 15:11:45 MDT

This archive was generated by hypermail 2.2.0 : Fri Sep 01 2006 - 17:50:51 MDT