Author Topic: ULX Kick Self Crash  (Read 7623 times)

0 Members and 1 Guest are viewing this topic.

Offline Hollistupid

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
ULX Kick Self Crash
« on: July 13, 2014, 11:41:02 PM »
Whenever you kick yourself the server crashes  :(

Code: [Select]
VeryWetNoodle kicked Themself
Dropped VeryWetNoodle from server ([ULX] Kicked from server)

[ERROR] lua/includes/extensions/player.lua:141: Tried to use a NULL entity!
1. UniqueID - [C]:-1
2. GetPData - lua/includes/extensions/player.lua:141
3. fn - addons/customcommands/lua/ulx/modules/sh/cc_voting.lua:323
4. unknown - addons/ulib/lua/ulib/shared/hook.lua:183

Offline Hollistupid

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
Re: ULX Kick Self Crash
« Reply #1 on: July 13, 2014, 11:55:01 PM »
Oh my bad. Remove the "%", so it just says "!^". That should work.
Sorry for the mistake.

Restricting the kick command to not be able to kick self is a temp-fix for my problem and could be a permanent solution. But I still think this could be addressed.
« Last Edit: July 13, 2014, 11:57:42 PM by Hollistupid »

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: ULX Kick Self Crash
« Reply #2 on: July 14, 2014, 03:10:27 AM »
I'm just letting you know that this has already been reported, so a fix will hopefully be here quite soon.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: ULX Kick Self Crash
« Reply #3 on: July 14, 2014, 11:43:26 AM »
As well as crashing issues here: http://forums.ulyssesmod.net/index.php/topic,7419.0.html

My theory is that chat commands are causing the issue- does the crash occur when called from console as well?
Also, do you use any sort of SQL-based banning system? It is likely a .dll module is causing the crash, but, I haven't been able to investigate yet.
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Avoid

  • Full Member
  • ***
  • Posts: 142
  • Karma: 42
Re: ULX Kick Self Crash
« Reply #4 on: July 14, 2014, 12:00:52 PM »
Hello Stickly Man,
kicking yourself from the game console works fine, however, once you use the !kick/!ban chat command on yourself the server crashes.

So it definatley has something to do with the chatcommands.
~Avoid

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: ULX Kick Self Crash
« Reply #5 on: July 14, 2014, 12:35:59 PM »
I'm really thinking there's a third party addon causing this issue.. at least, I can't say for sure until I've tested myself. I'll see what I can find out later tonight! (Anyone else is welcome to try it on their own server with ULX only, if possible, to see if it still occurs).
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline bender180

  • Full Member
  • ***
  • Posts: 217
  • Karma: 42
    • Benders Villa
Re: ULX Kick Self Crash
« Reply #6 on: July 14, 2014, 03:46:39 PM »
I setup a new server with just ulib/ulx and i can confirm that when kicking yourself via chat command it does crash srcds, kicking yourself via xgui and console don't crash the server however.
Made community pool and community bowling and for the life of me couldn't tell you why they are popular.
Also made the ttt ulx commands.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: ULX Kick Self Crash
« Reply #7 on: July 14, 2014, 05:23:18 PM »
I can also confirm on my own server that banning/kicking yourself through chat crashes the server, and I'm not running any other modules (other than lua addons, which haven't caused the issue before).

UPDATE: Also happens on my local SRCDS server with only ULib/ULX on.
« Last Edit: July 14, 2014, 05:34:56 PM by Decicus »
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: ULX Kick Self Crash
« Reply #8 on: July 14, 2014, 10:52:35 PM »
Oh yeah, it exploded severely.  :o

But it's fixed now! https://github.com/Nayruden/Ulysses/commit/cd02f4f44514d7f61e1d2b031689150fcc9cf588

I'm willing to bet this is an underlying issue in Garry's Mod itself, so I'm going to put together a simple script to see if I can replicate it...
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given