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

Another curious KeyError in 0.9.14p0 #437

Closed
senseysensor opened this issue Feb 5, 2014 · 1 comment
Closed

Another curious KeyError in 0.9.14p0 #437

senseysensor opened this issue Feb 5, 2014 · 1 comment

Comments

@senseysensor
Copy link

Here what I got in console. Not sure how to reproduce. The latest zip downloaded today from here. Copied from tmux so maybe some incorrect line breaks in traceback are possible.

Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
    self.run()
  File "/home/2kg/project/source/src/core/rabbit_mq.py", line 487, in run
    self._connection = self.connect()
  File "/home/2kg/project/source/src/core/rabbit_mq.py", line 296, in start_ioloop
    assigned_timeout = self._connection.add_timeout(TOUCH_IOLOOP_TIMEOUT, self.refresh_ioloop_timeout_handler)
  File "/usr/local/lib/python2.7/dist-packages/pika/adapters/select_connection.py", line 136, in start
    self.poller.start()
  File "/usr/local/lib/python2.7/dist-packages/pika/adapters/select_connection.py", line 424, in
start
    self.poll()
  File "/usr/local/lib/python2.7/dist-packages/pika/adapters/select_connection.py", line 479, in
poll
    self._handler(fileno, event, write_only=write_only)
  File "/usr/local/lib/python2.7/dist-packages/pika/adapters/base_connection.py", line 302, in _handle_events
    self._handle_read()
  File "/usr/local/lib/python2.7/dist-packages/pika/adapters/base_connection.py", line 326, in _handle_read
    self._on_data_available(data)
  File "/usr/local/lib/python2.7/dist-packages/pika/connection.py", line 1271, in _on_data_available
    self._process_frame(frame_value)
  File "/usr/local/lib/python2.7/dist-packages/pika/connection.py", line 1338, in _process_frame
    if self._process_callbacks(frame_value):
  File "/usr/local/lib/python2.7/dist-packages/pika/connection.py", line 1308, in _process_callbacks
    frame_value)                 # Args
  File "/usr/local/lib/python2.7/dist-packages/pika/callback.py", line 61, in wrapper
    return function(*tuple(args), **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pika/callback.py", line 92, in wrapper
    return function(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pika/callback.py", line 227, in process
    self._use_one_shot_callback(prefix, key, callback_dict)
  File "/usr/local/lib/python2.7/dist-packages/pika/callback.py", line 397, in _use_one_shot_callback
    callback_dict[self.ARGUMENTS])
  File "/usr/local/lib/python2.7/dist-packages/pika/callback.py", line 61, in wrapper
    return function(*tuple(args), **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pika/callback.py", line 92, in wrapper
    return function(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/pika/callback.py", line 260, in remove
    self._stack[prefix][key][offset])
KeyError: '7'
@gmr
Copy link
Member

gmr commented Feb 17, 2014

Are you by chance in a multi-threaded app? I put a wrapper around the call to prevent this happening.

gmr added a commit that referenced this issue Feb 17, 2014
@gmr gmr closed this as completed Feb 17, 2014
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