{"action":"created","issue":{"url":"https://api.github.com/repos/CypherpunkArmory/UserLAnd/issues/208","repository_url":"https://api.github.com/repos/CypherpunkArmory/UserLAnd","labels_url":"https://api.github.com/repos/CypherpunkArmory/UserLAnd/issues/208/labels{/name}","comments_url":"https://api.github.com/repos/CypherpunkArmory/UserLAnd/issues/208/comments","events_url":"https://api.github.com/repos/CypherpunkArmory/UserLAnd/issues/208/events","html_url":"https://github.com/CypherpunkArmory/UserLAnd/issues/208","id":354847874,"node_id":"MDU6SXNzdWUzNTQ4NDc4NzQ=","number":208,"title":"Crashing when SD Card is chosen as the storage location","user":{"login":"th3or14","id":37025359,"node_id":"MDQ6VXNlcjM3MDI1MzU5","avatar_url":"https://avatars2.githubusercontent.com/u/37025359?v=4","gravatar_id":"","url":"https://api.github.com/users/th3or14","html_url":"https://github.com/th3or14","followers_url":"https://api.github.com/users/th3or14/followers","following_url":"https://api.github.com/users/th3or14/following{/other_user}","gists_url":"https://api.github.com/users/th3or14/gists{/gist_id}","starred_url":"https://api.github.com/users/th3or14/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/th3or14/subscriptions","organizations_url":"https://api.github.com/users/th3or14/orgs","repos_url":"https://api.github.com/users/th3or14/repos","events_url":"https://api.github.com/users/th3or14/events{/privacy}","received_events_url":"https://api.github.com/users/th3or14/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-08-28T18:21:58Z","updated_at":"2018-08-29T22:14:51Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nApplication crashes after it tries to download required assets when SD Card is chosen as the storage location. I'm not sure if it's the same as #160. A workaround I've found out is to choose Device as storage location (Storage section in Android settings).\r\n\r\n**To Reproduce**\r\nMake sure SD Card is chosen as the storage location. In the application create and start a session (e.g., Debian over SSH). Wait for ten minutes (more or less) of `0 out of 17 complete`. There are several background notifications of downloading something, but status is still 0. At some point display shows a progress, one by one. (I suppose downloading terminates after some sort of timeout. Also I checked Download directories, both SD and Device, no new files there.) Finally the application crashes. Debug output from Android Studio:\r\n```\r\nE/AndroidRuntime: FATAL EXCEPTION: ForkJoinPool.commonPool-worker-3\r\n                  Process: tech.ula, PID: 6059\r\n                  kotlin.io.NoSuchFileException: /data/user/0/tech.ula/files/debian: The source file doesn't exist.\r\n                      at kotlin.io.FilesKt__UtilsKt.copyRecursively(Utils.kt:266)\r\n                      at kotlin.io.FilesKt__UtilsKt.copyRecursively$default(Utils.kt:263)\r\n                      at tech.ula.utils.FilesystemUtility.copyDistributionAssetsToFilesystem(FilesystemUtility.kt:25)\r\n                      at tech.ula.utils.SessionController.extractFilesystemIfNeeded(SessionController.kt:83)\r\n                      at tech.ula.ServerService$startSession$1$wasExtractionSuccessful$1.doResume(ServerService.kt:195)\r\n                      at tech.ula.ServerService$startSession$1$wasExtractionSuccessful$1.invoke(ServerService.kt)\r\n                      at tech.ula.ServerService$startSession$1$wasExtractionSuccessful$1.invoke(ServerService.kt:24)\r\n                      at tech.ula.utils.AsyncKt$async$2.doResume(Async.kt:12)\r\n                      at kotlin.coroutines.experimental.jvm.internal.CoroutineImpl.resume(CoroutineImpl.kt:42)\r\n                      at kotlinx.coroutines.experimental.DispatchedTask$DefaultImpls.run(Dispatched.kt:161)\r\n                      at kotlinx.coroutines.experimental.DispatchedContinuation.run(Dispatched.kt:25)\r\n                      at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1383)\r\n                      at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:256)\r\n                      at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1123)\r\n                      at java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1961)\r\n                      at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1909)\r\n                      at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:128)\r\n```\r\n\r\n**Expected behavior**\r\nI can successfully create and start a session if I choose Device as storage location. Also in that case assets downloading progress is relatively instant and new files are visible in Download directory.\r\n\r\n**Device Information**\r\nDevice: Huawei MediaPad M3\r\nAndroid Version: Nougat, 7.0\r\nUserLAnd Version 0.2.5 (and debugged current staging branch also)\r\n\r\n**Additional context**\r\nWell, if it's the same as #160 then I just want to state a possible solution for an unobvious/unknown crashing."},"comment":{"url":"https://api.github.com/repos/CypherpunkArmory/UserLAnd/issues/comments/417124241","html_url":"https://github.com/CypherpunkArmory/UserLAnd/issues/208#issuecomment-417124241","issue_url":"https://api.github.com/repos/CypherpunkArmory/UserLAnd/issues/208","id":417124241,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzEyNDI0MQ==","user":{"login":"MatthewTighe","id":10427470,"node_id":"MDQ6VXNlcjEwNDI3NDcw","avatar_url":"https://avatars1.githubusercontent.com/u/10427470?v=4","gravatar_id":"","url":"https://api.github.com/users/MatthewTighe","html_url":"https://github.com/MatthewTighe","followers_url":"https://api.github.com/users/MatthewTighe/followers","following_url":"https://api.github.com/users/MatthewTighe/following{/other_user}","gists_url":"https://api.github.com/users/MatthewTighe/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthewTighe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthewTighe/subscriptions","organizations_url":"https://api.github.com/users/MatthewTighe/orgs","repos_url":"https://api.github.com/users/MatthewTighe/repos","events_url":"https://api.github.com/users/MatthewTighe/events{/privacy}","received_events_url":"https://api.github.com/users/MatthewTighe/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T22:14:51Z","updated_at":"2018-08-29T22:14:51Z","author_association":"COLLABORATOR","body":"@th3or14 Just to clarify, `I/System.out: this.filesDir.path: /data/user/0/tech.ula/files` is while installed on the sdcard not while installed on internal storage?"}}
{"actor":{"display_login":"MatthewTighe"}}