{"action":"created","issue":{"url":"https://api.github.com/repos/kivy/kivy/issues/2831","labels_url":"https://api.github.com/repos/kivy/kivy/issues/2831/labels{/name}","comments_url":"https://api.github.com/repos/kivy/kivy/issues/2831/comments","events_url":"https://api.github.com/repos/kivy/kivy/issues/2831/events","html_url":"https://github.com/kivy/kivy/issues/2831","id":53684823,"number":2831,"title":"Camera not working on android [$15]","user":{"login":"nesergen","id":2600562,"avatar_url":"https://avatars.githubusercontent.com/u/2600562?v=3","gravatar_id":"","url":"https://api.github.com/users/nesergen","html_url":"https://github.com/nesergen","followers_url":"https://api.github.com/users/nesergen/followers","following_url":"https://api.github.com/users/nesergen/following{/other_user}","gists_url":"https://api.github.com/users/nesergen/gists{/gist_id}","starred_url":"https://api.github.com/users/nesergen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nesergen/subscriptions","organizations_url":"https://api.github.com/users/nesergen/orgs","repos_url":"https://api.github.com/users/nesergen/repos","events_url":"https://api.github.com/users/nesergen/events{/privacy}","received_events_url":"https://api.github.com/users/nesergen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kivy/kivy/labels/bounty","name":"bounty","color":"129e5e"},{"url":"https://api.github.com/repos/kivy/kivy/labels/feature","name":"feature","color":"bfd4f2"},{"url":"https://api.github.com/repos/kivy/kivy/labels/platform-android","name":"platform-android","color":"000000"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-07T21:32:01Z","updated_at":"2015-04-05T16:00:44Z","closed_at":null,"body":"When I start my programm on TabDevice the Camera widget shows the white screen. On DescktopComputer the Camera widget works perfect. \r\n\r\nMy code:\r\n```\r\nclass MyApp(App):\r\n\t\r\n\tdef build(self):\r\n\t\tparent = Widget()\r\n\r\n\t\tlayout = GridLayout(cols=1, rows =3, spacing=2, size=(800,800), halign=\"left\")\r\n\t\tparent.add_widget(layout)\r\n\r\n\t\tcam = Camera(play= True)\r\n\r\n\t\tlayout.add_widget(cam)\r\n\r\n\t\treturn parent\r\n\r\nif __name__ == '__main__':\r\n\tMyApp().run()\r\n```\r\n\r\nErrorLog:\r\n```\r\n[INFO              ] Logger: Record log in /storage/emulated/0/kivy/experim/.kivy/logs/kivy_15-01-08_0.txt\r\n[INFO              ] Kivy v1.8.0\r\n[INFO              ] Factory: 157 symbols loaded\r\n[DEBUG             ] Cache: register <kv.lang> with limit=None, timeout=Nones\r\n[DEBUG             ] Cache: register <kv.image> with limit=None, timeout=60s\r\n[DEBUG             ] Cache: register <kv.atlas> with limit=None, timeout=Nones\r\n[WARNING           ] stderr: /data/data/org.kivy.pygame/files/lib/python2.7/site-packages/kivy/core/image/img_pygame.py:12: RuntimeWarning: import cdrom: No module named cdrom\r\n[WARNING           ] stderr: (ImportError: No module named cdrom)\r\n[INFO              ] Image: Providers: img_tex, img_dds, img_pygame, img_pil, img_gif \r\n[DEBUG             ] Cache: register <kv.texture> with limit=1000, timeout=60s\r\n[DEBUG             ] Cache: register <kv.shader> with limit=1000, timeout=3600s\r\n[INFO              ] Text: Provider: pygame\r\n[DEBUG             ] Cache: register <kv.loader> with limit=500, timeout=60s\r\n[INFO              ] Loader: using a thread pool of 2 workers\r\n[DEBUG             ] Cache: register <textinput.label> with limit=None, timeout=60.0s\r\n[DEBUG             ] Cache: register <textinput.width> with limit=None, timeout=60.0s\r\n[DEBUG             ] Camera: Ignored <pygst> (import error)\r\n[DEBUG             ] Camera: Ignored <opencv> (import error)\r\n[CRITICAL          ] Camera: Unable to find any valuable Camera provider at all!\r\n[DEBUG             ] App: Loading kv <./my.kv>\r\n[DEBUG             ] App: kv <./my.kv> not found\r\n[DEBUG             ] Window: Ignored <egl_rpi> (import error)\r\n[INFO              ] Window: Provider: pygame(['window_egl_rpi'] ignored)\r\n[DEBUG             ] WinPygame: Set window to fullscreen mode\r\n[DEBUG             ] Window: Display driver android\r\n[DEBUG             ] Window: Actual window size: %dx%d\r\n[INFO              ] GL: OpenGL version <OpenGL ES 2.0 build 1.9@2564405>\r\n[INFO              ] GL: OpenGL vendor <Imagination Technologies>\r\n[INFO              ] GL: OpenGL renderer <PowerVR SGX 544MP>\r\n[INFO              ] GL: OpenGL parsed version: 2, 0\r\n[INFO              ] GL: Texture max size <4096>\r\n[INFO              ] GL: Texture max units <8>\r\n[DEBUG             ] Shader: Fragment compiled successfully\r\n[DEBUG             ] Shader: Vertex compiled successfully\r\n[DEBUG             ] ImagePygame: Load </data/data/org.kivy.pygame/files/lib/python2.7/site-packages/kivy/data/glsl/default.png>\r\n[INFO              ] Support: Android install hooks\r\n[INFO              ] Window: virtual keyboard not allowed, single mode, not docked\r\n[INFO              ] OSC: using <thread> for socket\r\n[DEBUG             ] Base: Create provider from android\r\n[INFO              ] Base: Start application main loop\r\n[INFO              ] Android: found 17 joystick\r\n[INFO              ] Android: create joystick <0>\r\n[INFO              ] Android: discard joystick <0> cause no button\r\n[INFO              ] Android: create joystick <1>\r\n[INFO              ] Android: create joystick <2>\r\n[INFO              ] Android: create joystick <3>\r\n[INFO              ] Android: create joystick <4>\r\n[INFO              ] Android: create joystick <5>\r\n[INFO              ] Android: create joystick <6>\r\n[INFO              ] Android: create joystick <7>\r\n[INFO              ] Android: create joystick <8>\r\n[INFO              ] Android: create joystick <9>\r\n[INFO              ] Android: create joystick <10>\r\n[INFO              ] Android: create joystick <11>\r\n[INFO              ] Android: create joystick <12>\r\n[INFO              ] Android: create joystick <13>\r\n[INFO              ] Android: create joystick <14>\r\n[INFO              ] Android: create joystick <15>\r\n[INFO              ] Android: create joystick <16>\r\n[INFO              ] GL: NPOT texture support is available\r\n[DEBUG             ] Atlas: Load </data/data/org.kivy.pygame/files/lib/python2.7/site-packages/kivy/data/../data/images/defaulttheme.atlas>\r\n[DEBUG             ] Atlas: Need to load 1 images\r\n[DEBUG             ] Atlas: Load </data/data/org.kivy.pygame/files/lib/python2.7/site-packages/kivy/data/../data/images/defaulttheme-0.png>\r\n[DEBUG             ] ImagePygame: Load </data/data/org.kivy.pygame/files/lib/python2.7/site-packages/kivy/data/../data/images/defaulttheme-0.png>\r\n\r\n```\r\nErrorLog when I use resolution parameter:\r\n```\r\nI/python  ( 4045):  Traceback (most recent call last):\r\nI/python  ( 4045):    File \"main.py\", line 46, in <module>\r\nI/python  ( 4045):      MyApp().run()\r\nI/python  ( 4045):    File \"/home/tito/code/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/app.py\", line 766, in run\r\nI/python  ( 4045):    File \"main.py\", line 29, in build\r\nI/python  ( 4045):      cam = Camera(play= True, resolution = (640, 480))\r\nI/python  ( 4045):    File \"/home/tito/code/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/uix/camera.py\", line 89, in __init__\r\nI/python  ( 4045):    File \"/home/tito/code/python-for-android/build/python-install/lib/python2.7/site-packages/kivy/uix/camera.py\", line 101, in _on_index\r\nI/python  ( 4045):  TypeError: 'NoneType' object is not callable\r\nE/        (  132): AudioCloseDumpPCMFile file== NULL\r\nE/        (  132): AudioCloseDumpPCMFile file== NULL\r\n\r\n```\r\n\r\n<bountysource-plugin>\r\n---\r\nThere is a **[$15 open bounty](https://www.bountysource.com/issues/7572029-camera-not-working-on-android?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github)** on this issue. Add to the bounty at [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F42681&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/kivy/kivy/issues/comments/89796536","html_url":"https://github.com/kivy/kivy/issues/2831#issuecomment-89796536","issue_url":"https://api.github.com/repos/kivy/kivy/issues/2831","id":89796536,"user":{"login":"jasonxunxu","id":769155,"avatar_url":"https://avatars.githubusercontent.com/u/769155?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonxunxu","html_url":"https://github.com/jasonxunxu","followers_url":"https://api.github.com/users/jasonxunxu/followers","following_url":"https://api.github.com/users/jasonxunxu/following{/other_user}","gists_url":"https://api.github.com/users/jasonxunxu/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonxunxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonxunxu/subscriptions","organizations_url":"https://api.github.com/users/jasonxunxu/orgs","repos_url":"https://api.github.com/users/jasonxunxu/repos","events_url":"https://api.github.com/users/jasonxunxu/events{/privacy}","received_events_url":"https://api.github.com/users/jasonxunxu/received_events","type":"User","site_admin":false},"created_at":"2015-04-05T16:00:44Z","updated_at":"2015-04-05T16:00:44Z","body":"I just posted a PR #3236 to fix this."}}