Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map is not loading #29

Closed
nclx opened this issue Aug 7, 2013 · 6 comments
Closed

Map is not loading #29

nclx opened this issue Aug 7, 2013 · 6 comments
Labels
bug An issue describing unexpected behavior of code
Milestone

Comments

@nclx
Copy link
Contributor

nclx commented Aug 7, 2013

Default forgotten map works perfectly, but my map doesnt.

I can say that is not something I did on the map because problem still happening even using the map I'm using in the server right now that uses the commit 7e02d7f so some further commit started to cause my crash:

Loading map
Map size: 5000x5000.
Map loading time: 9.618 seconds.
Segmentation fault (core dumped)

After it says "loading time 9.6128 seconds." it stays like that around 3~ seconds and drops the segmentation fault.

@nclx
Copy link
Contributor Author

nclx commented Aug 7, 2013

Yes now I'm sure about that, downloaded that commit just now and tested it even with the latest data modifications (that include group constants in global.lua, xml/groups, data/chatchannels and data/migrations) and it works perfeclty... I get sql errors because that commits tries to get things from player_skills and groups (which doesnt exist anymore in my db) but regardless to that, the map and server loads perfectly in that commit.

@marksamman
Copy link
Member

Please provide output from gdb with that core file.

@nclx
Copy link
Contributor Author

nclx commented Aug 7, 2013

Map loading time: 9.746 seconds.

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff5842700 (LWP 30209)]
0x00000000007938dc in Item::getTopParent() ()
(gdb) backtrace
#0 0x00000000007938dc in Item::getTopParent() ()
#1 0x0000000000793a64 in Item::getTile() ()
#2 0x000000000078aef2 in IOMapSerialize::loadItem(PropStream&, Cylinder_) ()
#3 0x000000000078acff in IOMapSerialize::loadContainer(PropStream&, Container_) ()
#4 0x000000000078af9c in IOMapSerialize::loadItem(PropStream&, Cylinder_) ()
#5 0x000000000078a561 in IOMapSerialize::loadMap(Map_) ()
#6 0x00000000007ddb3d in Map::loadMap(std::string const&) ()
#7 0x00000000007190d6 in Game::loadMap(std::string const&) ()
#8 0x0000000000816171 in mainLoader(int, char**, ServiceManager*) ()
#9 0x000000000081c991 in void boost::_bi::list3boost::_bi::value<int, boost::bi::value<char**>, boost::bi::value<ServiceManager*> >::operator()<void ()(int, char**, ServiceManager), boost::bi::list0>(boost::bi::type, void (&)(int, char, ServiceManager), boost::_bi::list0&, int) ()
#10 0x000000000081bfab in boost::_bi::bind_t<void, void ()(int, char**, ServiceManager), boost::_bi::list3<boost::_bi::value, boost::_bi::value<char**>, boost::_bi::value<ServiceManager*> > >::operator()() ()
#11 0x000000000081b149 in boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, void ()(int, char**, ServiceManager), boost::_bi::list3<boost::_bi::value, boost::_bi::value<char**>, boost::bi::value<ServiceManager*> > >, void>::invoke(boost::detail::function::function_buffer&) ()
#12 0x00000000008a4ea8 in boost::function0::operator()() const ()
#13 0x00000000008a4d52 in Task::operator()() ()
#14 0x00000000008a474d in Dispatcher::dispatcherThread(void
) ()
#15 0x0000000000884f93 in void boost::_bi::list1<boost::bi::value<void> >::operator()<void ()(void), boost::bi::list0>(boost::bi::type, void (&)(void), boost::_bi::list0&, int) ()
#16 0x0000000000884f3b in boost::_bi::bind_t<void, void ()(void), boost::_bi::list1<boost::_bi::value<void*> > >::operator()() ()
#17 0x0000000000884f00 in boost::detail::thread_data<boost::_bi::bind_t<void, void ()(void), boost::_bi::list1<boost::_bi::value<void*> > > >::run() ()
#18 0x00007ffff6f006e9 in ?? () from /usr/lib/libboost_thread.so.1.49.0
#19 0x00007ffff6cdcf8e in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#20 0x00007ffff5f79e1d in clone () from /lib/x86_64-linux-gnu/libc.so.6

@marksamman
Copy link
Member

What is the output of "p parent" in gdb?

@nclx
Copy link
Contributor Author

nclx commented Aug 7, 2013

(gdb) p parent
No symbol table is loaded. Use the "file" command.
(gdb) file tfs
Reading symbols from /home/nclx/Documents/xxxx/tfs...(no debugging symbols found)...done.

?

@marksamman
Copy link
Member

I meant after loading gdb with tfs and the core dump.

EDIT: Nevermind, I've managed to reproduce it and will patch it soon.

marksamman added a commit that referenced this issue Aug 7, 2013
This fixes issue #29
@marksamman marksamman modified the milestone: 1.0 Mar 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue describing unexpected behavior of code
Projects
None yet
Development

No branches or pull requests

2 participants