openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.94k stars 2.55k forks source link

audioOutputExample crashes in iOS #7865

Closed lmtanco closed 7 months ago

lmtanco commented 9 months ago

Hi there!

I am using nightly version of_v20240109_ios_release. When running audioOutputExample it crashes, tested on iOS 16.7.2, iPad Pro, built with Xcode 14.3.1.

I put breakpoints in setup, update and draw. The breakpoint in draw is sometimes reached, most of the time it's not. It crashes in a Thread for which I have no source code, see screenshot.

image

Many many thanks,

Luis.

lmtanco commented 9 months ago

Testing on iPhone 8, iOS 16.3, the crash seems to consistently be in ofGLRenderer::drawRectangle:

image

danoli3 commented 8 months ago

Try Programmable Renderer main.mm: settings.glesVersion = OFXIOS_RENDERER_ES2; // type of renderer to use, ES1, ES2, etc.

Try and offset the Draw for 3 frames (int counter) - debug if its not initialised yet in Make sure OpenGL ES is added in project in frameworks

Alternative try and see if ios/GLKit example works for your setup

lmtanco commented 7 months ago

Hi there! @danoli3 sorry I totally missed your message of Jan 22! 🙏 This no longer crashes in my iPhone 8 iOS 16.3, and is fixed in the current nightly thanks to #7902 IMG_881442ED6AE9-1

Many many thanks! ❤️

P.S. It doesn't actually sound! I want to test it on the iPad which I don't currently have with me, then if I'm sure it's not my fault I would open a different issue?