{"action":"created","issue":{"url":"https://api.github.com/repos/clintbellanger/flare-engine/issues/1360","labels_url":"https://api.github.com/repos/clintbellanger/flare-engine/issues/1360/labels{/name}","comments_url":"https://api.github.com/repos/clintbellanger/flare-engine/issues/1360/comments","events_url":"https://api.github.com/repos/clintbellanger/flare-engine/issues/1360/events","html_url":"https://github.com/clintbellanger/flare-engine/issues/1360","id":57830550,"number":1360,"title":"Memory access violation / corrupted heap in EffectManager destructor causes game to crash","user":{"login":"henrik-m","id":8522449,"avatar_url":"https://avatars.githubusercontent.com/u/8522449?v=3","gravatar_id":"","url":"https://api.github.com/users/henrik-m","html_url":"https://github.com/henrik-m","followers_url":"https://api.github.com/users/henrik-m/followers","following_url":"https://api.github.com/users/henrik-m/following{/other_user}","gists_url":"https://api.github.com/users/henrik-m/gists{/gist_id}","starred_url":"https://api.github.com/users/henrik-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrik-m/subscriptions","organizations_url":"https://api.github.com/users/henrik-m/orgs","repos_url":"https://api.github.com/users/henrik-m/repos","events_url":"https://api.github.com/users/henrik-m/events{/privacy}","received_events_url":"https://api.github.com/users/henrik-m/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clintbellanger/flare-engine/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/clintbellanger/flare-engine/milestones/2","labels_url":"https://api.github.com/repos/clintbellanger/flare-engine/milestones/2/labels","id":189845,"number":2,"title":"Pre-1.0","description":"","creator":{"login":"igorko","id":1015344,"avatar_url":"https://avatars.githubusercontent.com/u/1015344?v=3","gravatar_id":"","url":"https://api.github.com/users/igorko","html_url":"https://github.com/igorko","followers_url":"https://api.github.com/users/igorko/followers","following_url":"https://api.github.com/users/igorko/following{/other_user}","gists_url":"https://api.github.com/users/igorko/gists{/gist_id}","starred_url":"https://api.github.com/users/igorko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorko/subscriptions","organizations_url":"https://api.github.com/users/igorko/orgs","repos_url":"https://api.github.com/users/igorko/repos","events_url":"https://api.github.com/users/igorko/events{/privacy}","received_events_url":"https://api.github.com/users/igorko/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":122,"state":"open","created_at":"2012-10-05T06:05:07Z","updated_at":"2015-02-19T22:14:41Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2015-02-16T17:21:03Z","updated_at":"2015-02-19T22:14:41Z","closed_at":"2015-02-19T22:14:41Z","body":"Running the setup from #1358, starting in \"Asylum Living Quarters\" and working my way up north with my horde of slave monsters, the game crashed when I entered the map exit point in the north west of the \"Marshlands\" map. This is the stacktrace:\r\n\r\n> \tflare-engine.exe!std::allocator<std::_Container_proxy&gt;::deallocate(std::_Container_proxy * _Ptr, unsigned int __formal) Line 573\tC++\r\n \tflare-engine.exe!std::_Wrap_alloc<std::allocator<std::_Container_proxy&gt; &gt;::deallocate(std::_Container_proxy * _Ptr, unsigned int _Count) Line 859\tC++\r\n \tflare-engine.exe!std::_Vector_alloc<0,std::_Vec_base_types<int,std::allocator<int&gt; &gt; &gt;::_Free_proxy() Line 636\tC++\r\n \tflare-engine.exe!std::_Vector_alloc<0,std::_Vec_base_types<int,std::allocator<int&gt; &gt; &gt;::~_Vector_alloc<0,std::_Vec_base_types<int,std::allocator<int&gt; &gt; &gt;() Line 609\tC++\r\n \tflare-engine.exe!std::vector<int,std::allocator<int&gt; &gt;::~vector<int,std::allocator<int&gt; &gt;() Line 946\tC++\r\n\tflare-engine.exe!EffectManager::~EffectManager() Line 43\tC++\r\n \tflare-engine.exe!StatBlock::~StatBlock() Line 639\tC++\r\n \tflare-engine.exe!Entity::~Entity() Line 460\tC++\r\n \tflare-engine.exe!Enemy::~Enemy() Line 187\tC++\r\n \t[External Code]\t\r\n \tflare-engine.exe!EnemyManager::handleNewMap() Line 87\tC++\r\n \tflare-engine.exe!GameStatePlay::checkTeleport() Line 290\tC++\r\n \tflare-engine.exe!GameStatePlay::logic() Line 867\tC++\r\n \tflare-engine.exe!GameSwitcher::logic() Line 115\tC++\r\n \tflare-engine.exe!mainLoop(bool debug_event) Line 161\tC++\r\n \tflare-engine.exe!SDL_main(int argc, char * * argv) Line 297\tC++\r\n \tflare-engine.exe!main(int argc, char * * argv) Line 140\tC\r\n\r\nIt seems like the program crashed on trying to delete the effect_list-Vector in EffectManager.\r\n\r\nIf it is any help: I climbed a few levels on my way and had unlocked Werewyvern 4, but was not in wyvern form when I left the map. Here is a screenshot from the exact moment of the crash: \r\n![image](https://cloud.githubusercontent.com/assets/8522449/6216255/69cd4868-b608-11e4-9de4-08c6881970e4.png)\r\n"},"comment":{"url":"https://api.github.com/repos/clintbellanger/flare-engine/issues/comments/75149946","html_url":"https://github.com/clintbellanger/flare-engine/issues/1360#issuecomment-75149946","issue_url":"https://api.github.com/repos/clintbellanger/flare-engine/issues/1360","id":75149946,"user":{"login":"henrik-m","id":8522449,"avatar_url":"https://avatars.githubusercontent.com/u/8522449?v=3","gravatar_id":"","url":"https://api.github.com/users/henrik-m","html_url":"https://github.com/henrik-m","followers_url":"https://api.github.com/users/henrik-m/followers","following_url":"https://api.github.com/users/henrik-m/following{/other_user}","gists_url":"https://api.github.com/users/henrik-m/gists{/gist_id}","starred_url":"https://api.github.com/users/henrik-m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henrik-m/subscriptions","organizations_url":"https://api.github.com/users/henrik-m/orgs","repos_url":"https://api.github.com/users/henrik-m/repos","events_url":"https://api.github.com/users/henrik-m/events{/privacy}","received_events_url":"https://api.github.com/users/henrik-m/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T22:14:41Z","updated_at":"2015-02-19T22:14:41Z","body":"Looks good to me. Played around a bit with Application Verifier running (enduring a really horrible lag...) using my usual game crashing tricks ^^ and nothing happened from start to finish. Not even the heap corruption exception AV loved to throw when I was exiting the game (which was not happening/was invisible without AV).\r\n\r\nI cannot guarantee anything on this type of bug but I suppose we can always reopen the issue if it should happen again. Great work, @dorkster !"}}