Thanks. I'm able to load and render the data in the 4.0 runtimes. The guang
animation plays and I'm unable to see an error occur.
I understand you only see the error sometimes on Android? Do you call AnimationState methods from multiple threads? You must be careful to only call the methods from the OpenGL thread. This is very likely the reason you see the problem.
When you set a new animation on AnimationState, it calls its private animationsChanged
method which resizes timelineMode
. If you do that on a different thread at the same time the OpenGL thread is looping over the timelineMode
, it will cause this crash.
谢谢。我能够在4.0的运行时间内加载和渲染数据。guang
动画播放,我无法看到错误发生。
我知道你只是在Android上有时看到错误?你是否从多个线程调用AnimationState方法?你必须注意只从OpenGL线程调用这些方法。这很可能是你看到这个问题的原因。
当你在AnimationState上设置一个新的动画时,它会调用其私有的animationsChanged
方法来调整timelineMode
的大小。如果你在OpenGL线程循环处理`timelineMode'的同时,在不同的线程上做这个动作,就会导致这个崩溃。