Re: [Viking-devel] Real-time GPS support?

2010-06-08 Thread Robert Norris


 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.

Good stuff, I've been able to reproduce it now - and understand the problem.

However the solution is not obvious / easy :(

I've attached my stacktrace (NB line numbers may be tiny bit different as it 
was run on my own development branch)
I forgot to mention you need to break on gdk_x_error to (see 
http://wiki.debian.org/HowToGetABacktrace)

There's basically a conflict between the tile map drawing  and the gps keep it 
on screen which are done in separate threads.
They both generate vik_layer_emit_update events, which eventually call the low 
level pixbuf to screen. I think If the timing is such that both of these happen 
near enough the same time the X server (quite rightly) doesn't like it. 

Potential solutions:
. Use your workaround :)
. Some kind of lock/semaphores in the viewport to serialize the X drawing
. Some kind of redesign so only one thread updates the display
. Something simpler (that doesn't come immediately to my mind..)

These are a bit more involved than my level of Viking understanding. [Plus I'm 
really busy for the rest of this month]

HTH.
  
_
http://clk.atdmt.com/UKM/go/195013117/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
--
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/


Re: [Viking-devel] Real-time GPS support?

2010-05-30 Thread Lixus Zoran
As promised some more debug information about viking crashing using 
real time gps support. I am using debian testing on i386 hardware,
gpsd  version 2.94-2 and xorg 1:7.5+6. Viking is the latest from git.

Unfortunately there is no backtrace:

[1]li...@debian:~/data/gps/source/viking/src/# gdb --args ./viking 
~/.viking/default.vik 
GNU gdb (GDB) 7.0.1-debian
Copyright (C) 2009 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 /home/lixus/data/gps/source/viking/src/viking...done.
(gdb) run
Starting program: /home/lixus/data/gps/source/viking/src/viking 
/home/jom/.viking/default.vik
[Thread debugging using libthread_db enabled]

(viking:2364): GLib-GObject-WARNING **: IA__g_object_set_valist: construct 
property lat-attr for object `VikGotoXmlTool' can't be set after construction

(viking:2364): GLib-GObject-WARNING **: IA__g_object_set_valist: construct 
property lon-attr for object `VikGotoXmlTool' can't be set after construction
[New Thread 0xb6a33b70 (LWP 2367)]
netlib_connectsock() returns socket on fd 13
[New Thread 0xb5cffb70 (LWP 2368)]
[Thread 0xb5cffb70 (LWP 2368) exited]
[New Thread 0xb5cffb70 (LWP 2369)]
[New Thread 0xb54feb70 (LWP 2370)]
DEBUG: queue count=81 15933348
[New Thread 0xb4cfdb70 (LWP 2371)]
[New Thread 0xb44fcb70 (LWP 2372)]
[New Thread 0xb3cfbb70 (LWP 2373)]
DEBUG: queue count=166 33833176
[New Thread 0xb34fab70 (LWP 2374)]
[New Thread 0xb23edb70 (LWP 2375)]
[New Thread 0xb1beab70 (LWP 2376)]
viking: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
[Thread 0xb1beab70 (LWP 2376) exited]
[Thread 0xb23edb70 (LWP 2375) exited]
[Thread 0xb34fab70 (LWP 2374) exited]
[Thread 0xb3cfbb70 (LWP 2373) exited]
[Thread 0xb4cfdb70 (LWP 2371) exited]
[Thread 0xb54feb70 (LWP 2370) exited]
[Thread 0xb5cffb70 (LWP 2369) exited]
[Thread 0xb6a33b70 (LWP 2367) exited]
[Thread 0xb44fcb70 (LWP 2372) exited]

Program exited with code 01.
(gdb) bt
No stack.
(gdb) 



 And it crashes if you zoom in an out during realtime traking:
 I'll post a backtrace soon.

--

___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Real-time GPS support?

2010-05-25 Thread Lixus Zoran
Hi,

 It still works for me! 

You are right, it still works.

I just missed to compile viking against the new libgps,
because I thought communication would go directly to
the tcp port gpsd is listening on.

And I think it is very useful instead of using a city map
your co-pilot can help you navigating in cities you visit the first time.

Unfortunateley it freezes if the gps receiver looses reception
for a while or gpsd gets restarted.

And it crashes if you zoom in an out during realtime traking:


(viking:23304): GLib-GObject-WARNING **: IA__g_object_set_valist: construct 
property lat-attr for object `VikGotoXmlTool' can't be set after construction

(viking:23304): GLib-GObject-WARNING **: IA__g_object_set_valist: construct 
property lon-attr for object `VikGotoXmlTool' can't be set after construction
netlib_connectsock() returns socket on fd 9
viking: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.


I'll post a backtrace soon.

Regards Lixus.



--

___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Real-time GPS support?

2010-05-25 Thread Guilhem Bonnefille
I'm not aware with gpsd communication. But I read on this list (or bug
tracker) that our solution as to be improved. IMHO, a quite good
solution can be to port to geoclue.

If somebody interested in this topic...

2010/5/25 Lixus Zoran g...@muellers.ms:
 Hi,

 It still works for me!

 You are right, it still works.

 I just missed to compile viking against the new libgps,
 because I thought communication would go directly to
 the tcp port gpsd is listening on.

 And I think it is very useful instead of using a city map
 your co-pilot can help you navigating in cities you visit the first time.

 Unfortunateley it freezes if the gps receiver looses reception
 for a while or gpsd gets restarted.

 And it crashes if you zoom in an out during realtime traking:


 (viking:23304): GLib-GObject-WARNING **: IA__g_object_set_valist: construct 
 property lat-attr for object `VikGotoXmlTool' can't be set after 
 construction

 (viking:23304): GLib-GObject-WARNING **: IA__g_object_set_valist: construct 
 property lon-attr for object `VikGotoXmlTool' can't be set after 
 construction
 netlib_connectsock() returns socket on fd 9
 viking: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.


 I'll post a backtrace soon.

 Regards Lixus.



 --

 ___
 Viking-devel mailing list
 Viking-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/viking-devel
 Viking home page: http://viking.sf.net/




-- 
Guilhem BONNEFILLE
-=- JID: gu...@im.apinc.org MSN: guilhem_bonnefi...@hotmail.com
-=- mailto:guilhem.bonnefi...@gmail.com
-=- http://nathguil.free.fr/

--

___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/


Re: [Viking-devel] Real-time GPS support?

2010-05-25 Thread Greg Troxel

It makes sense to be able to use geoclue, but IMHO straight gpsd support
should remain.  The crash problems are likely not about the particular
provider anyway.


pgpkbgwPwy0qM.pgp
Description: PGP signature
--

___
Viking-devel mailing list
Viking-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/viking-devel
Viking home page: http://viking.sf.net/