Opened 10 years ago

Closed 10 years ago

#685 closed defect/bug (fixed)

Navit crashes when switching between layouts of which one does not have a defined cursor

Reported by: korrosa Owned by: KaZeR
Priority: minor Milestone:
Component: core Version: git master
Severity: Keywords:
Cc: nick@…

Description

This is a bit of an unusual use-case, and won't be seen by the majority of Navit users if they just use the standard Navit.xml.

I have split the standard shipped version of Navit.xml into smaller sub-files, in order to make it easier to read and maintain. This means that I have split each layout into its own file, and included it in Navit.xml with the xi:include tag.

When copying over the car-dark layout, I left out the cursor definitions, so not cursor was displaying. This has the following effect:

IF(car-dark is default layout)

Navit starts fine, and routes without using the cursor. Changing the layout to car (which does have a cursor defined) also works fine. Changing the layout back to car-dark seems to work, except the cursor from the car layout remains on the screen, but not following the route or road (it seems like it's just in it's last position relative to the screen when changing the layout) Trying to change the road layout back to car causes Navit to crash with the error shown below.

IF(car is the default layout)

Navit starts fine. Changing the layout to car-dark seems to work, except the cursor from the car layout remains on the screen, but not following the route or road (it seems like it's just in it's last position relative to the screen when changing the layout) Trying to change the road layout back to car causes Navit to crash with the error shown below.

Once I added a cursor definition to car-dark everything works perfectly.

Error:

GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/local/bin/navit...done.
Attaching to program: /usr/local/bin/navit, process 1497
Reading symbols from /usr/lib/libgthread-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgthread-2.0.so.0
Reading symbols from /usr/lib/libgmodule-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgmodule-2.0.so.0
Reading symbols from /lib/tls/i686/cmov/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/librt.so.1
Reading symbols from /lib/libglib-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libglib-2.0.so.0
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/tls/i686/cmov/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/tls/i686/cmov/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/libpcre.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libpcre.so.3
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/local/lib/navit/map/libmap_textfile.so...done.
Loaded symbols for /usr/local/lib/navit/map/libmap_textfile.so
Reading symbols from /usr/local/lib/navit/graphics/libgraphics_gtk_drawing_area.so...done.
Loaded symbols for /usr/local/lib/navit/graphics/libgraphics_gtk_drawing_area.so
Reading symbols from /usr/lib/libgtk-x11-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgtk-x11-2.0.so.0
Reading symbols from /usr/lib/libgdk-x11-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgdk-x11-2.0.so.0
Reading symbols from /usr/lib/libatk-1.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libatk-1.0.so.0
Reading symbols from /usr/lib/libgio-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgio-2.0.so.0
Reading symbols from /usr/lib/libpangoft2-1.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpangoft2-1.0.so.0
Reading symbols from /usr/lib/libgdk_pixbuf-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgdk_pixbuf-2.0.so.0
Reading symbols from /usr/lib/libpangocairo-1.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpangocairo-1.0.so.0
Reading symbols from /usr/lib/libcairo.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcairo.so.2
Reading symbols from /usr/lib/libpango-1.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpango-1.0.so.0
Reading symbols from /usr/lib/libfreetype.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfreetype.so.6
Reading symbols from /usr/lib/libfontconfig.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfontconfig.so.1
Reading symbols from /usr/lib/libgobject-2.0.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgobject-2.0.so.0
Reading symbols from /usr/lib/libXext.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXext.so.6
Reading symbols from /usr/lib/libXrender.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXrender.so.1
Reading symbols from /usr/lib/libXinerama.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXinerama.so.1
Reading symbols from /usr/lib/libXi.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXi.so.6
Reading symbols from /usr/lib/libXrandr.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXrandr.so.2
Reading symbols from /usr/lib/libXcursor.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXcursor.so.1
Reading symbols from /usr/lib/libX11.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libX11.so.6
Reading symbols from /usr/lib/libXcomposite.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXcomposite.so.1
Reading symbols from /usr/lib/libXdamage.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXdamage.so.1
Reading symbols from /usr/lib/libXfixes.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXfixes.so.3
Reading symbols from /lib/tls/i686/cmov/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libresolv.so.2
Reading symbols from /lib/libselinux.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libselinux.so.1
Reading symbols from /usr/lib/libpixman-1.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libpixman-1.so.0
Reading symbols from /usr/lib/libdirectfb-1.2.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdirectfb-1.2.so.0
Reading symbols from /usr/lib/libfusion-1.2.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfusion-1.2.so.0
Reading symbols from /usr/lib/libdirect-1.2.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdirect-1.2.so.0
Reading symbols from /lib/libpng12.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpng12.so.0
Reading symbols from /usr/lib/libxcb-render-util.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxcb-render-util.so.0
Reading symbols from /usr/lib/libxcb-render.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxcb-render.so.0
Reading symbols from /usr/lib/libxcb.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxcb.so.1
Reading symbols from /lib/libexpat.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libexpat.so.1
Reading symbols from /usr/lib/libXau.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXau.so.6
Reading symbols from /usr/lib/libXdmcp.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libXdmcp.so.6
Reading symbols from /lib/tls/i686/cmov/libnss_compat.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_compat.so.2
Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1
Reading symbols from /lib/tls/i686/cmov/libnss_nis.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_nis.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
Reading symbols from /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
Reading symbols from /usr/lib/libcanberra-gtk.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcanberra-gtk.so.0
Reading symbols from /usr/lib/libcanberra.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcanberra.so.0
Reading symbols from /usr/lib/libvorbisfile.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libvorbisfile.so.3
Reading symbols from /usr/lib/libvorbis.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libvorbis.so.0
Reading symbols from /usr/lib/libogg.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libogg.so.0
Reading symbols from /usr/lib/libtdb.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libtdb.so.1
Reading symbols from /usr/lib/libltdl.so.7...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libltdl.so.7
Reading symbols from /usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so
Reading symbols from /usr/local/lib/navit/font/libfont_freetype.so...done.
Loaded symbols for /usr/local/lib/navit/font/libfont_freetype.so
Reading symbols from /usr/lib/libfribidi.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libfribidi.so.0
Reading symbols from /usr/local/lib/navit/gui/libgui_internal.so...done.
Loaded symbols for /usr/local/lib/navit/gui/libgui_internal.so
Reading symbols from /usr/local/lib/navit/osd/libosd_core.so...done.
Loaded symbols for /usr/local/lib/navit/osd/libosd_core.so
Reading symbols from /usr/local/lib/navit/vehicle/libvehicle_gpsd_dbus.so...done.
Loaded symbols for /usr/local/lib/navit/vehicle/libvehicle_gpsd_dbus.so
Reading symbols from /usr/lib/libdbus-glib-1.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdbus-glib-1.so.2
Reading symbols from /lib/libdbus-1.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libdbus-1.so.3
Reading symbols from /usr/local/lib/navit/vehicle/libvehicle_gpsd.so...done.
Loaded symbols for /usr/local/lib/navit/vehicle/libvehicle_gpsd.so
Reading symbols from /usr/lib/libgps.so.19...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgps.so.19
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /usr/local/lib/navit/map/libmap_binfile.so...done.
Loaded symbols for /usr/local/lib/navit/map/libmap_binfile.so
Reading symbols from /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
Reading symbols from /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-xpm.so
Reading symbols from /usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/gtk-2.0/2.10.0/loaders/svg_loader.so
Reading symbols from /usr/lib/librsvg-2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/librsvg-2.so.2
Reading symbols from /usr/lib/libgsf-1.so.114...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgsf-1.so.114
Reading symbols from /usr/lib/libcroco-0.6.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcroco-0.6.so.3
Reading symbols from /usr/lib/libxml2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from /lib/libbz2.so.1.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libbz2.so.1.0
0x008b4422 in __kernel_vsyscall ()
#0  0x008b4422 in __kernel_vsyscall ()
#1  0x001a77d3 in waitpid () from /lib/tls/i686/cmov/libc.so.6
#2  0x00148de3 in ?? () from /lib/tls/i686/cmov/libc.so.6
#3  0x00cf527d in system () from /lib/tls/i686/cmov/libpthread.so.0
#4  0x0805f42f in sigsegv (sig=11) at debug.c:67
#5  <signal handler called>
#6  0x08056ae2 in vehicle_set_cursor (this_=0x9da40b0, cursor=0x9db5b68) at vehicle.c:301
#7  0x0806b57d in navit_set_cursors (this_=<value optimised out>) at navit.c:1418
#8  0x0806e011 in navit_set_attr_do (this_=0x9d349b8, attr=0xa610db4, init=0) at navit.c:1557
#9  0x00c4d1f5 in gui_internal_button_attr_pressed (this=0x9d97aa0, w=0xa610ce0, data=0x0) at gui_internal.c:823
#10 0x00c4eba6 in gui_internal_call_highlighted (data=0x9d97aa0, pressed=0, button=1, p=0xbfa125e8) at gui_internal.c:1417
#11 gui_internal_button (data=0x9d97aa0, pressed=0, button=1, p=0xbfa125e8) at gui_internal.c:4971
#12 0x0805c8c1 in callback_call (cb=0x9e398b0, pcount=3, p=0xbfa12530) at callback.c:172
#13 0x0805c9c8 in callback_list_call_attr (l=0x9d96c00, type=attr_button, pcount=3, p=0xbfa12530) at callback.c:219
#14 0x0805cb1f in callback_list_call_attr_args (cbl=0x9d96c00, type=attr_button, count=166753664) at callback.c:235
#15 0x00d20818 in button_release (widget=0x9d66050, event=0x9d684f8, user_data=0x9da79e0) at graphics_gtk_drawing_area.c:744
#16 0x003fa424 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#17 0x00f57252 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#18 0x00f6b99d in ?? () from /usr/lib/libgobject-2.0.so.0
#19 0x00f6cc33 in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#20 0x00f6d256 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#21 0x00527636 in ?? () from /usr/lib/libgtk-x11-2.0.so.0
#22 0x003f2a5d in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#23 0x003f3e07 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#24 0x00ac039a in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#25 0x00e4e5e5 in g_main_context_dispatch () from /lib/libglib-2.0.so.0
#26 0x00e522d8 in ?? () from /lib/libglib-2.0.so.0
#27 0x00e52817 in g_main_loop_run () from /lib/libglib-2.0.so.0
#28 0x0805a336 in event_glib_main_loop_run () at event_glib.c:34
#29 0x0805f6de in event_main_loop_run () at event.c:38
#30 0x0805364c in main_real (argc=1, argv=0xbfa12d14) at start_real.c:180
#31 0x0805339b in main (argc=1, argv=0xbfa12d14) at start.c:25
Detaching from program: /usr/local/bin/navit, process 1497

Change History (1)

comment:1 Changed 10 years ago by number6

  • Cc nick@… added
  • Resolution set to fixed
  • Status changed from new to closed

Added in Revision 3631

Note: See TracTickets for help on using tickets.