So I have this weird bug that started happening today on one of our iPhones, which was updated to 8.4.1.
When loading a sound file, the app basically crash. It seems to be the file system that has a problem
Aug 24 14:53:47 iPhone mediaserverd[22] \<Error\>: 14:53:47.213 ERROR: [0x104e58000] \>va\> 587: FAIL with status 2003329396 ("what"): mDeviceID 1099 (physical device UIDs { "Codec" }). Aug 24 14:53:47 iPhone mediaserverd[22] \<Error\>: 14:53:47.213 EXCEPTION: ERROR: [0x104e58000] \>va\> 593: startResult: "Unable to start IO." Aug 24 14:53:47 iPhone mediaserverd[22] \<Error\>: 14:53:47.213 EXCEPTION: ERROR: [0x104e58000] \>va\> 2440: theError: "error starting IO on the active device" Aug 24 14:53:47 iPhone mediaserverd[22] \<Error\>: 14:53:47.214 ERROR: [0x104e58000] 180: error 'what' Aug 24 14:53:47 iPhone Music Quiz[2195] \<Error\>: 14:53:47.216 ERROR: [0x19c0c7310] 1232: AUIOClient\_StartIO failed (2003329396) Aug 24 14:53:47 iPhone Music Quiz[2195] \<Warning\>: Warning: audio.loadSound() failed to create sound 'assets/sounds/coins.wav' Aug 24 14:53:51 iPhone cloudd[1135] \<Notice\>: (Note ) MC: User has completed cloud configuration. Not showing UI again. Aug 24 14:53:52 iPhone mediaserverd[22] \<Error\>: 14:53:52.435 ERROR: [0x104e58000] \>va\> 298: timed out waiting 5200 milliseconds for property data to be updated for property [goin/glob/0] (property was updated = 0, error = 0) Aug 24 14:53:52 iPhone mediaserverd[22] \<Error\>: 14:53:52.436 EXCEPTION: ERROR: [0x104e58000] \>va\> 608: didStartResult: "Error waiting to receive kAudioDevicePropertyDeviceIsRunning property notification." Aug 24 14:53:52 iPhone mediaserverd[22] \<Error\>: 14:53:52.436 EXCEPTION: ERROR: [0x104e58000] \>va\> 2440: theError: "error starting IO on the active device" Aug 24 14:53:52 iPhone mediaserverd[22] \<Error\>: 14:53:52.437 ERROR: [0x104e58000] 180: error 'what' Aug 24 14:53:52 iPhone Music Quiz[2195] \<Error\>: 14:53:52.439 ERROR: [0x19c0c7310] 1232: AUIOClient\_StartIO failed (2003329396) Aug 24 14:53:52 iPhone Music Quiz[2195] \<Warning\>: Warning: audio.loadSound() failed to create sound 'assets/sounds/rackTap.wav' Aug 24 14:53:52 iPhone mediaserverd[22] \<Error\>: 14:53:52.483 ERROR: [0x104e58000] \>va\> 587: FAIL with status 2003329396 ("what"): mDeviceID 1099 (physical device UIDs { "Codec" }).
It does it for any file. We didn’t change anything on our code (that has been running for months) and it is extremely simple:
sounds = { coins = audio.loadSound("assets/sounds/coins.wav"), buttonDown = audio.loadSound("assets/sounds/rackTap.wav"), correctAnswer = audio.loadSound("assets/sounds/correct\_answer.wav"), wrongAnswer = audio.loadSound("assets/sounds/wrong\_answer.wav"), countdown = audio.loadSound("assets/sounds/countdown.wav"), win = audio.loadSound("assets/sounds/win.wav"), catWoosh = audio.loadSound("assets/sounds/cat\_loading.mp3"), texteSims = audio.loadSound("assets/sounds/texte\_sims.mp3") } return sounds
This is sitting in a module file, has always been working, until now. It crashes on an iPhone 6, 8.4.1
I tried adding a protected call, which avoids the crash, but if I try to play the sounds later it will crash.
I don’t know if this problem is only for sound loading or for the whole IO system (it seems to affect IO in general, looking at the logs)