Crash in glDrawElements() on Apple Silicon Vision Pro Simulator

Hi, we've been developing an iOS game using OpenGL ES, trying running compatible iOS app on Vision Pro Simulator on M1 Mac, but we met a strange EXC_BAD_ACCESS crash in glDrawElements(), while the app run normally on ios or ipad simulators with the same developing environment. The stack like following:

Our Mac is a Mac Studio(2022) with Apple M1 Max and MacOS 14.1.2.

Xcode: Version 15.3 (15E204a)

Simulator OS: Vision OS 1.1

It sounds like you have a memory management bug in your game. There’s not much help anyone can provide without access to your source code.

Crash in glDrawElements() on Apple Silicon Vision Pro Simulator
 
 
Q