Why not ask your question on the new OpenStreetMap Community Forum?


mod_tile (renderd) is working with mapnik 2.0, but failing with a higher mapnik release like mapnik2.1 I get an segementation fault when we try to register the datatsource kismet.input. Do you know why?

$ /usr/local/bin/renderd -f  -c /etc/renderd.conf
renderd[17548]: Rendering daemon started
renderd[17548]: Initiating reqyest_queue
renderd[17548]: Parsing section renderd
renderd[17548]: Parsing render section 0
renderd[17548]: Parsing section mapnik
renderd[17548]: Parsing section default
renderd[17548]: config renderd: unix socketname=/var/run/renderd/renderd.sock
renderd[17548]: config renderd: num_threads=4
renderd[17548]: config renderd: num_slaves=0
renderd[17548]: config renderd: tile_dir=/var/lib/mod_tile
renderd[17548]: config renderd: stats_file=/var/run/renderd/renderd.stats
renderd[17548]: config mapnik:  plugins_dir=/usr/lib/mapnik/input
renderd[17548]: config mapnik:  font_dir=/usr/share/fonts/truetype
renderd[17548]: config mapnik:  font_dir_recurse=1
renderd[17548]: config renderd(0): Active
renderd[17548]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock
renderd[17548]: config renderd(0): num_threads=4
renderd[17548]: config renderd(0): tile_dir=/var/lib/mod_tile
renderd[17548]: config renderd(0): stats_file=/var/run/renderd/renderd.stats
renderd[17548]: config map 0:   name(default) file(/home/myuser/src/mapnik-style/mapnik.xml) uri(/osm_tiles/) htcp() host(localhost)
renderd[17548]: Initialising unix server socket on /var/run/renderd/renderd.sock
renderd[17548]: Created server socket 4
renderd[17548]: Renderd is using mapnik version 2.1.1
renderd[17548]: register datasource /usr/lib/mapnik/input
renderd[17548]: instance found
Segmentation fault (core dumped)

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6c81a58 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6                                                                         │debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile
(gdb) bt
#0  0x00007ffff6c81a58 in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#1  0x00007fffebd9dbb9 in kismet_datasource::name() () from /usr/lib/mapnik/input/kismet.input
#2  0x00007fffebd9dbd9 in datasource_name () from /usr/lib/mapnik/input/kismet.input
#3  0x00007ffff791effb in mapnik::datasource_cache::register_datasource(std::string const&) () from /usr/local/lib/libmapnik.so.2.1
#4  0x00007ffff791f3f0 in mapnik::datasource_cache::register_datasources(std::string const&) () from /usr/local/lib/libmapnik.so.2.1
#5  0x0000000000407dfb in render_init (plugins_dir=0x620cc0 "/usr/lib/mapnik/input", font_dir=0x620d00 "/usr/share/fonts/truetype",font_dir_recurse=1) at src/gen_tile.cpp:318 
#6  0x0000000000405d1c in main (argc=<optimized out>, argv=<optimized out>) at src/daemon.c:906

asked 23 Apr '14, 09:24

wqeqew's gravatar image

accept rate: 0%

found the problem.

I had the wrong input path in /etc/rendered.conf

#plugins_dir=/usr/lib/mapnik/input       # for mapnik_2.0
plugins_dir=/usr/local/lib/mapnik/input  # >=  mapnik_2.1 (has not kismet.input)
permanent link

answered 23 Apr '14, 13:49

wqeqew's gravatar image

accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 23 Apr '14, 09:24

question was seen: 2,991 times

last updated: 23 Apr '14, 13:49

powered by OSQA