TopoFusion support forums

TopoFusion Support => TopoFusion Pro => Topic started by: levnovik on September 09, 2017, 11:46:36 PM

Title: Consistent hang
Post by: levnovik on September 09, 2017, 11:46:36 PM
I can consistently hang TopoFusion Pro by enabling images on some of my tracks (with a lot of images) and then doing something (anything, like moving the map) while they are loading.  Doesn't happen every time, but often enough to be unpleasant.

Is there anything I can do to help debug the issue?  Whenever this happens, a core is stuck in a tight loop.  If there is some tracing I can enable, or even attach a debugger with symbols, I am happy to try.

Thanks a lot for a great product!
Title: Re: Consistent hang
Post by: levnovik on September 10, 2017, 12:00:53 AM
Attached debugger --- without symbols, what I can tell is that GPSMaster.ocx is walking a linked list, looking for a record with 0xBA as the first DWORD.  But the list, sadly, has a loop in it, with two records, both with 0xBB as the first DWORD...

Thanks!
Title: Re: Consistent hang
Post by: ScottMorris on September 10, 2017, 04:15:31 PM
Good work with the debugging.  Thank-you, very helpful.

How many images are we talking about here roughly?  I can throw a bunch at it and do some testing.
Title: Re: Consistent hang
Post by: levnovik on September 10, 2017, 04:49:38 PM
I just reproed with 130.  It's a race condition, doesn't repro every time. Seems related to how long file loading takes --- i.e. once the pictures are in the file cache, the problem doesn't repro with the same pictures (I think, this is anecdotal, of course).

Seriously, if you can share the symbols (pdb) (no source), I can probably tell you the line numbers, or at least a meaningful stack trace.
Title: Re: Consistent hang
Post by: ScottMorris on September 10, 2017, 05:32:18 PM
Thanks, but I am pretty sure I see it, indeed a circular loop in a linked list, as you correctly diagnosed.

I will address this bug in the next beta and release.  Many thanks for point it out!
Title: Re: Consistent hang
Post by: levnovik on September 10, 2017, 08:14:12 PM
Brilliant
Title: Re: Consistent hang
Post by: Offsides on October 03, 2017, 12:39:04 PM
Now, how often do you see a dialog like this in any tech forum?
Good job, to both of you!

Bill
Title: Re: Consistent hang
Post by: ScottMorris on October 05, 2017, 04:09:04 PM
Now, how often do you see a dialog like this in any tech forum?
Good job, to both of you!

Bill

Thanks for the compliment -- TF has been lucky to have a number of good users over the years, providing feedback, debugging issues, etc.  I'm in debt to many of you for the help.
Title: Re: Consistent hang
Post by: ScottMorris on October 30, 2017, 02:54:57 PM

I didn't dig as deep as I would have liked to on this, but I believe I have fixed it in the latest beta:

http://topofusion.com/beta.php

Thanks for any testing -- appreciated!
Title: Re: Consistent hang
Post by: levnovik on April 07, 2018, 03:49:27 PM
Sorry, didn't see this message.  Just tried out 5.48, and the problem does not repro!
Thanks a lot!
Title: Re: Consistent hang
Post by: ScottMorris on April 16, 2018, 02:44:48 PM
Excellent, thanks for reporting back!