superjoe30/mineflayer — Issue #42: Exception when connecting to remote server
Author: ruan942
Created: 2011-11-22 09:18:30+00:00
State: open

Around 1 second after it connects, it spits out an error and terminates. Works fine on a local server though.
I got Qt Creator but I'm not sure how to debug scripts.

Every script that connects to this remote server gives the same error.

Launching with:
./mineflayer --debug --url RuansBot@:25565 examples/connection_notice.js

connected
Qt has caught an exception thrown from an event handler. Throwing
exceptions from an event handler is not supported in Qt. You must
reimplement QApplication::notify() and catch all exceptions there.

terminate called after throwing an instance of 'std::bad_alloc'
what(): std::bad_alloc
Aborted

dmesg:
[179762.793904] mineflayer[22777]: segfault at 50 ip b66b8ec7 sp b217c2c0 error 4 in libQtCore.so.4.7.4[b665d000+289000]