MantisBT - VCMI
View Issue Details
0001598VCMIOtherpublic2013-11-24 11:402023-05-06 07:01
beegee 
Ivan 
normaltextalways
resolvedfixed 
 
 
0001598: Reduce some warning/error messages while ingame
There will be generated error messages even when the game behaves normally. That messages are mostly "FIXME" warnings meant for developers.

Some messages:

FIXME: battleGetFightingHero wrong argument!
Warning: an orphaned child!
const PlayerState *CGameInfoCallback::getPlayer(PlayerColor, bool) const: Cannot find player 255info!
battleGetHeroInfo: side 1 does not have hero!
battleGetAllObstacles called when no battle!
read: End of file
Ended handling connection
Our socket has been closed.


No tags attached.
related to 0001304resolved Ivan should not be on list error 
related to 0002909resolved Ivan runing vcmiclient. and console output red error 
rar Cannot get object with id . Object was removed.rar (1,072,052) 2022-03-19 20:53
https://bugs.vcmi.eu/file_download.php?file_id=3146&type=bug
png 121.png (1,393,706) 2023-05-06 06:53
https://bugs.vcmi.eu/file_download.php?file_id=3202&type=bug
png 121_1.png (1,388,754) 2023-05-06 06:53
https://bugs.vcmi.eu/file_download.php?file_id=3203&type=bug
zip GreenMessages.zip (901,887) 2023-05-06 07:01
https://bugs.vcmi.eu/file_download.php?file_id=3204&type=bug
Issue History
2013-11-24 11:40beegeeNew Issue
2013-11-24 12:06WarmongerNote Added: 0004140
2013-11-24 18:38IvanNote Added: 0004141
2015-02-08 17:18anonymousNote Added: 0005425
2015-02-08 17:18anonymousStatusnew => feedback
2015-02-09 13:57WarmongerNote Added: 0005428
2015-02-09 14:02WarmongerNote Added: 0005429
2015-02-09 14:02WarmongerNote Edited: 0005429bug_revision_view_page.php?bugnote_id=5429#r2808
2015-02-09 14:02WarmongerNote Edited: 0005429bug_revision_view_page.php?bugnote_id=5429#r2809
2022-03-19 20:52PovelitelNote Added: 0008187
2022-03-19 20:53PovelitelFile Added: Cannot get object with id . Object was removed.rar
2022-03-19 22:19PovelitelRelationship addedrelated to 0001304
2022-03-19 22:19PovelitelRelationship addedrelated to 0002909
2023-04-12 16:40krsNote Added: 0008552
2023-04-12 16:56IvanStatusfeedback => resolved
2023-04-12 16:56IvanResolutionopen => fixed
2023-04-12 16:56IvanAssigned To => Ivan
2023-04-14 07:04PovelitelNote Added: 0008602
2023-05-06 06:53PovelitelFile Added: 121.png
2023-05-06 06:53PovelitelFile Added: 121_1.png
2023-05-06 06:54PovelitelNote Added: 0008613
2023-05-06 07:01PovelitelFile Added: GreenMessages.zip

Notes
(0004140)
Warmonger   
2013-11-24 12:06   
Some of them should be just info message colored in green - that is game is acting correctly.

Some of them, however, indicate to serious issues with engine deign, just like
battleGetAllObstacles called when no battle!

Still, issues that do not cause game to behave incorrectly should be painted in another color than red (Magenta?) not to confuse user.
(0004141)
Ivan   
2013-11-24 18:38   
>> Cannot find player 255info!
Can you describe when this one happens?

>> Ended handling connection
>> Our socket has been closed.
Should be green'ed
(0005425)
anonymous   
2015-02-08 17:18   
I have a similar error.

vcmi 0.97.
backtrace:

Cannot get object with id 1117. Object was removed.
Cannot get object with id 1117. Object was removed.
Cannot get object with id 1117. Object was removed.
Cannot get object with id 1117. Object was removed.
Cannot get object with id 1117. Object was removed.
Cannot get object with id 1117. Object was removed.
Cannot get object with id 1117. Object was removed.
Cannot get object with id 1117. Object was removed.
Cannot get object with id 1117. Object was removed.
Cannot get object with id 1117. Object was removed.
Cannot get object with id 1117. Object was removed.
Cannot get object with id 1117. Object was removed.
const PlayerState* CGameInfoCallback::getPlayer(PlayerColor, bool) const: Cannot find player 255info!
Error! Hero 1117 (Ãàëòðàí) has no army!

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff4b7d700 (LWP 2237)]
0x00000039fd166c8c in CPathfinder::evaluateAccessibility(TerrainTile const*) const () from /usr/lib64/vcmi/libvcmi.so
(gdb) bt
#0 0x00000039fd166c8c in CPathfinder::evaluateAccessibility(TerrainTile const*) const () from /usr/lib64/vcmi/libvcmi.so
#1 0x00000039fd166efb in CPathfinder::initializeGraph() () from /usr/lib64/vcmi/libvcmi.so
0000002 0x00000039fd1685b5 in CPathfinder::calculatePaths() () from /usr/lib64/vcmi/libvcmi.so
0000003 0x00000039fd168cc7 in CGameState::calculatePaths(CGHeroInstance const*, CPathsInfo&) () from /usr/lib64/vcmi/libvcmi.so
0000004 0x000000000053b18f in CClient::getPathsInfo(CGHeroInstance const*) ()
0000005 0x00007fffe4d1df75 in VCAI::isAccessibleForHero(int3 const&, HeroPtr, bool) const () from /usr/lib64/vcmi/AI/libVCAI.so
0000006 0x00007fffe4d3b4c3 in VCAI::wander(HeroPtr) () from /usr/lib64/vcmi/AI/libVCAI.so
0000007 0x00007fffe4d3bf7f in VCAI::performTypicalActions() () from /usr/lib64/vcmi/AI/libVCAI.so
0000008 0x00007fffe4d44aa3 in VCAI::makeTurnInternal() () from /usr/lib64/vcmi/AI/libVCAI.so
0000009 0x00007fffe4d452c2 in VCAI::makeTurn() () from /usr/lib64/vcmi/AI/libVCAI.so
0000010 0x00000039fdc0d98a in thread_proxy () from /lib64/libboost_thread.so.1.55.0
0000011 0x000000336fa0752a in start_thread () from /lib64/libpthread.so.0
0000012 0x000000336f70079d in clone () from /lib64/libc.so.6

(0005428)
Warmonger   
2015-02-09 13:57   
The issue with removed object is a serious gameplay problem. AI is not allowed to access objects it cannot see, but also should never try to do so - this already caused some crash bugs.
(0005429)
Warmonger   
2015-02-09 14:02   
>> const PlayerState *CGameInfoCallback::getPlayer(PlayerColor, bool) const: Cannot find player 255info!

I think I already handled this one, but could miss some cases.

(0008187)
Povelitel   
2022-03-19 20:52   
This is a very interesting ticket! I've been doing autoskip for a long time and have seen hundreds of error messages.

I'm wondering which are the worst in terms of rating or something. And could provide saves with these errors
(0008552)
krs   
2023-04-12 16:40   
Latest development not even warning messages.

Can be closed. Reopen on individual cases if needed. This is 2013!
(0008602)
Povelitel   
2023-04-14 07:04   
what about message from server? Is it empty? doesnt spam? I just dont know.
(0008613)
Povelitel   
2023-05-06 06:54   
@krs green message still exist ^ )