MantisBT - VCMI
View Issue Details
0001183VCMIGUI - Battlespublic2013-01-22 07:482013-01-22 12:26
AlexVinS 
Warmonger 
normalcrashhave not tried
closedfixed 
 
0.91 
0001183: Crash in Battle related probably to creature arts
Crash when click on hex during the turn of creature with magic wand.
map VCMI_Tests_2011b. (with magic wand added to Ivor).
give magic wand to (f.e.) elves attack smth (I attacked gorgons dwelling)
during elves turn right click on emtpty hex.
From log: Listening... Awaiting command for Battle stack [7]: 90 creatures of Лесные эльфы from slot 6 of armyobj=72

From debugger:

Program received signal SIGSEGV, Segmentation fault.
In libstdc++-6!_ZNSt11char_traitsIcE2eqERKcS2_ () (D:\projects\vcmi\engine\libstdc++-6.dll)
0000006 0x005e688c in boost::io::detail::put_last<char, std::char_traits<char>, std::string> (os=..., x=...) at d:/cpplibs/boost/include/boost-1_52/boost/format/feed_args.hpp:100
d:\cpplibs\boost\include\boost-1_52\boost\format\feed_args.hpp:100:3955:beg:0x5e688c
At d:\cpplibs\boost\include\boost-1_52\boost\format\feed_args.hpp:100
0000006 0x005e688c in boost::io::detail::put_last<char, std::char_traits<char>, std::string> (os=..., x=...) at d:/cpplibs/boost/include/boost-1_52/boost/format/feed_args.hpp:100
d:\cpplibs\boost\include\boost-1_52\boost\format\feed_args.hpp:100:3955:beg:0x5e688c
At D:\projects\vcmi\engine\client\BattleInterface\CBattleInterface.cpp:3057
0000011 0x00424c1f in CBattleInterface::handleHex (this=0xd466bb8, myNumber=..., eventType=8) at D:\projects\vcmi\engine\client\BattleInterface\CBattleInterface.cpp:3057
D:\projects\vcmi\engine\client\BattleInterface\CBattleInterface.cpp:3057:99735:beg:0x424c1f
At D:\projects\vcmi\engine\client\BattleInterface\CBattleInterface.cpp:3057
0000011 0x00424c1f in CBattleInterface::handleHex (this=0xd466bb8, myNumber=..., eventType=8) at D:\projects\vcmi\engine\client\BattleInterface\CBattleInterface.cpp:3057
D:\projects\vcmi\engine\client\BattleInterface\CBattleInterface.cpp:3057:99735:beg:0x424c1f
At D:\projects\vcmi\engine\client\BattleInterface\CBattleInterface.cpp:3057
Continuing...
Program received signal SIGSEGV, Segmentation fault.
In libstdc++-6!_ZNSt11char_traitsIcE2eqERKcS2_ () (D:\projects\vcmi\engine\libstdc++-6.dll)
0000006 0x005e688c in boost::io::detail::put_last<char, std::char_traits<char>, std::string> (os=..., x=...) at d:/cpplibs/boost/include/boost-1_52/boost/format/feed_args.hpp:100
d:\cpplibs\boost\include\boost-1_52\boost\format\feed_args.hpp:100:3955:beg:0x5e688c
At d:\cpplibs\boost\include\boost-1_52\boost\format\feed_args.hpp:100
0000006 0x005e688c in boost::io::detail::put_last<char, std::char_traits<char>, std::string> (os=..., x=...) at d:/cpplibs/boost/include/boost-1_52/boost/format/feed_args.hpp:100
d:\cpplibs\boost\include\boost-1_52\boost\format\feed_args.hpp:100:3955:beg:0x5e688c
Continuing...
[Inferior 1 (process 3792) exited with code 030000000005]
Debugger finished with status 0
No tags attached.
Issue History
2013-01-22 07:48AlexVinSNew Issue
2013-01-22 07:49WarmongerAssigned To => Warmonger
2013-01-22 07:49WarmongerStatusnew => assigned
2013-01-22 08:12AlexVinSNote Added: 0003302
2013-01-22 08:18WarmongerNote Added: 0003303
2013-01-22 08:18WarmongerStatusassigned => confirmed
2013-01-22 08:18WarmongerNote Edited: 0003303bug_revision_view_page.php?bugnote_id=3303#r2095
2013-01-22 08:20AlexVinSStatusconfirmed => assigned
2013-01-22 08:20AlexVinSSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=2097#r2097
2013-01-22 09:48WarmongerNote Added: 0003304
2013-01-22 09:48WarmongerStatusassigned => resolved
2013-01-22 09:48WarmongerFixed in Version => 0.91
2013-01-22 09:48WarmongerResolutionopen => fixed
2013-01-22 12:26AlexVinSStatusresolved => closed

Notes
(0003302)
AlexVinS   
2013-01-22 08:12   
After defeating green Uland I`ve got magic wand, but there is now arts on that hero. It was starting bonus?
(0003303)
Warmonger   
2013-01-22 08:18   
There is a problem with random spells casted by stack, callback often returns -1 spell index, but not always :?

(0003304)
Warmonger   
2013-01-22 09:48   
There was just conflict between multiple spellcasting abilities.

Fixed in r3119. Genie and other casters still seem to work.