← Back to team overview

dolfin team mailing list archive

Re: Buildbot fails a lot with "Error: Unable to dolfin::plot"

 

On Fri, Nov 30, 2012 at 11:10 AM, Johan Hake <hake.dev@xxxxxxxxx> wrote:
> Well...
>
> After chasing this for some hours I found why the shared libraries screw
> up the dynamic_cast. The full type info of the MeshFunction<whatever> is
> not available in the compiled SWIG module of _io.so, where the plot
> command is called.
>
> To remedy this we need to share all type informations when the libraries
> are loaded. This can be controlled by setting the flag RTLD_GLOBAL to
> the loader. In python this is done by using:
>
>   sys.setdlopenflags
>
> Because previously it was only Python2.6 buildbots that had this
> problem, so one could think that this flag is set by default in 2.7, but
> it is not. So still not clue why it failed on two buildbots.
>
> Anyhow, it now works, and we should be able to still use dynamic_cast.

Another green buildbot! Nice work! :-)

Johannes


References