Hi List & Robert,

I only found out one important thing:

viking only crashes if "Autodownload Maps" is enabled while using real time gps.
If I do not select "autodownload maps" real time gps tracking works just fine.

> Hmm I still can now sometimes get it to fail but only on an EeePC machine
> using gpsd 2.39. This uses the GPS_OPEN_R method

I am not a C coder so GPS_OPEN_R does not ring a bell.

> post your default.vik here.

I attached it. Basically it's just a osm mapnik layer and the gps layer.

> post your exact sequence of mouse/keyboard input.

Well, it just happens after hitting ctrl+ and ctrl- several times.
It crashes sometimes after 5, sometimes after 10 or more zooms, or it
even takes more, I do not see a regular pattern for that.

> Edit the src/Makefile and remove the compiler O2 directive then, make clean
> && make - might give more of a chance of a backtrace.

Yes, now it segfaults sometimes (using the --sync switch)
 
> Also try running viking with the args -d -V for maximum output.

I now used only --debug since --verbose gives too much output.
 
> Understanding the cause of the 'Fatal IO error 11' is probably key.

Yes, probably, also I noticed that the display is sometimes flickering
while osm tiles get updated after a zoom in/out.

Most of my tries to crash it end with  "viking: Fatal IO error 11 (Resource 
temporarily unavailable) on X server :0.0."
with no backtrace (using gdb --args ./src/viking --sync --debug default.vik) 
but sometimes I also get a Segfault and then a backtrace is possible.

> Possibly running with '-sync' can help with X problems.

# gdb --args ./src/viking --sync --debug default.vik
(gdb) run
...
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb6a33b70 (LWP 12098)]
0xb7b93108 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
(gdb) bt
#0  0xb7b93108 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#1  0xb7b96af4 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
#2  0xb7b96f0e in gdk_draw_rgb_image_dithalign ()
from /usr/lib/libgdk-x11-2.0.so.0 #3  0xb7b8158e in ?? ()
from /usr/lib/libgdk-x11-2.0.so.0 #4  0xb7bb63f7 in ?? ()
from /usr/lib/libgdk-x11-2.0.so.0 #5  0xb7b7fa8f in gdk_draw_pixbuf ()
from /usr/lib/libgdk-x11-2.0.so.0 #6  0xb7b7fa8f in gdk_draw_pixbuf ()
from /usr/lib/libgdk-x11-2.0.so.0 #7  0x08070115 in vik_viewport_draw_pixbuf
(vvp=0x818b038, pixbuf=0x8272958, src_x=0, src_y=0, dest_x=536, dest_y=612,
w=256, h=256) at vikviewport.c:872 #8  0x08085379 in maps_layer_draw_section
(vml=<value optimized out>, vvp=<value optimized out>, ul=<value optimized
out>, br=0xb6a32750) at vikmapslayer.c:778 #9  0x08085539 in maps_layer_draw
out>(vml=0x8204bd8, vvp=0x818b038) at vikmapslayer.c:842
#10 0x0807306a in vik_aggregate_layer_draw (val=0x8182fa8, data=0x818b038) at
vikaggregatelayer.c:293 #11 0x08064f8a in vik_layers_panel_draw_all
(vlp=0x8177670) at viklayerspanel.c:505 #12 0x08068499 in draw_redraw
(vw=0x818a008) at vikwindow.c:446 #13 0x080686a1 in draw_update (vw=0x818a008)
at vikwindow.c:384 #14 0xb78b5cbc in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0 #15 0xb78a8068 in g_closure_invoke ()
from /usr/lib/libgobject-2.0.so.0 #16 0xb78be62d in ?? ()
from /usr/lib/libgobject-2.0.so.0 #17 0xb78bfc04 in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0 #18 0xb78c0086 in g_signal_emit ()
from /usr/lib/libgobject-2.0.so.0 #19 0x08065404 in
vik_layers_panel_emit_update (vlp=0x8177670) at viklayerspanel.c:244 #20
0xb78b5cbc in g_cclosure_marshal_VOID__VOID ()
from /usr/lib/libgobject-2.0.so.0 #21 0xb78a8068 in g_closure_invoke ()
from /usr/lib/libgobject-2.0.so.0 #22 0xb78be62d in ?? ()
from /usr/lib/libgobject-2.0.so.0 #23 0xb78bfc04 in g_signal_emit_valist ()
from /usr/lib/libgobject-2.0.so.0 #24 0xb78c0086 in g_signal_emit ()
from /usr/lib/libgobject-2.0.so.0 #25 0x0806486b in
vik_layer_emit_update_secondary (vl=0x8182fa8) at viklayer.c:118 #26 0xb78b5cbc
in g_cclosure_marshal_VOID__VOID () from /usr/lib/libgobject-2.0.so.0 #27
0xb78a8142 in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0 #28
0xb78be62d in ?? () from /usr/lib/libgobject-2.0.so.0 #29 0xb78bfc04 in
g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0 #30 0xb78c0086 in
g_signal_emit () from /usr/lib/libgobject-2.0.so.0 #31 0x08064918 in
vik_layer_emit_update (vl=0x8204bd8) at viklayer.c:101 #32 0x080835dc in
map_download_thread (mdi=0x8273b00, threaddata=0x8277d40) at vikmapslayer.c:951
#33 0x08080e7d in thread_helper (args=0x8277d40, user_data=0x0) at
background.c:115 #34 0xb78295bc in ?? () from /lib/libglib-2.0.so.0 #35
0xb782769f in ?? () from /lib/libglib-2.0.so.0 #36 0xb772a585 in start_thread
() from /lib/i686/cmov/libpthread.so.0 #37 0xb76ac29e in clone ()
from /lib/i686/cmov/libc.so.6

Cheers, Lixus

Attachment: default.vik
Description: Binary data

Attachment: gdb.log.gz
Description: GNU Zip compressed data

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/

Reply via email to