yuyashuai / FrameAnimation

High-Performance Frame Animation Library For Android
Apache License 2.0
307 stars 45 forks source link

使用sd卡片中的图片播放,解析文件过程中出现死循环? #43

Closed sxdwzxcsw closed 3 years ago

sxdwzxcsw commented 4 years ago

调用方法animationView1.playAnimationFromFile(“/storage/emulated/0/testimage/image1/”); 然后就报下面错误了。

07-30 13:45:16.031 2430-2430/AndroidRuntime: FATAL EXCEPTION: main Process: com.**.test, PID: 2430 java.lang.StackOverflowError: stack size 8MB at com.yuyashuai.frameanimation.FrameAnimationUtil.getPathList(FrameAnimationUtil.kt) at com.yuyashuai.frameanimation.FrameAnimationUtil.getPathList(FrameAnimationUtil.kt:76) at com.yuyashuai.frameanimation.FrameAnimationUtil.getPathList(FrameAnimationUtil.kt:76) at com.yuyashuai.frameanimation.FrameAnimationUtil.getPathList(FrameAnimationUtil.kt:76) at com.yuyashuai.frameanimation.FrameAnimationUtil.getPathList(FrameAnimationUtil.kt:76)

futureLix commented 3 years ago

image 好像是这个方法,你注释掉这个方法之后再试一下