bugLordsAWar! - Bugs: bug #32446, Random turns crashes but not...

 
 

bug #32446: Random turns crashes but not random is stable

Submitted by:  dave <davebyron>
Submitted on:  Sun 13 Feb 2011 02:52:43 AM 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.

 

Sun 13 Feb 2011 03:12:58 AM UTC, comment #3:

This bug is now fixed in the latest sources. The problem was related to the "ViewingPlayer" variable not pointing to the correct player when the game started.

I can now turn on "I am the Lord of War", and random turns and it does not crash.

Thanks for your input! It has improved the game. :-)

Ben Asselstine <benasselstine>
Project Administrator
Sun 13 Feb 2011 03:01:40 AM UTC, comment #2:

here is the relevant stack trace:
#0 0x080e2153 in FogMap::isClear (pos=..., player=0x0) at FogMap.cpp:248
#1 0x08121c38 in LocationBox::isVisible (this=0x8d0af74, player=0x0)
at LocationBox.cpp:149
#2 0x08368ae4 in OverviewMap::draw (this=0x90eef00, player=0x0)
at overviewmap.cpp:480
#3 0x08369b68 in SmallMap::set_view (this=0x90eef00, new_view=...)
at smallmap.cpp:49

player == 0x0 is definitely bad.

FYI:

I obtained this useful information like this:
$ gdb /usr/local/bin/lordsawar
gdb> run

[wait for it to crash]

gdb> bt

and then the backtrace appears.

Ben Asselstine <benasselstine>
Project Administrator
Sun 13 Feb 2011 02:56:42 AM UTC, comment #1:

Thanks for notifying me of this and providing steps to reproduce the problem. I have reproduced the problem and the bug exists in the latest sources.

Ben Asselstine <benasselstine>
Project Administrator
Sun 13 Feb 2011 02:52:43 AM UTC, original submission:

version
LordsAWar! 0.1.8

to replicate
new game
random scenario
select "I am the greatest" and then select one as a human

and play

Saving every turn seams to reduce the number of crashes.

dave <davebyron>

 

(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 (Posted a comment)
  • -unavailable- added by davebyron (Submitted the item)
  • -unavailable- added by davebyron
  •  

    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):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 13 Feb 2011 03:12:58 AM UTCbenasselstineOpen/ClosedOpen=>Closed
    Sun 13 Feb 2011 02:56:42 AM UTCbenasselstineItem Group0.1.8=>Git Head
    Sun 13 Feb 2011 02:52:43 AM UTCdavebyronCarbon-Copy-=>Added davebyron

    Back to the top


    Powered by Savane 3.1-cleanup1