{"action":"created","issue":{"url":"https://api.github.com/repos/MikeTheWatchGuy/PySimpleGUI/issues/562","repository_url":"https://api.github.com/repos/MikeTheWatchGuy/PySimpleGUI","labels_url":"https://api.github.com/repos/MikeTheWatchGuy/PySimpleGUI/issues/562/labels{/name}","comments_url":"https://api.github.com/repos/MikeTheWatchGuy/PySimpleGUI/issues/562/comments","events_url":"https://api.github.com/repos/MikeTheWatchGuy/PySimpleGUI/issues/562/events","html_url":"https://github.com/MikeTheWatchGuy/PySimpleGUI/issues/562","id":374449569,"node_id":"MDU6SXNzdWUzNzQ0NDk1Njk=","number":562,"title":"File/Folder Browse Button crashes python Mac","user":{"login":"drdobbins","id":31011287,"node_id":"MDQ6VXNlcjMxMDExMjg3","avatar_url":"https://avatars1.githubusercontent.com/u/31011287?v=4","gravatar_id":"","url":"https://api.github.com/users/drdobbins","html_url":"https://github.com/drdobbins","followers_url":"https://api.github.com/users/drdobbins/followers","following_url":"https://api.github.com/users/drdobbins/following{/other_user}","gists_url":"https://api.github.com/users/drdobbins/gists{/gist_id}","starred_url":"https://api.github.com/users/drdobbins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drdobbins/subscriptions","organizations_url":"https://api.github.com/users/drdobbins/orgs","repos_url":"https://api.github.com/users/drdobbins/repos","events_url":"https://api.github.com/users/drdobbins/events{/privacy}","received_events_url":"https://api.github.com/users/drdobbins/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-26T16:05:39Z","updated_at":"2018-10-26T18:12:25Z","closed_at":null,"author_association":"NONE","body":"Not sure as to why this is happening. When I run this code directly from the docs the GUI appears fine, but as soon as you click the browse button it crashes the app and python as a whole. \r\n\r\n`text = sg.PopupGetFile('Please enter a file name')      \r\nsg.Popup('Results', 'The value returned from PopupGetFile', text) `\r\n\r\nThis is the terminal output:\r\n\r\n2018-10-25 20:49:11.367 Python[83415:7346512] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'File types array cannot be empty'\r\n*** First throw call stack:\r\n(\r\n\t0   CoreFoundation                      0x00007fff2f06143d __exceptionPreprocess + 256\r\n\t1   libobjc.A.dylib                     0x00007fff5af6e720 objc_exception_throw + 48\r\n\t2   CoreFoundation                      0x00007fff2f06126f +[NSException raise:format:] + 201\r\n\t3   AppKit                              0x00007fff2cc7c1f3 -[NSSavePanel setAllowedFileTypes:] + 154\r\n\t4   libtk8.6.dylib                      0x000000010cc37167 Tk_GetOpenFileObjCmd + 1945\r\n\t5   libtcl8.6.dylib                     0x000000010ca316dc TclNRRunCallbacks + 80\r\n\t6   _tkinter.cpython-37m-darwin.so      0x000000010ca0f1f9 Tkapp_Call + 585\r\n\t7   Python                              0x000000010c420df3 PyCFunction_Call + 355\r\n\t8   Python                              0x000000010c4dd898 _PyEval_EvalFrameDefault + 26360\r\n\t9   Python                              0x000000010c4e0f56 _PyEval_EvalCodeWithName + 2422\r\n\t10  Python                              0x000000010c420a61 _PyFunction_FastCallKeywords + 257\r\n\t11  Python                              0x000000010c4e0432 call_function + 738\r\n\t12  Python                              0x000000010c4dd3ec _PyEval_EvalFrameDefault + 25164\r\n\t13  Python                              0x000000010c4e0f56 _PyEval_EvalCodeWithName + 2422\r\n\t14  Python                              0x000000010c420a61 _PyFunction_FastCallKeywords + 257\r\n\t15  Python                              0x000000010c4e0432 call_function + 738\r\n\t16  Python                              0x000000010c4dd54d _PyEval_EvalFrameDefault + 25517\r\n\t17  Python                              0x000000010c420ed0 function_code_fastcall + 128\r\n\t18  Python                              0x000000010c4204c4 _PyFunction_FastCallDict + 148\r\n\t19  Python                              0x000000010c42190f _PyObject_Call_Prepend + 143\r\n\t20  Python                              0x000000010c420bc7 PyObject_Call + 135\r\n\t21  Python                              0x000000010c4dd717 _PyEval_EvalFrameDefault + 25975\r\n\t22  Python                              0x000000010c4e0f56 _PyEval_EvalCodeWithName + 2422\r\n\t23  Python                              0x000000010c42063b _PyFunction_FastCallDict + 523\r\n\t24  Python                              0x000000010c42190f _PyObject_Call_Prepend + 143\r\n\t25  Python                              0x000000010c420bc7 PyObject_Call + 135\r\n\t26  _tkinter.cpython-37m-darwin.so      0x000000010ca1173c PythonCmd + 204\r\n\t27  libtcl8.6.dylib                     0x000000010ca30202 TclInvokeStringCommand + 124\r\n\t28  libtcl8.6.dylib                     0x000000010ca316dc TclNRRunCallbacks + 80\r\n\t29  libtk8.6.dylib                      0x000000010cbb2965 ButtonWidgetObjCmd + 922\r\n\t30  libtcl8.6.dylib                     0x000000010ca316dc TclNRRunCallbacks + 80\r\n\t31  libtcl8.6.dylib                     0x000000010ca3293a TclEvalEx + 1953\r\n\t32  libtcl8.6.dylib                     0x000000010ca32193 Tcl_EvalEx + 26\r\n\t33  libtk8.6.dylib                      0x000000010cb8739f Tk_BindEvent + 3956\r\n\t34  libtk8.6.dylib                      0x000000010cb8cb6d TkBindEventProc + 347\r\n\t35  libtk8.6.dylib                      0x000000010cb94636 Tk_HandleEvent + 1108\r\n\t36  libtk8.6.dylib                      0x000000010cb94b5f WindowEventProc + 96\r\n\t37  libtcl8.6.dylib                     0x000000010cae0a65 Tcl_ServiceEvent + 140\r\n\t38  libtcl8.6.dylib                     0x000000010cae0d10 Tcl_DoOneEvent + 326\r\n\t39  _tkinter.cpython-37m-darwin.so      0x000000010ca1101d _tkinter_tkapp_mainloop + 269\r\n\t40  Python                              0x000000010c42152e _PyMethodDef_RawFastCallKeywords + 430\r\n\t41  Python                              0x000000010c427192 _PyMethodDescr_FastCallKeywords + 82\r\n\t42  Python                              0x000000010c4e045c call_function + 780\r\n\t43  Python                              0x000000010c4dd3ec _PyEval_EvalFrameDefault + 25164\r\n\t44  Python                              0x000000010c4e0f56 _PyEval_EvalCodeWithName + 2422\r\n\t45  Python                              0x000000010c420a61 _PyFunction_FastCallKeywords + 257\r\n\t46  Python                              0x000000010c4e0432 call_function + 738\r\n\t47  Python                              0x000000010c4dd406 _PyEval_EvalFrameDefault + 25190\r\n\t48  Python                              0x000000010c420ed0 function_code_fastcall + 128\r\n\t49  Python                              0x000000010c4e0432 call_function + 738\r\n\t50  Python                              0x000000010c4dd4a7 _PyEval_EvalFrameDefault + 25351\r\n\t51  Python                              0x000000010c4e0f56 _PyEval_EvalCodeWithName + 2422\r\n\t52  Python                              0x000000010c420a61 _PyFunction_FastCallKeywords + 257\r\n\t53  Python                              0x000000010c4e0432 call_function + 738\r\n\t54  Python                              0x000000010c4dd3ec _PyEval_EvalFrameDefault + 25164\r\n\t55  Python                              0x000000010c4e0f56 _PyEval_EvalCodeWithName + 2422\r\n\t56  Python                              0x000000010c420a61 _PyFunction_FastCallKeywords + 257\r\n\t57  Python                              0x000000010c4e0432 call_function + 738\r\n\t58  Python                              0x000000010c4dd3ec _PyEval_EvalFrameDefault + 25164\r\n\t59  Python                              0x000000010c4e0f56 _PyEval_EvalCodeWithName + 2422\r\n\t60  Python                              0x000000010c420a61 _PyFunction_FastCallKeywords + 257\r\n\t61  Python                              0x000000010c4e0432 call_function + 738\r\n\t62  Python                              0x000000010c4dd406 _PyEval_EvalFrameDefault + 25190\r\n\t63  Python                              0x000000010c4e0f56 _PyEval_EvalCodeWithName + 2422\r\n\t64  Python                              0x000000010c4d70c4 PyEval_EvalCode + 100\r\n\t65  Python                              0x000000010c514591 PyRun_FileExFlags + 209\r\n\t66  Python                              0x000000010c513e0a PyRun_SimpleFileExFlags + 890\r\n\t67  Python                              0x000000010c53219b pymain_main + 6827\r\n\t68  Python                              0x000000010c5326ea _Py_UnixMain + 58\r\n\t69  libdyld.dylib                       0x00007fff5c03c085 start + 1\r\n)\r\nlibc++abi.dylib: terminating with uncaught exception of type NSException\r\nAbort trap: 6\r\n"},"comment":{"url":"https://api.github.com/repos/MikeTheWatchGuy/PySimpleGUI/issues/comments/433497112","html_url":"https://github.com/MikeTheWatchGuy/PySimpleGUI/issues/562#issuecomment-433497112","issue_url":"https://api.github.com/repos/MikeTheWatchGuy/PySimpleGUI/issues/562","id":433497112,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzQ5NzExMg==","user":{"login":"MikeTheWatchGuy","id":13696193,"node_id":"MDQ6VXNlcjEzNjk2MTkz","avatar_url":"https://avatars1.githubusercontent.com/u/13696193?v=4","gravatar_id":"","url":"https://api.github.com/users/MikeTheWatchGuy","html_url":"https://github.com/MikeTheWatchGuy","followers_url":"https://api.github.com/users/MikeTheWatchGuy/followers","following_url":"https://api.github.com/users/MikeTheWatchGuy/following{/other_user}","gists_url":"https://api.github.com/users/MikeTheWatchGuy/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeTheWatchGuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeTheWatchGuy/subscriptions","organizations_url":"https://api.github.com/users/MikeTheWatchGuy/orgs","repos_url":"https://api.github.com/users/MikeTheWatchGuy/repos","events_url":"https://api.github.com/users/MikeTheWatchGuy/events{/privacy}","received_events_url":"https://api.github.com/users/MikeTheWatchGuy/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T18:12:25Z","updated_at":"2018-10-26T18:12:25Z","author_association":"OWNER","body":"Did you try running with the change I suggested?\r\ntext = sg.PopupGetFile('Please enter a file name', file_types=((\"ALL Files\", \".\"),))"}}
{"actor":{"display_login":"MikeTheWatchGuy"}}