Page 1 of 1

SP crashing server No global pointer found for "Server"

Posted: Sat Nov 21, 2015 9:43 pm
by Doldol
The error sadly didn't log to any script files, and I'm running on Win 8.1 (CSGO) so I only have a picture.

After this the server lists some more cvars and then crashed, all I did was update my SP install, it ran fine right before I did so. (When updating SP I delete everything in the addons folder except for SP's plugin directory.)

Image

Posted: Sun Nov 22, 2015 12:35 am
by Ayuto
This should fix the crash (build 140): https://github.com/Source-Python-Dev-Team/Source.Python/commit/89e576c055874c78b33db826358e8828155e80de

I changed that in my last commit due to the conversions update, but I forgot to remove the "!". Thanks for reporting! :)

Edit: The error you get has nothing to do with it. I guess it gets raised, because the server pointer wasn't set at that point and we are already trying to retrieve it. A bit later we can retrieve it and SP loads fine. Though, we should probably improve that. :D

Posted: Sun Nov 22, 2015 6:04 am
by Doldol
Thanks! Build 140 works, however build 141 crashes again, I'd love to contribute & help you guys out on SP itself by at least fixing these things myself in an issue/pull rq but I don't have the time to do so. =/

Posted: Sun Nov 22, 2015 11:50 am
by Ayuto
Build 141 is working fine for me as well. What did you do to update from 140 to 141?

Posted: Sun Nov 22, 2015 11:27 pm
by Doldol
I updated from an older build to 141. I deleted everything in /addons then extracted the addons folder from the archive into addons, saw a crash, repeated the same process for build 140, everything worked.

I'll try again to make sure I didn't mess something up.

Edit: Indeed my mistake, whoopsie. Build 141 works fine as does 144. :)