My game has an issue with frequent “Cannot load AnimationClipProviderService” errors, but they’ve been almost impossible to identify. It seems to only occur on mobile, and only sometimes–I can’t controllably reproduce it on purpose. The issue identifying it is that it doesn’t even cause problems–everything works fine! But it can bloat up the console logs so much that it makes other errors hard to identify.
I’ve fixed a few causes of it in the past-
It can be caused by playing animations on the same track simultaneously (which would be a mistake in coding)
It can be caused by playing an animation before the animated model is in the workspace
But these were easy to identify, and caused problems when they happened.
Does anyone know what could be causing AnimationClipProviderService errors, in a way that only causes the error to appear in the log without actually causing a noticeable bug?
I was reading a thread on this a little while back, I think the general consensus was to add a wait to the script before calling the service as a a fix, this is the thread, you may find an answer:
This occurs in my game infrequently but still every now and then whilst testing, your best bet is to wait for the character appearance to be fully loaded before calling LoadAnimation on anything.
ooo interesting, thank you
I think I found the solution (accidentally didn’t stop the loop when the character died so it was still trying to play animations on their past, now-deceased character) but if that doesn’t fix it I’ll try your solution