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

examples/actor_example.mochi seems to froze/deadlock #25

Open
tlvu opened this issue Apr 15, 2015 · 1 comment
Open

examples/actor_example.mochi seems to froze/deadlock #25

tlvu opened this issue Apr 15, 2015 · 1 comment

Comments

@tlvu
Copy link
Contributor

tlvu commented Apr 15, 2015

env: Ubuntu 14.04

(mochi)root@172904b170d5:/src/examples# mochi actor_example.mochi
<class 'main.Message'>
main
foo
actor1 (<eventlet.greenthread.GreenThread object at 0x7f34979422a8>,)
bar 2000
foo 1000
foo 1000
bar 2000
Message! mefafsg pvector(['value'])
remote! pvector([pvector([3000])])
remo Message(tag=3000, value=1000)
Unsupported message! pmap({'x': pvector([1, 2, 3])})
Unsupported message! pset([1, pvector([2, 1, 2, 3])])
Unsupported message! pbag([1, pvector([2, 1, 2, 3])])
aaa

Waited 3 mins, control-C gave this

^CTraceback (most recent call last):
File "/root/venv/mochi/bin/mochi", line 9, in
load_entry_point('mochi==0.2.1', 'console_scripts', 'mochi')()
File "/root/venv/mochi/lib/python3.4/site-packages/mochi-0.2.1-py3.4.egg/mochi/core/main.py", line 192, in main
load_file(args.file, global_env)
File "/root/venv/mochi/lib/python3.4/site-packages/mochi-0.2.1-py3.4.egg/mochi/core/main.py", line 49, in load_file
return exec(compile_file(path), env)
File "actor_example.mochi", line 63, in
wait_all()
File "/root/venv/mochi/lib/python3.4/site-packages/mochi-0.2.1-py3.4.egg/mochi/actor/actor.py", line 262, in wait_all
_actor_pool.waitall()
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/greenpool.py", line 120, in waitall
self.no_coros_running.wait()
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/event.py", line 121, in wait
return hubs.get_hub().switch()
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/hubs/hub.py", line 294, in switch
return self.greenlet.switch()
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/hubs/hub.py", line 346, in run
self.wait(sleep_time)
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/hubs/poll.py", line 85, in wait
presult = self.do_poll(seconds)
File "/root/venv/mochi/lib/python3.4/site-packages/eventlet-0.17.3-py3.4.egg/eventlet/hubs/epolls.py", line 62, in do_poll
return self.poll.poll(seconds)
KeyboardInterrupt

@i2y
Copy link
Owner

i2y commented Apr 18, 2015

Thank you for reporting.
This example program is finished by control-C.
It is as I intended, but it is not good for automated tests.
I will modify this example.

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

2 participants