xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Opened 6 years ago

Last modified 6 months ago

#854 closed defect

HTML 5 client crash by scrolling in Firefox — at Version 1

Reported by: J. Max Mena Owned by: Josh
Priority: critical Milestone: 0.15
Component: html5 Version: 0.15.x
Keywords: Cc:

Description (last modified by Antoine Martin)

Using Windows 8.1 x64 and Firefox 37.0.2 against a Fedora 21 0.15.0 r9285 server:

  • Connecting and browsing websites in Firefox(running on the remote machine) works more or less fine
    • using h264
  • Attempting to scroll using the mouse causes an immediate disconnect and the following traceback on the server:
    • Scrolling in any open application
      • using xterm and firefox at the moment
        2015-05-08 16:20:26,605 New tcp connection received from ('10.0.11.124', 64039)
        2015-05-08 16:20:26,723 client connection from 10.0.11.124:64039 forwarded to proxy server on 127.0.0.1:52166
        2015-05-08 16:20:27,129 New tcp connection received from ('10.0.11.124', 64040)
        2015-05-08 16:20:27,247 client connection from 10.0.11.124:64040 forwarded to proxy server on 127.0.0.1:52166
         261: 127.0.0.1: Plain non-SSL (ws://) WebSocket connection
         261: 127.0.0.1: Version hybi-13, base64: 'False'
         261: connecting to: 127.0.0.1:2200
        2015-05-08 16:20:27,250 New tcp connection received from ('127.0.0.1', 48051)
        2015-05-08 16:20:27,297 Handshake complete; enabling connection
        2015-05-08 16:20:27,300 HTML5 Microsoft Windows client version 0.15.0
        2015-05-08 16:20:27,300 using h264 as primary encoding, also available: jpeg, png, rgb32
        2015-05-08 16:20:27,301 client root window size is 1658x845 with 1 displays:
        2015-05-08 16:20:27,301   'HTML' (439x224 mm - DPI: 95x95)
        2015-05-08 16:20:27,302     Canvas
        2015-05-08 16:20:27,302 best resolution matching 1658x845 is unchanged: 1680x1050
        2015-05-08 16:20:27,304 keyboard mapping already configured (skipped)
        2015-05-08 16:20:29,573 failed to parse bencode packet: invalid literal for long() with base 10: 'NaN'
        Traceback (most recent call last):
          File "/usr/lib64/python2.7/site-packages/xpra/net/protocol.py", line 740, in do_read_parse_thread_loop
            packet = decode(data, protocol_flags)
          File "/usr/lib64/python2.7/site-packages/xpra/net/packet_encoding.py", line 169, in decode
            packet, l = bdecode(data)
          File "xpra/net/bencode/cython_bencode.pyx", line 117, in xpra.net.bencode.cython_bencode.bdecode (xpra/net/bencode/cython_bencode.c:2437)
          File "xpra/net/bencode/cython_bencode.pyx", line 100, in xpra.net.bencode.cython_bencode.decode (xpra/net/bencode/cython_bencode.c:2164)
          File "xpra/net/bencode/cython_bencode.pyx", line 76, in xpra.net.bencode.cython_bencode.decode_list (xpra/net/bencode/cython_bencode.c:1645)
          File "xpra/net/bencode/cython_bencode.pyx", line 100, in xpra.net.bencode.cython_bencode.decode (xpra/net/bencode/cython_bencode.c:2164)
          File "xpra/net/bencode/cython_bencode.pyx", line 76, in xpra.net.bencode.cython_bencode.decode_list (xpra/net/bencode/cython_bencode.c:1645)
          File "xpra/net/bencode/cython_bencode.pyx", line 104, in xpra.net.bencode.cython_bencode.decode (xpra/net/bencode/cython_bencode.c:2212)
          File "xpra/net/bencode/cython_bencode.pyx", line 46, in xpra.net.bencode.cython_bencode.decode_int (xpra/net/bencode/cython_bencode.c:1069)
        ValueError: invalid literal for long() with base 10: 'NaN'
        2015-05-08 16:20:29,575 Disconnecting client Protocol(SocketConnection(('127.0.0.1', 2200) - ('127.0.0.1', 48051))): packet index=0, packet size=44, buffer size=44, error=invalid literal for long() with base 10: 'NaN'
        2015-05-08 16:20:29,577 xpra client disconnected.
        2015-05-08 16:20:29,592 New tcp connection received from ('10.0.11.124', 64041)
        Exception in thread web-proxy-for-Protocol(SocketConnection(('10.0.32.138', 2200) - ('10.0.11.124', 64041))):
        Traceback (most recent call last):
          File "/usr/lib64/python2.7/threading.py", line 813, in __bootstrap_inner
            self.run()
          File "/usr/lib64/python2.7/threading.py", line 766, in run
            self.__target(*self.__args, **self.__kwargs)
          File "/usr/lib64/python2.7/site-packages/xpra/server/server_core.py", line 395, in run_proxy
            self.start_tcp_proxy(proto, data)
          File "/usr/lib64/python2.7/site-packages/xpra/server/server_core.py", line 408, in start_tcp_proxy
            client_connection = proto.steal_connection(temp_read_buffer.put)
          File "/usr/lib64/python2.7/site-packages/xpra/net/protocol.py", line 885, in steal_connection
            assert not self._closed
        AssertionError
        

Change History (1)

comment:1 Changed 6 years ago by Antoine Martin

Description: modified (diff)
Milestone: 0.160.15
Priority: majorblocker

Blocker for 0.15 release.
Note: if you run with -d network you should be able to see the full packet data hexlified, from there you should be able to figure out which part contains NaN (which is obviously not a valid number).

Last edited 6 years ago by Antoine Martin (previous) (diff)
Note: See TracTickets for help on using tickets.