Skip to content

app crashes when using camera #549

Open
@quitegreensky

Description

@quitegreensky

i'm testing the camera with exactly the same codes in plyer examples: i get this error :
/files/app/enter_file_name_here.jpg exposed beyond app through ClipData.Item.getUri()

here is the logs :

03-30 22:43:04.836 25662 25892 I python  :    File "/content/reminder/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/dentalreminder/kivy/base.py", line 560, in runTouchApp
03-30 22:43:04.836 25662 25892 I python  :    File "/content/reminder/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/dentalreminder/kivy/base.py", line 334, in mainloop
03-30 22:43:04.837 25662 25892 I python  :    File "/content/reminder/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/dentalreminder/kivy/base.py", line 378, in idle
03-30 22:43:04.837 25662 25892 I python  :    File "/content/reminder/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/dentalreminder/kivy/base.py", line 329, in dispatch_input
03-30 22:43:04.838 25662 25892 I python  :    File "/content/reminder/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/dentalreminder/kivy/base.py", line 235, in post_dispatch_input
03-30 22:43:04.838 25662 25892 I python  :    File "kivy/_event.pyx", line 709, in kivy._event.EventDispatcher.dispatch
03-30 22:43:04.839 25662 25892 I python  :    File "/content/reminder/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/dentalreminder/kivy/core/window/__init__.py", line 1407, in on_motion
03-30 22:43:04.840 25662 25892 I python  :    File "kivy/_event.pyx", line 709, in kivy._event.EventDispatcher.dispatch
03-30 22:43:04.840 25662 25892 I python  :    File "/content/reminder/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/dentalreminder/kivy/core/window/__init__.py", line 1423, in on_touch_down
03-30 22:43:04.841 25662 25892 I python  :    File "kivy/_event.pyx", line 709, in kivy._event.EventDispatcher.dispatch
03-30 22:43:04.841 25662 25892 I python  :    File "/content/reminder/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/dentalreminder/kivy/uix/widget.py", line 545, in on_touch_down
03-30 22:43:04.842 25662 25892 I python  :    File "kivy/_event.pyx", line 709, in kivy._event.EventDispatcher.dispatch
03-30 22:43:04.843 25662 25892 I python  :    File "/content/reminder/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/dentalreminder/kivy/uix/widget.py", line 545, in on_touch_down
03-30 22:43:04.843 25662 25892 I python  :    File "kivy/_event.pyx", line 709, in kivy._event.EventDispatcher.dispatch
03-30 22:43:04.844 25662 25892 I python  :    File "/content/reminder/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/dentalreminder/kivy/uix/behaviors/button.py", line 151, in on_touch_down
03-30 22:43:04.844 25662 25892 I python  :    File "kivy/_event.pyx", line 705, in kivy._event.EventDispatcher.dispatch
03-30 22:43:04.845 25662 25892 I python  :    File "kivy/_event.pyx", line 1248, in kivy._event.EventObservers.dispatch
03-30 22:43:04.845 25662 25892 I python  :    File "kivy/_event.pyx", line 1132, in kivy._event.EventObservers._dispatch
03-30 22:43:04.846 25662 25892 I python  :    File "/content/reminder/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/dentalreminder/kivy/lang/builder.py", line 57, in custom_callback
03-30 22:43:04.847 25662 25892 I python  :    File "/data/data/org.dentalreminder.dentalreminder/files/app/camerademo.kv", line 21, in <module>
03-30 22:43:04.847 25662 25892 I python  :      on_press: root.do_capture()
03-30 22:43:04.848 25662 25892 I python  :    File "/content/reminder/.buildozer/android/app/main.py", line 35, in do_capture
03-30 22:43:04.848 25662 25892 I python  :    File "/content/reminder/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/dentalreminder/plyer/facades/camera.py", line 64, in take_picture
03-30 22:43:04.849 25662 25892 I python  :    File "/content/reminder/.buildozer/android/platform/build-armeabi-v7a/build/python-installs/dentalreminder/plyer/platforms/android/camera.py", line 26, in _take_picture
03-30 22:43:04.850 25662 25892 I python  :    File "jnius/jnius_export_class.pxi", line 1044, in jnius.jnius.JavaMultipleMethod.__call__
03-30 22:43:04.850 25662 25892 I python  :    File "jnius/jnius_export_class.pxi", line 766, in jnius.jnius.JavaMethod.__call__
03-30 22:43:04.851 25662 25892 I python  :    File "jnius/jnius_export_class.pxi", line 860, in jnius.jnius.JavaMethod.call_method
03-30 22:43:04.851 25662 25892 I python  :    File "jnius/jnius_utils.pxi", line 91, in jnius.jnius.check_exception
03-30 22:43:04.852 25662 25892 I python  :  jnius.jnius.JavaException: JVM exception occurred: file:///data/data/org.dentalreminder.dentalreminder/files/app/enter_file_name_here.jpg exposed beyond app through ClipData.Item.getUri()
03-30 22:43:04.852 25662 25892 I python  : Python for android ended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions