On Saturday, 1. November 2008 02:19:58 chris h wrote:
> On Friday 31 October 2008 20:26:00 chris h wrote:
> > On Thursday 30 October 2008 10:07:19 Oliver Eichler wrote:
> > > chris h schrieb:
> > > > On Thursday 30 October 2008 08:53:57 Oliver Eichler wrote:
> > > >> No, no. This is not for QLandkarte GT but for QLandkarte as the
> > > >> drivers are part of that package.
> >
> > QLandkarteGT is what I am using however based on the announcement. I have
> > recompile with the debug switch set to on. What else can I do to create a
> > backtrace of the segmentation fault?
> >
> > Best regards and thanks for any information or advise.
>
Hi Chris,
sorry for the confusion. The problem is that you need a debug build of GT and
of the drivers, that are included in original QLandkarte. But if I look at
your backtrace you succeeded as I can see line numbers.
The index stuff is ok. It comes from placing the position widget at index -1
in the status bar. Just some QT sanfu.
The backtrace points me to CSerial.cpp line 220. It's the start of a while
loop in my source. And there is nothing suspicious to see :/. Can you cross
check if it is the same in your code?
....
while ((::time(NULL) < starttime + read_timeout) && !ready) {
if (gettimeofday( &starttv, NULL ) == -1)
timerclear( & starttv );
....
Ususally I would start to add a lot of printf() instructions to circle down
the problem. Especially to check for bad pointers. Think you have to do this
instead of me.
The one thing that puzzles me is that exactly this same driver works for you
in QLandkarte. I would have expected the problem in GT code rather than in
the driver code.
Another solution to this problem would be to write a NMEA module in GT, like
the ones for Garmin devices and QLandkarte M.
Thus your options are digging into the code or to wait until this native NMEA
module is written one day.
Oliver
> OK so here is what I did.
> rebuild QLandkarteGT with the dbug turned on
> started with gdb ./qlandkartegt
> entered: r
> produced crash
> bt output as follows:
> --------------------------------------------------
> Starting program: /home/chris123/sample2/QLandkarteGT/bin/qlandkartegt
> [Thread debugging using libthread_db enabled]
> warning: Lowest section in /usr/lib/libicudata.so.38 is .hash at 000000b4
> [New Thread 0xb48d28f0 (LWP 28857)]
> QStatusBar::insertPermanentWidget: Index out of range (1), appending widget
> CDeviceGarmin::CDeviceGarmin()
> [New Thread 0xb3e09b90 (LWP 28860)]
> start thread
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0xb3e09b90 (LWP 28860)]
> 0xb7f174e0 in ?? ()
> (gdb) bt
> #0 0xb7f174e0 in ?? ()
> #1 0xb45d50dc in Garmin::CSerial::read (this=0x83f3608,
> data=0xb3e092ac "`�x\230f\030x") at CSerial.cpp:220
> #2 0xb45d1a7c in NMEA::rtThread (ptr=0x83e3510) at CDevice.cpp:245
> #3 0xe0e08098 in ?? ()
> Cannot access memory at address 0xe07ee082
> ---------------------------------------------
> model is Holix GR-213
>
> The index out of range issue comes up from a map I tried to load that it
> did not like. This notice appears every time I start the app now. Seems to
> be pulling it out of some cash of file space that I have not been able to
> find. m
> Thanks for any help and assistance in sorting this out.
>
> Best regards
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
QLandkarte-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qlandkarte-users