You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like lua needs to chill until level loading thread is done
(gdb) bt
#0 __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135 #1 0x00007ffff6a8ae42 in __GI___pthread_mutex_lock (mutex=0x794650) at ../nptl/pthread_mutex_lock.c:115 #2 0x00007ffff6eb41bc in sf::priv::GlContext::acquireTransientContext() () from ./libsfml-window.so.2.5 #3 0x00007ffff7118a9b in sf::Texture::bind(sf::Texture const*, sf::Texture::CoordinateType) () from ./libsfml-graphics.so.2.5 #4 0x00007ffff7111ff9 in sf::RenderTarget::applyTexture(sf::Texture const*) () from ./libsfml-graphics.so.2.5 #5 0x00007ffff7112092 in sf::RenderTarget::clear(sf::Color const&) () from ./libsfml-graphics.so.2.5 #6 0x000000000043add6 in Game::draw() () #7 0x000000000043c9c8 in Game::loop() () #8 0x0000000000418fca in main ()
[Current thread is 1 (Thread 0x7ffff7f09900 (LWP 29427))]
(gdb) thread 2
[Switching to thread 2 (Thread 0x7fffed27a700 (LWP 29428))]
#0 0x00007ffff5152a90 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
(gdb) bt
#0 0x00007ffff5152a90 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #1 0x00007ffff75d4348 in ?? () from /usr/lib/nvidia-390/libGL.so.1 #2 0x00007ffff75d5145 in ?? () from /usr/lib/nvidia-390/libGL.so.1 #3 0x00007ffff6ec4a94 in sf::priv::GlxContext::makeCurrent(bool) () from ./libsfml-window.so.2.5 #4 0x00007ffff6eb40e1 in sf::priv::GlContext::setActive(bool) () from ./libsfml-window.so.2.5 #5 0x00007ffff6eb42ad in sf::priv::GlContext::acquireTransientContext() () from ./libsfml-window.so.2.5 #6 0x00007ffff711790d in sf::Texture::~Texture() () from ./libsfml-graphics.so.2.5 #7 0x00000000004b4115 in Layer::~Layer() () #8 0x00000000004c2ae5 in MenuScreenPause::~MenuScreenPause() () #9 0x00000000004a6f70 in std::_Sp_counted_ptr_inplace<Menu, std::allocator
, (__gnu_cxx::_Lock_policy)2>::_M_dispose() () #10 0x00000000004a6a5f in std::shared_ptr::~shared_ptr() () #11 0x00007ffff5decff8 in __run_exit_handlers (status=1, listp=0x7ffff61775f8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82 #12 0x00007ffff5ded045 in __GI_exit (status=) at exit.c:104 #13 0x00007ffff5154bb8 in _XDefaultError () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #14 0x00007ffff5154ced in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #15 0x00007ffff5151b77 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #16 0x00007ffff5151c35 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #17 0x00007ffff5152bf0 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6 #18 0x00007ffff75d4348 in ?? () from /usr/lib/nvidia-390/libGL.so.1 #19 0x00007ffff75d5145 in ?? () from /usr/lib/nvidia-390/libGL.so.1 #20 0x00007ffff6ec4a94 in sf::priv::GlxContext::makeCurrent(bool) () from ./libsfml-window.so.2.5 #21 0x00007ffff6eb40e1 in sf::priv::GlContext::setActive(bool) () from ./libsfml-window.so.2.5 #22 0x00007ffff6eb42ad in sf::priv::GlContext::acquireTransientContext() () from ./libsfml-window.so.2.5 #23 0x00007ffff7117ce9 in sf::Texture::update(unsigned char const*, unsigned int, unsigned int, unsigned int, unsigned int) ()
from ./libsfml-graphics.so.2.5 #24 0x00007ffff711989c in sf::Texture::loadFromImage(sf::Image const&, sf::Rect const&) () from ./libsfml-graphics.so.2.5 #25 0x00007ffff711993d in sf::Texture::loadFromFile(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, sf::Rect const&) () from ./libsfml-graphics.so.2.5 #26 0x000000000047a5e7 in LuaNode::setupTexture() () #27 0x000000000047b09f in updateProperties () #28 0x00007ffff7bac090 in luaD_precall (L=L@entry=0x7fffebdea618, func=, func@entry=0x7fffc92eed10, nresults=nresults@entry=0) at ldo.c:337 #29 0x00007ffff7bb8efd in luaV_execute (L=L@entry=0x7fffebdea618) at lvm.c:1084 #30 0x00007ffff7bac457 in luaD_call (L=0x7fffebdea618, func=, nResults=, allowyield=) at ldo.c:422 #31 0x00007ffff7bab9f2 in luaD_rawrunprotected (L=L@entry=0x7fffebdea618, f=f@entry=0x7ffff7ba6b80 <f_call>, ud=ud@entry=0x7fffed2799d0) at ldo.c:142 #32 0x00007ffff7bac73d in luaD_pcall (L=L@entry=0x7fffebdea618, func=func@entry=0x7ffff7ba6b80 <f_call>, u=u@entry=0x7fffed2799d0, old_top=16,
ef=) at ldo.c:644 #33 0x00007ffff7ba8081 in lua_pcallk (L=0x7fffebdea618, nargs=0, nresults=0, errfunc=, ctx=0, k=0x0) at lapi.c:945 #34 0x0000000000478c39 in LuaNode::luaRetrieveProperties() () #35 0x0000000000479070 in LuaNode::setupLua() () #36 0x000000000047a169 in LuaNode::initialize() () #37 0x000000000044afbd in Level::spawnEnemies() () #38 0x0000000000451f6b in Level::initialize() () #39 0x000000000043d78f in std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> (), std::__f--Type for more, q to quit, c to continue without paging--
uture_base::_Task_setter<std::unique_ptr<std::__future_base::_Result, std::__future_base::_Result_base::_Deleter>, std::thread::_Invoker<std::tupleGame::loadLevel()::{lambda()#1} >, void> >::_M_invoke(std::_Any_data const&) () #40 0x000000000043e989 in std::__future_base::_State_baseV2::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>, bool) () #41 0x00007ffff6a8fa99 in __pthread_once_slow (once_control=0xa20558, init_routine=0x7ffff676d3b0 <__once_proxy>) at pthread_once.c:116 #42 0x000000000043cc0e in std::thread::_State_impl<std::thread::_Invoker<std::tuple<std::__future_base::_Async_state_impl<std::thread::_Invoker<std::tupleGame::loadLevel()::{lambda()#1} >, void>::_Async_state_impl(std::tupleGame::loadLevel()::{lambda()#1}&&)::{lambda()#1}> > >::_M_run() () #43 0x00007ffff676e1a0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6 #44 0x00007ffff6a886ba in start_thread (arg=0x7fffed27a700) at pthread_create.c:333 #45 0x00007ffff5eba41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
The text was updated successfully, but these errors were encountered:
Looks like lua needs to chill until level loading thread is done
(gdb) bt
, (__gnu_cxx::_Lock_policy)2>::_M_dispose() ()#0 __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1 0x00007ffff6a8ae42 in __GI___pthread_mutex_lock (mutex=0x794650) at ../nptl/pthread_mutex_lock.c:115
#2 0x00007ffff6eb41bc in sf::priv::GlContext::acquireTransientContext() () from ./libsfml-window.so.2.5
#3 0x00007ffff7118a9b in sf::Texture::bind(sf::Texture const*, sf::Texture::CoordinateType) () from ./libsfml-graphics.so.2.5
#4 0x00007ffff7111ff9 in sf::RenderTarget::applyTexture(sf::Texture const*) () from ./libsfml-graphics.so.2.5
#5 0x00007ffff7112092 in sf::RenderTarget::clear(sf::Color const&) () from ./libsfml-graphics.so.2.5
#6 0x000000000043add6 in Game::draw() ()
#7 0x000000000043c9c8 in Game::loop() ()
#8 0x0000000000418fca in main ()
[Current thread is 1 (Thread 0x7ffff7f09900 (LWP 29427))]
(gdb) thread 2
[Switching to thread 2 (Thread 0x7fffed27a700 (LWP 29428))]
#0 0x00007ffff5152a90 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
(gdb) bt
#0 0x00007ffff5152a90 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#1 0x00007ffff75d4348 in ?? () from /usr/lib/nvidia-390/libGL.so.1
#2 0x00007ffff75d5145 in ?? () from /usr/lib/nvidia-390/libGL.so.1
#3 0x00007ffff6ec4a94 in sf::priv::GlxContext::makeCurrent(bool) () from ./libsfml-window.so.2.5
#4 0x00007ffff6eb40e1 in sf::priv::GlContext::setActive(bool) () from ./libsfml-window.so.2.5
#5 0x00007ffff6eb42ad in sf::priv::GlContext::acquireTransientContext() () from ./libsfml-window.so.2.5
#6 0x00007ffff711790d in sf::Texture::~Texture() () from ./libsfml-graphics.so.2.5
#7 0x00000000004b4115 in Layer::~Layer() ()
#8 0x00000000004c2ae5 in MenuScreenPause::~MenuScreenPause() ()
#9 0x00000000004a6f70 in std::_Sp_counted_ptr_inplace<Menu, std::allocator
#10 0x00000000004a6a5f in std::shared_ptr::~shared_ptr() ()
#11 0x00007ffff5decff8 in __run_exit_handlers (status=1, listp=0x7ffff61775f8 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true) at exit.c:82
#12 0x00007ffff5ded045 in __GI_exit (status=) at exit.c:104
#13 0x00007ffff5154bb8 in _XDefaultError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#14 0x00007ffff5154ced in _XError () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#15 0x00007ffff5151b77 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#16 0x00007ffff5151c35 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#17 0x00007ffff5152bf0 in _XReply () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#18 0x00007ffff75d4348 in ?? () from /usr/lib/nvidia-390/libGL.so.1
#19 0x00007ffff75d5145 in ?? () from /usr/lib/nvidia-390/libGL.so.1
#20 0x00007ffff6ec4a94 in sf::priv::GlxContext::makeCurrent(bool) () from ./libsfml-window.so.2.5
#21 0x00007ffff6eb40e1 in sf::priv::GlContext::setActive(bool) () from ./libsfml-window.so.2.5
#22 0x00007ffff6eb42ad in sf::priv::GlContext::acquireTransientContext() () from ./libsfml-window.so.2.5
#23 0x00007ffff7117ce9 in sf::Texture::update(unsigned char const*, unsigned int, unsigned int, unsigned int, unsigned int) ()
from ./libsfml-graphics.so.2.5
#24 0x00007ffff711989c in sf::Texture::loadFromImage(sf::Image const&, sf::Rect const&) () from ./libsfml-graphics.so.2.5
#25 0x00007ffff711993d in sf::Texture::loadFromFile(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, sf::Rect const&) () from ./libsfml-graphics.so.2.5
#26 0x000000000047a5e7 in LuaNode::setupTexture() ()
#27 0x000000000047b09f in updateProperties ()
#28 0x00007ffff7bac090 in luaD_precall (L=L@entry=0x7fffebdea618, func=, func@entry=0x7fffc92eed10, nresults=nresults@entry=0) at ldo.c:337
#29 0x00007ffff7bb8efd in luaV_execute (L=L@entry=0x7fffebdea618) at lvm.c:1084
#30 0x00007ffff7bac457 in luaD_call (L=0x7fffebdea618, func=, nResults=, allowyield=) at ldo.c:422
#31 0x00007ffff7bab9f2 in luaD_rawrunprotected (L=L@entry=0x7fffebdea618, f=f@entry=0x7ffff7ba6b80 <f_call>, ud=ud@entry=0x7fffed2799d0) at ldo.c:142
#32 0x00007ffff7bac73d in luaD_pcall (L=L@entry=0x7fffebdea618, func=func@entry=0x7ffff7ba6b80 <f_call>, u=u@entry=0x7fffed2799d0, old_top=16,
ef=) at ldo.c:644
#33 0x00007ffff7ba8081 in lua_pcallk (L=0x7fffebdea618, nargs=0, nresults=0, errfunc=, ctx=0, k=0x0) at lapi.c:945
#34 0x0000000000478c39 in LuaNode::luaRetrieveProperties() ()
#35 0x0000000000479070 in LuaNode::setupLua() ()
#36 0x000000000047a169 in LuaNode::initialize() ()
#37 0x000000000044afbd in Level::spawnEnemies() ()
#38 0x0000000000451f6b in Level::initialize() ()
#39 0x000000000043d78f in std::_Function_handler<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> (), std::__f--Type for more, q to quit, c to continue without paging--
uture_base::_Task_setter<std::unique_ptr<std::__future_base::_Result, std::__future_base::_Result_base::_Deleter>, std::thread::_Invoker<std::tupleGame::loadLevel()::{lambda()#1} >, void> >::_M_invoke(std::_Any_data const&) ()
#40 0x000000000043e989 in std::__future_base::_State_baseV2::_M_do_set(std::function<std::unique_ptr<std::__future_base::_Result_base, std::__future_base::_Result_base::_Deleter> ()>, bool) ()
#41 0x00007ffff6a8fa99 in __pthread_once_slow (once_control=0xa20558, init_routine=0x7ffff676d3b0 <__once_proxy>) at pthread_once.c:116
#42 0x000000000043cc0e in std::thread::_State_impl<std::thread::_Invoker<std::tuple<std::__future_base::_Async_state_impl<std::thread::_Invoker<std::tupleGame::loadLevel()::{lambda()#1} >, void>::_Async_state_impl(std::tupleGame::loadLevel()::{lambda()#1}&&)::{lambda()#1}> > >::_M_run() ()
#43 0x00007ffff676e1a0 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#44 0x00007ffff6a886ba in start_thread (arg=0x7fffed27a700) at pthread_create.c:333
#45 0x00007ffff5eba41d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
The text was updated successfully, but these errors were encountered: