Comments (13)
still this error appears
PartialReadError: Read error for undefined : undefined
at new ExtendableError (/home/roman/work/minecraft_advanced_proxy/proxy/node_modules/protodef/src/utils.js:63:13)
at new PartialReadError (/home/roman/work/minecraft_advanced_proxy/proxy/node_modules/protodef/src/utils.js:70:5)
at Object.readBool [as bool] (/home/roman/work/minecraft_advanced_proxy/proxy/node_modules/protodef/src/datatypes/utils.js:133:41)
at eval (eval at compile (/home/roman/work/minecraft_advanced_proxy/proxy/node_modules/protodef/src/compiler.js:258:12), <anonymous>:2966:29)
at Object.packet_damage_event (eval at compile (/home/roman/work/minecraft_advanced_proxy/proxy/node_modules/protodef/src/compiler.js:258:12), <anonymous>:2972:9)
at eval (eval at compile (/home/roman/work/minecraft_advanced_proxy/proxy/node_modules/protodef/src/compiler.js:258:12), <anonymous>:3011:64)
at packet (eval at compile (/home/roman/work/minecraft_advanced_proxy/proxy/node_modules/protodef/src/compiler.js:258:12), <anonymous>:3100:9)
at CompiledProtodef.read (/home/roman/work/minecraft_advanced_proxy/proxy/node_modules/protodef/src/compiler.js:70:12)
at e.message (/home/roman/work/minecraft_advanced_proxy/proxy/node_modules/protodef/src/compiler.js:111:49)
at tryCatch (/home/roman/work/minecraft_advanced_proxy/proxy/node_modules/protodef/src/utils.js:50:16)
from node-minecraft-protocol.
The damage_event
packet errors will be fixed once a new release of minecraft-data is published.
See PrismarineJS/minecraft-data#738
from node-minecraft-protocol.
Thank you very much for your response. Looking forward to fixes.
from node-minecraft-protocol.
Thank you very much for your response. Looking forward to fixes.
You can update now to the latest unreleased mc data by doing:
cd node_modules/minecraft-data
rm -rf minecraft-data
git clone https://github.com/prismarinejs/minecraft-data
And see if that fixes your issues.
from node-minecraft-protocol.
Thanks a lot, I'll post the results
from node-minecraft-protocol.
There is no more crash due to damage (no error, no disconnect). But there is a strange disconnect in the following situation.
In the server settings, spawning of mobs, npc and monsters is disabled. Connected to the server through a proxy. Spawn zombies with the /summon ...
command. Visually, nothing happens, no zombies appear. After a dozen seconds, a disconnect occurs or a zombie appears, which has been running after me for a long time. With the disconnect option, there are no errors in the proxy console, there is only a message
client.disconnect {myNick} {myUUID}
from node-minecraft-protocol.
There is a suspicion that this is not directly related to the mobs. Periodically, there are many situations when it seems that packets from the server do not reach the client and vice versa. Feeling as if the network is lag. This usually ends with a disconnect, within a few tens of seconds. When I restart, I often find that the actions performed before the disconnect were not applied.
In justification, I will say that I have a powerful processor, 64 gigabytes of RAM, the server, proxy and client communicate with each other via localhost. Moreover, if you go directly (not through a proxy), such situations do not arise.
I think that the reason is in the internal data processing mechanisms inside the proxy. Perhaps it hangs on some of the packets transmitted between the server and the client, but so far it has not been possible to calculate on which ones.
from node-minecraft-protocol.
Here is an example of how it happens
https://youtu.be/HIMi-PWQucc
from node-minecraft-protocol.
This may be happening due to proxying of the bundle_delimiter
packet which can result in the client getting stuck, as it witholds packets but for some reason the packets do not get released correctly. I suspect this is due to how NMP handles the bundle delimiter internally whilst also emitting it.
You could try filtering out the bundle_delimiter
packet, as a packet not to proxy and that issue will probably stop.
This is something I may look in to.
from node-minecraft-protocol.
Ah yes, I see the problem with NMP, I'll PR a fix tomorrow.
from node-minecraft-protocol.
Filtered out the bundle delimiter.
if (meta.name === "bundle_delimiter") return;
The proxy has been working without failure for half an hour. I'll leave it until the morning, if it doesn't disconnect or disconnect, I'll unsubscribe. Thank you for your help!
from node-minecraft-protocol.
I caught a nodejs crash in the morning (a process with a proxy) due to out of memory.
I will observe where exactly the memory is leaking and unsubscribe as I find out
from node-minecraft-protocol.
Thank you very much, now everything works flawlessly.
from node-minecraft-protocol.
Related Issues (20)
- Cannot read properties of undefined (reading 'overworld') HOT 1
- "Chunk size is 42 but only 2 was read" error HOT 7
- Inconsistent `playerChat` event data
- undefined nbt value HOT 2
- Some event handlers end up being called multiple times after going thru configuration state. HOT 1
- 1.20.4 Login event never triggered on Node 18 HOT 19
- versionChecking.js Bug HOT 4
- TypeError: RSA_PKCS1_PADDING is no longer supported for private decryption HOT 7
- Error: Failed to obtain profile data for X, does the account own minecraft?
- Ladders arent working HOT 3
- mc.createClient doesnt check for SRV dns records HOT 1
- Is there any way to modify the protocol on server side? (maybe using fabric or spigot) HOT 1
- pickRealm silently fails to connect HOT 6
- Entity Effect proxy
- Error: unsupported protocol version: 1.20.6
- Minecraft 1.21+ support HOT 2
- Read Packets from other sources HOT 4
- Problems with Deserializer HOT 3
- Player count modify HOT 1
- Vanilla client cannot connect to example server
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-minecraft-protocol.