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

crashes when recivieng ’ #484

Open
achozex opened this issue Oct 16, 2019 · 1 comment
Open

crashes when recivieng ’ #484

achozex opened this issue Oct 16, 2019 · 1 comment

Comments

@achozex
Copy link

achozex commented Oct 16, 2019

hangups crashes when receiving 'RIGHT SINGLE QUOTATION MARK
word example : don’t
hangups 0.4.9

log:

Traceback (most recent call last):
  File "/snap/hangups/99/bin/hangups", line 11, in <module>
    load_entry_point('hangups==0.4.9', 'console_scripts', 'hangups')()
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/ui/__main__.py", line 1207, in main
    args.manual_login
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/ui/__main__.py", line 130, in __init__
    loop.run_until_complete(asyncio.gather(*coros))
  File "/snap/hangups/99/usr/lib/python3.6/asyncio/base_events.py", line 473, in run_until_complete
    return future.result()
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/ui/__main__.py", line 155, in _connect
    await self._client.connect()
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/client.py", line 138, in connect
    await self._listen_future
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/channel.py", line 197, in listen
    await self._longpoll_request()
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/channel.py", line 298, in _longpoll_request
    await self._on_push_data(chunk)
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/channel.py", line 332, in _on_push_data
    await self.on_receive_array.fire(data_array)
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/event.py", line 59, in fire
    await gen
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/client.py", line 370, in _on_receive_array
    await self.on_state_update.fire(state_update)
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/event.py", line 59, in fire
    await gen
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/conversation.py", line 871, in _on_state_update
    state_update.event_notification.event
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/conversation.py", line 927, in _on_event
    await self.on_event.fire(conv_event)
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/event.py", line 57, in fire
    gen = observer(*args, **kwargs)
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/ui/__main__.py", line 253, in _on_event
    self._notifier.send(notification)
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/ui/notifier.py", line 41, in send
    self._notifier.send(notification)
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/ui/notifier.py", line 75, in send
    replaces_id=self._replaces_id,
  File "/snap/hangups/99/lib/python3.6/site-packages/hangups/ui/notifier.py", line 127, in _run_command
    return subprocess.check_output(cmd, stderr=subprocess.STDOUT).decode()
  File "/snap/hangups/99/usr/lib/python3.6/subprocess.py", line 336, in check_output
    **kwargs).stdout
  File "/snap/hangups/99/usr/lib/python3.6/subprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/snap/hangups/99/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/snap/hangups/99/usr/lib/python3.6/subprocess.py", line 1275, in _execute_child
    restore_signals, start_new_session, preexec_fn)
UnicodeEncodeError: 'ascii' codec can't encode character '\u2019' in position 29: ordinal not in range(128)
@achozex achozex changed the title crashes when recivieng crashes when recivieng ’ Oct 16, 2019
@tdryer
Copy link
Owner

tdryer commented Oct 17, 2019

I think this is related to the snap package not supporting Unicode properly. Since notifications also won't work, you could work around this by disabling notifications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants