bugLordsAWar! - Bugs: bug #32782, View Stack crashes the game

 
 

bug #32782: View Stack crashes the game

Submitted by:  Ben Asselstine <benasselstine>
Submitted on:  Mon 14 Mar 2011 06:11:03 PM UTC  
 
Category: gameSeverity: 3 - Normal
Item Group: Git HeadStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 14 Mar 2011 06:36:15 PM UTC, comment #1:

Fixed in SVN.

The bug was related to the hero being in a city.

The stack-info-dialog enacts a fake fight against a scout. This lets us get augmented strengths.

The bug was that the fight routines automatically include defending stacks that are also located in the city.

Ben Asselstine <benasselstine>
Project Administrator
Mon 14 Mar 2011 06:11:03 PM UTC, original submission:

To Reproduce:

1. Click New Game -> Dol Campaign

2. Click Start Game

3. Select Stack

4. Click View->Stack

Result:
Game crashes.

Backtrace:
#0 Stack::armyCompareFightOrder (lhs=0x9017b88, rhs=0x9001868)
at stack.cpp:669
#1 0x080e05d3 in void std::__insertion_sort<__gnu_cxx::__normal_iterator<Army*, std::vector<Army, std::allocator<Army> > >, bool ()(Army const, Army const)>(__gnu_cxx::__normal_iterator<Army*, std::vector<Army, std::allocator<Army> > >, __gnu_cxx::__normal_iterator<Army, std::vector<Army, std::allocator<Army> > >, bool ()(Army const, Army const)) ()
#2 0x080e063c in void std::__final_insertion_sort<__gnu_cxx::__normal_iterator<Army*, std::vector<Army, std::allocator<Army> > >, bool ()(Army const, Army const)>(__gnu_cxx::__normal_iterator<Army*, std::vector<Army, std::allocator<Army> > >, __gnu_cxx::__normal_iterator<Army, std::vector<Army, std::allocator<Army> > >, bool ()(Army const, Army const)) ()
#3 0x080df29e in sort<__gnu_cxx::__normal_iterator<Army*, std::vector<Army> >, bool ()(Army const, Army const*)> (stacks=std::list = {...}, armies=
std::vector of length 4, capacity 4 = {...})
at /usr/lib/gcc/i686-redhat-linux/4.5.1/../../../../include/c++/4.5.1/bits/stl_algo.h:5252
#4 Fight::orderArmies (stacks=std::list = {...}, armies=
std::vector of length 4, capacity 4 = {...}) at fight.cpp:77
#5 0x080df4bf in Fight::Fight (this=0xbfffe2d0, attacker=0x8c32e40, defender=
0x8ff9fe8, type=Fight::FOR_KICKS) at fight.cpp:120
#6 0x08307de5 in StackInfoDialog::addStack (this=0xbfffe4cc, s=0x8c32e40, idx=
@0xbfffe3d8) at stack-info-dialog.cpp:107

Ben Asselstine <benasselstine>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by benasselstine (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 14 Mar 2011 06:36:15 PM UTCbenasselstineOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1