# Camera take photo crashing on Android (maybe iOS too)

**URL:** <https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259>\
**Category:** Questions about Thunkable X\
**Created:** [June 30, 2022, 1:57pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259 "2022-06-30T13:57:07Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [June 30, 2022, 1:57pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/1 "2022-06-30T13:57:07Z")

</div>

This simple code crashes both Thunkable Live and downloaded apk and even published apps.  
Happens randomly, not always… but I’ve noticed it happens often on Android 11.  
This is a serious bug that is causing me problems with clients because I use this in a lot of apps.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/c/3c48a922ecc05823cbdbef5ea59b5a4a01065e23.png)

@jared maybe this is the same issue that happens on iOS 12.5.5 that we discuss here: [iOS error on camera open](https://community.thunkable.com/t/ios-error-on-camera-open/1840301)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [June 30, 2022, 5:00pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/2 "2022-06-30T17:00:51Z")

</div>

I tried this code at least 10 times in a row and it never failed once  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/8/883e336373389b8a329db71143cafb5df1acc47d.png)

**Can you give a rough idea of the rate of failure you are experiencing?**

Please note that this is a DnD project and I was testing with an Android mobile.

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [June 30, 2022, 5:38pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/3 "2022-06-30T17:38:18Z")

</div>

I just created a new project DnD too, as my original project is not DnD… and it also happens.  
I guess something around 30% to 40% of failure.  
In one of two tries, occurs: [Video](https://drive.google.com/file/d/10S7-bMi8h1nYR_jd-7KLMJfLsxBWdgJ6/view?usp=sharing)

Try take picture with front camera (selfie).

Please note that I’m testing on a mobile running Android 11… when I was running on Android 10 I didn’t have this issue.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [June 30, 2022, 7:52pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/4 "2022-06-30T19:52:22Z")

</div>

> [@assistsolucoes](#):
>
> In one of two tries, occurs: [Video](https://drive.google.com/file/d/10S7-bMi8h1nYR_jd-7KLMJfLsxBWdgJ6/view?usp=sharing)

Your video is not shared.

> [@assistsolucoes](#):
>
> testing on a mobile running Android 11

My mobile is running Android 12.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [June 30, 2022, 7:53pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/5 "2022-06-30T19:53:30Z")

</div>

Can you share a minimal example and detail the device modem , OS version,

Also please ensure you’re using the latest version of the companion app by going to the App Store and finding the Thunkable app to check for updates.

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [July 1, 2022, 11:59am UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/6 "2022-07-01T11:59:53Z")

</div>

> [@muneer](#):
>
> Your video is not shared.

It’s now, sorry.

> [@muneer](#):
>
> My mobile is running Android 12.

According to Google crash reports, most of the occurrences are on Android 11.

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [July 1, 2022, 12:08pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/7 "2022-07-01T12:08:39Z")

</div>

> [@jared](#):
>
> Can you share a minimal example and detail the device modem , OS version,

[https://x.thunkable.com/copy/0ded9a2e94c1b6e1b865d078dbe204ef](https://x.thunkable.com/copy/0ded9a2e94c1b6e1b865d078dbe204ef)

My device is a Redmi Note 11 with Android 11, but other devices has this issue too like Motorola moto g(7) play, Samsung Galaxy M01s, Samsung Galaxy A32, Asus ZenFone Max Shot (ZB634KL)…

Yes, I’m using the lastest version of Thunkable app, but as I said, it also occurs on downloaded and published apps.

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [July 1, 2022, 12:32pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/8 "2022-07-01T12:32:52Z")

</div>

Can you speak to what version android those devices are running?

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [July 1, 2022, 12:37pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/9 "2022-07-01T12:37:11Z")

</div>

Motorola moto g(7) play - Android 10  
Samsung Galaxy M01s - Android 11  
Samsung Galaxy A32 - Android 12  
Asus ZenFone Max Shot (ZB634KL) - Android 9

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [July 1, 2022, 12:47pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/10 "2022-07-01T12:47:59Z")

</div>

I known you have quite a few downloads per our DM’s. Do you have an idea of what % of users are experiencing this issue. I’ll see if I can emulate the device today on my computer to replicate the issue.

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [July 1, 2022, 12:52pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/11 "2022-07-01T12:52:34Z")

</div>

If I’m correct about the error that Google reports is logging, is about 7%.  
I’m not sure if this issue will appear on emulating, but thanks for give it a try.

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [July 6, 2022, 12:19pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/12 "2022-07-06T12:19:54Z")

</div>

Any updates here?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [July 6, 2022, 1:54pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/13 "2022-07-06T13:54:52Z")

</div>

None yet. I’ve been unable to reproduce this on my own device. I’ve reported this as a bug. Hopefully we can help you get this sorted out.

Are there other Thunkers out here experiencing this issue?

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [July 6, 2022, 2:36pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/14 "2022-07-06T14:36:48Z")

</div>

> [@jared](#):
>
> I’ve reported this as a bug

Thanks a lot, I hope this doesn’t take too long. 🤞

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [July 11, 2022, 8:23pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/15 "2022-07-11T20:23:56Z")

</div>

Hi, any updates by now? @jared

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [July 13, 2022, 8:31pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/16 "2022-07-13T20:31:19Z")

</div>

There are no updates on this yet. Unfortunately other issues have taken priority over this one at this time. I’m guessing that when there is appropriate bandwidth, the issue will be resolved. At this time, we have a very small portion of users reporting this. (Just you at this time from what I can see) and we are unable to replicate the issue thus far. This creates issues in then fixing the issue.

We will touch this again when an engineer has the bandwidth to do so.

---

<div class="post-metadata">

**Author:** ![assistsolucoes](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/assistsolucoes/32/128709_2.png) [@assistsolucoes](https://community.thunkable.com/u/assistsolucoes)\
**Post date:** [July 15, 2022, 5:01pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/17 "2022-07-15T17:01:22Z")

</div>

I appreciate your reply and I understand that the scenario is very specific… I can only reproduce it, with a real device (not emulator) running Android 11, but it’s having me a lot of trouble with the client.  
I just test it again and it persists.  
Thanks anyway.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [October 13, 2022, 5:02pm UTC](https://community.thunkable.com/t/camera-take-photo-crashing-on-android-maybe-ios-too/1947259/18 "2022-10-13T17:02:17Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
