{"action":"created","issue":{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/763","labels_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/763/labels{/name}","comments_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/763/comments","events_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/763/events","html_url":"https://github.com/OpenDungeons/OpenDungeons/issues/763","id":77431335,"number":763,"title":"Crash when removing an entity","user":{"login":"Bertram25","id":765917,"avatar_url":"https://avatars.githubusercontent.com/u/765917?v=3","gravatar_id":"","url":"https://api.github.com/users/Bertram25","html_url":"https://github.com/Bertram25","followers_url":"https://api.github.com/users/Bertram25/followers","following_url":"https://api.github.com/users/Bertram25/following{/other_user}","gists_url":"https://api.github.com/users/Bertram25/gists{/gist_id}","starred_url":"https://api.github.com/users/Bertram25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bertram25/subscriptions","organizations_url":"https://api.github.com/users/Bertram25/orgs","repos_url":"https://api.github.com/users/Bertram25/repos","events_url":"https://api.github.com/users/Bertram25/events{/privacy}","received_events_url":"https://api.github.com/users/Bertram25/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/labels/Bug","name":"Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/milestones/5","html_url":"https://github.com/OpenDungeons/OpenDungeons/milestones/0.6.0","labels_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/milestones/5/labels","id":1018294,"number":5,"title":"0.6.0","description":"The shiny one. 0.5.0 has established a good base concerning the UI, game play and normal use on models.\r\n\r\nNow, we will polish all that and add more advanced functionalities and gameplay.\r\n\r\nBridges and doors are the next things to do, along with creature's equipment.\r\nIf all goes well, a fully functional editor and user custom levels will be fully supported, along a new option menu.","creator":{"login":"Bertram25","id":765917,"avatar_url":"https://avatars.githubusercontent.com/u/765917?v=3","gravatar_id":"","url":"https://api.github.com/users/Bertram25","html_url":"https://github.com/Bertram25","followers_url":"https://api.github.com/users/Bertram25/followers","following_url":"https://api.github.com/users/Bertram25/following{/other_user}","gists_url":"https://api.github.com/users/Bertram25/gists{/gist_id}","starred_url":"https://api.github.com/users/Bertram25/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bertram25/subscriptions","organizations_url":"https://api.github.com/users/Bertram25/orgs","repos_url":"https://api.github.com/users/Bertram25/repos","events_url":"https://api.github.com/users/Bertram25/events{/privacy}","received_events_url":"https://api.github.com/users/Bertram25/received_events","type":"User","site_admin":false},"open_issues":45,"closed_issues":37,"state":"open","created_at":"2015-03-12T13:31:55Z","updated_at":"2015-05-17T23:52:24Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-05-17T23:52:24Z","updated_at":"2015-05-18T07:41:00Z","closed_at":null,"body":"I've seen that crash several times. Especially when removing a bed. But I finally caught a bt on this one:\r\n\r\n```\r\nComputing turn 2700, timeSinceLastTurn=0.688855\r\nSERVER - Adding rendered object RenderedMovableEntity_Farm21_1917,MeshName=Chicken\r\nSERVER - Removing rendered object RenderedMovableEntity_Crypt37_1907,MeshName=SmallSpider\r\nDuring this turn there were 17 calls to GameMap::path().miscUpkeepTime=12436\r\nServer sends newturn=2700\r\nClient (Player) received turnStarted=2700\r\nCLIENT (Player) - Removing rendered object RenderedMovableEntity_Crypt37_1907,MeshName=SmallSpider\r\nCLIENT (Player) - Adding rendered object RenderedMovableEntity_Farm21_1917,MeshName=Chicken\r\n\r\nComputing turn 2701, timeSinceLastTurn=0.691566\r\nSERVER - Adding rendered object RenderedMovableEntity_Gnome81_1918,MeshName=Cannonball\r\nSERVER - Adding rendered object RenderedMovableEntity_Gnome112_1919,MeshName=Cannonball\r\n> 20 loops in Creature::doUpkeep name:Wyvern122 seat id: 3. Breaking out..\r\nDuring this turn there were 27 calls to GameMap::path().miscUpkeepTime=43013\r\nServer sends newturn=2701\r\nClient (Player) received turnStarted=2701\r\nCLIENT (Player) - Adding rendered object RenderedMovableEntity_Gnome81_1918,MeshName=Cannonball\r\nCLIENT (Player) - Adding rendered object RenderedMovableEntity_Gnome112_1919,MeshName=Cannonball\r\n\r\nComputing turn 2702, timeSinceLastTurn=0.720577\r\nSERVER - Removing Creature Kobold28\r\n*** Error in `/home/yohann/Projets/opendungeons/opendungeons': free(): invalid pointer: 0x00007fffbc2631f8 ***\r\n\r\nProgram received signal SIGABRT, Aborted.\r\n[Switching to Thread 0x7fffcf7fe700 (LWP 12945)]\r\n0x00007ffff3d11107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56\r\n56      ../nptl/sysdeps/unix/sysv/linux/raise.c: Aucun fichier ou dossier de ce type.\r\n(gdb) bt\r\n#0  0x00007ffff3d11107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56\r\n#1  0x00007ffff3d124e8 in __GI_abort () at abort.c:89\r\n#2  0x00007ffff3d4f204 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7ffff3e41fe0 \"*** Error in `%s': %s: 0x%s ***\\n\") at ../sysdeps/posix/libc_fatal.c:175\r\n#3  0x00007ffff3d549de in malloc_printerr (action=1, str=0x7ffff3e3e09e \"free(): invalid pointer\", ptr=<optimized out>) at malloc.c:4996\r\n#4  0x00007ffff3d556e6 in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3840\r\n#5  0x00000000004bbc64 in GameEntity::clearParticleSystems (this=this@entry=0x7fffbc232fa0) at /home/yohann/Projets/opendungeons/source/entities/GameEntity.cpp:312\r\n#6  0x00000000004bbd05 in GameEntity::destroyMeshLocal (this=this@entry=0x7fffbc232fa0) at /home/yohann/Projets/opendungeons/source/entities/GameEntity.cpp:304\r\n#7  0x0000000000488d71 in Creature::destroyMeshLocal (this=0x7fffbc232fa0) at /home/yohann/Projets/opendungeons/source/entities/Creature.cpp:255\r\n#8  0x00000000004bbb49 in GameEntity::deleteYourself (this=this@entry=0x7fffbc232fa0) at /home/yohann/Projets/opendungeons/source/entities/GameEntity.cpp:42\r\n#9  0x00000000004a6b55 in Creature::doUpkeep (this=0x7fffbc232fa0) at /home/yohann/Projets/opendungeons/source/entities/Creature.cpp:764\r\n#10 0x00000000005161c5 in GameMap::doMiscUpkeep (this=this@entry=0xe76370, timeSinceLastTurn=timeSinceLastTurn@entry=0.72057690620422354)\r\n    at /home/yohann/Projets/opendungeons/source/gamemap/GameMap.cpp:1246\r\n#11 0x000000000051650d in GameMap::doTurn (this=0xe76370, timeSinceLastTurn=0.72057690620422354) at /home/yohann/Projets/opendungeons/source/gamemap/GameMap.cpp:1127\r\n#12 0x00000000005a9dbf in ODServer::startNewTurn (this=this@entry=0x7fffffffd0a0, timeSinceLastTurn=0.72057690620422354) at /home/yohann/Projets/opendungeons/source/network/ODServer.cpp:259\r\n#13 0x00000000005ab3ac in ODServer::serverThread (this=0x7fffffffd0a0) at /home/yohann/Projets/opendungeons/source/network/ODServer.cpp:373\r\n#14 0x00007ffff4aca828 in ?? () from /usr/lib/x86_64-linux-gnu/libsfml-system.so.2\r\n#15 0x00007ffff69a60a4 in start_thread (arg=0x7fffcf7fe700) at pthread_create.c:309\r\n#16 0x00007ffff3dc204d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111\r\n```\r\n\r\nI'll upload the replay asap."},"comment":{"url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/comments/102951892","html_url":"https://github.com/OpenDungeons/OpenDungeons/issues/763#issuecomment-102951892","issue_url":"https://api.github.com/repos/OpenDungeons/OpenDungeons/issues/763","id":102951892,"user":{"login":"hwoarangmy","id":7493706,"avatar_url":"https://avatars.githubusercontent.com/u/7493706?v=3","gravatar_id":"","url":"https://api.github.com/users/hwoarangmy","html_url":"https://github.com/hwoarangmy","followers_url":"https://api.github.com/users/hwoarangmy/followers","following_url":"https://api.github.com/users/hwoarangmy/following{/other_user}","gists_url":"https://api.github.com/users/hwoarangmy/gists{/gist_id}","starred_url":"https://api.github.com/users/hwoarangmy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwoarangmy/subscriptions","organizations_url":"https://api.github.com/users/hwoarangmy/orgs","repos_url":"https://api.github.com/users/hwoarangmy/repos","events_url":"https://api.github.com/users/hwoarangmy/events{/privacy}","received_events_url":"https://api.github.com/users/hwoarangmy/received_events","type":"User","site_admin":false},"created_at":"2015-05-18T07:41:00Z","updated_at":"2015-05-18T07:41:00Z","body":"> Won't hurt fixing them anyway.\r\n\r\nYep. In any case, calling the rendermanager on server side is definitely not a good thing to do (which is done in clearParticleSystems."}}