{"action":"created","issue":{"url":"https://api.github.com/repos/libratbag/piper/issues/232","repository_url":"https://api.github.com/repos/libratbag/piper","labels_url":"https://api.github.com/repos/libratbag/piper/issues/232/labels{/name}","comments_url":"https://api.github.com/repos/libratbag/piper/issues/232/comments","events_url":"https://api.github.com/repos/libratbag/piper/issues/232/events","html_url":"https://github.com/libratbag/piper/issues/232","id":351856223,"node_id":"MDU6SXNzdWUzNTE4NTYyMjM=","number":232,"title":"Piper fails to launch when Logitech G502 connected","user":{"login":"microbug","id":3200101,"node_id":"MDQ6VXNlcjMyMDAxMDE=","avatar_url":"https://avatars3.githubusercontent.com/u/3200101?v=4","gravatar_id":"","url":"https://api.github.com/users/microbug","html_url":"https://github.com/microbug","followers_url":"https://api.github.com/users/microbug/followers","following_url":"https://api.github.com/users/microbug/following{/other_user}","gists_url":"https://api.github.com/users/microbug/gists{/gist_id}","starred_url":"https://api.github.com/users/microbug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microbug/subscriptions","organizations_url":"https://api.github.com/users/microbug/orgs","repos_url":"https://api.github.com/users/microbug/repos","events_url":"https://api.github.com/users/microbug/events{/privacy}","received_events_url":"https://api.github.com/users/microbug/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-18T22:12:15Z","updated_at":"2018-08-19T11:57:32Z","closed_at":null,"author_association":"NONE","body":"When I run Piper with my G502 mouse connected:\r\n\r\n- Piper does not launch:\r\n- I get this output:\r\n\r\n```\r\n(piper:2008): Gtk-WARNING **: 23:03:07.967: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version\r\n\r\n(piper:2008): Gtk-WARNING **: 23:03:07.967: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version\r\n\r\n(piper:2008): Gtk-WARNING **: 23:03:07.967: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version\r\nTypeError: Couldn't find foreign struct converter for 'cairo.Context'\r\n```\r\n\r\nIf I disconnect the G502:\r\n\r\n- Piper launches\r\n- The 'cannot find any devices' screen is shown (as expected)\r\n- When I reconnect the G502 the same error (`TypeError: Couldn't find foreign struct converter for 'cairo.Context'`) is shown before the window closes\r\n- Once Piper has exited the console output is the same as the full log above:\r\n\r\n```\r\n(piper:3123): Gtk-WARNING **: 23:08:12.865: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version\r\n\r\n(piper:3123): Gtk-WARNING **: 23:08:12.865: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version\r\n\r\n(piper:3123): Gtk-WARNING **: 23:08:12.865: Theme parsing error: gtk.css:73:46: The style property GtkScrolledWindow:scrollbars-within-bevel is deprecated and shouldn't be used anymore. It will be removed in a future version\r\nTypeError: Couldn't find foreign struct converter for 'cairo.Context'\r\n```\r\n\r\nI have checked that I have `python-gi-cairo` installed. The full installation I used is as follows (probably not relevant but I couldn't find it listed anywhere else in full):\r\n\r\n```\r\n# install libratbag\r\n# the next 4 lines are taken from https://github.com/libratbag/libratbag/blob/master/circle.yml\r\nsudo apt-get install -y software-properties-common\r\nsudo add-apt-repository universe\r\nsudo apt-get update\r\nsudo apt-get install -y tree git gcc g++ pkg-config meson check libudev-dev libevdev-dev libsystemd-dev valgrind python3-gi python3-evdev libglib2.0-dev python3-lxml python3-dev swig systemd\r\ncd ~\r\ngit clone https://github.com/libratbag/libratbag.git\r\ncd libratbag\r\nmeson builddir --prefix=/usr/\r\nninja -C builddir\r\nsudo ninja -C builddir install\r\nsudo systemctl start ratbagd\r\nsudo systemctl enable ratbagd\r\n\r\n# install piper\r\nsudo apt install build-essential python3 python3-dev python3-pip pkg-config gettext python-gi-dev meson ninja-build git python3-evdev python3-lxml librsvg2-dev\r\ncd ~\r\ngit clone https://github.com/libratbag/piper.git\r\ncd piper\r\nmeson builddir --prefix=/usr/\r\nninja -C builddir\r\nsudo ninja -C builddir install\r\n\r\n# run piper\r\nPYTHONPATH=$PYTHONPATH:/usr/lib/python3.6/site-packages piper\r\n```"},"comment":{"url":"https://api.github.com/repos/libratbag/piper/issues/comments/414122922","html_url":"https://github.com/libratbag/piper/issues/232#issuecomment-414122922","issue_url":"https://api.github.com/repos/libratbag/piper/issues/232","id":414122922,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDEyMjkyMg==","user":{"login":"microbug","id":3200101,"node_id":"MDQ6VXNlcjMyMDAxMDE=","avatar_url":"https://avatars3.githubusercontent.com/u/3200101?v=4","gravatar_id":"","url":"https://api.github.com/users/microbug","html_url":"https://github.com/microbug","followers_url":"https://api.github.com/users/microbug/followers","following_url":"https://api.github.com/users/microbug/following{/other_user}","gists_url":"https://api.github.com/users/microbug/gists{/gist_id}","starred_url":"https://api.github.com/users/microbug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/microbug/subscriptions","organizations_url":"https://api.github.com/users/microbug/orgs","repos_url":"https://api.github.com/users/microbug/repos","events_url":"https://api.github.com/users/microbug/events{/privacy}","received_events_url":"https://api.github.com/users/microbug/received_events","type":"User","site_admin":false},"created_at":"2018-08-19T11:57:32Z","updated_at":"2018-08-19T11:57:32Z","author_association":"NONE","body":"I just tested this with the [unofficial PPA](https://launchpad.net/~trebelnik-stefina/+archive/ubuntu/ratbag-piper) and experienced the same problem."}}
{"actor":{"display_login":"microbug"}}