{"action":"created","issue":{"url":"https://api.github.com/repos/acrisci/playerctl/issues/12","labels_url":"https://api.github.com/repos/acrisci/playerctl/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/acrisci/playerctl/issues/12/comments","events_url":"https://api.github.com/repos/acrisci/playerctl/issues/12/events","html_url":"https://github.com/acrisci/playerctl/issues/12","id":61831470,"number":12,"title":"SegFault when calling `playerctl.Player().play()` without any connected MPRIS server","user":{"login":"alexander255","id":246386,"avatar_url":"https://avatars.githubusercontent.com/u/246386?v=3","gravatar_id":"","url":"https://api.github.com/users/alexander255","html_url":"https://github.com/alexander255","followers_url":"https://api.github.com/users/alexander255/followers","following_url":"https://api.github.com/users/alexander255/following{/other_user}","gists_url":"https://api.github.com/users/alexander255/gists{/gist_id}","starred_url":"https://api.github.com/users/alexander255/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexander255/subscriptions","organizations_url":"https://api.github.com/users/alexander255/orgs","repos_url":"https://api.github.com/users/alexander255/repos","events_url":"https://api.github.com/users/alexander255/events{/privacy}","received_events_url":"https://api.github.com/users/alexander255/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-15T14:57:01Z","updated_at":"2015-03-15T21:54:51Z","closed_at":null,"body":"\talexander@localhost:...$ gdb python3\r\n\t...\r\n\t(gdb) run\r\n\tStarting program: /usr/bin/python3 \r\n\t[Thread debugging using libthread_db enabled]\r\n\tUsing host libthread_db library \"/lib/x86_64-linux-gnu/libthread_db.so.1\".\r\n\tPython 3.4.2 (default, Oct  8 2014, 10:45:20) \r\n\t[GCC 4.9.1] on linux\r\n\tType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n\tEntering interactive mode...\r\n\t>>> from gi.repository import Playerctl as playerctl\r\n\t>>> p = playerctl.Player()\r\n\t[New Thread 0x7ffff3e58700 (LWP 27204)]\r\n\t>>> p.stop()\r\n\tTraceback (most recent call last):\r\n\t  File \"<stdin>\", line 1, in <module>\r\n\tGLib.Error: playerctl-player-error-quark: No players found (1)\r\n\t>>> p.play()\r\n\t\r\n\tProgram received signal SIGSEGV, Segmentation fault.\r\n\t0x00007ffff3ee7c19 in org_mpris_media_player2_player_get_playback_status (object=0x0) at playerctl-generated.c:3021\r\n\t3021      return ORG_MPRIS_MEDIA_PLAYER2_PLAYER_GET_IFACE (object)->get_playback_status (object);\r\n\t(gdb) bt full\r\n\t#0  0x00007ffff3ee7c19 in org_mpris_media_player2_player_get_playback_status (object=0x0) at playerctl-generated.c:3021\r\n\tNo locals.\r\n\t#1  0x00007ffff3ee3483 in playerctl_player_play (self=0xc73350, err=0x7fffffffd750) at playerctl-player.c:532\r\n\t\t    tmp_error = 0x0\r\n\t\t    status = <optimized out>\r\n\t\t    __func__ = \"playerctl_player_play\"\r\n\t#2  0x00007ffff50bfdc0 in ffi_call_unix64 () from /usr/lib/x86_64-linux-gnu/libffi.so.6\r\n\tNo symbol table info available.\r\n\t#3  0x00007ffff50bf828 in ffi_call () from /usr/lib/x86_64-linux-gnu/libffi.so.6\r\n\tNo symbol table info available.\r\n\t#4  0x00007ffff5c84af4 in ?? () from /usr/lib/python3/dist-packages/gi/_gi.cpython-34m-x86_64-linux-gnu.so\r\n\tNo symbol table info available.\r\n\t#5  0x00007ffff5c863f8 in ?? () from /usr/lib/python3/dist-packages/gi/_gi.cpython-34m-x86_64-linux-gnu.so\r\n\tNo symbol table info available.\r\n\t#6  0x00007ffff5c7a5ae in ?? () from /usr/lib/python3/dist-packages/gi/_gi.cpython-34m-x86_64-linux-gnu.so\r\n\tNo symbol table info available.\r\n\t#7  0x00000000004f2249 in PyEval_EvalFrameEx ()\r\n\tNo symbol table info available.\r\n\t#8  0x00000000004ec9fc in PyEval_EvalCodeEx ()\r\n\tNo symbol table info available.\r\n\t#9  0x0000000000581115 in ?? ()\r\n\tNo symbol table info available.\r\n\t#10 0x000000000046021b in PyRun_InteractiveOneObject ()\r\n\tNo symbol table info available.\r\n\t#11 0x000000000045fa36 in PyRun_InteractiveLoopFlags ()\r\n\tNo symbol table info available.\r\n\t#12 0x000000000045bd6c in ?? ()\r\n\tNo symbol table info available.\r\n\t#13 0x000000000041e233 in ?? ()\r\n\tNo symbol table info available.\r\n\t#14 0x00000000004ca8ef in main ()\r\n\tNo symbol table info available.\r\n\r\nAs you can see from the log calling `playerctl.Player().stop()` produces the expected result (an exception), but `playerctl.Player().play()` causes a segmentation fault."},"comment":{"url":"https://api.github.com/repos/acrisci/playerctl/issues/comments/81256689","html_url":"https://github.com/acrisci/playerctl/issues/12#issuecomment-81256689","issue_url":"https://api.github.com/repos/acrisci/playerctl/issues/12","id":81256689,"user":{"login":"acrisci","id":3258764,"avatar_url":"https://avatars.githubusercontent.com/u/3258764?v=3","gravatar_id":"","url":"https://api.github.com/users/acrisci","html_url":"https://github.com/acrisci","followers_url":"https://api.github.com/users/acrisci/followers","following_url":"https://api.github.com/users/acrisci/following{/other_user}","gists_url":"https://api.github.com/users/acrisci/gists{/gist_id}","starred_url":"https://api.github.com/users/acrisci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acrisci/subscriptions","organizations_url":"https://api.github.com/users/acrisci/orgs","repos_url":"https://api.github.com/users/acrisci/repos","events_url":"https://api.github.com/users/acrisci/events{/privacy}","received_events_url":"https://api.github.com/users/acrisci/received_events","type":"User","site_admin":false},"created_at":"2015-03-15T21:54:51Z","updated_at":"2015-03-15T21:54:51Z","body":"I can confirm this.\r\n\r\nError handling needs some improvements."}}