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

example.py hangs #201

Open
TimJSwan89 opened this issue Nov 21, 2015 · 1 comment
Open

example.py hangs #201

TimJSwan89 opened this issue Nov 21, 2015 · 1 comment
Labels

Comments

@TimJSwan89
Copy link

The example bot stayed alive initially, then it must have changed the state of a file because it no longer works. It just hangs the REPL after logging in. I even replaced the example_plugin.py with a fresh new one and it did the same thing.
I tried pressing CTRL + C to exit, and it doesn't work. I have to close terminal.
OSX El Capitan 10.11.1
I noticed in activity monitor that python is at 100% CPU usage when the bot is stalling.

host-14-218:SpockBot timothyswan$ python3 example.py
[DEBUG]: PLUGINLOADER: Loaded EventPlugin
[DEBUG]: PLUGINLOADER: Loaded ClientInfoPlugin
[DEBUG]: PLUGINLOADER: Loaded WorldPlugin
[DEBUG]: PLUGINLOADER: Loaded TimersPlugin
[DEBUG]: PLUGINLOADER: Loaded NetPlugin
[DEBUG]: PLUGINLOADER: Loaded PhysicsPlugin
[DEBUG]: PLUGINLOADER: Loaded PathfindingPlugin
[DEBUG]: PLUGINLOADER: Loaded MovementPlugin
[DEBUG]: PLUGINLOADER: Loaded InventoryPlugin
[DEBUG]: PLUGINLOADER: Loaded ChannelsPlugin
[DEBUG]: PLUGINLOADER: Loaded InteractPlugin
[WARNING]: CHAT: en_US.lang not loaded, cannot translate chat messages
[DEBUG]: PLUGINLOADER: Loaded ChatPlugin
[DEBUG]: PLUGINLOADER: Loaded ExamplePlugin
[DEBUG]: PLUGINLOADER: Loaded AuthPlugin
[DEBUG]: PLUGINLOADER: Loaded StartPlugin
[DEBUG]: PLUGINLOADER: Loaded RespawnPlugin
[DEBUG]: PLUGINLOADER: Loaded KeepalivePlugin
[DEBUG]: PLUGINLOADER: Loaded EntitiesPlugin
[DEBUG]: PLUGINLOADER: Loaded TaskManager
[DEBUG]: PLUGINLOADER: Loaded CraftPlugin
[DEBUG]: PLUGINLOADER: Loaded TickerPlugin
[DEBUG]: AUTHCORE: Attempting login with username: [email address]
[DEBUG]: AUTHCORE: Logged in as: [username]
[DEBUG]: AUTHCORE: Selected Profile: {'name': '[username]', 'id': '60fe64816c76446885d898b7ad8cb3a1'}
[DEBUG]: NETCORE: Attempting to connect to host: [ip] port: 25565
[DEBUG]: NETCORE: Connected to host: [ip] port: 25565
[DEBUG]: AUTHPLUGIN: Attempting to authenticate session with sessionserver.mojang.com
[DEBUG]: AUTHPLUGIN: Session authentication successful
[INFO]: Chat message received: [03:00:44] <<< (0x03, 0x02): Chat Message                  {'position': 1, 'json_data': {'extra': [{'color': 'yellow', 'text': '[username] joined the game'}], 'text': ''}}
@Gjum
Copy link
Member

Gjum commented Nov 22, 2015

I could not reproduce this on a vanilla online-mode server, the example runs as expeced.

Although I noticed that the CPU usage is 100% when running the example plugin, but not when running with different plugins. This is definitely wrong and should be investigated.

@Gjum Gjum added the bug label Nov 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants