{"action":"created","issue":{"url":"https://api.github.com/repos/gem/oq-irmt-qgis/issues/127","labels_url":"https://api.github.com/repos/gem/oq-irmt-qgis/issues/127/labels{/name}","comments_url":"https://api.github.com/repos/gem/oq-irmt-qgis/issues/127/comments","events_url":"https://api.github.com/repos/gem/oq-irmt-qgis/issues/127/events","html_url":"https://github.com/gem/oq-irmt-qgis/issues/127","id":122753330,"number":127,"title":"Debug mode breaks the plugin on windows","user":{"login":"ptormene","id":350930,"avatar_url":"https://avatars.githubusercontent.com/u/350930?v=3","gravatar_id":"","url":"https://api.github.com/users/ptormene","html_url":"https://github.com/ptormene","followers_url":"https://api.github.com/users/ptormene/followers","following_url":"https://api.github.com/users/ptormene/following{/other_user}","gists_url":"https://api.github.com/users/ptormene/gists{/gist_id}","starred_url":"https://api.github.com/users/ptormene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptormene/subscriptions","organizations_url":"https://api.github.com/users/ptormene/orgs","repos_url":"https://api.github.com/users/ptormene/repos","events_url":"https://api.github.com/users/ptormene/events{/privacy}","received_events_url":"https://api.github.com/users/ptormene/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"mbernasocchi","id":233663,"avatar_url":"https://avatars.githubusercontent.com/u/233663?v=3","gravatar_id":"","url":"https://api.github.com/users/mbernasocchi","html_url":"https://github.com/mbernasocchi","followers_url":"https://api.github.com/users/mbernasocchi/followers","following_url":"https://api.github.com/users/mbernasocchi/following{/other_user}","gists_url":"https://api.github.com/users/mbernasocchi/gists{/gist_id}","starred_url":"https://api.github.com/users/mbernasocchi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbernasocchi/subscriptions","organizations_url":"https://api.github.com/users/mbernasocchi/orgs","repos_url":"https://api.github.com/users/mbernasocchi/repos","events_url":"https://api.github.com/users/mbernasocchi/events{/privacy}","received_events_url":"https://api.github.com/users/mbernasocchi/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-12-17T15:06:21Z","updated_at":"2015-12-22T10:28:52Z","closed_at":null,"body":"It looks like some logging operations that are done while in DEBUG mode break the plugin on windows. The priority of this is minor, because in normal mode everything seems to be fine and we usually debug the tool in a linux environment."},"comment":{"url":"https://api.github.com/repos/gem/oq-irmt-qgis/issues/comments/166576549","html_url":"https://github.com/gem/oq-irmt-qgis/issues/127#issuecomment-166576549","issue_url":"https://api.github.com/repos/gem/oq-irmt-qgis/issues/127","id":166576549,"user":{"login":"ptormene","id":350930,"avatar_url":"https://avatars.githubusercontent.com/u/350930?v=3","gravatar_id":"","url":"https://api.github.com/users/ptormene","html_url":"https://github.com/ptormene","followers_url":"https://api.github.com/users/ptormene/followers","following_url":"https://api.github.com/users/ptormene/following{/other_user}","gists_url":"https://api.github.com/users/ptormene/gists{/gist_id}","starred_url":"https://api.github.com/users/ptormene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptormene/subscriptions","organizations_url":"https://api.github.com/users/ptormene/orgs","repos_url":"https://api.github.com/users/ptormene/repos","events_url":"https://api.github.com/users/ptormene/events{/privacy}","received_events_url":"https://api.github.com/users/ptormene/received_events","type":"User","site_admin":false},"created_at":"2015-12-22T10:28:52Z","updated_at":"2015-12-22T10:28:52Z","body":"To reproduce the error:\r\n1. restart QGIS\r\n2. start a new project from scratch\r\n3. import socioeconomic variables from the OQ-Platform\r\n```\r\nTraceback (most recent call last):\r\n  File \"C:/Users/vbox-gem/.qgis2/python/plugins\\svir\\irmt.py\", line 428, in \r\n    project_definition))\r\n  File \"C:/Users/vbox-gem/.qgis2/python/plugins\\svir\\irmt.py\", line 511, in _data_download_successful\r\n    write_layer_suppl_info_to_qgs(layer.id(), suppl_info)\r\n  File \"C:/Users/vbox-gem/.qgis2/python/plugins\\svir\\utilities\\utils.py\", line 692, in write_layer_suppl_info_to_qgs\r\n    layer_id, QgsProject.instance().readEntry('irmt', layer_id))\r\nIOError: [Errno 9] Bad file descriptor\r\n```\r\nNOTE: If the python console is open, or if experiments are done while the console is open and then it is closed, things seem to work properly."}}