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

mousepad doesn't process our text clipboard data from MS Windows clients #2309

Closed
totaam opened this issue May 26, 2019 · 3 comments
Closed
Labels

Comments

@totaam
Copy link
Collaborator

totaam commented May 26, 2019

Issue migrated from trac ticket # 2309

component: clipboard | priority: critical | resolution: fixed

2019-05-26 13:44:20: antoine created the issue


Paste event with a Linux client:

2019-05-26 19:42:11,411 set_session_driver(ClientConnection(3 : Protocol(tcp socket: 127.0.0.1:10000 <- 127.0.0.1:40550))) clipboard_enabled=True, clipboard helper=X11Clipboard
2019-05-26 19:42:11,412 selections: ['CLIPBOARD', 'PRIMARY', 'SECONDARY']
2019-05-26 19:42:12,463 do_xpra_selection_request(<X11:SelectionRequest {'send_event': '0', 'serial': '0x3b23', 'delivered_to': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'window': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'requestor': '<GdkX11.X11Window object at 0x7eff35b8e1f8 (GdkX11Window at 0x5648dc3f7980)>', 'selection': 'CLIPBOARD', 'target': 'text/plain;charset=utf-8', 'property': 'GDK_SELECTION', 'time': '96206944'}>)
2019-05-26 19:42:12,463 do_selection_request_event(<X11:SelectionRequest {'send_event': '0', 'serial': '0x3b23', 'delivered_to': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'window': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'requestor': '<GdkX11.X11Window object at 0x7eff35b8e1f8 (GdkX11Window at 0x5648dc3f7980)>', 'selection': 'CLIPBOARD', 'target': 'text/plain;charset=utf-8', 'property': 'GDK_SELECTION', 'time': '96206944'}>)
2019-05-26 19:42:12,464 clipboard request for CLIPBOARD from window 0xa00058: 'Mousepad'
2019-05-26 19:42:12,464 send_clipboard_request_handler(X11ClipboardProxy(CLIPBOARD), 'CLIPBOARD', 'text/plain;charset=utf-8')
2019-05-26 19:42:12,464 send_clipboard_request id=34
2019-05-26 19:42:12,465 sending clipboard-pending-requests=1 to ClientConnection(3 : Protocol(tcp socket: 127.0.0.1:10000 <- 127.0.0.1:40550))
2019-05-26 19:42:12,466 client @13.844 process_clipboard_packet: clipboard-pending-requests, helper=X11Clipboard
2019-05-26 19:42:12,467 client @13.845 clipboard_progress(None, 1)
2019-05-26 19:42:12,467 client @13.845 clipboard_notify(1) notification timer=None
2019-05-26 19:42:12,470 client @13.848 process_clipboard_packet: clipboard-request, helper=X11Clipboard
2019-05-26 19:42:12,471 client @13.848 process clipboard request, request_id=34, selection=CLIPBOARD, local name=CLIPBOARD, target=text/plain;charset=utf-8
2019-05-26 19:42:12,471 client @13.849 get_contents(text/plain;charset=utf-8, <function ClipboardProtocolHelperCore._process_clipboard_request.<locals>.got_contents at 0x7f7765538b70>, 0) owned=False, have-token=False
2019-05-26 19:42:12,471 client @13.849 requesting local XConvertSelection from 'Terminal' for 'text/plain;charset=utf-8' into 'CLIPBOARD-text/plain;charset=utf-8'
2019-05-26 19:42:12,474 client @13.852 do_xpra_property_notify_event(<X11:PropertyNotify {'send_event': '0', 'serial': '0x6af', 'delivered_to': '<GdkX11.X11Window object at 0x7f7765510990 (GdkX11Window at 0x559c83f5db10)>', 'window': '<GdkX11.X11Window object at 0x7f7765510990 (GdkX11Window at 0x559c83f5db10)>', 'atom': 'CLIPBOARD-text/plain;charset=utf-8', 'time': '96206952'}>)
2019-05-26 19:42:12,474 client @13.852 do_property_notify(<X11:PropertyNotify {'send_event': '0', 'serial': '0x6af', 'delivered_to': '<GdkX11.X11Window object at 0x7f7765510990 (GdkX11Window at 0x559c83f5db10)>', 'window': '<GdkX11.X11Window object at 0x7f7765510990 (GdkX11Window at 0x559c83f5db10)>', 'atom': 'CLIPBOARD-text/plain;charset=utf-8', 'time': '96206952'}>)
2019-05-26 19:42:12,474 client @13.853 CLIPBOARD-text/plain;charset=utf-8='BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB' (text/plain;charset=utf-8 : 8)
2019-05-26 19:42:12,475 client @13.853 got_local_contents: calling <function ClipboardProtocolHelperCore._process_clipboard_request.<locals>.got_contents at 0x7f7765538b70>('text/plain;charset=utf-8', 8, b'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB'), time=0
2019-05-26 19:42:12,475 client @13.853 got_contents(text/plain;charset=utf-8, 8, <class 'bytes'>:30) data=0x424242424242424242424242424242424242424242424242424242424242..
2019-05-26 19:42:12,476 client @13.854 perform clipboard limit checking - datasize - 30, -1
2019-05-26 19:42:12,476 client @13.854 _munge_raw_selection_to_wire('text/plain;charset=utf-8', 'text/plain;charset=utf-8', 8, "'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB'")
2019-05-26 19:42:12,476 client @13.854 _do_munge_raw_selection_to_wire(text/plain;charset=utf-8, text/plain;charset=utf-8, 8, <class 'bytes'>:30)
2019-05-26 19:42:12,476 client @13.854 clipboard raw -> wire: ('text/plain;charset=utf-8', 8, '"b\'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB\'"') -> '"(b\'bytes\', b\'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB\')"'
2019-05-26 19:42:12,476 client @13.854 clipboard_send: clipboard-contents
2019-05-26 19:42:12,477 client @13.855 do_xpra_property_notify_event(<X11:PropertyNotify {'send_event': '0', 'serial': '0x6bb', 'delivered_to': '<GdkX11.X11Window object at 0x7f7765510990 (GdkX11Window at 0x559c83f5db10)>', 'window': '<GdkX11.X11Window object at 0x7f7765510990 (GdkX11Window at 0x559c83f5db10)>', 'atom': 'CLIPBOARD-text/plain;charset=utf-8', 'time': '96206955'}>)
2019-05-26 19:42:12,477 process clipboard contents, selection=CLIPBOARD, type=text/plain;charset=utf-8, format=8
2019-05-26 19:42:12,478 client @13.855 do_property_notify(<X11:PropertyNotify {'send_event': '0', 'serial': '0x6bb', 'delivered_to': '<GdkX11.X11Window object at 0x7f7765510990 (GdkX11Window at 0x559c83f5db10)>', 'window': '<GdkX11.X11Window object at 0x7f7765510990 (GdkX11Window at 0x559c83f5db10)>', 'atom': 'CLIPBOARD-text/plain;charset=utf-8', 'time': '96206955'}>)
2019-05-26 19:42:12,478 wire selection to raw, encoding=bytes, type=text/plain;charset=utf-8, format=8, len(data)=30
2019-05-26 19:42:12,478 client @13.856 do_property_notify() property 'CLIPBOARD-text/plain;charset=utf-8' is gone?
2019-05-26 19:42:12,478 clipboard wire -> raw: ('text/plain;charset=utf-8', 8, 'bytes', b'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB') -> b'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB'
2019-05-26 19:42:12,478 client @13.856   File "/usr/lib64/python3.7/site-packages/xpra/x11/gtk_x11/clipboard.py", line 554, in do_property_notify
2019-05-26 19:42:12,478 client @13.856     dtype, dformat = X11Window.GetWindowPropertyType(self.xid, event.atom)
2019-05-26 19:42:12,478 clipboard got contents(34, 'text/plain;charset=utf-8', 8, '"b\'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB\'"'): proxy=X11ClipboardProxy(CLIPBOARD) for selection=CLIPBOARD
2019-05-26 19:42:12,479 client @13.856   File "xpra/x11/bindings/window_bindings.pyx", line 1023, in xpra.x11.bindings.window_bindings._X11WindowBindings.GetWindowPropertyType
2019-05-26 19:42:12,479 got_contents('text/plain;charset=utf-8', 'text/plain;charset=utf-8', 8, '"b\'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB\'"') pending=(<GdkX11.X11Window object at 0x7eff35b8e1f8 (GdkX11Window at 0x5648dc3f7980)>, 'GDK_SELECTION', 96206944)
2019-05-26 19:42:12,479 client @13.856     raise BadPropertyType("None type")
2019-05-26 19:42:12,479 client @13.856 BadPropertyType: None type
2019-05-26 19:42:12,479 setting response b'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB' to property GDK_SELECTION of window 'Mousepad' as text/plain;charset=utf-8
2019-05-26 19:42:12,479 set_selection_response(<GdkX11.X11Window object at 0x7eff35b8e1f8 (GdkX11Window at 0x5648dc3f7980)>, text/plain;charset=utf-8, GDK_SELECTION, text/plain;charset=utf-8, 8, '"b\'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB\'"', 96206944)
2019-05-26 19:42:12,579 sending clipboard-pending-requests=0 to ClientConnection(3 : Protocol(tcp socket: 127.0.0.1:10000 <- 127.0.0.1:40550))
2019-05-26 19:42:12,580 client @13.958 process_clipboard_packet: clipboard-pending-requests, helper=X11Clipboard
2019-05-26 19:42:12,580 client @13.959 clipboard_progress(None, 0)
2019-05-26 19:42:12,580 client @13.959 clipboard_notify(0) notification timer=None

Same thing from an MS Windows client:

2019-05-26 19:43:59,619 do_xpra_selection_request(<X11:SelectionRequest {'send_event': '0', 'serial': '0x44bc', 'delivered_to': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'window': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'requestor': '<GdkX11.X11Window object at 0x7eff34685dc8 (GdkX11Window at 0x5648dc3f7980)>', 'selection': 'CLIPBOARD', 'target': 'text/plain;charset=utf-8', 'property': 'GDK_SELECTION', 'time': '96314100'}>)
2019-05-26 19:43:59,620 do_selection_request_event(<X11:SelectionRequest {'send_event': '0', 'serial': '0x44bc', 'delivered_to': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'window': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'requestor': '<GdkX11.X11Window object at 0x7eff34685dc8 (GdkX11Window at 0x5648dc3f7980)>', 'selection': 'CLIPBOARD', 'target': 'text/plain;charset=utf-8', 'property': 'GDK_SELECTION', 'time': '96314100'}>)
2019-05-26 19:43:59,620 clipboard request for CLIPBOARD from window 0xa00058: 'Mousepad'
2019-05-26 19:43:59,621 send_clipboard_request_handler(X11ClipboardProxy(CLIPBOARD), 'CLIPBOARD', 'text/plain;charset=utf-8')
2019-05-26 19:43:59,621 send_clipboard_request id=39
2019-05-26 19:43:59,622 sending clipboard-pending-requests=1 to ClientConnection(4 : Protocol(tcp socket: 192.168.1.7:10000 <- 192.168.1.10:49801))
2019-05-26 19:43:59,631 client @29.282 process_clipboard_packet: clipboard-request, helper=ClipboardProtocolHelperCore
2019-05-26 19:43:59,634 client @29.282 process clipboard request, request_id=39, selection=CLIPBOARD, local name=CLIPBOARD, target=text/plain;charset=utf-8
2019-05-26 19:43:59,634 client @29.282 got 32 bytes of data: "b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'"
2019-05-26 19:43:59,634 client @29.282 got_text("b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'")
2019-05-26 19:43:59,635 client @29.282 got_contents(bytes, 8, <class 'bytes'>:32) data=0x4343434343434343434343434343434343434343434343434343434343434343..
2019-05-26 19:43:59,635 client @29.282 perform clipboard limit checking - datasize - 32, -1
2019-05-26 19:43:59,636 client @29.282 _munge_raw_selection_to_wire('text/plain;charset=utf-8', 'bytes', 8, "'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'")
2019-05-26 19:43:59,636 client @29.282 _do_munge_raw_selection_to_wire(text/plain;charset=utf-8, bytes, 8, <class 'bytes'>:32)
2019-05-26 19:43:59,637 client @29.297 clipboard raw -> wire: ('bytes', 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"') -> '"(b\'bytes\', b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\')"'
2019-05-26 19:43:59,637 client @29.297 clipboard_send: clipboard-contents
2019-05-26 19:43:59,640 process clipboard contents, selection=CLIPBOARD, type=bytes, format=8
2019-05-26 19:43:59,640 wire selection to raw, encoding=bytes, type=bytes, format=8, len(data)=32
2019-05-26 19:43:59,640 clipboard wire -> raw: ('bytes', 8, 'bytes', b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC') -> b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'
2019-05-26 19:43:59,641 clipboard got contents(39, 'bytes', 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"'): proxy=X11ClipboardProxy(CLIPBOARD) for selection=CLIPBOARD
2019-05-26 19:43:59,641 got_contents('text/plain;charset=utf-8', 'bytes', 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"') pending=(<GdkX11.X11Window object at 0x7eff34685dc8 (GdkX11Window at 0x5648dc3f7980)>, 'GDK_SELECTION', 96314100)
2019-05-26 19:43:59,642 client @29.297 process_clipboard_packet: clipboard-pending-requests, helper=ClipboardProtocolHelperCore
2019-05-26 19:43:59,643 setting response b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC' to property GDK_SELECTION of window 'Mousepad' as bytes
2019-05-26 19:43:59,643 client @29.297 clipboard_progress(None, 1)
2019-05-26 19:43:59,643 set_selection_response(<GdkX11.X11Window object at 0x7eff34685dc8 (GdkX11Window at 0x5648dc3f7980)>, text/plain;charset=utf-8, GDK_SELECTION, bytes, 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"', 96314100)
2019-05-26 19:43:59,644 client @29.297 clipboard_notify(1) notification timer=None
2019-05-26 19:43:59,646 do_xpra_selection_request(<X11:SelectionRequest {'send_event': '0', 'serial': '0x44c5', 'delivered_to': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'window': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'requestor': '<GdkX11.X11Window object at 0x7eff35b8e3f0 (GdkX11Window at 0x5648dc3f7980)>', 'selection': 'CLIPBOARD', 'target': 'UTF8_STRING', 'property': 'GDK_SELECTION', 'time': '96314100'}>)
2019-05-26 19:43:59,646 do_selection_request_event(<X11:SelectionRequest {'send_event': '0', 'serial': '0x44c5', 'delivered_to': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'window': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'requestor': '<GdkX11.X11Window object at 0x7eff35b8e3f0 (GdkX11Window at 0x5648dc3f7980)>', 'selection': 'CLIPBOARD', 'target': 'UTF8_STRING', 'property': 'GDK_SELECTION', 'time': '96314100'}>)
2019-05-26 19:43:59,647 clipboard request for CLIPBOARD from window 0xa00058: 'Mousepad'
2019-05-26 19:43:59,647 send_clipboard_request_handler(X11ClipboardProxy(CLIPBOARD), 'CLIPBOARD', 'UTF8_STRING')
2019-05-26 19:43:59,647 send_clipboard_request id=40
2019-05-26 19:43:59,654 process clipboard contents, selection=CLIPBOARD, type=bytes, format=8
2019-05-26 19:43:59,654 wire selection to raw, encoding=bytes, type=bytes, format=8, len(data)=32
2019-05-26 19:43:59,654 clipboard wire -> raw: ('bytes', 8, 'bytes', b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC') -> b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'
2019-05-26 19:43:59,655 clipboard got contents(40, 'bytes', 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"'): proxy=X11ClipboardProxy(CLIPBOARD) for selection=CLIPBOARD
2019-05-26 19:43:59,655 got_contents('UTF8_STRING', 'bytes', 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"') pending=(<GdkX11.X11Window object at 0x7eff35b8e3f0 (GdkX11Window at 0x5648dc3f7980)>, 'GDK_SELECTION', 96314100)
2019-05-26 19:43:59,655 setting response b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC' to property GDK_SELECTION of window 'Mousepad' as bytes
2019-05-26 19:43:59,655 set_selection_response(<GdkX11.X11Window object at 0x7eff35b8e3f0 (GdkX11Window at 0x5648dc3f7980)>, UTF8_STRING, GDK_SELECTION, bytes, 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"', 96314100)
2019-05-26 19:43:59,656 do_xpra_selection_request(<X11:SelectionRequest {'send_event': '0', 'serial': '0x44cc', 'delivered_to': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'window': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'requestor': '<GdkX11.X11Window object at 0x7eff35b8e3f0 (GdkX11Window at 0x5648dc3f7980)>', 'selection': 'CLIPBOARD', 'target': 'COMPOUND_TEXT', 'property': 'GDK_SELECTION', 'time': '96314100'}>)
2019-05-26 19:43:59,656 do_selection_request_event(<X11:SelectionRequest {'send_event': '0', 'serial': '0x44cc', 'delivered_to': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'window': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'requestor': '<GdkX11.X11Window object at 0x7eff35b8e3f0 (GdkX11Window at 0x5648dc3f7980)>', 'selection': 'CLIPBOARD', 'target': 'COMPOUND_TEXT', 'property': 'GDK_SELECTION', 'time': '96314100'}>)
2019-05-26 19:43:59,657 clipboard request for CLIPBOARD from window 0xa00058: 'Mousepad'
2019-05-26 19:43:59,657 send_clipboard_request_handler(X11ClipboardProxy(CLIPBOARD), 'CLIPBOARD', 'COMPOUND_TEXT')
2019-05-26 19:43:59,657 send_clipboard_request id=41
2019-05-26 19:43:59,658 client @29.313 process_clipboard_packet: clipboard-request, helper=ClipboardProtocolHelperCore
2019-05-26 19:43:59,658 client @29.313 process clipboard request, request_id=40, selection=CLIPBOARD, local name=CLIPBOARD, target=UTF8_STRING
2019-05-26 19:43:59,658 client @29.313 got 32 bytes of data: "b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'"
2019-05-26 19:43:59,658 client @29.313 got_text("b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'")
2019-05-26 19:43:59,658 client @29.313 got_contents(bytes, 8, <class 'bytes'>:32) data=0x4343434343434343434343434343434343434343434343434343434343434343..
2019-05-26 19:43:59,658 client @29.313 perform clipboard limit checking - datasize - 32, -1
2019-05-26 19:43:59,658 client @29.313 _munge_raw_selection_to_wire('UTF8_STRING', 'bytes', 8, "'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'")
2019-05-26 19:43:59,659 client @29.313 _do_munge_raw_selection_to_wire(UTF8_STRING, bytes, 8, <class 'bytes'>:32)
2019-05-26 19:43:59,659 client @29.313 clipboard raw -> wire: ('bytes', 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"') -> '"(b\'bytes\', b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\')"'
2019-05-26 19:43:59,659 client @29.313 clipboard_send: clipboard-contents
2019-05-26 19:43:59,720 client @29.313 process_clipboard_packet: clipboard-request, helper=ClipboardProtocolHelperCore
2019-05-26 19:43:59,720 client @29.313 process clipboard request, request_id=41, selection=CLIPBOARD, local name=CLIPBOARD, target=COMPOUND_TEXT
2019-05-26 19:43:59,720 client @29.313 got 32 bytes of data: "b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'"
2019-05-26 19:43:59,720 client @29.313 got_text("b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'")
2019-05-26 19:43:59,720 client @29.313 got_contents(bytes, 8, <class 'bytes'>:32) data=0x4343434343434343434343434343434343434343434343434343434343434343..
2019-05-26 19:43:59,720 process clipboard contents, selection=CLIPBOARD, type=bytes, format=8
2019-05-26 19:43:59,720 client @29.313 perform clipboard limit checking - datasize - 32, -1
2019-05-26 19:43:59,720 wire selection to raw, encoding=bytes, type=bytes, format=8, len(data)=32
2019-05-26 19:43:59,720 client @29.313 _munge_raw_selection_to_wire('COMPOUND_TEXT', 'bytes', 8, "'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'")
2019-05-26 19:43:59,720 clipboard wire -> raw: ('bytes', 8, 'bytes', b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC') -> b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'
2019-05-26 19:43:59,720 client @29.329 _do_munge_raw_selection_to_wire(COMPOUND_TEXT, bytes, 8, <class 'bytes'>:32)
2019-05-26 19:43:59,720 client @29.329 clipboard raw -> wire: ('bytes', 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"') -> '"(b\'bytes\', b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\')"'
2019-05-26 19:43:59,720 clipboard got contents(41, 'bytes', 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"'): proxy=X11ClipboardProxy(CLIPBOARD) for selection=CLIPBOARD
2019-05-26 19:43:59,720 client @29.329 clipboard_send: clipboard-contents
2019-05-26 19:43:59,720 got_contents('COMPOUND_TEXT', 'bytes', 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"') pending=(<GdkX11.X11Window object at 0x7eff35b8e3f0 (GdkX11Window at 0x5648dc3f7980)>, 'GDK_SELECTION', 96314100)
2019-05-26 19:43:59,721 setting response b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC' to property GDK_SELECTION of window 'Mousepad' as bytes
2019-05-26 19:43:59,721 set_selection_response(<GdkX11.X11Window object at 0x7eff35b8e3f0 (GdkX11Window at 0x5648dc3f7980)>, COMPOUND_TEXT, GDK_SELECTION, bytes, 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"', 96314100)
2019-05-26 19:43:59,721 do_xpra_selection_request(<X11:SelectionRequest {'send_event': '0', 'serial': '0x44d3', 'delivered_to': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'window': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'requestor': '<GdkX11.X11Window object at 0x7eff35b8e3f0 (GdkX11Window at 0x5648dc3f7980)>', 'selection': 'CLIPBOARD', 'target': 'STRING', 'property': 'GDK_SELECTION', 'time': '96314100'}>)
2019-05-26 19:43:59,721 do_selection_request_event(<X11:SelectionRequest {'send_event': '0', 'serial': '0x44d3', 'delivered_to': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'window': '<GdkX11.X11Window object at 0x7eff3d5b9828 (GdkX11Window at 0x5648dbe9a7d0)>', 'requestor': '<GdkX11.X11Window object at 0x7eff35b8e3f0 (GdkX11Window at 0x5648dc3f7980)>', 'selection': 'CLIPBOARD', 'target': 'STRING', 'property': 'GDK_SELECTION', 'time': '96314100'}>)
2019-05-26 19:43:59,721 clipboard request for CLIPBOARD from window 0xa00058: 'Mousepad'
2019-05-26 19:43:59,721 send_clipboard_request_handler(X11ClipboardProxy(CLIPBOARD), 'CLIPBOARD', 'STRING')
2019-05-26 19:43:59,721 send_clipboard_request id=42
2019-05-26 19:43:59,742 sending clipboard-pending-requests=0 to ClientConnection(4 : Protocol(tcp socket: 192.168.1.7:10000 <- 192.168.1.10:49801))
2019-05-26 19:43:59,750 client @29.391 process_clipboard_packet: clipboard-request, helper=ClipboardProtocolHelperCore
2019-05-26 19:43:59,750 client @29.391 process clipboard request, request_id=42, selection=CLIPBOARD, local name=CLIPBOARD, target=STRING
2019-05-26 19:43:59,750 client @29.391 got 32 bytes of data: "b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'"
2019-05-26 19:43:59,750 client @29.391 got_text("b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'")
2019-05-26 19:43:59,751 client @29.391 got_contents(bytes, 8, <class 'bytes'>:32) data=0x4343434343434343434343434343434343434343434343434343434343434343..
2019-05-26 19:43:59,751 client @29.391 perform clipboard limit checking - datasize - 32, -1
2019-05-26 19:43:59,751 client @29.391 _munge_raw_selection_to_wire('STRING', 'bytes', 8, "'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'")
2019-05-26 19:43:59,751 process clipboard contents, selection=CLIPBOARD, type=bytes, format=8
2019-05-26 19:43:59,751 client @29.391 _do_munge_raw_selection_to_wire(STRING, bytes, 8, <class 'bytes'>:32)
2019-05-26 19:43:59,751 wire selection to raw, encoding=bytes, type=bytes, format=8, len(data)=32
2019-05-26 19:43:59,751 clipboard wire -> raw: ('bytes', 8, 'bytes', b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC') -> b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'
2019-05-26 19:43:59,751 client @29.391 clipboard raw -> wire: ('bytes', 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"') -> '"(b\'bytes\', b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\')"'
2019-05-26 19:43:59,751 client @29.391 clipboard_send: clipboard-contents
2019-05-26 19:43:59,751 clipboard got contents(42, 'bytes', 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"'): proxy=X11ClipboardProxy(CLIPBOARD) for selection=CLIPBOARD
2019-05-26 19:43:59,751 got_contents('STRING', 'bytes', 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"') pending=(<GdkX11.X11Window object at 0x7eff35b8e3f0 (GdkX11Window at 0x5648dc3f7980)>, 'GDK_SELECTION', 96314100)
2019-05-26 19:43:59,751 setting response b'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC' to property GDK_SELECTION of window 'Mousepad' as bytes
2019-05-26 19:43:59,751 set_selection_response(<GdkX11.X11Window object at 0x7eff35b8e3f0 (GdkX11Window at 0x5648dc3f7980)>, STRING, GDK_SELECTION, bytes, 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"', 96314100)
2019-05-26 19:43:59,752 client @29.391 process_clipboard_packet: clipboard-pending-requests, helper=ClipboardProtocolHelperCore
2019-05-26 19:43:59,752 client @29.391 clipboard_progress(None, 0)
2019-05-26 19:43:59,752 client @29.391 clipboard_notify(0) notification timer=None
@totaam
Copy link
Collaborator Author

totaam commented May 27, 2019

2019-05-27 05:48:09: antoine changed status from new to closed

@totaam
Copy link
Collaborator Author

totaam commented May 27, 2019

2019-05-27 05:48:09: antoine set resolution to fixed

@totaam
Copy link
Collaborator Author

totaam commented May 27, 2019

2019-05-27 05:48:09: antoine commented


TILs:

  • linux client
client @13.854 clipboard raw -> wire: ('text/plain;charset=utf-8', 8, '"b\'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB\'"') -> '"(b\'bytes\', b\'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB\')"'
(..)
process clipboard contents, selection=CLIPBOARD, type=text/plain;charset=utf-8, format=8
(..)
set_selection_response(<GdkX11.X11Window object at 0x7eff35b8e1f8 (GdkX11Window at 0x5648dc3f7980)>, text/plain;charset=utf-8, GDK_SELECTION, text/plain;charset=utf-8, 8, '"b\'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBB\'"', 96206944)
  • win32 client:
clipboard raw -> wire: ('bytes', 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"') -> '"(b\'bytes\', b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\')"'
(..)
process clipboard contents, selection=CLIPBOARD, type=bytes, format=8
(..)
set_selection_response(<GdkX11.X11Window object at 0x7eff34685dc8 (GdkX11Window at 0x5648dc3f7980)>, text/plain;charset=utf-8, GDK_SELECTION, bytes, 8, '"b\'CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC\'"', 96314100)

Fixed in r22793.

@totaam totaam closed this as completed May 27, 2019
@totaam totaam added the v2.5.x label Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant