MantisBT - VCMI |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0001897 | VCMI | AI - Adventure Map | public | 2014-09-23 17:19 | 2022-04-12 11:18 |
|
Reporter | Povelitel | |
Assigned To | SXX | |
Priority | normal | Severity | block | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | Win XP sp2 | OS Version | |
Product Version | 0.96 | |
Target Version | | Fixed in Version | 1.next | |
|
Summary | 0001897: Game hangs after AI captures town from player in battle |
Description | probably occurred due to the fact that I fought back from a random city
it was http://youtu.be/_fkdQH86eBc [^]
Summary edited, was "After the battle, the game is blocked" |
Steps To Reproduce | end turn, AI atack on castle kill my unit and game freeze
конец хода, ИИ нападает на город, убивает моего юнита сидящего в нем и игра фризится. |
Additional Information | |
Tags | No tags attached. |
Relationships | has duplicate | 0001948 | closed | SXX | [Android][Freeze] Finishing an attacking AI battle will freeze the game | has duplicate | 0002045 | closed | | Wyłącza się jak Ktoś atakuje mi miasto | has duplicate | 0002163 | closed | SXX | Multiplayer: freeze if 1st player end turn after PVP battle before 2nd player closed battle result screen | related to | 0001724 | closed | | I loose game, but crash, | related to | 0002122 | closed | Warmonger | When ai take my town - crash | related to | 0002141 | closed | SXX | end turn battle | related to | 0002597 | closed | SXX | Freeze after battle |
|
Attached Files | Arrogance5.h3m (12,197) 2014-09-23 17:19 https://bugs.vcmi.eu/file_download.php?file_id=1905&type=bug VCMI_Client_log.txt (676,338) 2014-09-23 17:19 https://bugs.vcmi.eu/file_download.php?file_id=1906&type=bug VCMI_Server_log.txt (442,749) 2014-09-23 17:20 https://bugs.vcmi.eu/file_download.php?file_id=1907&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2014-09-23 17:19 | Povelitel | New Issue | |
2014-09-23 17:19 | Povelitel | Status | new => assigned |
2014-09-23 17:19 | Povelitel | Assigned To | => Tow |
2014-09-23 17:19 | Povelitel | File Added: Arrogance5.h3m | |
2014-09-23 17:19 | Povelitel | File Added: VCMI_Client_log.txt | |
2014-09-23 17:20 | Povelitel | File Added: VCMI_Server_log.txt | |
2014-09-23 17:42 | Ivan | Category | AI - Battles => AI - Adventure Map |
2014-09-23 17:42 | Ivan | Summary | After the battle, the game is blocked => Game hangs after AI captures town from player in battle |
2014-09-23 17:42 | Ivan | Description Updated | bug_revision_view_page.php?rev_id=2637#r2637 |
2014-11-20 12:22 | Povelitel | Note Added: 0005133 | |
2014-11-20 12:22 | Povelitel | Note Edited: 0005133 | bug_revision_view_page.php?bugnote_id=5133#r2714 |
2014-12-20 10:46 | Warmonger | Relationship added | has duplicate 0001948 |
2014-12-27 17:43 | Warmonger | Relationship added | related to 0001724 |
2015-01-24 21:29 | Warmonger | Relationship added | has duplicate 0002045 |
2015-03-05 13:24 | Warmonger | Relationship added | related to 0002122 |
2015-03-25 09:33 | Warmonger | Relationship added | related to 0002141 |
2016-10-02 12:24 | Povelitel | Assigned To | Tow => SXX |
2016-11-03 08:47 | Povelitel | Note Added: 0006888 | |
2016-11-03 08:49 | Povelitel | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=3300#r3300 |
2016-11-10 09:42 | Povelitel | Relationship added | related to 0002597 |
2017-01-28 21:21 | val-gaav | Note Added: 0006962 | |
2017-02-01 15:08 | Dydzio | Note Added: 0006965 | |
2017-03-18 18:37 | Dydzio | Note Added: 0006988 | |
2017-03-18 22:29 | SXX | Relationship added | has duplicate 0002163 |
2017-03-18 22:29 | SXX | Note Added: 0006989 | |
2017-03-19 02:25 | SXX | Note Added: 0006990 | |
2017-03-19 02:25 | SXX | Status | assigned => resolved |
2017-03-19 02:25 | SXX | Fixed in Version | => 1.next |
2017-03-19 02:25 | SXX | Resolution | open => fixed |
2022-04-12 11:18 | Povelitel | Status | resolved => closed |
Notes |
|
|
Now (0.97), this is hero just not attacks :D
|
|
|
|
0.99 still reproducibility |
|
|
|
I can confirm this bug with 0.99
If you change to quick combat before ending turn the AI will take castle and the game will not freeze. So at least there is a way to continue game. |
|
|
(0006965)
|
Dydzio
|
2017-02-01 15:08
|
|
I also noticed that you can press alt + f4 and then press cancel to "unfreeze". |
|
|
(0006988)
|
Dydzio
|
2017-03-18 18:37
|
|
Result of little research: CPlayerInterface::playerStartsTurn gets called during battle result screen, and following code from that method brutally deletes result window:
while (GH.listInt.front() != adventureInt && !dynamic_cast<CInfoWindow*>(GH.listInt.front()))
GH.popInts(1);
After adding "&& !dynamic_cast<CBattleResultWindow*>(GH.listInt.front())" to above "while" loop and properly closing battle result window deadlock is solved. This is most likely not proper fix and it looks like CPlayerInterface::playerStartsTurn is not designed to be called during something else than adventure screen. End turn of blue player seems to be undesired in this case. Further investigation is needed. |
|
|
(0006989)
|
SXX
|
2017-03-18 22:29
|
|
0002163 likely caused by same problem. |
|
|
(0006990)
|
SXX
|
2017-03-19 02:25
|
|
|