Hi On 30. nov. 2009, at 15.19, Fredrik Johansson wrote:
Pretty frequently I get this error:[#959 0% maplint-z12] Splitting stripe 0... Can't use an undefined value as a symbol reference at /usr/lib/perl5/GD/Image.pm line 175.I'm not to good at perl hacking to figure it out, but I guess it shouldn't be too hard to do some more error handling in maplint?
This isn't a problem in GD, nor in maplint. Maplint only deals with OSM XML data, and GD is a library for handling bitmap data - there's a few components in between there.
Often this error occurs after something else has already gone wrong, but it may be hidden with the default verbosity level, try turning that up if there are no error messages above that one.
And yes, there should be some more error handling, I suspect that at least some error handling around GD could give some less confusing diagnostics (but wouldn't really solve anything else).
Other than that the component I suspect most is the rasterizer, and the SVG::Rasterize module already tries it's best to wrap error handling around that. The problem is that the rasterizers almost seem hostile to error handling, trying their very best to not do anything that's simple to handle like returning error codes or failing in even remotely predictable ways (much less gracefully, what kind of concept is that??)
I've switched to BatikAgent to do the rendering after recommendation from the #osm channel, but since I get really crappy performance from both Batik/BatikAgent, so I would prefer Inkscape if possible.I'm happy to help debug this if someone can give me some pointers of where to start.
If turning up log levels doesn't help then disecting a work dir after a crash is probably the next logical step.
Next it gets down to adding error handling and/or debug code to t...@h, and to do that with any kind of efficiency knowing perl is pretty much a prerequisite.
-- Knut Arne Bjørndal aka Bob Kåre [email protected] http://bob.cakebox.net/
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Tilesathome mailing list [email protected] http://lists.openstreetmap.org/listinfo/tilesathome
