{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/3531","labels_url":"https://api.github.com/repos/kivy/kivy/issues/3531/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/3531/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/3531/events","html_url":"https://github.com/kivy/kivy/issues/3531","id":97037629,"number":3531,"title":"Python Crash using the Interactive Launcher","user":{"login":"hackebrot","id":6024445,"avatar_url":"https://avatars.githubusercontent.com/u/6024445?v=3","gravatar_id":"","url":"https://api.github.com/users/hackebrot","html_url":"https://github.com/hackebrot","followers_url":"https://api.github.com/users/hackebrot/followers","following_url":"https://api.github.com/users/hackebrot/following{/other_user}","gists_url":"https://api.github.com/users/hackebrot/gists{/gist_id}","starred_url":"https://api.github.com/users/hackebrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackebrot/subscriptions","organizations_url":"https://api.github.com/users/hackebrot/orgs","repos_url":"https://api.github.com/users/hackebrot/repos","events_url":"https://api.github.com/users/hackebrot/events{/privacy}","received_events_url":"https://api.github.com/users/hackebrot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-24T11:55:22Z","updated_at":"2015-07-26T10:09:49Z","closed_at":null,"body":"Hey there,\r\n\r\nwhen I was trying to leverage `pytest` to test my `kivy` apps, I noticed that the `InteractiveLauncher` ends up crashing python if it is run several times. I have discovered that it is definitely not `pytest` and you can reproduce the issue with the following code.\r\n\r\n```python\r\nimport kivy\r\nkivy.require('1.9.0')\r\n\r\nfrom kivy.interactive import InteractiveLauncher\r\nfrom kivy.animation import Animation\r\nfrom kivy.app import App\r\n\r\n\r\nclass FooBarApp(App):\r\n    \"\"\"Dummy App that simply inherits from App.\"\"\"\r\n\r\n\r\ndef foo():\r\n    \"\"\"Uses the InteractiveLauncher to provide access to an app instance.\r\n    \"\"\"\r\n    launcher = InteractiveLauncher(FooBarApp())\r\n\r\n    def start_launcher():\r\n        launcher.run()\r\n        launcher.safeIn()\r\n\r\n    def stop_launcher():\r\n        launcher.safeOut()\r\n        launcher.stop()\r\n\r\n    start_launcher()\r\n    stop_launcher()\r\n\r\nfoo()\r\nfoo()\r\n```\r\n\r\nRunning it via ``python -v crash_kivy.py`` shows the following lines at the very end\r\n```\r\n[INFO   ] [Base        ] Start application main loop\r\n[INFO   ] [Base        ] Leaving application in progress...\r\n[INFO   ] [Base        ] Start application main loop\r\nCoreAnimation: warning, deleted thread with uncommitted CATransaction; set CA_DEBUG_TRANSACTIONS=1 in environment to log backtraces.\r\nFatal Python error: (pygame parachute) Segmentation Fault\r\nAbort trap: 6\r\n```\r\n\r\nI am currently running the following setup:\r\n```\r\nProductName:\tMac OS X\r\nProductVersion:\t10.10.4\r\n\r\nPython 2.7.6\r\nKivy (1.9.1.dev0)\r\n```\r\n\r\nPlease note that it is also crashing using the Mac OS X kivy distribution.\r\n\r\nAny help is highly appreciated.\r\nRaphael\r\n\r\n\r\n\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/24883387-python-crash-using-the-interactive-launcher?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/kivy/kivy/issues/comments/124966858","html_url":"https://github.com/kivy/kivy/issues/3531#issuecomment-124966858","issue_url":"https://api.github.com/repos/kivy/kivy/issues/3531","id":124966858,"user":{"login":"hackebrot","id":6024445,"avatar_url":"https://avatars.githubusercontent.com/u/6024445?v=3","gravatar_id":"","url":"https://api.github.com/users/hackebrot","html_url":"https://github.com/hackebrot","followers_url":"https://api.github.com/users/hackebrot/followers","following_url":"https://api.github.com/users/hackebrot/following{/other_user}","gists_url":"https://api.github.com/users/hackebrot/gists{/gist_id}","starred_url":"https://api.github.com/users/hackebrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackebrot/subscriptions","organizations_url":"https://api.github.com/users/hackebrot/orgs","repos_url":"https://api.github.com/users/hackebrot/repos","events_url":"https://api.github.com/users/hackebrot/events{/privacy}","received_events_url":"https://api.github.com/users/hackebrot/received_events","type":"User","site_admin":false},"created_at":"2015-07-26T10:09:49Z","updated_at":"2015-07-26T10:09:49Z","body":"I am still at EuroPython and cannot access IRC :cry:\r\n\r\n:bell: Can you please help me out? @inclement "}}