{"action":"created","issue":{"url":"https://api.github.com/repos/CorsixTH/CorsixTH/issues/1258","repository_url":"https://api.github.com/repos/CorsixTH/CorsixTH","labels_url":"https://api.github.com/repos/CorsixTH/CorsixTH/issues/1258/labels{/name}","comments_url":"https://api.github.com/repos/CorsixTH/CorsixTH/issues/1258/comments","events_url":"https://api.github.com/repos/CorsixTH/CorsixTH/issues/1258/events","html_url":"https://github.com/CorsixTH/CorsixTH/issues/1258","id":264799200,"number":1258,"title":"Animation Viewer crashes loading hospital resources","user":{"login":"TheCycoONE","id":823433,"avatar_url":"https://avatars3.githubusercontent.com/u/823433?v=4","gravatar_id":"","url":"https://api.github.com/users/TheCycoONE","html_url":"https://github.com/TheCycoONE","followers_url":"https://api.github.com/users/TheCycoONE/followers","following_url":"https://api.github.com/users/TheCycoONE/following{/other_user}","gists_url":"https://api.github.com/users/TheCycoONE/gists{/gist_id}","starred_url":"https://api.github.com/users/TheCycoONE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheCycoONE/subscriptions","organizations_url":"https://api.github.com/users/TheCycoONE/orgs","repos_url":"https://api.github.com/users/TheCycoONE/repos","events_url":"https://api.github.com/users/TheCycoONE/events{/privacy}","received_events_url":"https://api.github.com/users/TheCycoONE/received_events","type":"User","site_admin":false},"labels":[{"id":144921831,"url":"https://api.github.com/repos/CorsixTH/CorsixTH/labels/Component-AnimView","name":"Component-AnimView","color":"bfe5bf","default":false},{"id":87268767,"url":"https://api.github.com/repos/CorsixTH/CorsixTH/labels/Type-Game%20Crash","name":"Type-Game Crash","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-12T03:01:27Z","updated_at":"2017-10-12T03:38:26Z","closed_at":null,"author_association":"OWNER","body":"#### Describe the issue\r\nThere is a sigabort when clicking the load button.\r\n\r\nAnimView: malloc.c:2427: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.\r\n*** Program received signal SIGABRT (Aborted) ***\r\n\r\n#### Steps to Reproduce\r\n1. Run AnimView\r\n2.Click yes to open the animation viewer\r\n3.Select your HOSPITAL directory\r\n4.Click Load\r\n\r\n#### Expected Behavior\r\nShould load all the animations from the HOSPITAL directory to populate the tool\r\n\r\n#### System Information\r\n**CorsixTH Version:** 221887cb\r\n**Operating System:** ArchLinux ARM\r\n**Theme Hospital Version:** CD\r\nUsing wxgtk2 3.0.3.1\r\nCompiled for debugging with gcc 7.2.0, and run through gdb\r\nSystem is ARMv8, running aarch64\r\n\r\n##### Additional Information\r\nNothing useful in backtrace:\r\n```\r\n#0 0x000000755fdb6aa0 in raise () at /usr/lib/libc.so.6\r\n#1 0x000000755fdb8200 in abort () at /usr/lib/libc.so.6\r\n#2 0x000000755fdf9dbc in __malloc_assert () at /usr/lib/libc.so.6\r\n#3 0x000000755fdfce6c in sysmalloc () at /usr/lib/libc.so.6\r\n#4 0x000000755fdfdd48 in _int_malloc () at /usr/lib/libc.so.6\r\n#5 0x000000755fdff1a0 in malloc () at /usr/lib/libc.so.6\r\n```"},"comment":{"url":"https://api.github.com/repos/CorsixTH/CorsixTH/issues/comments/336011889","html_url":"https://github.com/CorsixTH/CorsixTH/issues/1258#issuecomment-336011889","issue_url":"https://api.github.com/repos/CorsixTH/CorsixTH/issues/1258","id":336011889,"user":{"login":"TheCycoONE","id":823433,"avatar_url":"https://avatars3.githubusercontent.com/u/823433?v=4","gravatar_id":"","url":"https://api.github.com/users/TheCycoONE","html_url":"https://github.com/TheCycoONE","followers_url":"https://api.github.com/users/TheCycoONE/followers","following_url":"https://api.github.com/users/TheCycoONE/following{/other_user}","gists_url":"https://api.github.com/users/TheCycoONE/gists{/gist_id}","starred_url":"https://api.github.com/users/TheCycoONE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheCycoONE/subscriptions","organizations_url":"https://api.github.com/users/TheCycoONE/orgs","repos_url":"https://api.github.com/users/TheCycoONE/repos","events_url":"https://api.github.com/users/TheCycoONE/events{/privacy}","received_events_url":"https://api.github.com/users/TheCycoONE/received_events","type":"User","site_admin":false},"created_at":"2017-10-12T03:38:26Z","updated_at":"2017-10-12T03:38:26Z","author_association":"OWNER","body":"I was able to get substantially more information out of lldb:\r\n```\r\n(lldb) run\r\nProcess 8493 launched: '/home/stephen/github/CorsixTH/kbuild/AnimView/AnimView' (aarch64)\r\nAnimView: malloc.c:2427: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.\r\nProcess 8493 stopped\r\n* thread #1, name = 'AnimView', stop reason = signal SIGABRT\r\n    frame #0: 0x0000007fb725daa0 libc.so.6`__GI_raise + 184\r\nlibc.so.6`__GI_raise:\r\n->  0x7fb725daa0 <+184>: ldr    x19, [x19, #0xa20]\r\n    0x7fb725daa4 <+188>: mov    w0, w4\r\n    0x7fb725daa8 <+192>: ldr    x2, [x29, #0x128]\r\n    0x7fb725daac <+196>: ldr    x1, [x19]\r\n(lldb) bt\r\n* thread #1, name = 'AnimView', stop reason = signal SIGABRT\r\n  * frame #0: 0x0000007fb725daa0 libc.so.6`__GI_raise + 184\r\n    frame #1: 0x0000007fb725f200 libc.so.6`__GI_abort + 400\r\n    frame #2: 0x0000007fb72a0dbc libc.so.6`__malloc_assert + 108\r\n    frame #3: 0x0000007fb72a3e6c libc.so.6`sysmalloc + 2020\r\n    frame #4: 0x0000007fb72a4d48 libc.so.6`_int_malloc + 3528\r\n    frame #5: 0x0000007fb72a61a0 libc.so.6`__GI___libc_malloc + 160\r\n    frame #6: 0x0000007fb75252f0 libstdc++.so.6`operator new(sz=116420) at new_op.cc:50\r\n    frame #7: 0x00000055555acdc4 AnimView`THAnimations::loadXMLFile(this=0x00000055557ce8b8, xmlDocument=0x0000007fffffd6e8) at th.cpp:368\r\n    frame #8: 0x0000005555596ed0 AnimView`frmMain::load(this=0x00000055557ce4d0) at frmMain.cpp:321\r\n    frame #9: 0x0000005555596b84 AnimView`frmMain::_onLoad(this=0x00000055557ce4d0, (null)=0x0000007fffffdd50) at frmMain.cpp:285\r\n    frame #10: 0x0000007fb785a688 libwx_baseu-3.0.so.0`wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) + 136\r\n    frame #11: 0x0000007fb785a7ec libwx_baseu-3.0.so.0`wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) + 204\r\n    frame #12: 0x0000007fb785ad64 libwx_baseu-3.0.so.0`wxEvtHandler::TryHereOnly(wxEvent&) + 116\r\n    frame #13: 0x0000007fb785ae3c libwx_baseu-3.0.so.0`wxEvtHandler::ProcessEventLocally(wxEvent&) + 76\r\n    frame #14: 0x0000007fb785af74 libwx_baseu-3.0.so.0`wxEvtHandler::ProcessEvent(wxEvent&) + 276\r\n    frame #15: 0x0000007fb7d9a4b0 libwx_gtk2u_core-3.0.so.0`wxWindowBase::TryAfter(wxEvent&) + 216\r\n    frame #16: 0x0000007fb785aaec libwx_baseu-3.0.so.0`wxEvtHandler::SafelyProcessEvent(wxEvent&) + 20\r\n    frame #17: 0x0000007fb7beeca0 libwx_gtk2u_core-3.0.so.0`___lldb_unnamed_symbol1363$$libwx_gtk2u_core-3.0.so.0 + 160\r\n    frame #18: 0x0000007fb6bcf784 libgobject-2.0.so.0`g_closure_invoke + 444\r\n    frame #19: 0x0000007fb6be33a8 libgobject-2.0.so.0\r\n    frame #20: 0x0000007fb6beb6b0 libgobject-2.0.so.0`g_signal_emit_valist + 2280\r\n    frame #21: 0x0000007fb6bec09c libgobject-2.0.so.0`g_signal_emit + 132\r\n    frame #22: 0x0000007fb6f01494 libgtk-x11-2.0.so.0\r\n    frame #23: 0x0000007fb6bcf784 libgobject-2.0.so.0`g_closure_invoke + 444\r\n    frame #24: 0x0000007fb6be31f8 libgobject-2.0.so.0\r\n    frame #25: 0x0000007fb6beb6b0 libgobject-2.0.so.0`g_signal_emit_valist + 2280\r\n    frame #26: 0x0000007fb6bec09c libgobject-2.0.so.0`g_signal_emit + 132\r\n    frame #27: 0x0000007fb6f001ec libgtk-x11-2.0.so.0\r\n    frame #28: 0x0000007fb6fa89cc libgtk-x11-2.0.so.0\r\n    frame #29: 0x0000007fb6bcf784 libgobject-2.0.so.0`g_closure_invoke + 444\r\n    frame #30: 0x0000007fb6be32e8 libgobject-2.0.so.0\r\n    frame #31: 0x0000007fb6beb4bc libgobject-2.0.so.0`g_signal_emit_valist + 1780\r\n    frame #32: 0x0000007fb6bec09c libgobject-2.0.so.0`g_signal_emit + 132\r\n    frame #33: 0x0000007fb70c2f5c libgtk-x11-2.0.so.0\r\n    frame #34: 0x0000007fb6fa6ed8 libgtk-x11-2.0.so.0`gtk_propagate_event + 216\r\n    frame #35: 0x0000007fb6fa73d4 libgtk-x11-2.0.so.0`gtk_main_do_event + 964\r\n    frame #36: 0x0000007fb6e20f6c libgdk-x11-2.0.so.0\r\n    frame #37: 0x0000007fb6afff38 libglib-2.0.so.0`g_main_context_dispatch + 712\r\n    frame #38: 0x0000007fb6b00190 libglib-2.0.so.0\r\n    frame #39: 0x0000007fb6b00540 libglib-2.0.so.0`g_main_loop_run + 240\r\n    frame #40: 0x0000007fb6fa61a4 libgtk-x11-2.0.so.0`gtk_main + 172\r\n    frame #41: 0x0000007fb7b82934 libwx_gtk2u_core-3.0.so.0`wxGUIEventLoop::DoRun() + 60\r\n    frame #42: 0x0000007fb76f4dc8 libwx_baseu-3.0.so.0`wxEventLoopBase::Run() + 232\r\n    frame #43: 0x0000007fb76b5668 libwx_baseu-3.0.so.0`wxAppConsoleBase::MainLoop() + 104\r\n    frame #44: 0x0000007fb774adcc libwx_baseu-3.0.so.0`wxEntry(int&, wchar_t**) + 116\r\n    frame #45: 0x000000555558ea08 AnimView`main(argc=1, argv=0x0000007ffffff198) at app.cpp:27\r\n    frame #46: 0x0000007fb724abb4 libc.so.6`__libc_start_main + 228\r\n    frame #47: 0x000000555558e914 AnimView`_start + 52\r\n```\r\n\r\nDespite lldb pointing to https://github.com/CorsixTH/CorsixTH/blob/6a079fd02bc456be7410e4394d7661308e86b3bf/AnimView/th.cpp#L368 \r\n`m_iFrameCount` is 11642"}}
{"actor":{"display_login":"TheCycoONE"}}