Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use UUID as array (Crash) #16

Closed
Guillaume351 opened this issue Jun 30, 2016 · 2 comments
Closed

Cannot use UUID as array (Crash) #16

Guillaume351 opened this issue Jun 30, 2016 · 2 comments

Comments

@Guillaume351
Copy link

Hello,
I tried to open the proxy to the public. After some people joined, I get :

[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/NOTICE]: Received Heartbeat Packet from 62.210.188.67:41537
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:50] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/NOTICE]: Received Heartbeat Packet from 127.0.0.1:39107
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/ERROR]: Error RedirectPacket
[09:08:55] [Server thread/CRITICAL]: Error: "Cannot use object of type synapse\utils\UUID as array" (EXCEPTION) in "/src/synapse/network/protocol/mcpe/PlayerListPacket" at line 59
[09:08:55] [Server thread/DEBUG]: #0 /src/synapse/Player(190): synapse\network\RakLibInterface->putPacket(synapse\Player object, synapse\network\protocol\mcpe\PlayerListPacket object, boolean , boolean )
[09:08:55] [Server thread/DEBUG]: #1 /src/synapse/Player(160): synapse\Player->sendDataPacket(synapse\network\protocol\mcpe\PlayerListPacket object)
[09:08:55] [Server thread/DEBUG]: #2 /src/synapse/Player(172): synapse\Player->removeAllPlayer(boolean)
[09:08:55] [Server thread/DEBUG]: #3 /src/synapse/Client(157): synapse\Player->transfer(synapse\Client object, boolean 1)
[09:08:55] [Server thread/DEBUG]: #4 /src/synapse/network/SynapseInterface(121): synapse\Client->handleDataPacket(synapse\network\protocol\spp\TransferPacket object)
[09:08:55] [Server thread/DEBUG]: #5 /src/synapse/network/SynapseInterface(90): synapse\network\SynapseInterface->handlePacket(string 62.210.188.67:41537, string .k.c...<e..Xc...,..127.0.0.1:39107)
[09:08:55] [Server thread/DEBUG]: #6 /src/synapse/Server(517): synapse\network\SynapseInterface->process(boolean)
[09:08:55] [Server thread/DEBUG]: #7 /src/synapse/Server(341): synapse\Server->tick(boolean)
[09:08:55] [Server thread/DEBUG]: #8 /src/synapse/Server(325): synapse\Server->tickProcessor(boolean)
[09:08:55] [Server thread/DEBUG]: #9 /src/synapse/Server(221): synapse\Server->start(boolean)
[09:08:55] [Server thread/DEBUG]: #10 /src/synapse/Synapse(388): synapse\Server->__construct(synapse\CompatibleClassLoader object, synapse\utils\MainLogger object, string phar:///root/Proxynapse/Synapse.phar/, string /root/Proxynapse/, string /root/Proxynapse/plugins/)
[09:08:55] [Server thread/DEBUG]: #11 (1): require_once(string phar:///root/Proxynapse/Synapse.phar/src/synapse/Synapse.php)
[09:08:55] [Server thread/INFO]: Stopping other threads
[09:08:55] [Server thread/DEBUG]: Stopping CommandReader thread
[09:08:55] [Server thread/DEBUG]: Stopping AsyncWorker thread
[09:08:55] [Server thread/DEBUG]: Stopping AsyncWorker thread
[09:08:55] [Server thread/DEBUG]: Stopping AsyncWorker thread
[09:08:55] [Server thread/DEBUG]: Stopping AsyncWorker thread
[09:08:55] [Server thread/DEBUG]: Stopping AsyncWorker thread
[09:08:55] [Server thread/DEBUG]: Stopping AsyncWorker thread
[09:08:55] [Server thread/DEBUG]: Stopping SynapseServer thread
Server has stopped

Thanks

@Adam1609
Copy link

Error ReDirect, me neither!!

@jojoe77777
Copy link
Contributor

jojoe77777 commented Jun 30, 2016

This only happens when a player leaves, right? I found the problem; https://github.com/iTXTech/Synapse/blob/master/src/synapse/Player.php#L150. $entries is supposed to contain arrays, not UUID. I'll fix and send a pull request.

@PeratX PeratX closed this as completed in 7b59dc1 Jun 30, 2016
PeratX added a commit that referenced this issue Jun 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants