artemp/mapnik — Issue #429: Bus Error rendering with GDAL-type layers
Author: artemp
Created: 2011-10-11 16:18:25+00:00
State: open
Labels: GDAL_Input_Driver

I'm going to try rendering with the 'raster' layer type, but to test out rendering, I'm trying to render TIFFs with the gdal type - each TIFF is 198MB and there are about 84 of them. I'm getting the following traceback: I'm starting to think that my gdal libs & gdal tools were not compiled with support for TIFF (although this seems bizarre, I can't run ogr2ogr or ogrinfo on tiffs...), but nonetheless Mapnik should probably throw an exception instead of a python-crashing bus error? Although I'm not sure - my mapnik installation might be odd. It has worked with rendering shapefiles, but those are the only inputs I've tested it (my local mac machine) with.

{{{
Process: Python [3920]
Path: /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: zsh [2615]

Date/Time: 2009-10-01 16:23:19.887 -0400
OS Version: Mac OS X 10.6.1 (10B504)
Report Version: 6

Interval Since Last Report: 32846 sec
Crashes Since Last Report: 3
Per-App Crashes Since Last Report: 3
Anonymous UUID: 82769FD5-9A1B-431C-A5A2-6B7D848CBED5

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Thread 0 Crashed: Dispatch queue: com.apple.main-thread
0 libSystem.B.dylib	0x90192908 strtol_l + 73
1 libSystem.B.dylib	0x901a5824 atoi + 70
2 libgeotiff.1.2.1.dylib	0x02d5bbbc GTIFGetGCSInfo + 108
3 libgdal.1.dylib	0x025dc6e9 GTIFGetOGISDefn + 601
4 libgdal.1.dylib	0x025cd49c GTiffDataset::OpenOffset(tiff*, GTiffDataset**, unsigned int, int, GDALAccess, int) + 8956
5 libgdal.1.dylib	0x025ce5b8 GTiffDataset::Open(GDALOpenInfo*) + 392
6 libgdal.1.dylib	0x026acb3a GDALOpen + 138
7 gdal.input	0x03229a58 gdal_datasource::gdal_datasource(mapnik::parameters const&) + 1000
8 gdal.input	0x0322a199 create + 41
9 libmapnik.dylib	0x0101f11a mapnik::datasource_cache::create(mapnik::parameters const&) + 314
10 libmapnik.dylib	0x0109738e mapnik::map_parser::parse_layer(mapnik::Map&, boost::property_tree::basic_ptree > const&) + 3182
11 libmapnik.dylib	0x010a37bd mapnik::map_parser::parse_map(mapnik::Map&, boost::property_tree::basic_ptree > const&) + 765
12 libmapnik.dylib	0x010a530c mapnik::load_map(mapnik::Map&, std::string const&, bool) + 220
13 _mapnik.so	0x00474550 load_map_overloads::non_void_return_type::gen >::func_0(mapnik::Map&, std::string const&) + 32
14 _mapnik.so	0x00479376 boost::python::objects::caller_py_function_impl > >::operator()(_object*, _object*) + 166
15 libboost_python-mt.dylib	0x0070d864 boost::python::objects::function::call(_object*, _object*) const + 468
16 libboost_python-mt.dylib	0x0070eea5 boost::detail::function::void_function_ref_invoker0::invoke(boost::detail::function::function_buffer&) + 37
17 libboost_python-mt.dylib	0x0071563a boost::python::detail::exception_handler::operator()(boost::function0 const&) const + 106
18 _mapnik.so	0x004744f4 boost::detail::function::function_obj_invoker2, boost::_bi::list3, boost::arg<2>, boost::_bi::value > >, bool, boost::python::detail::exception_handler const&, boost::function0 const&>::invoke(boost::detail::function::function_buffer&, boost::python::detail::exception_handler const&, boost::function0 const&) + 36
19 libboost_python-mt.dylib	0x0071583e boost::python::handle_exception_impl(boost::function0) + 62
20 libboost_python-mt.dylib	0x0070b23f function_call + 79
21 org.python.python	0x0000fa25 PyObject_Call + 85
22 org.python.python	0x000beabe PyEval_EvalFrameEx + 13614
23 org.python.python	0x000c1f4d PyEval_EvalCodeEx + 2109
24 org.python.python	0x000c2067 PyEval_EvalCode + 87
25 org.python.python	0x000e6ac8 PyRun_FileExFlags + 168
26 org.python.python	0x000e79b3 PyRun_SimpleFileExFlags + 867
27 org.python.python	0x000f945a Py_Main + 3130
28 org.python.python	0x00001fb6 0x1000 + 4022

Thread 0 crashed with X86 Thread State (32-bit):
eax: 0xa0020240 ebx: 0x901928cd ecx: 0x02e1a988 edx: 0x02deb8e0
edi: 0x02d85bbe esi: 0x00000000 ebp: 0xbfffd6d8 esp: 0xbfffd6a0
ss: 0x0000001f efl: 0x00010297 eip: 0x90192908 cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x00000000

Binary Images:
0x1000 - 0x1ff8 +org.python.python 2.6.2 (2.6.2) /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
0x5000 - 0x12cfeb +org.python.python 2.6.2, (c) 2004-2008 Python Software Foundation. (2.6.2) /opt/local/Library/Frameworks/Python.framework/Versions/2.6/Python
0x1f1000 - 0x1f1ff5 +dl.so ??? (???) <0BB8B0D0-543A-6E89-3F31-B235698C99DE> /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/dl.so
0x1f5000 - 0x1f9ffe +libltdl.3.dylib ??? (???) /opt/local/lib/libltdl.3.dylib
0x400000 - 0x522ff7 +_mapnik.so ??? (???) /opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/mapnik/_mapnik.so
0x6ae000 - 0x6cdffb +libpng12.0.dylib ??? (???) /opt/local/lib/libpng12.0.dylib
0x6d4000 - 0x6f0ff0 +libjpeg.62.dylib ??? (???) <42BCFE4C-621B-E541-108E-77A310E2B2A9> /opt/local/lib/libjpeg.62.dylib
0x6f7000 - 0x72aff3 +libboost_python-mt.dylib ??? (???) /opt/local/lib/libboost_python-mt.dylib
0x776000 - 0x780ff3 +libboost_thread-mt.dylib ??? (???) /opt/local/lib/libboost_thread-mt.dylib
0x795000 - 0x7e7fef +libtiff.3.dylib ??? (???) /opt/local/lib/libtiff.3.dylib
0x7f3000 - 0x7f5ffb +libboost_system-mt.dylib ??? (???) <638112F1-23DA-162D-F8CD-6A695F6C1FE6> /opt/local/lib/libboost_system-mt.dylib
0x7fb000 - 0x7fbffe +libXau.6.dylib ??? (???) <6A8F2466-2EF5-4306-4FED-2F34B03FC455> /opt/local/lib/libXau.6.dylib
0x1000000 - 0x111bfe3 +libmapnik.dylib ??? (???) <45E52192-A35B-7BC4-CF10-63AC9BE89E24> /opt/local/lib/libmapnik.dylib
0x11db000 - 0x12d6ff7 +libicuuc.43.dylib ??? (???) <537CE8F5-55E6-5D9D-4515-EF830111E14A> /opt/local/lib/libicuuc.43.dylib
0x131b000 - 0x201afff +libicudata.43.dylib ??? (???) <54E86350-DA02-8909-D358-DCD90EF60D4E> /opt/local/lib/libicudata.43.dylib
0x201d000 - 0x20cafff +libboost_regex-mt.dylib ??? (???) /opt/local/lib/libboost_regex-mt.dylib
0x2159000 - 0x21c9fe9 +libfreetype.6.dylib ??? (???) /opt/local/lib/libfreetype.6.dylib
0x21dd000 - 0x22e2fef +libxml2.2.dylib ??? (???) <857EEB0E-BB11-F6CB-1ECF-DDC705B8F846> /opt/local/lib/libxml2.2.dylib
0x2310000 - 0x2408ff4 +libiconv.2.dylib ??? (???) <56E06087-68D0-BCFC-4A75-DF4B5A299AD0> /opt/local/lib/libiconv.2.dylib
0x2415000 - 0x2425ffd +libz.1.dylib ??? (???) /opt/local/lib/libz.1.dylib
0x242a000 - 0x245afff +libproj.0.dylib ??? (???) /opt/local/lib/libproj.0.dylib
0x2467000 - 0x2472ffb +libboost_filesystem-mt.dylib ??? (???) /opt/local/lib/libboost_filesystem-mt.dylib
0x2485000 - 0x248bff3 +libboost_iostreams-mt.dylib ??? (???) <01F1CBC0-017D-A9C2-C4A4-80410FBFD95F> /opt/local/lib/libboost_iostreams-mt.dylib
0x2495000 - 0x24bcfff +libboost_program_options-mt.dylib ??? (???) <8B328112-D0F4-ECA7-1C45-CD3DFC2AFFBB> /opt/local/lib/libboost_program_options-mt.dylib
0x24f8000 - 0x2557fff +libsqlite3.0.dylib ??? (???) <00FE034B-D112-A4BC-C2A8-0ED5CFE17C04> /opt/local/lib/libsqlite3.0.dylib
0x2567000 - 0x28effe2 +libgdal.1.dylib ??? (???) /opt/local/lib/libgdal.1.dylib
0x2a26000 - 0x2b60fff +libicui18n.43.dylib ??? (???) <91E8A5C6-5743-C387-F8A2-C03F61B14306> /opt/local/lib/libicui18n.43.dylib
0x2bec000 - 0x2bfafff +libbz2.1.0.dylib ??? (???) <7F193497-E69B-F7F1-D3A7-543F628A300E> /opt/local/lib/libbz2.1.0.dylib
0x2bff000 - 0x2c04ff7 +libgif.4.dylib ??? (???) /opt/local/lib/libgif.4.dylib
0x2c09000 - 0x2c0effc +libSM.6.dylib ??? (???) <9A142824-1C69-24FC-AD5A-9409D3CB4004> /opt/local/lib/libSM.6.dylib
0x2c13000 - 0x2c23ff7 +libICE.6.dylib ??? (???) <64B9590B-C13F-985C-A821-8885B8FE63F6> /opt/local/lib/libICE.6.dylib
0x2c2b000 - 0x2d31fef +libX11.6.dylib ??? (???) /opt/local/lib/libX11.6.dylib
0x2d51000 - 0x2d53fef +libXdmcp.6.dylib ??? (???) <78B422C6-7E7B-6AF2-62E6-057B2533635E> /opt/local/lib/libXdmcp.6.dylib
0x2d57000 - 0x2d9dfeb +libgeotiff.1.2.1.dylib ??? (???) /opt/local/lib/libgeotiff.1.2.1.dylib
0x2f13000 - 0x2f28fef +libpq.5.dylib ??? (???) <34C894C7-B518-873F-1A01-094AD2C32969> /opt/local/lib/postgresql83/libpq.5.dylib
0x2f30000 - 0x2f69fef +libmysqlclient.15.dylib ??? (???) <55CA4327-7E65-7408-3DE1-376C2CDF07D6> /opt/local/lib/mysql5/mysql/libmysqlclient.15.dylib
0x307c000 - 0x30b4feb +libssl.0.9.8.dylib ??? (???) /opt/local/lib/libssl.0.9.8.dylib
0x30c8000 - 0x31cafe7 +libcrypto.0.9.8.dylib ??? (???) <12487662-408A-3982-C7D2-EC63475798AA> /opt/local/lib/libcrypto.0.9.8.dylib
0x3228000 - 0x3232ff7 +gdal.input ??? (???) /opt/local/lib/mapnik/input/gdal.input
0x323e000 - 0x324eff7 +ogr.input ??? (???) /opt/local/lib/mapnik/input/ogr.input
0x325f000 - 0x3271ff7 +osm.input ??? (???) <34B002CB-7AC8-6CB2-A2B6-09A13F55385C> /opt/local/lib/mapnik/input/osm.input
0x3281000 - 0x32b0fef +libcurl.4.dylib ??? (???) /opt/local/lib/libcurl.4.dylib
0x32b9000 - 0x32c5ffb +raster.input ??? (???) <3B89CF0F-B6CA-C072-77BF-3A7E4A6E7207> /opt/local/lib/mapnik/input/raster.input
0x32d2000 - 0x32f0ff7 +shape.input ??? (???) /opt/local/lib/mapnik/input/shape.input
0x3308000 - 0x331cffb +sqlite.input ??? (???) <06AE179B-7003-21E2-F986-D122F4B99D5F> /opt/local/lib/mapnik/input/sqlite.input
0x8fe00000 - 0x8fe4162b dyld 132.1 (???) <211AF0DD-42D9-79C8-BB6A-1F4BEEF4B4AB> /usr/lib/dyld
0x90188000 - 0x9032cfeb libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
0x98a3d000 - 0x98aa7fe7 libstdc++.6.dylib ??? (???) <411D87F4-B7E1-44EB-F201-F8B4F9227213> /usr/lib/libstdc++.6.dylib
0x98b7a000 - 0x98b7dfe7 libmathCommon.A.dylib ??? (???) <1622A54F-1A98-2CBE-B6A4-2122981A500E> /usr/lib/system/libmathCommon.A.dylib
0xffff0000 - 0xffff1fff libSystem.B.dylib ??? (???) /usr/lib/libSystem.B.dylib
}}}