renderd from mod_tile crashes on select #1363
Comments
Author: tom[at]compton.nu Well I'm sure if you attach a debugger and see what file it is trying to open that will probably give you a clue - there's no way for me to guess what the problem might be remotely. The strace should have shown you what it was trying to do though I would have thought. Jon might have more idea what is happening, so I'll pass this to him - we don't generally deal with mod_tile through trac anyway. |
Author: jburgess777[at]googlemail.com I suspect the reason is that Mapnik is failing to open the coastline shapefiles. Unfortunately your strace output is missing the relevant details. You need to add a '-f' flag in order to get the output from the threads that are created. I looked into the Mapnik code a while back and what happens is something like: the call to open the file fails and throws the first exception. This exception is caught and the shapefile destructor is called. This then tries to close the bad file descriptor and causes a second exception to occur (which isn't caught). |
Author: kavol Replying to [comment:2 jburgess777[at]googlemail.com]:
thanks for the hint - I am not a programmer, so that I do not know the right debugging tricks now I see that it tries to open the file /home/kavol/Documents/projekty/OSM/world_boundaries/world_boundaries_m.shp I wonder where this path comes from ... so that I have moved files into that location, and now I am a step further:
... I am going to investigate
so that this is a bug of Mapnik and it should be reported against it? could you enhance renderd to report error messages which would make sense to an ordinary user not knowing the "strace -f" trick, please? |
Author: kavol so the next problem is ...
again, couldn't the program just report that it failed to connect to database? ;-) |
Author: tom[at]compton.nu Isn't that exactly what it has done? You mixed up the strace output and actual program output there but it looks like the program reported that it could not connect to the database server. Even if it hadn't, that would be a mapnik issue and not something for us. |
Author: jburgess777[at]googlemail.com I don't see anything we need to fix here. The error handling is done in the Mapnik code, not mod_tile. |
Reporter: kavol
[Submitted to the original trac issue database at 7.42pm, Sunday, 23rd November 2008]
Hi.
When trying to setup tileserver using mod_tile, I am stuck at the "Run the rendering daemon 'renderd'" step as renderd crashes on my system:
kavol@jarmilka ~/Documents/projekty/OSM/mod_tile $ ./renderd
Rendering daemon
got exception ...
terminate called after throwing an instance of 'std::ios_base::failure'
what(): failed opening file: Bad file descriptor
Nespn ukonen (SIGABRT)
The error message (nor the strace output) does not give me any clue what has failed.
(I tried to follow the readme file but I cannot swear that I haven't made any mistake - I'd just be very glad if the program tells me what is wrong in that case ...)
The text was updated successfully, but these errors were encountered: