• Print

Author Topic: ULX Kick Self Crash  (Read 12132 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: /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

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: ULX Kick Self Crash
« Reply #9 on: July 14, 2014, 11:15:13 pm »
Wow, yup- it's an issue with Gmod itself. Run this code on your server, and anyone who says "hi" will crash the server:
Code: Lua
  1. local function playerSay( ply, text, private )
  2.         if text == "hi" then ply:Kick("") end
  3. end
  4. hook.Add( "PlayerSay", "test_say", playerSay, 20 )
« Last Edit: July 14, 2014, 11:17:13 pm by Stickly Man! »
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Avoid

  • Full Member
  • ***
  • Posts: 142
  • Karma: 42
Re: ULX Kick Self Crash
« Reply #10 on: July 15, 2014, 04:49:57 am »
Thanks for the quick fixes Stickly!  :-*

Offline Hollistupid

  • Newbie
  • *
  • Posts: 15
  • Karma: 0
Re: ULX Kick Self Crash
« Reply #11 on: July 15, 2014, 12:27:31 pm »
Does not seem to be fixed:

Code: [Select]
Dropped Hollistupid 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 Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: ULX Kick Self Crash
« Reply #12 on: July 15, 2014, 01:13:20 pm »
Does it still crash the server? Or just display that lua error?

The cc_voting.lua (custom commands) file also has a hook into PlayerSay. Try temporarily removing that and see if your problem is fixed.
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Zmaster

  • Full Member
  • ***
  • Posts: 235
  • Karma: 25
Re: ULX Kick Self Crash
« Reply #13 on: July 15, 2014, 02:14:54 pm »
I just tested it with the new ULX you linked, and it still crashes the server

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: ULX Kick Self Crash
« Reply #14 on: July 15, 2014, 02:27:03 pm »
I'm willing to bet it's a third-party addon issue- If you could temporarily remove any addons that might do something with the chat hook, that could help me test. If you get a lua error, that'd be helpful too. Otherwise I'd be willing to hop on any one of your servers when I have a moment to take a look myself.
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

  • Print