From Navit's Wiki
Revision as of 20:40, 10 December 2007 by (talk)
Jump to: navigation, search

About segfaults/coredumps.

While already working pretty well, navit is still picky about certain things, which may cause it to segfault. You will find here the case we know of, and how to solve it until we handle it in the code. If none of theses work, please see how to report your segfault at the bottom of the page.

ERROR : file coord.c: line 71 (coord_rect_overlap): assertion failed: (r1->lu.x <= r1->rl.x)

This is caused by NavIt being unable to match a road for your current position. The first thing to check is your data source. If you don't have a GPS, try to modify the starting position in navit.xml (see Configuring navit for more details). Basically, you need to edit the line <navit center="5031.51 N 735.83 E" zoom="8192" > in navit.xml, and change it to a position near you. Most probably, you don't have maps datas for Germany, where is the default starting point.

If you have a GPS, or if you're using an nmea log file, you've got three possibilities:

  • your position isn't reported accurately yet
  • you have a problem with the LC_NUMERIC environment variable, making NavIt to truncate the coordinates ( 5.1351N is read as 5,1351N and so it's truncated to 5N since it doesn't find the decimal part)
  • you have no maps for the area your current position.

Reporting a segfault.

So, none of the previous examples worked for you. We're really sorry about that, but with your help it can be solved quickly. Please contact us. The best way is probably to ask for help in #navit on Otherwise, you can also try our forums. Before contacting us, please make sure you have gdb (the GNU Project debugger) installed. The 'strace' program can be useful too. If you are using the sdl gui, please also join the CEGUI.log file you will find in your current directory.

To use gdb, simply run NavIt this way :

gdb navit

At the gdb prompt, just type "run". NavIt will start. When it is hanged, switch back to the gdb window, type "where" and report us the whole gdb session.

No doubt we will quicky fix your issue :)

Thanks for you help

When starting Navit in a Console, you see output like navit:vehicle_track:overflow navit:vehicle_parse_gps:no leading $

(Appeared on a Navilock NL-302U; SirfIII-Chipset)

This output started to appear at my Installation, when i run navit (listening directly on file://dev/ttyUSB0) and simultanously run gpsd with cgps. The reason is, that the device has been set into SIRF-Mode (the green flashing/shining light on the device stops working). What you have to do is simply run:

sirfmon /dev/ttyUSB0 (assuming you have a USB-device and USB0 is the serial port for it) and then press "n" and <return>.

This will set the device back in NMEA-Mode (light flashs again) and navit will work again.