Skip to content
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.open_file has started crashing on IOS, was working perfectly before #585

Open
temitayoadefemimatthew opened this issue Sep 24, 2020 · 2 comments

Comments

@temitayoadefemimatthew
Copy link

filechooser.open_file crashes on IOS, was working fine before. here is the traceback

File "/Users/temitayoadefemi/kivy-ios/merri-ios/YourApp/main.py", line 8006, in <module>
   File "/private/var/containers/Bundle/Application/88A2B7FF-044D-4FFB-ACA7-518B0FEF6F3C/merri.app/lib/python3.8/site-packages/kivy/app.py", line 950, in run
     runTouchApp()
   File "/private/var/containers/Bundle/Application/88A2B7FF-044D-4FFB-ACA7-518B0FEF6F3C/merri.app/lib/python3.8/site-packages/kivy/base.py", line 560, in runTouchApp
     EventLoop.mainloop()
   File "/private/var/containers/Bundle/Application/88A2B7FF-044D-4FFB-ACA7-518B0FEF6F3C/merri.app/lib/python3.8/site-packages/kivy/base.py", line 334, in mainloop
     self.idle()
   File "/private/var/containers/Bundle/Application/88A2B7FF-044D-4FFB-ACA7-518B0FEF6F3C/merri.app/lib/python3.8/site-packages/kivy/base.py", line 378, in idle
     self.dispatch_input()
   File "/private/var/containers/Bundle/Application/88A2B7FF-044D-4FFB-ACA7-518B0FEF6F3C/merri.app/lib/python3.8/site-packages/kivy/base.py", line 329, in dispatch_input
     post_dispatch_input(*pop(0))
   File "/private/var/containers/Bundle/Application/88A2B7FF-044D-4FFB-ACA7-518B0FEF6F3C/merri.app/lib/python3.8/site-packages/kivy/base.py", line 295, in post_dispatch_input
     wid.dispatch('on_touch_up', me)
   File "kivy/_event.pyx", line 709, in kivy._event.EventDispatcher.dispatch
   File "/private/var/containers/Bundle/Application/88A2B7FF-044D-4FFB-ACA7-518B0FEF6F3C/merri.app/lib/python3.8/site-packages/kivy/uix/behaviors/button.py", line 179, in on_touch_up
     self.dispatch('on_release')
   File "kivy/_event.pyx", line 705, in kivy._event.EventDispatcher.dispatch
   File "kivy/_event.pyx", line 1248, in kivy._event.EventObservers.dispatch
   File "kivy/_event.pyx", line 1172, in kivy._event.EventObservers._dispatch
   File "/Users/temitayoadefemi/kivy-ios/merri-ios/YourApp/main.py", line 3946, in uploadid
   File "/private/var/containers/Bundle/Application/88A2B7FF-044D-4FFB-ACA7-518B0FEF6F3C/merri.app/lib/python3.8/site-packages/plyer/facades/filechooser.py", line 50, in open_file
     return self._file_selection_dialog(mode="open", *args, **kwargs)
   File "/private/var/containers/Bundle/Application/88A2B7FF-044D-4FFB-ACA7-518B0FEF6F3C/merri.app/lib/python3.8/site-packages/plyer/platforms/ios/filechooser.py", line 37, in _file_selection_dialog
     self._open()
   File "/private/var/containers/Bundle/Application/88A2B7FF-044D-4FFB-ACA7-518B0FEF6F3C/merri.app/lib/python3.8/site-packages/plyer/platforms/ios/filechooser.py", line 59, in _open
     vc = UIApplication.sharedApplication().keyWindow.rootViewController()
   File "pyobjus/pyobjus.pyx", line 488, in pyobjus.pyobjus.ObjcMethod.__call__
   File "pyobjus/pyobjus_conversions.pxi", line 240, in pyobjus.pyobjus.convert_cy_ret_to_py
   File "pyobjus/pyobjus_conversions.pxi", line 181, in pyobjus.pyobjus.convert_to_cy_cls_instance
   File "pyobjus/pyobjus.pyx", line 724, in pyobjus.pyobjus.autoclass
   File "pyobjus/pyobjus.pyx", line 527, in pyobjus.pyobjus.class_get_methods
   File "pyobjus/pyobjus.pyx", line 519, in pyobjus.pyobjus.objc_method_to_py
   File "pyobjus/pyobjus.pyx", line 239, in pyobjus.pyobjus.ObjcMethod.__init__
   File "pyobjus/type_enc.pxi", line 13, in pyobjus.pyobjus.parse_signature
   File "pyobjus/type_enc.pxi", line 2, in pyobjus.pyobjus.seperate_encoding
 IndexError: list index out of range
2020-09-24 09:36:32.028193+0100 merri[5440:474223] Application quit abnormally!
2020-09-24 09:36:33.140951+0100 merri[5440:474223] Leaving

@Xachman
Copy link

Xachman commented Feb 26, 2021

Yeah I also have had a lot of trouble getting it to work on macOS seems like plyer needs to be updated for a new pyobjus version probably.

@brentpicasso
Copy link
Contributor

I do not currently see this reproducing on my end. Perhaps close as being too old?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants