project-navigation
Personal tools

Author Topic: Crash on clicking 'aircraft' in base.  (Read 6068 times)

Offline ptbptb

  • Rookie
  • ***
  • Posts: 60
    • View Profile
Crash on clicking 'aircraft' in base.
« on: September 07, 2011, 12:52:40 pm »
I've cut short the console log - once it started repeating it just kept on for ever.

I have eight bases, two aircraft in each, and the bug occurred when looking at each aircraft to check for equipment that needs to be bought / installed.  It crashed after checking eight or so aircraft.  

The game version is that downloaded on Aug 21st.

I've seen this bug occur a few times, it seems to have something to do with switching from one base to another several times in a row without backing out into the globe view screen.

I was not able to recreate from the latest save file (I didn't bother fighting the battle before trying to force the bug to occur, though).
« Last Edit: September 08, 2011, 05:13:44 pm by ptbptb »

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Crash when checking aircraft equipment in all bases.
« Reply #1 on: September 07, 2011, 01:40:17 pm »
I've cut short the console log - once it started repeating it just kept on for ever.

There is nothing - nothing important - in your log.

I have eight bases, two aircraft in each, and the bug occurred when looking at each aircraft to check for equipment that needs to be bought / installed.  It crashed after checking eight or so aircraft. 

The game version is that downloaded on Aug 21st.

I've seen this bug occur a few times, it seems to have something to do with switching from one base to another several times in a row without backing out into the globe view screen.

I was not able to recreate from the latest save file (I didn't bother fighting the battle before trying to force the bug to occur, though).

Aug 21 wasn't yesterday, you know. And you've missed sharing some important information: How did you make it crash, what does "crash" mean for you. Did you change bases on Base screen, on Aircraft screen or where?

-geever

Offline ptbptb

  • Rookie
  • ***
  • Posts: 60
    • View Profile
Re: Crash when checking aircraft equipment in all bases.
« Reply #2 on: September 07, 2011, 02:05:27 pm »
There is nothing - nothing important - in your log.
Er, sorry about that. Something obviously went wrong when I tried to cut the log down from 31MB to something I could post as an attachment. It was a buffer overflow with a two command loop repeated endlessly (something about select aircraft). I'll try again next time it happens. (Usually happens several times a day, but it's not very predictable).

Quote
Aug 21 wasn't yesterday, you know.
Yes, for some reason I don't download 1GB every day.  

Quote
And you've missed sharing some important information: How did you make it crash

It just happens when you click 'Aircraft'.

Quote
what does "crash" mean for you.
Program goes into an endless loop (as I mentioned). The console log got to 31MB. I get 'Program not responding' and close it.

Quote
Did you change bases on Base screen, on Aircraft screen or where?
Both.
« Last Edit: September 07, 2011, 02:11:54 pm by ptbptb »

Offline ptbptb

  • Rookie
  • ***
  • Posts: 60
    • View Profile
Re: Crash when checking aircraft equipment in all bases.
« Reply #3 on: September 07, 2011, 05:02:54 pm »
OK, bug happened again - got the log.

I figured out what happened with the 'disappearing' log section. I selected the log with 'browse' but didn't post until after I tried to reproduce the bug - and then, of course, the new log had overwritten the file I wanted to attach.

Switching between bases was a red herring - this happened on the first base I clicked on from the geoscape when I hit the 'Airplane' button.

The base did have one plane (Stilleto) out at the time, that might be relevant.

Note that the content of the log differs slightly (from memory) compared to last time, but it's basically the same problem of looping commands overrunning string buffer.

[EDIT] P.S. That was with a nightly-build I downloaded after my first post.
« Last Edit: September 07, 2011, 05:52:28 pm by ptbptb »

Offline ptbptb

  • Rookie
  • ***
  • Posts: 60
    • View Profile
Re: Crash when checking aircraft equipment in all bases.
« Reply #4 on: September 07, 2011, 10:14:39 pm »
And again.

Offline ptbptb

  • Rookie
  • ***
  • Posts: 60
    • View Profile
Re: Crash on clicking 'aircraft' in base.
« Reply #5 on: September 08, 2011, 05:26:49 pm »
This time it's repeatable (although slightly different in when it's triggered to before).

Here's how to get it to occur (on my computer, anyway).

1. Start new instance of UFO AI
2. Click on 'Babylon 5' base
3. Click 'Aircraft'
4. Select 'Equipment' tag then 'Items' view for each aircraft in turn.
5. Click next (right arrow) base.
* Repeat step 4 to 5 until you get to base Dr Who. It usually crashes when you select the aircraft Stingray in base Dr Who. Sometimes it crashes as soon as you click 'Aircraft' from the base Dr Who.

If you skip steps (e.g. go direct to base Dr Who from the geoscape,) it doesn't crash.
« Last Edit: September 09, 2011, 09:59:24 am by ptbptb »

Offline sparkler

  • Cannon Fodder
  • **
  • Posts: 3
    • View Profile
Re: Crash on clicking 'aircraft' in base.
« Reply #6 on: September 09, 2011, 04:48:31 am »
im not getting a crash and i clicked next and equipment over and over again and dr who is the 3rd base not 4th-5th but ive got 8th sept snapshot on my pc atm

Offline ptbptb

  • Rookie
  • ***
  • Posts: 60
    • View Profile
Re: Crash on clicking 'aircraft' in base.
« Reply #7 on: September 09, 2011, 09:54:54 am »
im not getting a crash and i clicked next and equipment over and over again and dr who is the 3rd base not 4th-5th but ive got 8th sept snapshot on my pc atm

Did you click 'Items' as well as 'Equipment'? You have* to click both for both aircraft in each base.  

The snapshot shouldn't matter as the same bug was there in the Aug 21 download.  Also I didn't say anything about which base Dr Who was.

* Well, at least I had to.
« Last Edit: September 09, 2011, 12:54:19 pm by ptbptb »

Offline ptbptb

  • Rookie
  • ***
  • Posts: 60
    • View Profile
Re: Crash on clicking 'aircraft' in base.
« Reply #8 on: September 09, 2011, 12:58:57 pm »
Oh, I've just realised something relevant to this bug.

When the aircraft screen of a base is displayed the aircraft currently selected depends on which aircraft you had selected in the previous screen displayed (even if it's a different base). e.g. If in Base 1 you select Aircraft 2 then clicking 'Next Base' followed by 'Aircraft' will leave you with Aircraft 2 selected from those in the second base.

So the reason why it sometimes crashes when you click 'Aircraft' and sometimes crashes when you select an aircraft from the list at that base is now clear.  When it crashes on clicking 'Aircraft' the aircraft that is out of the base is selected. When it doesn't crash for the initial display of the Aircraft screen then the aircraft that is in the base is selected.

What's causing the crash has something to do with the display of the aircraft that is out of the base.  I have no idea why it only happens sometimes, though.

Offline sparkler

  • Cannon Fodder
  • **
  • Posts: 3
    • View Profile
Re: Crash on clicking 'aircraft' in base.
« Reply #9 on: September 09, 2011, 03:45:15 pm »
ok ive got this crashing now

1. click Babylon 5 then aircraft, equipment then select sopwith camel then items then press next base
2. now at voyager press aircraft (medusa should be selected) equipment then items then next base again
3. now at dr who base press aircraft then crash

also going to voyager base selecting aircraft then medusa equipment then items then going to DS9 and pressing aircraft = crash

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Crash on clicking 'aircraft' in base.
« Reply #10 on: September 09, 2011, 09:07:36 pm »
there is an endless loop of

Code: [Select]
aircraft_update_list;
mn_select_aircraft 0;
mn_select_aircraft 1;
airequip_zone_select 1;
aircraft_update_list;
mn_select_aircraft 0;
mn_select_aircraft 1;
airequip_zone_select 1;
airequip_zone_select 1;
airequip_zone_select 1;
aircraft_update_list;
mn_select_aircraft 0;
mn_select_aircraft 1;
airequip_zone_select 1;
aircraft_update_list;
mn_select_aircraft 0;
mn_select_aircraft 1;
airequip_zone_select 1;
airequip_zone_select 1;
airequip_zone_select 1;
aircraft_update_list;
mn_select_aircraft 0;
mn_select_aircraft 1;
airequip_zone_select 1;
aircraft_update_list;
mn_select_aircraft 0;
mn_select_aircraft 1;
airequip_zone_select 1;
airequip_zone_select 1;
airequip_zone_select 1;
aircraft_update_list;
mn_select_aircraft 0;
mn_select_aircraft 1;
airequip_zone_select 1;
aircraft_update_list;
mn_select_aircraft 0;
mn_select_aircraft 1;
airequip_zone_select 1;
airequip_zone_select 1;
airequip_zone_select 1;
aircraft_update_list;
mn_select_aircraft 0;
mn_select_aircraft 1;
airequip_zone_select 1;
aircraft_update_list;

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Crash on clicking 'aircraft' in base.
« Reply #11 on: September 09, 2011, 10:37:31 pm »
Hopefully fixed in latest master.

Sorry for the delay.

-geever

Offline ptbptb

  • Rookie
  • ***
  • Posts: 60
    • View Profile
Re: Crash on clicking 'aircraft' in base.
« Reply #12 on: September 10, 2011, 11:46:07 am »
Hopefully fixed in latest master.

Thanks a lot. :-)  I think I'll just keep avoiding the aircraft screen when there are aircraft out and about for now.

I came across another bug just now - but I think it will be next to impossible to reproduce.  A Taman turned invisible after crouching down. He shot at my soldiers for a few turns while I tried to work out what had happened, then I got him by firing plasma grenades around the general area where I thought he was. There wasn't any cover to speak of (just a couple of houses that I looked inside).

Code: [Select]
2011/09/10 10:26:08 Team 1's round started!
2011/09/10 10:26:56 Mnookk Kkr Kraukk is consumed by mad rage!
2011/09/10 10:26:59 Team 1 ended round
2011/09/10 10:26:59 Team 7's round started!
2011/09/10 10:27:04 Team 7 ended round
2011/09/10 10:27:04 Team 0's round started!
2011/09/10 10:27:06 Team 0 ended round
2011/09/10 10:27:06 Team 1's round started!
2011/09/10 10:27:16 [STATS] Paul (Ahalya Hashimoto) kills civilian (b c) with 5-Shot Burst of machinegun_ammo
2011/09/10 10:27:37 Team 1 ended round
2011/09/10 10:27:37 Team 7's round started!
2011/09/10 10:27:39 Team 7 ended round
2011/09/10 10:27:39 Team 0's round started!
2011/09/10 10:27:41 Team 0 ended round
2011/09/10 10:27:41 Team 1's round started!
2011/09/10 10:28:08 Team 1 ended round
2011/09/10 10:28:08 Team 7's round started!
2011/09/10 10:28:14 Team 7 ended round
2011/09/10 10:28:14 Team 0's round started!
2011/09/10 10:28:14 Team 0 ended round
2011/09/10 10:28:14 Team 1's round started!
2011/09/10 10:28:30 Team 1 ended round
2011/09/10 10:28:30 Team 7's round started!
2011/09/10 10:28:38 Team 7 ended round
2011/09/10 10:28:38 Team 0's round started!
2011/09/10 10:28:38 Team 0 ended round
2011/09/10 10:28:38 Team 1's round started!
2011/09/10 10:29:13 [STATS] Paul (Dmitry Kuznetzov) kills alien (Mnookk Kkr Kraukk) with Aimed Shot - Airburst of grenl_plasma_ammo
2011/09/10 10:29:16 [STATS] End of game - Team 1 is the winner

Offline geever

  • Project Coder
  • PHALANX Commander
  • ***
  • Posts: 2561
    • View Profile
Re: Crash on clicking 'aircraft' in base.
« Reply #13 on: September 10, 2011, 01:31:51 pm »
Thanks a lot. :-)  I think I'll just keep avoiding the aircraft screen when there are aircraft out and about for now.

I came across another bug just now - but I think it will be next to impossible to reproduce.  A Taman turned invisible after crouching down. He shot at my soldiers for a few turns while I tried to work out what had happened, then I got him by firing plasma grenades around the general area where I thought he was. There wasn't any cover to speak of (just a couple of houses that I looked inside).


it isn't a good idea mixing threads like this.

Please use Bug Tracker for reporting issues (and create separate ticket for each). Thanks

-geever