{"action":"created","issue":{"url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/1029","labels_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/1029/labels{/name}","comments_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/1029/comments","events_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/1029/events","html_url":"https://github.com/The-Compiler/qutebrowser/issues/1029","id":112396117,"number":1029,"title":"Segfault on exit when started with `--datadir \"\"`","user":{"login":"Ambrevar","id":1489143,"avatar_url":"https://avatars.githubusercontent.com/u/1489143?v=3","gravatar_id":"","url":"https://api.github.com/users/Ambrevar","html_url":"https://github.com/Ambrevar","followers_url":"https://api.github.com/users/Ambrevar/followers","following_url":"https://api.github.com/users/Ambrevar/following{/other_user}","gists_url":"https://api.github.com/users/Ambrevar/gists{/gist_id}","starred_url":"https://api.github.com/users/Ambrevar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ambrevar/subscriptions","organizations_url":"https://api.github.com/users/Ambrevar/orgs","repos_url":"https://api.github.com/users/Ambrevar/repos","events_url":"https://api.github.com/users/Ambrevar/events{/privacy}","received_events_url":"https://api.github.com/users/Ambrevar/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/The-Compiler/qutebrowser/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/The-Compiler/qutebrowser/labels/priority:%201%20-%20middle","name":"priority: 1 - middle","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-20T15:35:09Z","updated_at":"2015-10-20T15:58:31Z","closed_at":null,"body":"When starting a new instance with `--datadir \"\"`, qutebrowser will segfault on exit, poping the bug report window, then restart, recrash, repop, etc.\r\n\r\nAccording do the stack, this should be an easy fix:\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3.5/site-packages/qutebrowser/app.py\", line 464, in on_last_window_closed\r\n    self.shutdown(last_window=True)\r\n  File \"/usr/lib/python3.5/site-packages/qutebrowser/app.py\", line 598, in shutdown\r\n    load_next_time=True)\r\n  File \"/usr/lib/python3.5/site-packages/qutebrowser/misc/sessions.py\", line 223, in save\r\n    raise SessionError(\"No data storage configured.\")\r\nqutebrowser.misc.sessions.SessionError: No data storage configured.\r\n```"},"comment":{"url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/comments/149615223","html_url":"https://github.com/The-Compiler/qutebrowser/issues/1029#issuecomment-149615223","issue_url":"https://api.github.com/repos/The-Compiler/qutebrowser/issues/1029","id":149615223,"user":{"login":"Ambrevar","id":1489143,"avatar_url":"https://avatars.githubusercontent.com/u/1489143?v=3","gravatar_id":"","url":"https://api.github.com/users/Ambrevar","html_url":"https://github.com/Ambrevar","followers_url":"https://api.github.com/users/Ambrevar/followers","following_url":"https://api.github.com/users/Ambrevar/following{/other_user}","gists_url":"https://api.github.com/users/Ambrevar/gists{/gist_id}","starred_url":"https://api.github.com/users/Ambrevar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ambrevar/subscriptions","organizations_url":"https://api.github.com/users/Ambrevar/orgs","repos_url":"https://api.github.com/users/Ambrevar/repos","events_url":"https://api.github.com/users/Ambrevar/events{/privacy}","received_events_url":"https://api.github.com/users/Ambrevar/received_events","type":"User","site_admin":false},"created_at":"2015-10-20T15:58:31Z","updated_at":"2015-10-20T15:58:31Z","body":"My bad, there is no segfault here indeed, I must have been confused something else when I collected these issues yesterday.\r\n\r\nI am not sure what makes you hesitate: your man page is very clear on the subject! :)\r\n```\r\nSet data directory (empty for no data storage).\r\n```\r\nWhen the location is empty, don't do anything. It's a great way to create temp sessions!\r\nWhen it is not writable, display a warning before exiting.\r\n\r\nShould be the same for configdir, basedir and cachedir. I haven't tried if these ones fail though.\r\n"}}