-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Filechooser on mac: using path, crashes python #524
Comments
I ran into this issue, where if I specified |
Same here. This crashes here:
Please note that I believe there's another bug on line 90 and 92 where it uses If this bug is fixed, it will still not fix the |
The weird thing is that it's an |
If you figure it out a PR is always welcome! |
I'm still digging but it's likely to be an issue on https://github.com/kivy/pyobjus or even below... :-/ I tried both with and the result is exactly the same. So I'd imagine it has not been fixed yet. |
This minimal code reproduces the crash: from pyobjus import autoclass, objc_arr, objc_str
from pyobjus.dylib_manager import load_framework, INCLUDE
load_framework(INCLUDE.AppKit)
NSOpenPanel = autoclass('NSOpenPanel')
panel = NSOpenPanel.openPanel()
ftypes_arr = objc_arr([objc_str('jpg')])
panel.setAllowedFileTypes_(ftypes_arr) If I do a |
Found the issue! |
The thing was that And the list was given as an argument. So, instead of having |
MacOS 10.14.6
using the path parameter causes python to crash (not just the app).
Using the use_extensions with path causes an uncaught exception.
Test case:
The text was updated successfully, but these errors were encountered: