• srcds crash with Assertion Failed: Narrowing inPtr to toClass returned NULL
    17 replies, posted
Happening on my dedicated server. Sometimes it takes hours, and other times this happens 5 minutes after boot. I've yet to come up with a way to reproduce it though. Windows 2k3. [t]http://puu.sh/1jR4l[/t]
The console command "test_workshop" will crash any server if ran from the client, this is the error produced.
[QUOTE=Drakehawke;38225745]The console command "test_workshop" will crash any server if ran from the client, this is the error produced.[/QUOTE] Wow. Thanks for the quick response anyway.
-snarp-
Temporary fix that will stop most attempts. Use at personal risk, may cause clients to unexpectedly disconnect when right clicking (with console open). [lua] snip - use what drakehawke wrote, its better [/lua]
Same thing: [code]L 10/28/2012 - 15:08:04: [ULX] Jordy2k9<STEAM_0:0:51452263> spawned model models /props_wasteland/laundry_dryer002.mdl Jordy2k9<STEAM_0:0:51452263> spawned model models/props_wasteland/laundry_dryer0 02.mdl 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[/code] [editline]28th October 2012[/editline] I tested "test_workshop" and indeed it will crash any server. Needs immediate fix.
[img]http://puu.sh/1jS2v[/img] Wrote a quick binary to remove it since concommand.Remove/Add didn't work. [editline]28th October 2012[/editline] Windows version: [url]http://puu.sh/1jSSa[/url] 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; }[/code] Linux coming soon
Thanks a bunch Drake. <3 EDIT: Getting "Couldn't load module library" with simply require("test_workshop_fix") Win2k3
Yeah someone else reported the same, odd, fine for me [editline]28th October 2012[/editline] Fixed: [url]http://puu.sh/1jSSa[/url]
You don't need a module to stop this.. [code]alias test_workshop ""[/code]
[QUOTE=BlackAwps;38227080]You don't need a module to stop this.. [code]alias test_workshop ""[/code][/QUOTE] i am defeated
yeah too bad it doesn't work
[lua]require( "cvar3" ) local test_workshop = cvars.GetCommand( "test_workshop" ) if test_workshop then test_workshop:SetFlags( FCVAR_DEVELOPMENTONLY ) end[/lua] Linux: [url=http://g.iriz.uk.to/~srcds/modules/gm13/bin/gmsv_cvar3_linux.dll]Download[/url] Windows: [url=http://blackawps-glua-modules.googlecode.com/svn/trunk/gm_cvar3/Release/gmsv_cvar3.dll]Download[/url]
With cvar3 loaded, the cvars library seems to be fucked up. cvars.Bool, as well as cvars.AddChangeCallback no longer exist.
[QUOTE=Drakehawke;38227205]i am defeated[/QUOTE] alias needs to be run on the client side for it to be effective, however alias is banned from being accessed so we have no way of lua_run or using RunConsoleCommand to set an alias on the client side. Your DLL works, but for some reason when I have it loaded it causes the server to crash on changelevel.
[QUOTE=Acecool;38228896]alias needs to be run on the client side for it to be effective, however alias is banned from being accessed so we have no way of lua_run or using RunConsoleCommand to set an alias on the client side. Your DLL works, but for some reason when I have it loaded it causes the server to crash on changelevel.[/QUOTE] The alias works serverside too, I tried it out. Try redownloading it (I updated the link above), I missed something out in the first version that I think might be causing the changelevel crash.
[QUOTE=Drakehawke;38229266]The alias works serverside too, I tried it out. Try redownloading it (I updated the link above), I missed something out in the first version that I think might be causing the changelevel crash.[/QUOTE] could ypu put it on another site my avtivirus doent like the link if its a linux version
[QUOTE=gaz492;38233756]could ypu put it on another site my avtivirus doent like the link if its a linux version[/QUOTE] I never bothered with the Linux version since alias test_workshop "" was found, but garry posted his own fix in this thread: [url]http://www.facepunch.com/showthread.php?t=1221645[/url]
Sorry, you need to Log In to post a reply to this thread.