Unknown CHHapticError.Code (561015905 == '!pla')

Hello,

I'm sporadically getting the unknown CoreHaptics error described in the title, when trying to create a CHHapticPatternPlayer from an .ahap file — this does not occur in a repeatable manner, unfortunately... This occurs in a SpriteKit game, running on both iOS 17 and 18.

Anyone know what the error means, since it's apparently undocumented? Note that the haptics engine is started right before creating the pattern, and the start request doesn't appear to fail...

Thanks, D.

Hello @adario, thank you for your post. Error code 561015905 (!pla) corresponds to AVAudioSession.ErrorCode.cannotStartPlaying. If you are able to reproduce the issue, please capture a sysdiagnose taking note of the exact time the issue was reproduced, and please use Feedback Assistant to submit a bug report, attaching your sysdiagnose. Once you open the bug report, please post the FB number here for my reference.

Hello, thank you for your reply — unfortunately the error isn't easily reproducible, otherwise I would've already opened an FB issue... so far, it has only occurred four times, at a distance of a few seconds apart, running on an iPhone 12 mini with iOS 18.1.1. The weird thing is that the .ahap does not contain any sound events — audio is played separately. Should I still open an FB issue, with the .ahap file? Thanks again, D.

Unknown CHHapticError.Code (561015905 == '!pla')
 
 
Q