You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
你好~ 我们的APP之前使用的是Java版的libpag SDK,后面用的是C++版本的libpag SDK. 然后经常有截图里的这个Java_org_libpag_DisplayLink_onUpdate的报错.
大部分是低RAM内存的时候出现,有时候高RAM内存时也出现。
场景是切换和预览PAG素材,调用PAG的draw方法的时候报错了。每次切换都会创建新的PAG对象实例,并销毁旧的PAG对象实例.
我看其他人都没有反馈这个问题。我猜测要么是draw方法会耗性能,设备low,内存不足导致空指针。要么是代码销毁旧pag实例时不规范,有些手机上会有内存泄漏(自测时未发现明显内存泄漏)。麻烦给一下调试和优化减少此Crash的思路建议,感谢~
Java层使用libpag SDK播放pag文件报错:
C++层使用libpag.so播放pag文件报错:
Beta Was this translation helpful? Give feedback.
All reactions