{"action":"created","issue":{"url":"https://api.github.com/repos/osmandapp/Osmand/issues/3288","repository_url":"https://api.github.com/repos/osmandapp/Osmand","labels_url":"https://api.github.com/repos/osmandapp/Osmand/issues/3288/labels{/name}","comments_url":"https://api.github.com/repos/osmandapp/Osmand/issues/3288/comments","events_url":"https://api.github.com/repos/osmandapp/Osmand/issues/3288/events","html_url":"https://github.com/osmandapp/Osmand/issues/3288","id":191074425,"number":3288,"title":"osmand forgets old data directory","user":{"login":"onnokort","id":91150,"avatar_url":"https://avatars.githubusercontent.com/u/91150?v=3","gravatar_id":"","url":"https://api.github.com/users/onnokort","html_url":"https://github.com/onnokort","followers_url":"https://api.github.com/users/onnokort/followers","following_url":"https://api.github.com/users/onnokort/following{/other_user}","gists_url":"https://api.github.com/users/onnokort/gists{/gist_id}","starred_url":"https://api.github.com/users/onnokort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onnokort/subscriptions","organizations_url":"https://api.github.com/users/onnokort/orgs","repos_url":"https://api.github.com/users/onnokort/repos","events_url":"https://api.github.com/users/onnokort/events{/privacy}","received_events_url":"https://api.github.com/users/onnokort/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-22T17:34:43Z","updated_at":"2016-11-22T20:10:24Z","closed_at":null,"body":"Hi,\r\n\r\nI have a Samsung S4 with the osmand directory originally set up on the SD card, \r\n\r\n`/storage/extSdCard/osmand`\r\n\r\nFirst of all, whenever I open osmand now, I get the 'first steps' screen. When I close osmand than and reopen it, I usually get the main screen after 2-3 tries.\r\n\r\nThen, it appears that osmand loses the location of the data directory periodically, and creates a data directory 'osmand' one level below where the actual osmand data should live. This has the effect that currently, on my cellphone, osmand has the data directory path set to something like this:\r\n\r\n`/storage/extSdCard/osmand/osmand/osmand/osmand/osmand/osmand/`\r\n\r\nI didn't do that.\r\n\r\nI also have intermittent problems to write to the SD card while recording a track, so this might be related to #3105.\r\n\r\nWhen I reset the data directory in the settings screen to `/storage/extSdCard/osmand/`, osmand sometimes works properly and sometimes it doesn't (no map shows, but other functionality seems to be fine). \r\n\r\nWhenever I close it and open it again later, it will usually jump one directory level deeper, with an additional osmand/ subdir. Regardless of whether it managed to display the map correctly.\r\n\r\nThis is on Osmand 2.5.3, Samsung S4 GT-I9300 with Android version 4.3. I use offline maps."},"comment":{"url":"https://api.github.com/repos/osmandapp/Osmand/issues/comments/262351898","html_url":"https://github.com/osmandapp/Osmand/issues/3288#issuecomment-262351898","issue_url":"https://api.github.com/repos/osmandapp/Osmand/issues/3288","id":262351898,"user":{"login":"onnokort","id":91150,"avatar_url":"https://avatars.githubusercontent.com/u/91150?v=3","gravatar_id":"","url":"https://api.github.com/users/onnokort","html_url":"https://github.com/onnokort","followers_url":"https://api.github.com/users/onnokort/followers","following_url":"https://api.github.com/users/onnokort/following{/other_user}","gists_url":"https://api.github.com/users/onnokort/gists{/gist_id}","starred_url":"https://api.github.com/users/onnokort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onnokort/subscriptions","organizations_url":"https://api.github.com/users/onnokort/orgs","repos_url":"https://api.github.com/users/onnokort/repos","events_url":"https://api.github.com/users/onnokort/events{/privacy}","received_events_url":"https://api.github.com/users/onnokort/received_events","type":"User","site_admin":false},"created_at":"2016-11-22T20:10:24Z","updated_at":"2016-11-22T20:10:24Z","body":"> Can you elaborate on what occasion this first happened, was it a first installation of OsmAnd, an update, or after you changed the storage folder, etc.?\r\n\r\nI believe it started to happen with a more recent update to Osmand. I see this behavior since maybe a month or two. I didn't change the storage folder.\r\n\r\n> My first suspicion would be a defective SD card or SD file system. Does it also happen when you use /storage/emulated/0, or with another SD card?\r\n\r\nNow that I ponder about this, that might be a good point. Since I have this cellphone (5 years?), I have *occasional* issues with the SD card reinserting itself. It happens quite rarely though (maybe twice per month?), and I don't have issues with other applications saving to or reading from the card, such as the camera/gallery or my media player. Tried to clean contacts, didn't help, never figured that one out.\r\n\r\nShould I try moving the whole folder to internal storage and see whether OsmAnd still behaves like it does? Can I do that, or will something break? (I would do a simple 'mv' command after mounting the cellphone with jmtpfs).\r\n\r\nOsmAnd was not having this 'extra' folder behavior before."}}
{"actor":{"display_login":"onnokort"}}