Hmmm, stranger and stranger......

I tried 0.5.0 and still crashed.  I recompiled 0.5.0 with debug:
    python scons/scons.py DEBUG=True
and it didn't crash.

I retried 0.5.1 with debug
    python scons/scons.py DEBUG=True
and it worked.

Without debug
    python scons/scons.py
it crashed.

Any ideas?  Debug appears to be changing something in how the code is 
working......

- Brian

Brian Peschel wrote:
> I have a test program using mapnik I developed and had working fine.  
> I then upgraded to Fedora 8, Mapnik 0.5.1, boost 1.34.1, and gcc 4.1.2 
> (and probably other stuff I forgot) from Fedora 6, Mapnik 0.5.0, boost 
> 1.33.x, and gcc ??.  Now my test program crashes creating a simple 
> filter.
> Snipping up parse code, I am doing this:
>    mapnik::feature_type_style currentStyle = new 
> mapnik::feature_type_style();
>    mapnik::rule_type currentRule = new mapnik::rule_type();
>    std::string filterText = "[mapnik:geometry] = 1";
>    try
>    {
>        
> currentRule->set_filter(mapnik::create_filter(filterText.c_str()));
>    }
>    catch (const mapnik::config_error& ex)
>    {
>        std::cerr << Configuration error \"" << ex.what() << "\"" << 
> std::endl;
>    }
>
> And I am crashing with a boost error.  gdb is reporting:
> #0  0x02dd5df9 in 
> boost::spirit::grammar<mapnik::filter_grammar<mapnik::feature<mapnik::geometry<mapnik::vertex<double,
>  
> 2> >, boost::shared_ptr<mapnik::raster> > >, 
> boost::spirit::parser_context<boost::spirit::nil_t> >::~grammar$base 
> () from /usr/local/lib/libmapnik.so.0.5
> #1  0x02de309e in 
> mapnik::filter_factory<mapnik::feature<mapnik::geometry<mapnik::vertex<double,
>  
> 2> >, boost::shared_ptr<mapnik::raster> > >::compile () from 
> /usr/local/lib/libmapnik.so.0.5
> #2  0x02dc0b69 in mapnik::create_filter () from 
> /usr/local/lib/libmapnik.so.0.5
>
> Did something significant change in boost 1.34.x that is causing 
> mapnik problems?  Something else I should look at?  I know very little 
> about boost or how it works.  Any thoughts here would be greatly 
> appreciated.
>
> - Brian

_______________________________________________
Mapnik-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/mapnik-users

Reply via email to