[Linux] Freeze on map load

rkfgrkfg Russia Join Date: 2013-09-03 Member: 187744Members, Reinforced - Supporter, Reinforced - Silver, Reinforced - Gold, Reinforced - Diamond, Reinforced - Shadow
This started to happen on the "Downloading mods" stage recently. The game just freezes randomly. Here's the traceback:
(gdb) bt
#0 0xf77cac89 in __kernel_vsyscall ()
#1 0xf6988d92 in __lll_lock_wait () from target:/lib/i386-linux-gnu/libpthread.so.0
#2 0xf69828de in pthread_mutex_lock () from target:/lib/i386-linux-gnu/libpthread.so.0
#3 0xf6c1b742 in tbb::internal::critical_section_v4::lock (this=0xf1ebbe38) at ../libs/tbb/include/tbb/critical_section.h:88
#4 M4::CriticalSection::Enter (this=this@entry=0xf1ebbe34) at ../Source/Engine/linux/CriticalSection.cpp:51
#5 0xf6c1b7e1 in M4::CriticalSectionLock::CriticalSectionLock (this=0xff84017c, criticalSection=...) at ../Source/Engine/CriticalSectionLock.cpp:21
#6 0xf730b518 in M4::StreamingFileTextureManager::OnCommandQueuesFlushed (userData=0xf1ebbe18) at ../Source/Render/StreamingFileTextureManager.cpp:1283
#7 0xf72afe60 in M4::RenderEventHandler::Send (this=this@entry=0xf023bd78, event=event@entry=M4::RenderEvent_CommandQueuesFlushed) at ../Source/Render/RenderEventHandler.cpp:48
#8 0xf729bdf3 in M4::OpenGLDevice::BeginRendering (this=0xf023b7d8) at ../Source/Render/OpenGLDevice.cpp:528
#9 0x08086864 in M4::ClientGame::Update (this=0xf023c008, deltaTime=3.8319994928315282e-06) at ../Source/Spark_Client/ClientGame.cpp:1133
#10 0x0806f25e in M4::ClientEngine::Update (this=0xf4860be0, deltaTime=3.8319994928315282e-06) at ../Source/Spark_Client/ClientEngine.cpp:252
#11 0x080e75d2 in M4::BaseEngine::RunFrame (this=0xf4860be0) at ../Source/Spark_Server/BaseEngine.cpp:206
#12 M4::BaseEngine::Run (this=this@entry=0xf4860be0) at ../Source/Spark_Server/BaseEngine.cpp:170
#13 0x0806c39d in main (argc=1, argv=0xff840524) at ../Source/ShooterExe/Main.cpp:110

Seems to be a deadlock. I'm not 100% sure but it started really not so long ago, maybe an update or two back.

Comments

  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    edited September 2017
    Hi, the usage of tbb will be removed with upcoming build to avoid issues like this one. However there may be some new issues at Linux due to the switch to 64bit and the related code and libs changes.

    To run the beta you will need gcc-5 and g++-5.
  • rkfgrkfg Russia Join Date: 2013-09-03 Member: 187744Members, Reinforced - Supporter, Reinforced - Silver, Reinforced - Gold, Reinforced - Diamond, Reinforced - Shadow
    Good, the best way to fix the faulty code is indeed to remove it (no irony)! I have several GCC and G++ installed, from 5 to 7, but it's a kinda weird requirement for an end user. Maybe you mean libstdc++ that's often the source of issues?
  • GhoulofGSG9GhoulofGSG9 Join Date: 2013-03-31 Member: 184566Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Squad Five Silver, Reinforced - Supporter, WC 2013 - Supporter, Pistachionauts
    rkfg wrote: »
    Good, the best way to fix the faulty code is indeed to remove it (no irony)! I have several GCC and G++ installed, from 5 to 7, but it's a kinda weird requirement for an end user. Maybe you mean libstdc++ that's often the source of issues?

    Yeah I meant libstdc++-5.
  • rkfgrkfg Russia Join Date: 2013-09-03 Member: 187744Members, Reinforced - Supporter, Reinforced - Silver, Reinforced - Gold, Reinforced - Diamond, Reinforced - Shadow
    Frozen again on mapload, the trace is a bit different this time:
    #0  __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
    #1  0x00007ff34d616e56 in __GI___pthread_mutex_lock (mutex=0x2fc31d0) at ../nptl/pthread_mutex_lock.c:115
    #2  0x00007ff351fa7898 in M4::StreamingFileTextureManager::OnCommandQueuesFlushed (userData=0x7ff3401c6d60) at ../Source/Render/StreamingFileTextureManager.cpp:1283
    #3  0x00007ff351f54d26 in M4::RenderEventHandler::Send (this=this@entry=0x7ff34004beb0, event=event@entry=M4::RenderEvent_CommandQueuesFlushed) at ../Source/Render/RenderEventHandler.cpp:48
    #4  0x00007ff351f413f6 in M4::OpenGLDevice::BeginRendering (this=0x7ff34004b7e8) at ../Source/Render/OpenGLDevice.cpp:528
    #5  0x00000000004470ea in M4::ClientGame::Update (this=0x7ff34009e010, deltaTime=<optimized out>) at ../Source/Spark_Client/ClientGame.cpp:1133
    #6  0x00000000004309d5 in M4::ClientEngine::Update (this=0x7ff352a2c418, deltaTime=0.050540750999971351) at ../Source/Spark_Client/ClientEngine.cpp:253
    #7  0x00000000004a52d1 in M4::BaseEngine::RunFrame (this=0x7ff352a2c418) at ../Source/Spark_Server/BaseEngine.cpp:212
    #8  M4::BaseEngine::Run (this=0x7ff352a2c418) at ../Source/Spark_Server/BaseEngine.cpp:176
    #9  0x000000000042e0cc in main (argc=<optimized out>, argv=<optimized out>) at ../Source/ShooterExe/Main.cpp:113
    
Sign In or Register to comment.