Joe-Palmer / rtmplite

Automatically exported from code.google.com/p/rtmplite
0 stars 0 forks source link

AssertionError in siprtmp_gevent.py #75

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
This bug happens randomly:

receive RTCP exception (<type 'exceptions.ValueError'>, ValueError('Not an RTCP 
packet type 207',), <traceback object at 0x027D35F8>)
receive RTCP exception (<type 'exceptions.ValueError'>, ValueError('Not an RTCP 
packet type 207',), <traceback object at 0x027D3620>)
receive RTP exception (<type 'exceptions.AssertionError'>, AssertionError("This 
event is already used by another greenlet: (<Greenlet at 0x26873f0: <bound 
method gevent_Network.receiveRTP of <std.rfc3550.gevent_Network object at 
0x027C50B0>>(<socket at 0x27c5030 fileno=680 sock=0.0.0.0:40736)>, 
timeout('timed out',))",), <traceback object at 0x027D3850>)
Traceback (most recent call last):
  File "c:\Python27\Lib\site-packages\p2p-sip\src\std\rfc3550.py", line 793, in receiveRTP
    if self.app: self.app.receivedRTP(data, remote, self.src)
  File "c:\Python27\Lib\site-packages\p2p-sip\src\std\rfc3550.py", line 496, in receivedRTP
    if hasattr(self.app, 'received') and callable(self.app.received): self.app.received(member, p)
  File "c:\Python27\Lib\site-packages\p2p-sip\src\app\voip.py", line 729, in received
    self.app.received(media=self, fmt=self._getMyFormat(packet.pt), packet=packet)
  File "c:\Python27\Lib\site-packages\rtmplite\siprtmp_gevent.py", line 1292, in received
    self.sip_data(fmt, packet)
  File "c:\Python27\Lib\site-packages\rtmplite\siprtmp_gevent.py", line 1303, in sip_data
    self.client.writeMessage(message, self.play_stream)
  File "c:\Python27\Lib\site-packages\rtmplite\siprtmp_gevent.py", line 253, in writeMessage
    self.send(data)
  File "c:\Python27\Lib\site-packages\rtmplite\siprtmp_gevent.py", line 108, in send
    self.sock.sendall(data)
  File "c:\Python27\lib\site-packages\gevent-0.13.7-py2.7-win32.egg\gevent\socket.py", line 509, in sendall
    data_sent += self.send(_get_memory(data, data_sent), flags)
  File "c:\Python27\lib\site-packages\gevent-0.13.7-py2.7-win32.egg\gevent\socket.py", line 489, in send
    wait_write(sock.fileno(), timeout=timeout, event=self._write_event)
  File "c:\Python27\lib\site-packages\gevent-0.13.7-py2.7-win32.egg\gevent\socket.py", line 188, in wait_write
    assert event.arg is None, 'This event is already used by another greenlet: %r' % (event.arg, )
AssertionError: This event is already used by another greenlet: (<Greenlet at 
0x26873f0: <bound method gevent_Network.receiveRTP of 
<std.rfc3550.gevent_Network object at 0x027C50B0>>(<socket at 0x27c5030 
fileno=680 sock=0.0.0.0:40736)>, timeout('timed out',))

Original issue reported on code.google.com by sebastie...@gmail.com on 24 Apr 2012 at 10:35