Problem reproduces only on iOS 17.
If you try to run iOS application in xcode with address sanitizer you will have an error:
Address 0x00016bb04080 is a wild pointer inside of access range of size 0x000000000001.
SUMMARY: AddressSanitizer: bad-free
Here is code:
FMOD::Studio::System* _system = nullptr;
FMOD::Studio::System::create(&_system);
_system->initialize(256, FMOD_STUDIO_INIT_NORMAL, FMOD_INIT_NORMAL, nullptr); // Error will be here
I can reproduce this issue as described, thank you for bringing this to our attention.
The call stack is inside the iOS libs, possibly a bug in iOS 17. I tried disabling instrumentation on Studio::System::initialize, suppressing the error using ASAN_OPTIONS, but find a workaround unfortunately. I have passed this onto the Dev team to investigate further.
We think this might have been an iOS17 bug as we can no longer reproduce this since updating to iOS 17.2.1. @maksimomelyanchuk or @seabaa can you please try updating to iOS 17.2.1 or later and confirm whether you still get this ASan crash?