Pleased to declare the FleetWnd segfault bug to be fixed

Programmers discuss here anything related to FreeOrion programming. Primarily for the developers to discuss.

Moderator: Committer

Post Reply
Message
Author
User avatar
Dilvish
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Pleased to declare the FleetWnd segfault bug to be fixed

#1 Post by Dilvish »

This was the bug which periodically caused shift-select operations on the FleetWindow to cause a crash;here is the commit. I decided not to open a PR on this one like I did the outpost combat bug, but I still wanted to make sure to point it out so it makes it into our next release notes bugfix list.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

User avatar
Geoff the Medio
Programming, Design, Admin
Posts: 13603
Joined: Wed Oct 08, 2003 1:33 am
Location: Munich

Re: Pleased to declare the FleetWnd segfault bug to be fixed

#2 Post by Geoff the Medio »

Dilvish wrote:This was the bug which periodically caused shift-select operations on the FleetWindow to cause a crash;
Is this the same as various drag-drop FleetWnd crashes?

viewtopic.php?f=25&t=9053
viewtopic.php?f=28&t=8845

User avatar
Dilvish
AI Lead and Programmer Emeritus
Posts: 4768
Joined: Sat Sep 22, 2012 6:25 pm

Re: Pleased to declare the FleetWnd segfault bug to be fixed

#3 Post by Dilvish »

Geoff the Medio wrote:Is this the same as various drag-drop FleetWnd crashes?
Possibly-- in both cases they had just selected multiple ships, and if that had been done via shift-select it's possible that it could have left one of the stored iterators in a bad state even if it didn't immediately cause a crash during the shift-select.

I looked through the ListBox code and the FleetWnd code for any more cases of the same kind of bug, and found what looks like at least a spots in ListBox that were at risk for the same bug. I put up a PR for some proposed additional safety checks.
If I provided any code, scripts or other content here, it's released under GPL 2.0 and CC-BY-SA 3.0

User avatar
Vezzra
Release Manager, Design
Posts: 6102
Joined: Wed Nov 16, 2011 12:56 pm
Location: Sol III

Re: Pleased to declare the FleetWnd segfault bug to be fixed

#4 Post by Vezzra »

If you really managed to nail that bug, that would be positively awesome. This nasty has been a pain for far too long. :lol:

User avatar
MatGB
Creative Contributor
Posts: 3310
Joined: Fri Jun 28, 2013 11:45 pm

Re: Pleased to declare the FleetWnd segfault bug to be fixed

#5 Post by MatGB »

Vezzra wrote:If you really managed to nail that bug, that would be positively awesome. This nasty has been a pain for far too long. :lol:
What he said, had it happen to me last week, couldn't replicate and logs weren't helpful.
Mat Bowles

Any code or patches in anything posted here is released under the CC and GPL licences in use for the FO project.

Post Reply