Opened 8 months ago

Closed 3 months ago

#1349 closed defect/bug (fixed)

Shapefile support not working

Reported by: http://wiki.navit-project.org/index.php/user:petermckinley Owned by: KaZeR
Priority: major Milestone: version 0.5.1
Component: core Version:
Severity: normal Keywords:
Cc:

Description (last modified by kazer)

Navit won't launch / crashes when configured to use Shapefiles. Result is exactly the same with Shapefiles from 2 different makers, comprising identical 5 file types, (.shp .dbf .cpg .prj .shx) including http://download.geofabrik.de/

<mapset enabled="yes">

<map type="shapefile" enabled="yes" data="/path/to/myshapefile.shp"/>

Running Navit from Terminal:

"
Attaching to program: /usr/bin/navit, process 4628
Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
/home/peter/4628: No such file or directory.
No stack.
The program is not being run.
peter@LubuntuTest:~$
"

If I run Navit as root:

"
"0x00007fe06f60b48a in __GI___waitpid (pid=4755, stat_loc=stat_loc@entry=0x7ffccec91940, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29
29    ../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.
#0  0x00007fe06f60b48a in __GI___waitpid (pid=4755, stat_loc=stat_loc@entry=0x7ffccec91940, options=options@entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29
#1  0x00007fe06f5842fb in do_system (line=<optimised out>) at ../sysdeps/posix/system.c:148
#2  0x0000000000420c8c in ?? ()
#3  <signal handler called>
#4  0x00007fe063059aa0 in DBFGetFieldCount () from /usr/lib/navit/map/libmap_shapefile.so
#5  0x00007fe06305687f in ?? () from /usr/lib/navit/map/libmap_shapefile.so
#6  0x000000000042da17 in map_new ()
#7  0x00000000004167e4 in ?? ()
#8  0x00007fe0704bec53 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#9  0x00007fe0704bfd3b in g_markup_parse_context_parse () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00000000004151e6 in ?? ()
#11 0x0000000000417497 in config_load ()
#12 0x000000000040f4de in main_real ()
#13 0x00007fe06f55f3f1 in __libc_start_main (main=0x40f110 <main>, argc=1, argv=0x7ffccec935a8, init=<optimised out>, fini=<optimised out>, rtld_fini=<optimised out>, stack_end=0x7ffccec93598)
    at ../csu/libc-start.c:291
#14 0x000000000040f149 in _start ()
Detaching from program: /usr/bin/navit, process 4754
peter@LubuntuTest:~$
"

Change History (3)

comment:1 Changed 3 months ago by kazer

  • Description modified (diff)

comment:2 Changed 3 months ago by kazer

The shapefile driver has been fixed and we now have some documentation for it : https://wiki.navit-project.org/index.php/Shapefiles

comment:3 Changed 3 months ago by kazer

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.