Failed to running renderd (Debian Wheezy)

307 views
Skip to first unread message

Gibrain Fakhri

unread,
Sep 25, 2014, 2:15:11 AM9/25/14
to map...@googlegroups.com
Hello all, first kudos to dane for creating this magic tools.

I have installed mapnik and it was able to generate map smoothly,
then i build mod_tile from source and trying to bind it with mapnik. 
i am unable to start ./renderd, it says : "segmentation fault".
below is my detail configuration. thanks in advance for any help.

= recipes =
# debian wheezy
# mapnik v.2.0
# mod_tile 

= my renderd.conf =
[renderd]
socketname=/var/run/renderd/renderd.sock
num_threads=3
tile_dir=/var/lib/mod_tile
stats_file=/var/run/renderd/renderd.stats

[mapnik]
plugins_dir=/usr/lib/mapnik/2.0/input
font_dir=/usr/share/fonts/truetype
font_dir_recurse=1

[default]
URI=/frs_tiles/
TILEDIR=/var/lib/mod_tile
XML=/home/brain/my_map/map.xml
HOST=localhost
TILESIZE=256


= Executing ./renderd -f =

renderd[10282]: Rendering daemon started
renderd[10282]: Initiating reqyest_queue
renderd[10282]: Parsing section renderd
renderd[10282]: Parsing render section 0
renderd[10282]: Parsing section mapnik
renderd[10282]: Parsing section default
renderd[10282]: config renderd: unix socketname=/var/run/renderd/renderd.sock
renderd[10282]: config renderd: num_threads=3
renderd[10282]: config renderd: num_slaves=0
renderd[10282]: config renderd: tile_dir=/var/lib/mod_tile
renderd[10282]: config renderd: stats_file=/var/run/renderd/renderd.stats
renderd[10282]: config mapnik:  plugins_dir=/usr/lib/mapnik/2.0/input
renderd[10282]: config mapnik:  font_dir=/usr/share/fonts/truetype
renderd[10282]: config mapnik:  font_dir_recurse=1
renderd[10282]: config renderd(0): Active
renderd[10282]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock
renderd[10282]: config renderd(0): num_threads=3
renderd[10282]: config renderd(0): tile_dir=/var/lib/mod_tile
renderd[10282]: config renderd(0): stats_file=/var/run/renderd/renderd.stats
renderd[10282]: config map 0:   name(default) file(/home/brain/peta/map.xml) uri(/frs_tiles/) htcp() host(127.0.0.1)
renderd[10282]: Initialising unix server socket on /var/run/renderd/renderd.sock
renderd[10282]: Created server socket 4
renderd[10282]: Renderd is using mapnik version 2.2.0
Segmentation fault

= apache error.log messages =
[Thu Sep 25 13:13:03 2014] [notice] Loading tile config default at /custom_tiles/ for zooms 0 - 20 from tile directory /var/lib/mod_tile with extension .png and mime type image/png

Gibransyah Fakhri

unread,
Sep 25, 2014, 2:28:44 AM9/25/14
to map...@googlegroups.com
Pada Kamis, 25 September 2014 13:15:11 UTC+7, Gibransyah Fakhri menulis:

Typho

= apache error.log messages =
[Thu Sep 25 13:13:03 2014] [notice] Loading tile config default at /frs_tiles/ for zooms 0 - 20 from tile directory /var/lib/mod_tile with extension .png and mime type image/png

Gibransyah Fakhri

unread,
Sep 25, 2014, 4:39:11 AM9/25/14
to map...@googlegroups.com
ok solved, less rigorous xD
after debugging one by one directive in /etc/renderd.conf
found a little missed path here :

[mapnik]
plugins_dir=/usr/lib/mapnik/2.0/input

It should written as : /usr/local/lib/mapnik
"segmentation fault" messages was very very cryptic messages. :(

thank you.

Dane Springmeyer

unread,
Sep 26, 2014, 1:47:02 PM9/26/14
to map...@googlegroups.com
Glad you got things worked out. In my opinion, renderd should not segfault on an incorrect Mapnik plugins directory. Also rendered should be using the result of `mapnik-config —fonts` for this value rather than hardcoding. I recommend reporting what you have found to a bug report at https://github.com/openstreetmap/mod_tile and hopefully the mod_tile maintainers will consider fixing these bugs.

Dane

Gibransyah Fakhri

unread,
Sep 29, 2014, 8:05:41 AM9/29/14
to map...@googlegroups.com
Pada Sabtu, 27 September 2014 0:47:02 UTC+7, Dane Springmeyer menulis:
 
Glad you got things worked out. In my opinion, renderd should not segfault on an incorrect Mapnik plugins directory. Also rendered should be using the result of `mapnik-config —fonts` for this value rather than hardcoding. I recommend reporting what you have found to a bug report at https://github.com/openstreetmap/mod_tile and hopefully the mod_tile maintainers will consider fixing these bugs.


Hello dane thanks for your response.
Yes it weirds, My idea just add -f option when running ./renderd to verbose whats happen here.
but it just show plain "segmentation fault" messages.
Reply all
Reply to author
Forward
0 new messages