{"action":"created","issue":{"url":"https://api.github.com/repos/grpc/grpc/issues/1573","labels_url":"https://api.github.com/repos/grpc/grpc/issues/1573/labels{/name}","comments_url":"https://api.github.com/repos/grpc/grpc/issues/1573/comments","events_url":"https://api.github.com/repos/grpc/grpc/issues/1573/events","html_url":"https://github.com/grpc/grpc/issues/1573","id":76031334,"number":1573,"title":"Exception: Defect: attempted to invoke already-invoked call!","user":{"login":"ctiller","id":10120821,"avatar_url":"https://avatars.githubusercontent.com/u/10120821?v=3","gravatar_id":"","url":"https://api.github.com/users/ctiller","html_url":"https://github.com/ctiller","followers_url":"https://api.github.com/users/ctiller/followers","following_url":"https://api.github.com/users/ctiller/following{/other_user}","gists_url":"https://api.github.com/users/ctiller/gists{/gist_id}","starred_url":"https://api.github.com/users/ctiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctiller/subscriptions","organizations_url":"https://api.github.com/users/ctiller/orgs","repos_url":"https://api.github.com/users/ctiller/repos","events_url":"https://api.github.com/users/ctiller/events{/privacy}","received_events_url":"https://api.github.com/users/ctiller/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/grpc/grpc/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/grpc/grpc/labels/core","name":"core","color":"006b75"},{"url":"https://api.github.com/repos/grpc/grpc/labels/python","name":"python","color":"2619ff"},{"url":"https://api.github.com/repos/grpc/grpc/labels/Travis","name":"Travis","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"nathanielmanistaatgoogle","id":10131044,"avatar_url":"https://avatars.githubusercontent.com/u/10131044?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanielmanistaatgoogle","html_url":"https://github.com/nathanielmanistaatgoogle","followers_url":"https://api.github.com/users/nathanielmanistaatgoogle/followers","following_url":"https://api.github.com/users/nathanielmanistaatgoogle/following{/other_user}","gists_url":"https://api.github.com/users/nathanielmanistaatgoogle/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanielmanistaatgoogle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanielmanistaatgoogle/subscriptions","organizations_url":"https://api.github.com/users/nathanielmanistaatgoogle/orgs","repos_url":"https://api.github.com/users/nathanielmanistaatgoogle/repos","events_url":"https://api.github.com/users/nathanielmanistaatgoogle/events{/privacy}","received_events_url":"https://api.github.com/users/nathanielmanistaatgoogle/received_events","type":"User","site_admin":false},"milestone":null,"comments":10,"created_at":"2015-05-13T15:44:52Z","updated_at":"2015-05-20T23:27:27Z","closed_at":null,"body":"Seen on Travis:\r\n\r\n```\r\nSTART: make\r\nPASSED: make [time=10.1sec]\r\nSTART: tools/run_tests/build_python.sh\r\nPASSED: tools/run_tests/build_python.sh [time=16.1sec]\r\nSTART: tools/run_tests/run_python.sh\r\nPASSED: tools/run_tests/run_python.sh [time=0.1sec]\r\nSTART: tools/run_tests/run_python.sh\r\nPASSED: tools/run_tests/run_python.sh [time=0.6sec]\r\nPASSED: tools/run_tests/run_python.sh [time=1.1sec]\r\nPASSED: tools/run_tests/run_python.sh [time=1.4sec]\r\nPASSED: tools/run_tests/run_python.sh [time=4.3sec]\r\nPASSED: tools/run_tests/run_python.sh [time=9.1sec]\r\nPASSED: tools/run_tests/run_python.sh [time=14.5sec]\r\nPASSED: tools/run_tests/run_python.sh [time=15.3sec]\r\nPASSED: tools/run_tests/run_python.sh [time=15.4sec]\r\nPASSED: tools/run_tests/run_python.sh [time=15.5sec]\r\nPASSED: tools/run_tests/run_python.sh [time=16.0sec]\r\nPASSED: tools/run_tests/run_python.sh [time=19.1sec]\r\nPASSED: tools/run_tests/run_python.sh [time=21.9sec]\r\nPASSED: tools/run_tests/run_python.sh [time=25.3sec]\r\n++dirname tools/run_tests/run_python.sh\r\n+cd tools/run_tests/../..\r\n++pwd\r\n+root=/home/travis/build/grpc/grpc\r\n+export LD_LIBRARY_PATH=/home/travis/build/grpc/grpc/libs/opt\r\n+LD_LIBRARY_PATH=/home/travis/build/grpc/grpc/libs/opt\r\n+source python2.7_virtual_environment/bin/activate\r\n++deactivate nondestructive\r\n++'[' -n '' ']'\r\n++'[' -n '' ']'\r\n++'[' -n /bin/bash -o -n '' ']'\r\n++hash -r\r\n++'[' -n '' ']'\r\n++unset VIRTUAL_ENV\r\n++'[' '!' nondestructive = nondestructive ']'\r\n++VIRTUAL_ENV=/home/travis/build/grpc/grpc/python2.7_virtual_environment\r\n++export VIRTUAL_ENV\r\n++_OLD_VIRTUAL_PATH=/home/travis/.rvm/gems/ruby-2.1.5/bin:/home/travis/.rvm/gems/ruby-2.1.5@global/bin:/home/travis/.rvm/rubies/ruby-2.1.5/bin:/home/travis/.rvm/bin:/home/travis/bin:/home/travis/.local/bin:/home/travis/.gimme/versions/go1.4.1.linux.amd64/bin:/usr/local/phantomjs/bin:/home/travis/.nvm/v0.10.36/bin:./node_modules/.bin:/usr/local/maven-3.2.5/bin:/usr/local/clang-3.4/bin:/home/travis/.gimme/versions/go1.4.1.linux.amd64/bin:/usr/local/phantomjs/bin:./node_modules/.bin:/usr/local/maven-3.2.5/bin:/usr/local/clang-3.4/bin:/home/travis/.gimme/versions/go1.4.1.linux.amd64/bin:/usr/local/phantomjs/bin:./node_modules/.bin:/usr/local/maven-3.2.5/bin:/usr/local/clang-3.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\r\n++PATH=/home/travis/build/grpc/grpc/python2.7_virtual_environment/bin:/home/travis/.rvm/gems/ruby-2.1.5/bin:/home/travis/.rvm/gems/ruby-2.1.5@global/bin:/home/travis/.rvm/rubies/ruby-2.1.5/bin:/home/travis/.rvm/bin:/home/travis/bin:/home/travis/.local/bin:/home/travis/.gimme/versions/go1.4.1.linux.amd64/bin:/usr/local/phantomjs/bin:/home/travis/.nvm/v0.10.36/bin:./node_modules/.bin:/usr/local/maven-3.2.5/bin:/usr/local/clang-3.4/bin:/home/travis/.gimme/versions/go1.4.1.linux.amd64/bin:/usr/local/phantomjs/bin:./node_modules/.bin:/usr/local/maven-3.2.5/bin:/usr/local/clang-3.4/bin:/home/travis/.gimme/versions/go1.4.1.linux.amd64/bin:/usr/local/phantomjs/bin:./node_modules/.bin:/usr/local/maven-3.2.5/bin:/usr/local/clang-3.4/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\r\n++export PATH\r\n++'[' -n '' ']'\r\n++'[' -z '' ']'\r\n++_OLD_VIRTUAL_PS1=\r\n++'[' x '!=' x ']'\r\n+++basename /home/travis/build/grpc/grpc/python2.7_virtual_environment\r\n++'[' python2.7_virtual_environment = __ ']'\r\n+++basename /home/travis/build/grpc/grpc/python2.7_virtual_environment\r\n++PS1='(python2.7_virtual_environment)'\r\n++export PS1\r\n++'[' -n /bin/bash -o -n '' ']'\r\n++hash -r\r\n+python2.7 -B test/compiler/python_plugin_test.py\r\n.ssss..s..ERROR:root:Unexpected exception from task run in logging pool!\r\nTraceback (most recent call last):\r\n  File \"/home/travis/build/grpc/grpc/python2.7_virtual_environment/local/lib/python2.7/site-packages/grpc/framework/foundation/logging_pool.py\", line 43, in _wrapping\r\n    return behavior(*args, **kwargs)\r\n  File \"/home/travis/build/grpc/grpc/python2.7_virtual_environment/local/lib/python2.7/site-packages/grpc/_adapter/rear.py\", line 217, in _spin\r\n    self._on_write_event(operation_id, event, rpc_state)\r\n  File \"/home/travis/build/grpc/grpc/python2.7_virtual_environment/local/lib/python2.7/site-packages/grpc/_adapter/rear.py\", line 147, in _on_write_event\r\n    rpc_state.common.write.pending.pop(0), operation_id)\r\nException: Defect: attempted to invoke already-invoked call!\r\n```"},"comment":{"url":"https://api.github.com/repos/grpc/grpc/issues/comments/104070500","html_url":"https://github.com/grpc/grpc/issues/1573#issuecomment-104070500","issue_url":"https://api.github.com/repos/grpc/grpc/issues/1573","id":104070500,"user":{"login":"ctiller","id":10120821,"avatar_url":"https://avatars.githubusercontent.com/u/10120821?v=3","gravatar_id":"","url":"https://api.github.com/users/ctiller","html_url":"https://github.com/ctiller","followers_url":"https://api.github.com/users/ctiller/followers","following_url":"https://api.github.com/users/ctiller/following{/other_user}","gists_url":"https://api.github.com/users/ctiller/gists{/gist_id}","starred_url":"https://api.github.com/users/ctiller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ctiller/subscriptions","organizations_url":"https://api.github.com/users/ctiller/orgs","repos_url":"https://api.github.com/users/ctiller/repos","events_url":"https://api.github.com/users/ctiller/events{/privacy}","received_events_url":"https://api.github.com/users/ctiller/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T23:27:27Z","updated_at":"2015-05-20T23:27:27Z","body":"So there's definitely a case whereby this can happen through legal core API usage.\r\n\r\nI have a fix in #1625 - commit fd7166d264b4abd9dab4215cdc60a0c9dc635c8e.\r\n\r\nThat test is waiting on some help from Python folks on figuring out one last (reproducible) failure.\r\n\r\n\r\n\r\nAlternatively, this could be API misuse, in which case ignore all of the above."}}