App Freezing without Errors

Currently I am trying to append to an array in a SampleBufferDelegate while recording from the camera, however after the 16th iteration the app just freezes and I get no errors. It does not seem like a memory from what I have learned debugging. If I limit the size of the array to 15 it won't crash, if I add an amount greater than 16 to the array in a while loop, the 16th time appending it will freeze.
Answered by DTS Engineer in 641501022

It is actually just seems to be that thread

OK. So if you add logging to that thread then you see the log entry from before the append but not the log entry from after?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
The whole app freezes? Or just the thread doing the append?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
The whole app freezes.

The whole app freezes.

OK. In that case, here’s what I recommend:
  1. Run the app from the Home screen (not Xcode).

  2. Reproduce the problem.

  3. Once the app is good and frozen, press the Home button.

  4. A few tens of seconds later, the watchdog should kill your app and generate an ‘ate bad food’ crash report. Collect that and examine it for clues.

  5. If that doesn’t help, post the crash report here (using the paperclip icon to add it as a text attachment).

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
It is actually just seems to be that thread, I can actually exit and enter the app continuously and can append another 16 objects each time.
Accepted Answer

It is actually just seems to be that thread

OK. So if you add logging to that thread then you see the log entry from before the append but not the log entry from after?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
App Freezing without Errors
 
 
Q