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

AssertionError #93

Open
ren-kun opened this issue Jun 11, 2017 · 4 comments
Open

AssertionError #93

ren-kun opened this issue Jun 11, 2017 · 4 comments
Labels

Comments

@ren-kun
Copy link

ren-kun commented Jun 11, 2017

Error that pops up here and there.

Traceback (most recent call last): 
onmessage File "server.py", line 136, in send_message 
onmessage yield from self.raw_write(to_send) 
onmessage File "server.py", line 144, in raw_write 
onmessage yield from self._writer.drain() 
onmessage File "/usr/lib/python3.5/asyncio/streams.py", line 333, in drain 
onmessage yield from self._protocol._drain_helper() 
onmessage File "/usr/lib/python3.5/asyncio/streams.py", line 208, in _drain_helper 
onmessage assert waiter is None or waiter.cancelled() 
onmessageAssertionError 
onmessage2017-06-11 02:19:42 - ERROR - starrypy #  
onmessageTraceback (most recent call last): 
onmessage File "server.py", line 136, in send_message 
onmessage yield from self.raw_write(to_send) 
onmessage File "server.py", line 144, in raw_write 
onmessage yield from self._writer.drain() 
onmessage File "/usr/lib/python3.5/asyncio/streams.py", line 333, in drain 
onmessage yield from self._protocol._drain_helper() 
onmessage File "/usr/lib/python3.5/asyncio/streams.py", line 208, in _drain_helper 
onmessage assert waiter is None or waiter.cancelled() 
onmessageAssertionError 

@ren-kun
Copy link
Author

ren-kun commented Jun 12, 2017

Traceback (most recent call last): 
onmessage
File "/var/Server/Starbound/Starbound/wrapper/StarryPy3k-master/plugin_manager.py", line 45, in do 
onmessage if not (yield from p(packet, connection)): 
onmessage File "/var/Server/Starbound/Starbound/wrapper/StarryPy3k-master/plugins/player_manager.py", line 377, in on_player_warp_result 
onmessage warp_data["ship_id"]) 
onmessage File "/usr/lib/python3.5/asyncio/coroutines.py", line 210, in coro 
onmessage res = func(*args, **kw) 
onmessage File "/var/Server/Starbound/Starbound/wrapper/StarryPy3k-master/plugins/player_manager.py", line 847, in _add_or_get_ship 
onmessage ship = Ship(uuid, _get_player_name(uuid)) 
onmessage File "/var/Server/Starbound/Starbound/wrapper/StarryPy3k-master/plugins/player_manager.py", line 840, in _get_player_name 
onmessage if p.player.uuid == uid: 
onmessageAttributeError: 'StarryPyServer' object has no attribute 'player' 
onmessage2017-06-12 01:01:19 - INFO - starrypy.plugin.player_manager # Player Cellestiass is now at location: InstanceWorld:outpost:- 
onmessage2017-06-12 01:01:24 - ERROR - starrypy.plugin_manager # Exception encountered in plugin on action: player_warp_result 
onmessageTraceback (most recent call last): 
onmessage File "/var/Server/Starbound/Starbound/wrapper/StarryPy3k-master/plugin_manager.py", line 45, in do 
onmessage if not (yield from p(packet, connection)): 
onmessage File "/var/Server/Starbound/Starbound/wrapper/StarryPy3k-master/plugins/player_manager.py", line 362, in on_player_warp_result 
onmessage p.location = yield from self._add_or_get_ship(p.uuid) 
onmessage File "/usr/lib/python3.5/asyncio/coroutines.py", line 210, in coro 
onmessage res = func(*args, **kw) 
onmessage File "/var/Server/Starbound/Starbound/wrapper/StarryPy3k-master/plugins/player_manager.py", line 847, in _add_or_get_ship 
onmessage ship = Ship(uuid, _get_player_name(uuid)) 
onmessage File "/var/Server/Starbound/Starbound/wrapper/StarryPy3k-master/plugins/player_manager.py", line 840, in _get_player_name 
onmessage if p.player.uuid == uid: 
onmessage
AttributeError: 'StarryPyServer' object has no attribute 'player' 

@ren-kun
Copy link
Author

ren-kun commented Jun 15, 2017

onmessage Traceback (most recent call last):
onmessage File "/var/Server/Starbound/Starbound/wrapper/StarryPy3k-master/plugin_manager.py", line 45, in do
onmessage if not (yield from p(packet, connection)):
onmessage File "/var/Server/Starbound/Starbound/wrapper/StarryPy3k-master/plugins/player_manager.py", line 377, in on_player_warp_result
onmessage warp_data["ship_id"])
onmessage File "/usr/lib/python3.5/asyncio/coroutines.py", line 210, in coro
onmessage res = func(*args, **kw)
onmessage File "/var/Server/Starbound/Starbound/wrapper/StarryPy3k-master/plugins/player_manager.py", line 847, in _add_or_get_ship
onmessage ship = Ship(uuid, _get_player_name(uuid))
onmessage File "/var/Server/Starbound/Starbound/wrapper/StarryPy3k-master/plugins/player_manager.py", line 840, in _get_player_name
onmessage if p.player.uuid == uid:
onmessage AttributeError: 'StarryPyServer' object has no attribute 'player'

@rubellyte rubellyte added the bug label Jun 19, 2017
@rubellyte
Copy link
Member

The causes of the second and third errors will be fixed in the next pull, but I'm not sure what the first error is trying to say. See if you can reproduce it with more information?

@rubellyte
Copy link
Member

Further testing tells me that the AssertionError above is happening when a plugin tries to send a packet to a disconnected player. I'll look into fixing that.

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