{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom-shell/issues/875","labels_url":"https://api.github.com/repos/atom/atom-shell/issues/875/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom-shell/issues/875/comments","events_url":"https://api.github.com/repos/atom/atom-shell/issues/875/events","html_url":"https://github.com/atom/atom-shell/issues/875","id":50443899,"number":875,"title":"showOpenDialog(...) causing crash [Atom Shell v0.19.5/OSX Yosemite]","user":{"login":"hij1nx","id":136109,"avatar_url":"https://avatars.githubusercontent.com/u/136109?v=3","gravatar_id":"","url":"https://api.github.com/users/hij1nx","html_url":"https://github.com/hij1nx","followers_url":"https://api.github.com/users/hij1nx/followers","following_url":"https://api.github.com/users/hij1nx/following{/other_user}","gists_url":"https://api.github.com/users/hij1nx/gists{/gist_id}","starred_url":"https://api.github.com/users/hij1nx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hij1nx/subscriptions","organizations_url":"https://api.github.com/users/hij1nx/orgs","repos_url":"https://api.github.com/users/hij1nx/repos","events_url":"https://api.github.com/users/hij1nx/events{/privacy}","received_events_url":"https://api.github.com/users/hij1nx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom-shell/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/atom/atom-shell/labels/mac","name":"mac","color":"fad8c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2014-11-30T01:58:19Z","updated_at":"2015-01-25T15:28:37Z","closed_at":"2015-01-05T21:42:59Z","body":"The following code, after the app emits `ready`...\r\n```js\r\nmainWindow = new BrowserWindow({ width: 900, height: 600, 'min-width': 900, 'min-height': 600, frame: false });\r\nrequire('dialog').showOpenDialog(mainWindow, { title: 'Select a Directory', defaultPath: '/', properties: ['openDirectory'] }, function(p) {\r\n  console.log(p);\r\n});\r\n```\r\n\r\n...causes this...\r\n```\r\n2014-11-30 02:52:50.209 Atom[70618:11033160] An uncaught exception was raised\r\n2014-11-30 02:52:50.209 Atom[70618:11033160] *** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt to insert nil object from objects[0]\r\n2014-11-30 02:52:50.209 Atom[70618:11033160] (\r\n        0   CoreFoundation                      0x00007fff8dea9bec __exceptionPreprocess + 172\r\n        1   libobjc.A.dylib                     0x00007fff8f2bb6de objc_exception_throw + 43\r\n        2   CoreFoundation                      0x00007fff8dd96e3f -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 383\r\n        3   CoreFoundation                      0x00007fff8ddacb2b +[NSDictionary dictionaryWithObjects:forKeys:count:] + 59\r\n        4   AppKit                              0x00007fff834dedab __54+[NSExtension(NSExtension_AppKitAdditions) initialize]_block_invoke_2 + 254\r\n        5   libextension.dylib                  0x00007fff8e9af469 __64+[NSExtension beginMatchingExtensionsWithAttributes:completion:]_block_invoke_2 + 762\r\n        6   libsystem_trace.dylib               0x00007fff8f8ffcd7 _os_activity_initiate + 75\r\n        7   libextension.dylib                  0x00007fff8e9af166 __64+[NSExtension beginMatchingExtensionsWithAttributes:completion:]_block_invoke + 142\r\n        8   PlugInKit                           0x00007fff85527167 __60-[PKDiscoveryDriver performWithPreviousResults:forceNotify:]_block_invoke + 417\r\n        9   PlugInKit                           0x00007fff8552791a __51-[PKHost discoverPlugInsForAttributes:flags:found:]_block_invoke + 134\r\n        10  libxpc.dylib                        0x00007fff8eb6fd5c _xpc_connection_reply_callout + 47\r\n        11  libxpc.dylib                        0x00007fff8eb6fce8 _xpc_connection_call_reply + 36\r\n        12  libdispatch.dylib                   0x00007fff85460d53 _dispatch_client_callout + 8\r\n        13  libdispatch.dylib                   0x00007fff854643f7 _dispatch_queue_drain + 1100\r\n        14  libdispatch.dylib                   0x00007fff85465f4c _dispatch_queue_invoke + 202\r\n        15  libdispatch.dylib                   0x00007fff8546378b _dispatch_root_queue_drain + 454\r\n        16  libdispatch.dylib                   0x00007fff85472002 _dispatch_worker_thread3 + 91\r\n        17  libsystem_pthread.dylib             0x00007fff8942e6cb _pthread_wqthread + 729\r\n        18  libsystem_pthread.dylib             0x00007fff8942c4a1 start_wqthread + 13\r\n)\r\n2014-11-30 02:52:50.211 Atom[70618:11033160] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]: attempt t\r\no insert nil object from objects[0]'\r\n*** First throw call stack:\r\n(\r\n        0   CoreFoundation                      0x00007fff8dea9bec __exceptionPreprocess + 172\r\n        1   libobjc.A.dylib                     0x00007fff8f2bb6de objc_exception_throw + 43\r\n        2   CoreFoundation                      0x00007fff8dd96e3f -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 383\r\n        3   CoreFoundation                      0x00007fff8ddacb2b +[NSDictionary dictionaryWithObjects:forKeys:count:] + 59\r\n        4   AppKit                              0x00007fff834dedab __54+[NSExtension(NSExtension_AppKitAdditions) initialize]_block_invoke_2 + 254\r\n        5   libextension.dylib                  0x00007fff8e9af469 __64+[NSExtension beginMatchingExtensionsWithAttributes:completion:]_block_invoke_2 + 762\r\n        6   libsystem_trace.dylib               0x00007fff8f8ffcd7 _os_activity_initiate + 75\r\n        7   libextension.dylib                  0x00007fff8e9af166 __64+[NSExtension beginMatchingExtensionsWithAttributes:completion:]_block_invoke + 142\r\n        8   PlugInKit                           0x00007fff85527167 __60-[PKDiscoveryDriver performWithPreviousResults:forceNotify:]_block_invoke + 417\r\n        9   PlugInKit                           0x00007fff8552791a __51-[PKHost discoverPlugInsForAttributes:flags:found:]_block_invoke + 134\r\n        10  libxpc.dylib                        0x00007fff8eb6fd5c _xpc_connection_reply_callout + 47\r\n        11  libxpc.dylib                        0x00007fff8eb6fce8 _xpc_connection_call_reply + 36\r\n        12  libdispatch.dylib                   0x00007fff85460d53 _dispatch_client_callout + 8\r\n        13  libdispatch.dylib                   0x00007fff854643f7 _dispatch_queue_drain + 1100\r\n        14  libdispatch.dylib                   0x00007fff85465f4c _dispatch_queue_invoke + 202\r\n        15  libdispatch.dylib                   0x00007fff8546378b _dispatch_root_queue_drain + 454\r\n        16  libdispatch.dylib                   0x00007fff85472002 _dispatch_worker_thread3 + 91\r\n        17  libsystem_pthread.dylib             0x00007fff8942e6cb _pthread_wqthread + 729\r\n        18  libsystem_pthread.dylib             0x00007fff8942c4a1 start_wqthread + 13\r\n)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\n/usr/local/bin/atom-shell: line 2: 70618 Abort trap: 6           \"/usr/local/lib/node_modules/atom-shell/dist/Atom.app/Contents/MacOS/Atom\" \"$@\"\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/atom/atom-shell/issues/comments/71377312","html_url":"https://github.com/atom/atom-shell/issues/875#issuecomment-71377312","issue_url":"https://api.github.com/repos/atom/atom-shell/issues/875","id":71377312,"user":{"login":"hij1nx","id":136109,"avatar_url":"https://avatars.githubusercontent.com/u/136109?v=3","gravatar_id":"","url":"https://api.github.com/users/hij1nx","html_url":"https://github.com/hij1nx","followers_url":"https://api.github.com/users/hij1nx/followers","following_url":"https://api.github.com/users/hij1nx/following{/other_user}","gists_url":"https://api.github.com/users/hij1nx/gists{/gist_id}","starred_url":"https://api.github.com/users/hij1nx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hij1nx/subscriptions","organizations_url":"https://api.github.com/users/hij1nx/orgs","repos_url":"https://api.github.com/users/hij1nx/repos","events_url":"https://api.github.com/users/hij1nx/events{/privacy}","received_events_url":"https://api.github.com/users/hij1nx/received_events","type":"User","site_admin":false},"created_at":"2015-01-25T15:28:37Z","updated_at":"2015-01-25T15:28:37Z","body":"Sorry I forgot to get back to you, it works fine on the latest version! :+1: "}}