{"action":"created","issue":{"url":"https://api.github.com/repos/minetest/minetest/issues/2989","labels_url":"https://api.github.com/repos/minetest/minetest/issues/2989/labels{/name}","comments_url":"https://api.github.com/repos/minetest/minetest/issues/2989/comments","events_url":"https://api.github.com/repos/minetest/minetest/issues/2989/events","html_url":"https://github.com/minetest/minetest/issues/2989","id":98564985,"number":2989,"title":"Can't serialize data of type userdata","user":{"login":"kwolekr","id":630595,"avatar_url":"https://avatars.githubusercontent.com/u/630595?v=3","gravatar_id":"","url":"https://api.github.com/users/kwolekr","html_url":"https://github.com/kwolekr","followers_url":"https://api.github.com/users/kwolekr/followers","following_url":"https://api.github.com/users/kwolekr/following{/other_user}","gists_url":"https://api.github.com/users/kwolekr/gists{/gist_id}","starred_url":"https://api.github.com/users/kwolekr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwolekr/subscriptions","organizations_url":"https://api.github.com/users/kwolekr/orgs","repos_url":"https://api.github.com/users/kwolekr/repos","events_url":"https://api.github.com/users/kwolekr/events{/privacy}","received_events_url":"https://api.github.com/users/kwolekr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-01T22:17:40Z","updated_at":"2015-08-02T16:21:08Z","closed_at":null,"body":"tenplus1 reports the following error:\r\n\r\n> Crash logs from Xanadu server, multiple crashing within minutes of each other:\r\n\r\n```\r\n2015-07-26 01:37:05: ERROR[main]: UNRECOVERABLE error occurred. Stopping server. Please fix the following error:\r\n2015-07-26 01:37:05: ERROR[main]: /usr/share/minetest/builtin/common/serialize.lua:152: Can't serialize data of type userdata\r\n\r\n2015-07-26 01:37:05: ERROR[main]: stack traceback:\r\n2015-07-26 01:37:05: ERROR[main]: \t[C]: in function 'error'\r\n2015-07-26 01:37:05: ERROR[main]: \t/usr/share/minetest/builtin/common/serialize.lua:152: in function 'dump_or_ref_val'\r\n\r\n2015-07-26 01:37:05: ERROR[main]: \t/usr/share/minetest/builtin/common/serialize.lua:147: in function 'dump_or_ref_val'\r\n2015-07-26 01:37:05: ERROR[main]: \t/usr/share/minetest/builtin/common/serialize.lua:147: in function 'dump_or_ref_val'\r\n\r\n2015-07-26 01:37:05: ERROR[main]: \t/usr/share/minetest/builtin/common/serialize.lua:167: in function </usr/share/minetest/builtin/common/serialize.lua:20>\r\n\r\nIn thread 7f256d75c7c0:\r\n/build/minetest-Uqow_W/minetest-201507251831/src/server.cpp:522: void Server::step(float): A fatal error occurred: /usr/share/minetest/builtin/common/serialize.lua:152: Can't serialize data of type userdata\r\n\r\nstack traceback:\r\n\t[C]: in function 'error'\r\n\t/usr/share/minetest/builtin/common/serialize.lua:152: in function 'dump_or_ref_val'\r\n\t/usr/share/minetest/builtin/common/serialize.lua:147: in function 'dump_or_ref_val'\r\n\t/usr/share/minetest/builtin/common/serialize.lua:147: in function 'dump_or_ref_val'\r\n\t/usr/share/minetest/builtin/common/serialize.lua:167: in function </usr/share/minetest/builtin/common/serialize.lua:20>\r\n\r\nDebug stacks:\r\nDEBUG STACK FOR THREAD 7f25537fe700:\r\n#0  virtual void* EmergeThread::Thread()\r\n(Leftover data: #1  MapBlock* ServerMap::loadBlock(v3s16))\r\n(Leftover data: #2  void ServerMap::loadBlock(std::string*, v3s16, MapSector*, bool))\r\n(Leftover data: #3  void ItemStack::deSerialize(std::istream&, IItemDefManager*))\r\n\r\n```\r\n\r\n> ...am adding the following lines after line 121 in serialize.lua incase it helps error:\r\n\r\n```\r\nelseif tp == \"userdata\" then\r\n\treturn \"user: \"..x:get_player_name()..\" at \"..minetest.pos_to_string(x:getpos())\r\n```"},"comment":{"url":"https://api.github.com/repos/minetest/minetest/issues/comments/127041781","html_url":"https://github.com/minetest/minetest/issues/2989#issuecomment-127041781","issue_url":"https://api.github.com/repos/minetest/minetest/issues/2989","id":127041781,"user":{"login":"PilzAdam","id":2159710,"avatar_url":"https://avatars.githubusercontent.com/u/2159710?v=3","gravatar_id":"","url":"https://api.github.com/users/PilzAdam","html_url":"https://github.com/PilzAdam","followers_url":"https://api.github.com/users/PilzAdam/followers","following_url":"https://api.github.com/users/PilzAdam/following{/other_user}","gists_url":"https://api.github.com/users/PilzAdam/gists{/gist_id}","starred_url":"https://api.github.com/users/PilzAdam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PilzAdam/subscriptions","organizations_url":"https://api.github.com/users/PilzAdam/orgs","repos_url":"https://api.github.com/users/PilzAdam/repos","events_url":"https://api.github.com/users/PilzAdam/events{/privacy}","received_events_url":"https://api.github.com/users/PilzAdam/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T16:21:08Z","updated_at":"2015-08-02T16:21:08Z","body":"Probably a mod passing invalid data to minetest.serialize()."}}