{"action":"created","issue":{"url":"https://api.github.com/repos/NAVADMC/ADSM/issues/573","labels_url":"https://api.github.com/repos/NAVADMC/ADSM/issues/573/labels{/name}","comments_url":"https://api.github.com/repos/NAVADMC/ADSM/issues/573/comments","events_url":"https://api.github.com/repos/NAVADMC/ADSM/issues/573/events","html_url":"https://github.com/NAVADMC/ADSM/issues/573","id":87101404,"number":573,"title":"Population file selection causes crash","user":{"login":"casesp","id":6764142,"avatar_url":"https://avatars.githubusercontent.com/u/6764142?v=3","gravatar_id":"","url":"https://api.github.com/users/casesp","html_url":"https://github.com/casesp","followers_url":"https://api.github.com/users/casesp/followers","following_url":"https://api.github.com/users/casesp/following{/other_user}","gists_url":"https://api.github.com/users/casesp/gists{/gist_id}","starred_url":"https://api.github.com/users/casesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casesp/subscriptions","organizations_url":"https://api.github.com/users/casesp/orgs","repos_url":"https://api.github.com/users/casesp/repos","events_url":"https://api.github.com/users/casesp/events{/privacy}","received_events_url":"https://api.github.com/users/casesp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NAVADMC/ADSM/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/NAVADMC/ADSM/labels/User%20Testing","name":"User Testing","color":"5319e7"}],"state":"open","locked":false,"assignee":{"login":"BryanHurst","id":1182469,"avatar_url":"https://avatars.githubusercontent.com/u/1182469?v=3","gravatar_id":"","url":"https://api.github.com/users/BryanHurst","html_url":"https://github.com/BryanHurst","followers_url":"https://api.github.com/users/BryanHurst/followers","following_url":"https://api.github.com/users/BryanHurst/following{/other_user}","gists_url":"https://api.github.com/users/BryanHurst/gists{/gist_id}","starred_url":"https://api.github.com/users/BryanHurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BryanHurst/subscriptions","organizations_url":"https://api.github.com/users/BryanHurst/orgs","repos_url":"https://api.github.com/users/BryanHurst/repos","events_url":"https://api.github.com/users/BryanHurst/events{/privacy}","received_events_url":"https://api.github.com/users/BryanHurst/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-06-10T20:45:37Z","updated_at":"2015-09-11T17:23:40Z","closed_at":null,"body":"While verifying a fix for issue #491, I found the following difficulty:\r\n\r\nA)  After pressing the download link next to a filename on the population form, and cancelling the download, selecting the filename to load into the population causes a program an unhandled crash.   Please note:  Sometimes this crash happens even when pressing the download link.\r\n\r\nB)  This is for 3.3.0-RC2.3 (690e4c0)\r\n\r\nC)  See attached files [not sure the content matters, but they're here anyway]\r\n[Simple. Units.csv | uploaded via ZenHub](https://files.zenhub.io/5578a050b301f747544caa30) \r\n[Simple Units.csv | uploaded via ZenHub](https://files.zenhub.io/5578a0c3b301f747544caa33)\r\n\r\nD)  See attached screen shot showing the windows error message.\r\n\r\nE)  To re-create this test:\r\n1) Go to \"Documents\\ADSM Workspace\" and remove any files named \"Simple Units.csv\". (There shouldn't be any, but in case you had one, make sure you no longer do.)\r\n\r\n2) Build a CSV import file \"Simple Units.csv\" containing the following information: (NAADSM 3.2.19 CSV valid formatting)\r\nUnitID,ProductionType,UnitSize,Lat,Lon,Status,DaysLeftInState\r\n1, \"Cattle\", 100, 40.422521, -104.947553, S, -1\r\n2, \"Cattle\", 200, 40.422521, -104.841915, S, -1\r\n\r\n3) Place this file into a directory, suggested: \"Desktop\\Temp\"\r\n\r\n4) Start ADSM.exe and select \"New\" from the menu to create an empty scenario.\r\n\r\n5) Attempt to import this file using the population form import csv functionality, by selecting the \"choose file\" button. (This will fail due to the other issue of csv import, but ignore that for now)\r\n\r\n6) Copy the \"Simple Units.csv\" file from \"Desktop\\Temp\" to \"Desktop\\NAADSM CSV\".\r\n\r\n7) Close and reopen ADSM and select \"New\" again to create a new scenario.\r\n\r\n8) Notice: You should now see \"Simple Units.csv\" listed on the population form page, and you should also see that the file has now been copied into \"Documents\\ADSM Workspace\", automatically. (Verify this is the case)\r\n\r\n9) Using the \"choose file\" button select \"Simple Units.csv\" from the directory \"Desktop\\NAADSM CSV\" and attempt to import the file. (Again, due to a previously noted bug, the import will fail, but ignore this)\r\n\r\n10) Close and restart ADSM, and select \"New\" from the menu\r\n\r\n11) You will notice that \"Simple Units.csv\" is still listed in the population form page as previous files.\r\n\r\n12) Select the download button for \"Simple Units.csv\" from the previously used files area on the population form.\r\n\r\n13)  Select cancel when the save dialog appears\r\n\r\n14)  Select the filename directly to load it into the population form.\r\n\r\n15) Observe the error message as seen in the attached screenshot.\r\n\r\n![download cancel file select crash](https://cloud.githubusercontent.com/assets/6764142/8093586/3b8039e0-0f7f-11e5-912a-49f525c70ee1.png)\r\n"},"comment":{"url":"https://api.github.com/repos/NAVADMC/ADSM/issues/comments/139606231","html_url":"https://github.com/NAVADMC/ADSM/issues/573#issuecomment-139606231","issue_url":"https://api.github.com/repos/NAVADMC/ADSM/issues/573","id":139606231,"user":{"login":"BryanHurst","id":1182469,"avatar_url":"https://avatars.githubusercontent.com/u/1182469?v=3","gravatar_id":"","url":"https://api.github.com/users/BryanHurst","html_url":"https://github.com/BryanHurst","followers_url":"https://api.github.com/users/BryanHurst/followers","following_url":"https://api.github.com/users/BryanHurst/following{/other_user}","gists_url":"https://api.github.com/users/BryanHurst/gists{/gist_id}","starred_url":"https://api.github.com/users/BryanHurst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BryanHurst/subscriptions","organizations_url":"https://api.github.com/users/BryanHurst/orgs","repos_url":"https://api.github.com/users/BryanHurst/repos","events_url":"https://api.github.com/users/BryanHurst/events{/privacy}","received_events_url":"https://api.github.com/users/BryanHurst/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T17:23:40Z","updated_at":"2015-09-11T17:23:40Z","body":"This should be fixed with the new version of the Viewer which will be in the 3.3.5.17 release."}}