[Linux] b262 doesn't start

abelthorneabelthorne Join Date: 2013-08-29 Member: 187171Members
edited December 2013 in Technical Support
When I saw that b258 was released, I thought I'd give it a try to see if the black screen issue (locale problem with LUA scripts) was finally fixed. Problem is that now I get only graphic corruption when launching the game (which doesn't seem to do anything at all, BTW, as I don't hear any sounds; I don't think it gets to the menu and just stays stuck).

As I recently updated my graphic drivers for AMD 13.11 beta, the problem might come from them. So before I start experimenting with multiple drivers, has anybody encountered the same issue on Linux with b258?

EDIT : post updated after b262
«134

Comments

  • IronsoulIronsoul Join Date: 2011-03-12 Member: 86048Members
    oh gosh, amd on linux. Good luck with that!
  • ConfusedConfused Wait. What? Join Date: 2003-01-28 Member: 12904Members, Constellation, NS2 Playtester, Squad Five Blue, Subnautica Playtester
    @Abelthorne is there anything the log? (~/.config/Natural Selection2/log.txt)

    any errors?
  • MaxMax Technical Director, Unknown Worlds Entertainment Join Date: 2002-03-15 Member: 318Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer
    Can you post your log file? You'll find it in ~/.config/Natural Selection 2/log.txt
  • abelthorneabelthorne Join Date: 2013-08-29 Member: 187171Members
    Well, I checked the logfile but I'm not sure it's really relevant. Here it is:
    Date: 10/15/13
    Time: 13:03:52:
    --------------------------------------------------------------
    Build 258
    Ubuntu 13.04 x86_64
    Steam initialized
    Num displays: 1
    OpenGL 4.3.12458 Compatibility Profile Context 9.012 initialized (ATI Technologies Inc. AMD Radeon HD 7700 Series)
    GLSL version 4.30
    ARB_texture_storage extension present
    Sound Device: default stereo
    Record Device: default
    Loading config://ConsoleBindings.json
    Loading config://FavoriteServers.json
    Loading config://HistoryServers.json
    Compiling 'shaders/Model_emissive.surface_shader'
    

    Maybe it's just compiling shaders for a while and I should wait? But it didn't work that way before (it launched to the menu and only when trying to start a game it would compile shaders) and there's no hard disk access when I decide to kill the process, it just seems to be stuck.
  • ConfusedConfused Wait. What? Join Date: 2003-01-28 Member: 12904Members, Constellation, NS2 Playtester, Squad Five Blue, Subnautica Playtester
    good deal, can you do me a favor and delete ~/.config/Natural Selection 2/cache and see if that fixes things?
  • abelthorneabelthorne Join Date: 2013-08-29 Member: 187171Members
    Still the same but I've let it run longer and the log.txt says that:
    Date: 10/15/13
    Time: 21:23:57:
    --------------------------------------------------------------
    Build 258
    Ubuntu 13.04 x86_64
    Steam initialized
    Num displays: 1
    OpenGL 4.3.12458 Compatibility Profile Context 9.012 initialized (ATI Technologies Inc. AMD Radeon HD 7700 Series)
    GLSL version 4.30
    ARB_texture_storage extension present
    Compiling 'renderer/Drawer.shader'
    Sound Device: default stereo
    Record Device: default
    Compiling 'renderer/DeferredShading.shader'
    Compiling 'renderer/DeferredShading.shader'
    Compiling 'renderer/LightVolume.shader'
    Compiling 'shaders/GUIBasic.surface_shader'
    
    And it eats up CPU (184 % of CPU usage, i.e. one full core and a big part of the second).

    So it looks like that it's really compiling stuff but I'm not sure it's normal that I get only a black screen during that. If it's normal, it's not very user-friendly.

    I'll try to delete a few more things (options file and such) and let it run longer to see if it works better.
  • abelthorneabelthorne Join Date: 2013-08-29 Member: 187171Members
    I've deleted the whole NS2 directory in .config and started the game again. Same black screen. Let it run for 20 minutes with no change. The log file is the same, except that it's stucked at the first "Compiling 'renderer/DeferredShading.shader'"...

    Should I try older graphic drivers (like 13.4 stable rather that 13.11 beta)?
  • JCDJCD Join Date: 2005-01-07 Member: 33150Members, Reinforced - Shadow
    On a related note I had the same starting it on windows.
    It was fixed by deleting the cache+workshop folder.
    I don't know if that helps you guys on linux tho.
  • ZaggyZaggy NullPointerException The Netherlands Join Date: 2003-12-10 Member: 24214Forum Moderators, NS2 Playtester, Reinforced - Onos, Subnautica Playtester
    I'm currently running it fine with 13.8.
  • abelthorneabelthorne Join Date: 2013-08-29 Member: 187171Members
    JCD wrote: »
    On a related note I had the same starting it on windows.
    It was fixed by deleting the cache+workshop folder.
    I don't know if that helps you guys on linux tho.
    The cache didn't help. Where is the workshop dir? Somewhere in the Steam one?
    Zaggy wrote:
    I'm currently running it fine with 13.8.
    I think that 13.8 has had a few betas and would be quite stable in the end (I was surprised that it wasn't updated to the lastest stable release last time I checked). The 13.11 is in its first beta so I guess it's more likely to have new bugs. I'd prefer to stay with it, though, as I seem to have better performances in games.
  • JCDJCD Join Date: 2005-01-07 Member: 33150Members, Reinforced - Shadow
    Both were in the Appdata folder, but I don't know the equivalent for Linux.
  • abelthorneabelthorne Join Date: 2013-08-29 Member: 187171Members
    If that's where the game stores its config files, that would be "~/.config/Natural Selection 2", where I already deleted the cache but have not workshop dir (if it's used for downloaded mods, I have never used the workshop, so that may be why I don't have the dir).
  • JCDJCD Join Date: 2005-01-07 Member: 33150Members, Reinforced - Shadow
    Everytime you join a server that has mods it downloads them to a workshop folder even if you haven't subscribed to the mods yourself.
  • abelthorneabelthorne Join Date: 2013-08-29 Member: 187171Members
    Well, all I know is that I don't have a workshop dir in NS2's config dir.

    On Linux, i haven't been able to play NS2 yet because of the issues I encounter, never joined a server or really started a game (the farthest I've been is the lobby room of the training mode).
  • chrixchrix Join Date: 2013-09-21 Member: 188383Members
    Same here with catalyst 13.11 beta 1 with a HD 7970M.
    cat ~/.config/Natural\ Selection\ 2/log.txt
    Date: 10/17/13
    Time: 23:00:45:
    --------------------------------------------------------------
    Build 258
    Arch Linux x86_64
    [S_API WARN] Overlay does not appear to be loaded into game, but SetNotificationPosition is being called
    Steam initialized
    Num displays: 2
    OpenGL 4.3.12458 Compatibility Profile Context 13.20.16 initialized (ATI Technologies Inc. AMD Radeon HD 7970M)
    GLSL version 4.30
    ARB_texture_storage extension present
    Sound Device: Default Output Device stereo
    Record Device: Default Input Device
    Compiling 'renderer/DeferredShading.shader'
    
    ... and it hangs there at 100% CPU usage.
    If I start it with strace, the last line is
    futex(0xf3be664c, FUTEX_WAIT_PRIVATE, 0, NULL
    
    So it's pretty clear that it really is stuck on something.
  • abelthorneabelthorne Join Date: 2013-08-29 Member: 187171Members
    As a sidenote, I upgraded to Ubuntu 13.10 yesterday and tried NS2 with the driver from the Ubuntu repos (I think the fglrx-updates driver was version 13.1). It crashed immediately at startup with a segfault. Not sure if the driver is buggy or if the problem comes from NS2 b258.

    I couldn't install the 13.4 for whatever reason (got a dkms-related error when trying) so I reinstalled 13.11 beta and am now back to the beginning of this thread.
  • ConfusedConfused Wait. What? Join Date: 2003-01-28 Member: 12904Members, Constellation, NS2 Playtester, Squad Five Blue, Subnautica Playtester
    Can you try using a modified version of the script in this post to run ns2 and then posting the back trace on trh crash.


    You are going to have to remove the primusrun stuff.


    Was planning to try 13.10 soon but have been doing some major data schlepping so i have not had the chance to uninstall and reinstall.

  • chrixchrix Join Date: 2013-09-21 Member: 188383Members
    By the way, I have the problem on archlinux so it probably doesn't have anything to do with ubuntu and more with catalyst 13.11.
  • chrixchrix Join Date: 2013-09-21 Member: 188383Members
    You are aware that the whole radeon r* generation has to use he 13.11 beta driver, right?
  • abelthorneabelthorne Join Date: 2013-08-29 Member: 187171Members
    I've updated the title as I've tested b259. There's a slight change (I now get a "loading" screen rather than black or corrupt display) but NS2 is still stuck at start.

    I have yet to try the newest Catalyst beta (13.11 beta 6 instead of 13.11 beta 1) to check if the bug is fixed on AMD's side.
  • IronHorseIronHorse Developer, QA Manager, Technical Support & contributor Join Date: 2010-05-08 Member: 71669Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Subnautica Playtester, Subnautica PT Lead, Pistachionauts
    edited November 2013
    Well definitely try the newest driver and let us know, with a backtrace if possible.
  • abelthorneabelthorne Join Date: 2013-08-29 Member: 187171Members
    Tried 13.11b6. Back to previous step: garbage graphics when launching the game and it's stuck (the garbage/black screen/loading screen might be random). How do I get a backtrace?
  • AsranielAsraniel Join Date: 2002-06-03 Member: 724Members, Playtest Lead, Forum Moderators, NS2 Playtester, Squad Five Blue, Reinforced - Shadow, WC 2013 - Shadow, Subnautica Playtester, Retired Community Developer
    is it crashed or stuck? do you have an amd graphics card?
  • abelthorneabelthorne Join Date: 2013-08-29 Member: 187171Members
    Yup, stuck (see above): the game doesn't do anything, it only displays a black or garbaged screen (the loading screen happened once, with b259 and Catalyst 13.11b1). Log file is pretty useless.

    AMD RadeonHD 7770.
  • IronHorseIronHorse Developer, QA Manager, Technical Support & contributor Join Date: 2010-05-08 Member: 71669Members, Super Administrators, Forum Admins, Forum Moderators, NS2 Developer, NS2 Playtester, Squad Five Blue, Subnautica Playtester, Subnautica PT Lead, Pistachionauts
  • chrixchrix Join Date: 2013-09-21 Member: 188383Members
    Well, backtrace... It's just hanging there.

    In gdb you can just press ctrl+c and then get a backtrace of where it currently is.

    glXGetCurrentContext () in the catalyst driver seems to be causing the hang...?

    No debug symbols in libGL from fglrx though...
    #0  0xf7fdb430 in __kernel_vsyscall ()
    #1  0xf417059a in pthread_rwlock_wrlock () from /usr/lib32/libpthread.so.0
    #2  0xf43b0c71 in glXGetCurrentContext () from /usr/lib32/catalystpxp/fglrx/libGL.so.1
    #3  0x0850b570 in ?? ()
    #4  0xf79eb4eb in M4::OpenGLIndexBuffer::CreateInternal (this=0xd3ea7ff0, numBytes=6000, dynamic=false) at ../Source/Render/OpenGLIndexBuffer.cpp:165
    #5  0xf79eb5ac in M4::OpenGLIndexBuffer::CreateCommand::Execute (data=0xe32347e8) at ../Source/Render/OpenGLIndexBuffer.cpp:151
    #6  0xf79d6db8 in M4::CommandBuffer::ExecuteCommands (this=0xea3ae470) at ../Source/Render/CommandBuffer.cpp:91
    #7  0xf79e8608 in M4::OpenGLDevice::BeginRendering (this=0xea3ae0b8) at ../Source/Render/OpenGLDevice.cpp:476
    #8  0x0807803a in M4::ClientGame::Update (this=0xea310008, deltaTime=1.3443336269999999) at ../Source/Spark_Client/ClientGame.cpp:892
    #9  0x0806be56 in M4::ClientEngine::Update (this=0xf7fd5170, deltaTime=1.3443336269999999) at ../Source/Spark_Client/ClientEngine.cpp:152
    #10 0x080bf814 in M4::BaseEngine::RunFrame (this=0xf7fd5170) at ../Source/Spark_Server/BaseEngine.cpp:196
    #11 0x080bf840 in M4::BaseEngine::Run (this=0xf7fd5170) at ../Source/Spark_Server/BaseEngine.cpp:160
    #12 0x0806a273 in main (argc=<error reading variable: Cannot access memory at address 0x80>, argv=<error reading variable: Cannot access memory at address 0x84>) at ../Source/ShooterExe/Main.cpp:82
    



    Full backtrace:
    #0  0xf7fdb430 in __kernel_vsyscall ()
    No symbol table info available.
    #1  0xf417059a in pthread_rwlock_wrlock () from /usr/lib32/libpthread.so.0
    No symbol table info available.
    #2  0xf43b0c71 in glXGetCurrentContext () from /usr/lib32/catalystpxp/fglrx/libGL.so.1
    No symbol table info available.
    #3  0x0850b570 in ?? ()
    No symbol table info available.
    #4  0xf79eb4eb in M4::OpenGLIndexBuffer::CreateInternal (this=0xd3ea7ff0, numBytes=6000, dynamic=false) at ../Source/Render/OpenGLIndexBuffer.cpp:165
            indexBuffer = -484227084
    #5  0xf79eb5ac in M4::OpenGLIndexBuffer::CreateCommand::Execute (data=0xe32347e8) at ../Source/Render/OpenGLIndexBuffer.cpp:151
            command = 0xe32347e8
    #6  0xf79d6db8 in M4::CommandBuffer::ExecuteCommands (this=0xea3ae470) at ../Source/Render/CommandBuffer.cpp:91
            entry = 0xe32347f4
    #7  0xf79e8608 in M4::OpenGLDevice::BeginRendering (this=0xea3ae0b8) at ../Source/Render/OpenGLDevice.cpp:476
            lock = {<M4::Uncopyable> = {<No data fields>}, m_criticalSection = @0xea3ae448}
    #8  0x0807803a in M4::ClientGame::Update (this=0xea310008, deltaTime=1.3443336269999999) at ../Source/Spark_Client/ClientGame.cpp:892
            renderStatus = M4::RenderStatus_Ready
            updateWorldJob = {<M4::Job> = {_vptr.Job = 0xffffc6e8, m_doneEvent = warning: can't find linker symbol for virtual table for `M4::Event' value
    warning:   found `MessageLoop::RunAllPending()' instead
    {_vptr.Event = 0xf4ab488f <MessageLoop::RunAllPending()+61>, 
                  m_impl = "\000\335K\b\005\000\000\000\000\000\000\000`\000\027\364<\307\377\377\274\317\377\367\370\330\377\367\240\357\026\364\060\307\377\377\342\243\376\367\260\332\377\367`\000\027\364\001\000\000\000\005\000\000\000\331\355\026\364\030\033\215\367\030\033\215\367\204\307\377\377\030\033\215", <incomplete sequence \367>}}, m_world = 0xf7453d80 <M4::Event::SetSignaled()+64>, m_connected = 156, m_xSize = 0, m_ySize = 1, m_hasFocus = false, m_visible = false, m_mouseCaptured = false, 
              m_accumulatedDeltaTime = -nan(0xfc780f78d1b18), m_endTime = -3.4406860929522249e+266}
            updateInterval = -inf
            updateResult = true
    #9  0x0806be56 in M4::ClientEngine::Update (this=0xf7fd5170, deltaTime=1.3443336269999999) at ../Source/Spark_Client/ClientEngine.cpp:152
            serverGame = 0x0
            serverUpdateJob = {<M4::Job> = {_vptr.Job = 0x81f5208 <vtable for M4::ServerUpdateJob+8>, m_doneEvent = {_vptr.Event = 0xf78d1490 <vtable for M4::Event+8>, m_impl = '\000' <repeats 68 times>, "\b\330'\b\001\275`\025"}}, m_serverGame = 0x0, 
              m_deltaTime = 1.3443336269999999, m_waitForPackets = false, m_result = 200}
            disconnect = false
    #10 0x080bf814 in M4::BaseEngine::RunFrame (this=0xf7fd5170) at ../Source/Spark_Server/BaseEngine.cpp:196
            result = true
            deltaTime = <optimized out>
    #11 0x080bf840 in M4::BaseEngine::Run (this=0xf7fd5170) at ../Source/Spark_Server/BaseEngine.cpp:160
    No locals.
    #12 0x0806a273 in main (argc=<error reading variable: Cannot access memory at address 0x80>, argv=<error reading variable: Cannot access memory at address 0x84>) at ../Source/ShooterExe/Main.cpp:82
            allocator = 0xf78e91d4 <M4::(anonymous namespace)::_allocatorsBuffer+20>
            logLocation = {static npos = <optimized out>, _M_dataplus = {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No data fields>}, <No data fields>}, _M_p = 0x834be0c "/home/chris/.config/Natural Selection 2"}}
            engine = 0xf7fd5170
            parser = 0xf7fd6200
            verbose = <optimized out>
            serverOnly = false
    
  • drone12drone12 Serbia Join Date: 2013-11-03 Member: 188968Members
    Just bought the game (since I just noticed you had a linux flag up and running), game just hangs after clicking 'play' in steam, this is the log I get
    Date: 11/03/13
    Time: 18:27:25:
    Build 259
    Ubuntu 13.10 x86_64
    Steam initialized
    Num displays: 2
    OpenGL 4.3.12614 Compatibility Profile Context 13.25.18 initialized (ATI Technologies Inc. AMD Radeon HD 7800 Series)
    GLSL version 4.30
    ARB_texture_storage extension present
    Compiling 'renderer/Drawer.shader'
    Sound Device: default stereo
    Record Device: default
    Compiling 'renderer/DeferredShading.shader'

    Sidenote - xubuntu, dual monitor setup, 13.11 beta 6 drivers.
  • KatanaSwordfishKatanaSwordfish Join Date: 2009-09-17 Member: 68813Members
    It seems like I might be having the same issue: NS2 flashes a black screen for a second before crashing on startup, in Ubuntu (Xubuntu, really) 64bit 13.10.

    Here's what I'm using:
    Xubuntu 13.10 64bit.
    AMD HD7770 with 13.10 drivers (fglrx-updates in driver manager)..
    Intel i7, 6gb RAM, SSD..

    It looks like it may be crashing pretty much right after the OpenGL context is created, but I can't know for sure..

    Date: 11/21/13
    Time: 03:36:02:
    Build 260
    Ubuntu 13.10 x86_64
    Steam initialized
    Num displays: 1
    OpenGL 4.2.12337 Compatibility Profile Context 13.101 initialized (ATI Technologies Inc. AMD Radeon HD 7700 Series)
    GLSL version 4.30
    ARB_texture_storage extension present
    Sound Device: default stereo
    Record Device: default
  • abelthorneabelthorne Join Date: 2013-08-29 Member: 187171Members
    Yup, problem still present in build 260 (with AMD Catalyst 13.11 beta 6 from AMD site in my case).
  • miskmisk chair Join Date: 2013-11-21 Member: 189494Members
    Same here. Does anyone even managed to run NS2 on any build on any distro with any driver and any AMD GPU?

    Everyone asks for logs, backtraces even though they were posted in many threads with same results. Maybe devs could actually try to run NS2 on their own machine with Linux and AMD GPU? Seriously.
Sign In or Register to comment.