MantisBT - VCMI
View Issue Details
0001596VCMIOtherpublic2013-11-23 01:172015-08-24 21:31
Povelitel 
linuxrocks123 
highcrashalways
closedfixed 
PCwindowswindows7 sp1
0.94 
0.98d 
0001596: Memory leak every turn
http://youtu.be/Jv_bVKl4nCQ [^]

Autotesting mode. --autoskip

It is impossible that game was tested constantly.
From time to time there is a crash.
Depending on the map crash time miscellaneous. As well as quantity of consumed memory. And number of days.
In my computer of 4 Gb RAM. There are crash when the client consumes 1,2 gigabytes, happens 2 Gb differently.
I want that heroes were tested constantly, and didn't take off because of it. (can be it it is necessary to nullify after each gigabyte?)

If the map big and is a lot of players, after days before crash there will be much less time.
But more long to wait for it in real time.

Its problem prevents to check 24 hours per day
I played in auto mode 72 months. still happens

client:

19:05:43.671875 TRACE global [e00] - Creating Saves/Autosave_3.vcgm1
19:05:43.671875 TRACE global [e00] - Can't create file: wrong mount point: CONFIG/
19:05:43.671875 TRACE global [e00] - Resource created successfully
19:05:43.671875 INFO global [e00] - Saving lib part of game...
19:05:43.687500 INFO global [e00] - Saving header
19:05:43.687500 INFO global [e00] - Saving options
19:05:43.687500 INFO global [e00] - Saving handlers
19:05:43.765625 INFO global [e00] - Saving gamestate
19:05:44.203125 TRACE global [e00] - Entering void __thiscall CClient::serialize(class COSer &,const int): Saving player 0 interface.
19:05:44.203125 TRACE global [e00] - Leaving void __thiscall CClient::serialize(class COSer &,const int).
19:05:44.203125 TRACE global [e00] - Entering void __thiscall CClient::serialize(class COSer &,const int): Saving player 1 interface.
19:05:44.203125 TRACE ai [e00] - Entering void __thiscall VCAI::saveGame(class COSer &,const int): version '752'.
19:05:44.203125 TRACE ai [e00] - Entering void __thiscall CAdventureAI::saveGame(class COSer &,const int): version '752'.
19:05:44.203125 TRACE ai [e00] - Leaving void __thiscall CAdventureAI::saveGame(class COSer &,const int).
19:05:44.234375 TRACE ai [e00] - Leaving void __thiscall VCAI::saveGame(class COSer &,const int).
19:05:44.234375 TRACE global [e00] - Leaving void __thiscall CClient::serialize(class COSer &,const int).
19:05:44.234375 TRACE network [e00] - Made second apply on cl
19:05:44.234375 TRACE network [e00] - Listening...
19:05:44.250000 TRACE network [e00] - received server message of type struct PackageApplied, data: {CPack: type '94'}
19:05:44.250000 TRACE network [e00] - Made first apply on cl
19:05:44.250000 TRACE network [e00] - Applied on gs
19:05:44.250000 TRACE network [e00] - Made second apply on cl
19:05:44.250000 TRACE network [e00] - Listening...
19:05:44.265625 TRACE network [e00] - received server message of type struct PackageApplied, data: {CPack: type '94'}
19:05:44.265625 TRACE network [e00] - Made first apply on cl
19:05:44.265625 TRACE network [e00] - Applied on gs
19:05:44.265625 TRACE network [e00] - Made second apply on cl
19:05:44.265625 TRACE network [e00] - Listening...
19:05:44.296875 TRACE network [e00] - received server message of type struct YourTurn, data: {CPack: type '100'}
19:05:44.296875 TRACE network [e00] - Made first apply on cl
19:05:44.296875 TRACE network [e00] - Applied on gs
19:05:44.312500 TRACE ai [e00] - Entering void __thiscall VCAI::yourTurn(void).
19:05:44.406250 TRACE ai [e00] - Leaving void __thiscall VCAI::yourTurn(void).
19:05:44.406250 ERROR network [e00] - Lost connection to server, ending listening thread!
19:05:44.437500 ERROR network [e00] - boost::thread_resource_error: Была сделана попытка загрузить программу, имеющую неверный формат
19:05:44.437500 ERROR network [e00] - Something wrong, lost connection while game is still ongoing...
19:05:44.453125 ERROR global [e00] - Disaster happened.
19:05:44.468750 ERROR global [e00] - Reason: 0xe06d7363 - UNKNOWN EXCEPTION at 7d610023:7D,4E2,1B6
19:05:44.468750 ERROR global [e00] - Thread ID: 3584 [3584]
19:05:44.468750 ERROR global [e00] - Crash info will be put in VCMI_client.exe_crashinfo.dmp
19:05:44.656250 TRACE global [c5c] - Del-ing music file music/AITheme2
19:05:44.656250 TRACE global [c5c] - Playing music file Music/Snow.mp3



server:



19:05:43.625000 INFO global [dfc] - Saving to Saves/Autosave_3
19:05:43.625000 TRACE global [dfc] - Creating Saves/Autosave_3.vsgm1
19:05:43.625000 TRACE global [dfc] - Can't create file: wrong mount point: CONFIG/
19:05:43.625000 TRACE global [dfc] - Resource created successfully
19:05:43.625000 INFO global [dfc] - Ordering clients to serialize...
19:05:43.625000 TRACE global [dfc] - Sending to all clients a package of type struct SaveGame
19:05:43.625000 INFO global [dfc] - Saving lib part of game...
19:05:43.625000 INFO global [dfc] - Saving header
19:05:43.625000 INFO global [dfc] - Saving options
19:05:43.625000 INFO global [dfc] - Saving handlers
19:05:43.703125 INFO global [dfc] - Saving gamestate
19:05:44.109375 INFO global [dfc] - Saving server state
19:05:44.109375 INFO global [dfc] - Game has been successfully saved!
19:05:44.109375 INFO global [dfc] - Game has been saved as Saves/Autosave_3
19:05:44.109375 TRACE global [dfc] - Message successfully applied (result=1)!
19:05:44.125000 TRACE global [dfc] - Received client message (request 91123 by player
No tags attached.
? Wood race.h3m (3,559) 2013-11-23 01:17
https://bugs.vcmi.eu/file_download.php?file_id=1626&type=bug
? Wood race NO AI.h3m (3,559) 2014-11-25 11:35
https://bugs.vcmi.eu/file_download.php?file_id=2020&type=bug
Issue History
2013-11-23 01:17PovelitelNew Issue
2013-11-23 01:17PovelitelFile Added: Wood race.h3m
2013-11-23 07:24WarmongerPrioritynormal => high
2013-11-23 07:24WarmongerSeverityminor => crash
2013-11-23 07:24WarmongerCategoryGUI - Other => Other
2013-11-23 07:24WarmongerSummaryProblems with memory => Memory leak every turn
2013-12-19 19:46IvanNote Added: 0004183
2013-12-27 13:52PovelitelNote Added: 0004213
2013-12-27 14:11IvanNote Added: 0004214
2014-11-25 11:34PovelitelNote Added: 0005163
2014-11-25 11:35PovelitelFile Added: Wood race NO AI.h3m
2014-11-25 11:38PovelitelNote Edited: 0005163bug_revision_view_page.php?bugnote_id=5163#r2731
2015-02-04 18:10PovelitelAdditional Information Updatedbug_revision_view_page.php?rev_id=2802#r2802
2015-08-24 21:31PovelitelNote Added: 0005804
2015-08-24 21:31PovelitelStatusnew => closed
2015-08-24 21:31PovelitelAssigned To => linuxrocks123
2015-08-24 21:31PovelitelResolutionopen => fixed
2015-08-24 21:31PovelitelFixed in Version => 0.98d

Notes
(0004183)
Ivan   
2013-12-19 19:46   
Some huge sources of this bug should be fixed now. Fixing *all* possible memory leaks is not really doable at the moment but they should not cause something like this.
(0004213)
Povelitel   
2013-12-27 13:52   
Yes it was used well to solve this problem. Very good.

( "не должны вызывать что-то вроде этого." в смысле игра не должна падать? или бесконечно выделяться память?)
(0004214)
Ivan   
2013-12-27 14:11   
Не должно быть таких огромных выделений - со временем больше оперативы все равно больше будет использоваться, но не настолько много чтобы приводить к падению.
(0005163)
Povelitel   
2014-11-25 11:34   
(edited on: 2014-11-25 11:38)
0.97

for Windows XP me all right. Check somebodу Windows7 ?

Memory is allocated no more ~ than 850 megabytes, and zeroes, but the game does not crash, and was stable.

I read that Linuxrocks did fix some bugs with memory, so now all is well.

(I will include a full day, let shook his day counter)

(0005804)
Povelitel   
2015-08-24 21:31   
Partially fixed. No such large selections.
Nevertheless, when a very long test (about 80 months and+ ), the game crashes. Even without AI.