Heads up! We're sunsetting this forum to streamline our community space.

join us on Discord for support, updates, and all things Snap AR! See you there!
Sign up for our live Camera Kit office hour on July 17 @ 9:30am (PT) / 4:30pm (GMT)

App Crash on CameraController.takePhoto

Hi fam,

I am building a swiftui-based app and using the latest camera kit version. For one of us, the app crashes when trying to take a photo or video. We are not able to figure out what's causing this. Have any one of you had this issue? I am attaching the stack trace from Crashlytics. Any help will be appreciated. Here is the stack trace:

https://gist.github.com/aliirz/95bb97982b28877cd37ea948f3a4d15e

Answers

  • arashp
    arashp Posts: 52 🔥🔥

    Hi @Ali Raza, thank you for reporting this problem. Are you able to reproduce it on our sample app? Without seeing your code and knowing the differences between the two devices, we are unable to tell why taking a photo/video might work on one device but not another. I am assuming the devices have the same permissions and enough storage to save the files.

    Could you send us a small sample that reproduces the crash (unless it reproduces on our sample)? Please include the SDK version, device types, and iOS versions that the two phones are running, indicating which device is crashing. Support link: https://docs.snap.com/camera-kit/support. Thanks again!

  • thank you for your reply @arashp I will try to reproduce it on the sample app. and also send you the code

Categories