1. Post #1
    infinitywrai's Avatar
    December 2007
    539 Posts
    As title says, a client running test_workshop on any server will cause this error and server freeze:

    Code:
    STEAM REMOTE STORAGE!!!!!!!!
    steamengine.cpp (2077) : Assertion Failed: Narrowing inPtr to toClass returned N
    ULL.
    Assert( Assertion Failed: Narrowing inPtr to toClass returned NULL. ):steamengin
    e.cpp:2077
    Discuss
    Reply With Quote Edit / Delete Windows 7 United States Show Events Useful Useful x 3Disagree Disagree x 1 (list)

  2. Post #2
    PROUD BRONY 4LYFE
    Drakehawke's Avatar
    February 2009
    3,312 Posts


    Wrote a quick binary to remove it since concommand.Remove/Add didn't work.

    Edited:

    Windows version: http://puu.sh/1jSSa

    Save as gmsv_test_workshop_fix_win32.dll in garrysmod/lua/bin, require it serverside to remove it.

    Source:

    Code:
    #define GMMODULE
    #include "GarrysMod/Lua/Interface.h"
    
    #include "tier1/tier1.h"
    #include "tier1/interface.h"
    #include "vstdlib/cvar.h"
    
    GMOD_MODULE_OPEN()
    {
    	CreateInterfaceFn tier1Factory = VStdLib_GetICVarFactory();
    	g_pCVar = (ICvar *)tier1Factory( CVAR_INTERFACE_VERSION, NULL );
    	g_pCVar->UnregisterConCommand( g_pCVar->FindCommandBase( "test_workshop" ) );
    	return 0;
    }
    Linux coming soon
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Zing Zing x 9Winner Winner x 3Agree Agree x 2 (list)

  3. Post #3
    I work under clearence dumbfuck
    TankMan's Avatar
    June 2009
    1,523 Posts
    Leave it, I'm having a blast!
    Reply With Quote Edit / Delete Windows 7 United States Show Events Funny Funny x 20Agree Agree x 6Dumb Dumb x 3Winner Winner x 2 (list)

  4. Post #4
    koz
    OasisRP

    July 2012
    366 Posts
    Every server getting overrun by this command.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 1 (list)

  5. Post #5
    Best Serious RP
    Tehelee's Avatar
    December 2006
    177 Posts
    Any chance of a 64bit (I think it needs 64bit, says couldn't load module, even though it finds it)? Because you could probably get one out before Garry got an update out to remove it, my server's already been crashed twice.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 3 (list)

  6. Post #6
    AidanCKY's Avatar
    September 2010
    446 Posts
    It's silly that the ByB servers have already fixed this issue yet they cant even admin the server for toffee.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 7Dumb Dumb x 1Funny Funny x 1 (list)

  7. Post #7
    Reposting BUG threads since 2011!
    TehBigA's Avatar
    March 2007
    426 Posts
    ...

    Source:

    Code:
    #define GMMODULE
    #include "GarrysMod/Lua/Interface.h"
    
    #include "tier1/tier1.h"
    #include "tier1/interface.h"
    #include "vstdlib/cvar.h"
    
    GMOD_MODULE_OPEN()
    {
    	CreateInterfaceFn tier1Factory = VStdLib_GetICVarFactory();
    	g_pCVar = (ICvar *)tier1Factory( CVAR_INTERFACE_VERSION, NULL );
    	g_pCVar->UnregisterConCommand( g_pCVar->FindCommandBase( "test_workshop" ) );
    	return 0;
    }
    Worked like a charm, thanks!
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  8. Post #8
    gamerpaddy's Avatar
    March 2009
    340 Posts
    Damn, we need a Tutorial how to set up headers on linux (for gmod modules..) In wiki.garrysmod.com is only the way, to compile .. not how to get source sdk headers...
    Reply With Quote Edit / Delete Windows 7 Germany Show Events

  9. Post #9
    NaRyan's Avatar
    November 2009
    244 Posts
    -snip-
    Nevermind I was wrong.
    Although the module does crash the server when it changes level.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  10. Post #10
    spykr's Avatar
    January 2012
    109 Posts
    Using the module stops the command, however it causes the server to crash on map change.
    All you need to do is add the below command to autoexec.cfg and it is blocked.

    alias test_workshop ""
    (above command was mentioned by BlackAwps)
    Needs to be run on the client, just putting it in my autoexec.cfg as suggested didn't work.
    Reply With Quote Edit / Delete Windows 7 Australia Show Events

  11. Post #11
    mrciku's Avatar
    June 2008
    36 Posts
    Easy easy fix. Just put this in lua/autorun of the server...

    Code:
    local function getoutfag(ply)
        ply:Kick("Tried to use test_workshop crash exploit")
    end
    concommand.Add("test_workshop", getoutfag)
    Reply With Quote Edit / Delete Windows 8 Singapore Show Events Late Late x 3Dumb Dumb x 3 (list)

  12. Post #12
    Dragon Dildoes
    Dennab
    April 2009
    4,432 Posts
    Easy easy fix. Just put this in lua/autorun of the server...

    Code:
    local function getoutfag(ply)
        ply:Kick("Tried to use test_workshop crash exploit")
    end
    concommand.Add("test_workshop", getoutfag)
    That does not work, you cannot overwrite engine concommands.
    Reply With Quote Edit / Delete Windows 7 Germany Show Events Agree Agree x 3 (list)

  13. Post #13
    Ruzza's Avatar
    December 2011
    1,137 Posts
    My server(s) do not crash when changing level with this module.
    Reply With Quote Edit / Delete Windows 7 Australia Show Events Informative Informative x 1 (list)

  14. Post #14
    Dragon Dildoes
    Dennab
    April 2009
    4,432 Posts
    However, BlackOps fix works and does not require a module:

    Code:
    alias test_workshop ""
    Reply With Quote Edit / Delete Windows 7 Germany Show Events

  15. Post #15
    garry's Avatar
    September 2001
    12,385 Posts
    This is fixed in the SVN now. Servers should be able to replace their binaries with the binaries in the SVN to prevent the crash before the update goes out.
    Reply With Quote Edit / Delete Windows 7 Show Events Winner Winner x 8Dumb Dumb x 2 (list)

  16. Post #16
    NaRyan's Avatar
    November 2009
    244 Posts
    Just in case anyone does not know the svn location.

    http://svn.facepunchstudios.com/svn/gm/
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Friendly Friendly x 2 (list)

  17. Post #17
    JamieH is a retarded bitch <3
    Pantho's Avatar
    July 2008
    2,191 Posts
    This is fixed in the SVN now. Servers should be able to replace their binaries with the binaries in the SVN to prevent the crash before the update goes out.
    seems to crash on startup, TTT gamemode:


    https://dl.dropbox.com/u/20695064/sr...0_25_29C0.mdmp

    Edited:

    Also tested on sandbox, same results.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Agree Agree x 2Artistic Artistic x 1 (list)

  18. Post #18
    Gold Member
    DarthTealc's Avatar
    October 2007
    494 Posts
    Our TTT server is stuck in a reboot loop. Appears to happen around the time it hits sv_tags. (This is after applying the updated binaries)
    Reply With Quote Edit / Delete Australia Show Events

  19. Post #19
    NaRyan's Avatar
    November 2009
    244 Posts
    You need the files from both bin directorys.

    /bin into orangebox/bin
    /garrysmod/bin into same named dir.

    Server starts fine then.
    And using test_workshop clientside now gives an unknown command error.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Informative Informative x 2Useful Useful x 1 (list)

  20. Post #20
    Gold Member
    DarthTealc's Avatar
    October 2007
    494 Posts
    Thanks, that fixed it!
    Reply With Quote Edit / Delete Australia Show Events

  21. Post #21
    JamieH is a retarded bitch <3
    Pantho's Avatar
    July 2008
    2,191 Posts
    well, the svn link was to the gmod folder at first I'm sure :s, but thanks NaRyan I shall update the orangebox libs.-

    Yep, fixed :)
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  22. Post #22
    NaRyan's Avatar
    November 2009
    244 Posts
    well, the svn link was to the gmod folder at first I'm sure :s, but thanks NaRyan I shall update the orangebox libs.
    Yeah I did post the original svn link to the gmod folder, but realized my mistake a few minutes later.
    Sorry about that.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  23. Post #23
    Gold Member

    March 2010
    149 Posts
    what files do i need to update?
    Reply With Quote Edit / Delete Windows 8 United Kingdom Show Events Dumb Dumb x 1 (list)

  24. Post #24
    Dark Herald's Avatar
    August 2010
    93 Posts
    Drakehawke, can u compile module for linux?
    Reply With Quote Edit / Delete Windows 7 Russian Federation Show Events

  25. Post #25
    Gold Member

    March 2010
    149 Posts
    -snip-

    Misses a post
    Reply With Quote Edit / Delete Windows 8 United Kingdom Show Events

  26. Post #26
    Ruzza's Avatar
    December 2011
    1,137 Posts
    Morgen, would you like to explain how this is dumb, ive only just started to host a server, and i don't know what binary's/files i am supposed to replace
    he rated you dumb because, if you spent 30 seconds reading the thread, you would have found out the answer.

    You need the files from both bin directorys.

    /bin into orangebox/bin
    /garrysmod/bin into same named dir.

    Server starts fine then.
    And using test_workshop clientside now gives an unknown command error.
    Reply With Quote Edit / Delete Windows 7 Australia Show Events Agree Agree x 1 (list)

  27. Post #27
    Gold Member

    March 2010
    149 Posts
    he rated you dumb because, if you spent 30 seconds reading the thread, you would have found out the answer.
    Saw that when just before you posted. but now im getting

    Failed to open dedicated.so (libsteam_api.so: cannot open shared object file: No such file or directory)
    cat: hlds.22229.pid: No such file or directory

    EDIT:

    now
    AppFramework : Unable to load module bin/vphysics.so!
    cat: hlds.22342.pid: No such file or directory
    email debug.log to linux@valvesoftware.com

    And now


    Console initialized.
    ./orangebox/srcds_run: line 372: 22495 Segmentation fault (core dumped) $HL_CMD
    cat: hlds.22487.pid: No such file or directory
    email debug.log to linux@valvesoftware.com
    Mon Oct 29 17:36:18 MSK 2012: Server restart in 10 seconds


    What the hell is happening to my server
    Reply With Quote Edit / Delete Windows 8 United Kingdom Show Events

  28. Post #28
    Ruzza's Avatar
    December 2011
    1,137 Posts
    Saw that when just before you posted. but now im getting

    Failed to open dedicated.so (libsteam_api.so: cannot open shared object file: No such file or directory)
    cat: hlds.22229.pid: No such file or directory

    EDIT:

    now
    AppFramework : Unable to load module bin/vphysics.so!
    cat: hlds.22342.pid: No such file or directory
    email debug.log to linux@valvesoftware.com

    And now


    Console initialized.
    ./orangebox/srcds_run: line 372: 22495 Segmentation fault (core dumped) $HL_CMD
    cat: hlds.22487.pid: No such file or directory
    email debug.log to linux@valvesoftware.com
    Mon Oct 29 17:36:18 MSK 2012: Server restart in 10 seconds


    What the hell is happening to my server
    I hope you didn't delete the original files in the bin folder, outside garrysmod. Just override the original with the svn's and it should work.
    Reply With Quote Edit / Delete Windows 7 Australia Show Events

  29. Post #29
    NaRyan's Avatar
    November 2009
    244 Posts
    Is anyone else who has added the files from the SVN to their server now getting massive lag?
    On all 3 of my servers (TTT, The Stalker & Sandbox, all windows servers) as soon as players join the server lags to hell.

    On TTT with just 4 players, the pings were way up, and the server was acting more like it was being DDoSed, even the server ping in HLSW goes up.
    Yet if I go back to the original files that belong in the bin folders the server behaves.
    However that makes the original problem there to be abused..
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events

  30. Post #30
    Gold Member
    ShaunOfTheLive's Avatar
    November 2007
    9,831 Posts
    Is anyone else who has added the files from the SVN to their server now getting massive lag?
    On all 3 of my servers (TTT, The Stalker & Sandbox, all windows servers) as soon as players join the server lags to hell.

    On TTT with just 4 players, the pings were way up, and the server was acting more like it was being DDoSed, even the server ping in HLSW goes up.
    Yet if I go back to the original files that belong in the bin folders the server behaves.
    However that makes the original problem there to be abused..
    My TTT server does that even without the SVN binaries. Every five to ten seconds, it'll get a huge lag spike (I also watched it in HLSW, and it's amazing how regular the timing of the spikes is)
    Reply With Quote Edit / Delete Windows 8 Canada Show Events

  31. Post #31
    DaneSomdahl's Avatar
    April 2011
    266 Posts
    Saw that when just before you posted. but now im getting

    Failed to open dedicated.so (libsteam_api.so: cannot open shared object file: No such file or directory)
    cat: hlds.22229.pid: No such file or directory

    EDIT:

    now
    AppFramework : Unable to load module bin/vphysics.so!
    cat: hlds.22342.pid: No such file or directory
    email debug.log to linux@valvesoftware.com

    And now


    Console initialized.
    ./orangebox/srcds_run: line 372: 22495 Segmentation fault (core dumped) $HL_CMD
    cat: hlds.22487.pid: No such file or directory
    email debug.log to linux@valvesoftware.com
    Mon Oct 29 17:36:18 MSK 2012: Server restart in 10 seconds


    What the hell is happening to my server
    It's being ran by an idiot is what happened.
    Reply With Quote Edit / Delete Windows XP United States Show Events Zing Zing x 4Dumb Dumb x 2Funny Funny x 2Agree Agree x 1 (list)

  32. Post #32
    Dennab
    September 2012
    52 Posts
    Garry's fix does not work unless the clients were to actually use the svn, which the trolls won't.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 4Disagree Disagree x 1 (list)

  33. Post #33
    Gold Member
    A_Pigeon's Avatar
    November 2011
    3,405 Posts
    It's silly that the ByB servers have already fixed this issue yet they cant even admin the server for toffee.
    $4.99 global admin does that to a community.
    Reply With Quote Edit / Delete Windows 7 Canada Show Events Agree Agree x 3 (list)

  34. Post #34
    HAPPY BIRTHDAY GARRY
    Dennab
    July 2012
    231 Posts
    When will the update come out?
    Reply With Quote Edit / Delete Windows 7 United States Show Events

  35. Post #35
    Gold Member
    Rocketsurgery's Avatar
    April 2011
    201 Posts
    When will the update come out?
    .
    Reply With Quote Edit / Delete Windows 7 United States Show Events Dumb Dumb x 2Useful Useful x 1Informative Informative x 1 (list)

  36. Post #36
    Gold Member
    Rocketsurgery's Avatar
    April 2011
    201 Posts
    my server also crashes when changing level when using drakehawke's fix

    ;_;
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 2Informative Informative x 1 (list)

  37. Post #37
    Reposting BUG threads since 2011!
    TehBigA's Avatar
    March 2007
    426 Posts
    Just FYI for people who tried the module fix with the code that Drakehawke posted: His code that removed the console command from the game caused crashes on map change. This should be changed to make it a cheat which I did with my own module instead which fixed all issues.

    Garry: If all you did was remove the command it may cause the crashes. If you did just remove it I hope you fixed the map level change.
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 2Dumb Dumb x 1 (list)

  38. Post #38
    Gold Member
    Rocketsurgery's Avatar
    April 2011
    201 Posts
    could you post said module tehbiga, would appreciate
    Reply With Quote Edit / Delete Windows 7 United States Show Events Agree Agree x 3 (list)

  39. Post #39
    PROUD BRONY 4LYFE
    Drakehawke's Avatar
    February 2009
    3,312 Posts
    The map level change is my fault, nothing to do with the command, it happens occasionally with mysqloo too (another module of mine), I think it's to do with GMOD_MODULE_CLOSE but have no idea why it happens.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Funny Funny x 1 (list)

  40. Post #40
    JamieH is a retarded bitch <3
    Pantho's Avatar
    July 2008
    2,191 Posts
    The map level change is my fault, nothing to do with the command, it happens occasionally with mysqloo too (another module of mine), I think it's to do with GMOD_MODULE_CLOSE but have no idea why it happens.
    Odd, I used mysqloo on my TTT servers for admin loading and it never crashed them once in gm12, had a few TTT map crashes in gm13 but I assumed this was due to GM13 being all new and buggy.
    Reply With Quote Edit / Delete Windows 7 United Kingdom Show Events Funny Funny x 1 (list)