haxball / haxball-issues

115 stars 43 forks source link

Room crash #330

Open dixtel opened 6 years ago

dixtel commented 6 years ago

I ran my code, after ~20 mins when some player join then all players in room had left and i got this message in console. This is my fault or game?

bug1

Leo-MapCreator commented 6 years ago

Happens with me too

basro commented 6 years ago

I haven't yet looked at it in detail but it would be helpful if you can let me look at your headless room code.

dixtel commented 6 years ago

Please give my your email to send code @basro

basro commented 6 years ago

Send it to haxball@gmail.com

Wrathen commented 6 years ago

It happens to me too on every headless room I host. But afaik it doesnt make everyone leave the room.

basro commented 6 years ago

I've been looking at this a bit, the error is indeed from haxball/browser and not an error on your scripts.

I believe the error is safe for you to ignore, it shouldn't cause the server to stop functioning but some users could get disconnected because of it.

I'll look at it more in depth later.

SebiPeppins commented 6 years ago

Tried using a clean script? (without bot functions)

olehmisar commented 6 years ago

@basro this error happened again in my rooms on vps. When players said that ping becomes hight for short periods of time, I looked in console and saw this and this. This error happens almost everyday. I reload room every 2-3 days.

dixtel commented 6 years ago

Sometimes i have the same problem

olehmisar commented 6 years ago

@basro today happened something interesting. Notice ping graph, amount of errors and error that is emphasized with red in chrome console. Can this happen because of ddos?

basro commented 6 years ago

Well, a DoS attack can cause bad connectivity so yes it can happen because of it. Doesn't mean it was one though, I don't know the cause of your connection deteriorating like that.

olehmisar commented 6 years ago

@basro i found out that it is not ddos. It's just a lot of errors

UPD: this errors continue appearing. Can it be caused because I host 2 rooms from 1 browser? Should I open two browsers?

UPD2: two browsers didn't help

olehmisar commented 6 years ago

@basro new type of error appeared: screenshot P.S. Please help, my rooms are dying dead!

olehmisar commented 6 years ago

@basro I found out that this errors are probably caused by lack of RAM. I rent machine with only 1 GB of RAM. So, sorry, this error can be ignored.