question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Crash on iOS11 on devices with 1 GB RAM

See original GitHub issue

I experience repeatable crashes when taking a series of pictures using the camera preview. The issue is present on iPhone devices with 1GB of RAM, such as the iPhone 6 or iPhone 6 Plus, and it has arose after the introduction of iOS11.

Not sure but it can be the same or related to #200.

I do take pictures normally:

window.CameraPreview.takePicture(this.photoSize, (imageFile) => {
    this.onPictureTaken(imageFile);
}, (error) => {
   console.log("error", error);
});
}, false);

onPictureTaken simply upload the photo to our server.

The crash happens after 5 to 10 pictures taken in rapid succession. ~I suspect that the OS is simply killing the app because of too high memory usage.~

Can you help me? Is there something that you need to debug the issue? Thank you very much

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
lec00qcommented, Dec 1, 2017

Update:

Debugging on Xcode is not helpful at all because the app crashes without any stack trace. I am not very expert in those stuffs but I am quite sure that the app crashes on this line:

CGImageRef finalImage = [self.cameraRenderController.ciContext createCGImage:finalCImage fromRect:finalCImage.extent];

in CameraPreview.m. I can confirm that the crashes happen when trying to take pictures in a rapid succession, tapping multiple times on the screen and only after a few pictures taken.

Any help would be really appreciated!

0reactions
westongangercommented, Apr 29, 2020

Closed via #604 and #605

Read more comments on GitHub >

github_iconTop Results From Across the Web

iPad crash - Apple Support Communities
It crashes on the NYTimes app, it crashes on Safari, it crashes on a ... I have used 30.7 of 32 GB left...
Read more >
My game crashes! - Supercell Support Portal
My game crashes! In order to fully enjoy Brawl Stars, it requires at least the following specs: Android: OS 7.0 or better. 1...
Read more >
iOS 11 Feels Slow? 11 Tips to Speed Up iOS 11 on iPhone or ...
Generally speaking it's a good idea to have 10% or more free storage available. So if you have a 32GB device, then having...
Read more >
Game crashes during flight countless times - Support
Keep as much unused internal device memory (RAM) available. 1GB is the recommended amount. Always close other apps before opening Infinite ...
Read more >
What are the device requirements for iOS? — Empires &amp
To play Empires & Puzzles, your iOS device must have at least the following specifications: ⦁ 1 GB of RAM (2 GB or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found