Re: initialization bus error

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

Hi Jim,

Nothing comes off the top of my head on this one. The HLU library
gets initialized during a call to Ngl.open_wks. You are allowed to
call this function multiple times, so I don't think multiple
initializations are a problem.

Can you give me some information about the "plotNgl" routine? This is
not one of our routines. I'm guessing this routine must be calling
Ngl.open_wks to create a workstation to draw the graphics on. Perhaps
there's something about this call that needs to be fixed.

--Mary

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_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>
_______________________________________________
pyngl-talk mailing list
pyngl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
Received on Fri Sep 01 2006 - 11:32:17 MDT

This archive was generated by hypermail 2.2.0 : Fri Sep 01 2006 - 15:04:53 MDT