Author Topic: Consistent hang  (Read 789 times)

levnovik

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Consistent hang
« 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!

levnovik

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Consistent hang
« Reply #1 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!

ScottMorris

  • Administrator
  • Sr. Member
  • *****
  • Posts: 2674
  • TopoFusion Author
    • View Profile
    • http://www.topofusion.com/diary
Re: Consistent hang
« Reply #2 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.
Scott Morris - founder and co-author of TopoFusion
email: smorris@topofusion.com

levnovik

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Consistent hang
« Reply #3 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.

ScottMorris

  • Administrator
  • Sr. Member
  • *****
  • Posts: 2674
  • TopoFusion Author
    • View Profile
    • http://www.topofusion.com/diary
Re: Consistent hang
« Reply #4 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!
Scott Morris - founder and co-author of TopoFusion
email: smorris@topofusion.com

levnovik

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Consistent hang
« Reply #5 on: September 10, 2017, 08:14:12 PM »
Brilliant

Offsides

  • Full Member
  • ***
  • Posts: 30
    • View Profile
Re: Consistent hang
« Reply #6 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

ScottMorris

  • Administrator
  • Sr. Member
  • *****
  • Posts: 2674
  • TopoFusion Author
    • View Profile
    • http://www.topofusion.com/diary
Re: Consistent hang
« Reply #7 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.
Scott Morris - founder and co-author of TopoFusion
email: smorris@topofusion.com

ScottMorris

  • Administrator
  • Sr. Member
  • *****
  • Posts: 2674
  • TopoFusion Author
    • View Profile
    • http://www.topofusion.com/diary
Re: Consistent hang
« Reply #8 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!
Scott Morris - founder and co-author of TopoFusion
email: smorris@topofusion.com

levnovik

  • Jr. Member
  • **
  • Posts: 5
    • View Profile
Re: Consistent hang
« Reply #9 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!

ScottMorris

  • Administrator
  • Sr. Member
  • *****
  • Posts: 2674
  • TopoFusion Author
    • View Profile
    • http://www.topofusion.com/diary
Re: Consistent hang
« Reply #10 on: April 16, 2018, 02:44:48 PM »
Excellent, thanks for reporting back!
Scott Morris - founder and co-author of TopoFusion
email: smorris@topofusion.com