播放本地视频,经常点击下一个视频,有时甚至是
for(int i = 0;i< ln5.size()/2;i++){
System.out.println(ln5.get(i));
System.out.println(ln5.get(i+ln5.size()/2));
}
anr文件:
import numpy as np
ss = [-0.115, -0.052, 0.559, -0.344, 0.077, 0.032, -0.017, -0.035]
sx = np.matrix([[ss[0],ss[1],ss[2],ss[3]],[ss[4],ss[5],ss[6],ss[7]]])
print('s0=', sx[0])
print('s00=', sx[0][0])
回溯分析:
06-27 09:22:32.597 1698 1703 I dalvikvm: Wrote stack traces to '/data/anr/traces.txt'
06-27 09:22:32.647 768 782 E ActivityManager: ANR in com.fourtech.amusic (com.fourtech.amusic/com.startgallery.VideoMain)
06-27 09:22:32.647 768 782 E ActivityManager: PID: 1389
06-27 09:22:32.647 768 782 E ActivityManager: Reason: Input dispatching timed out (Waiting because the touched window has not finished processing the input events that were previously delivered to it.)
06-27 09:22:32.647 768 782 E ActivityManager: Load: 6.24 / 3.12 / 1.23
06-27 09:22:32.647 768 782 E ActivityManager: CPU usage from 1177ms to -4252ms ago:
06-27 09:22:32.647 768 782 E ActivityManager: 30% 1483/com.aispeech.aios: 21% user + 8.4% kernel / faults: 3203 minor 6 major
06-27 09:22:32.647 768 782 E ActivityManager: 19% 768/system_server: 14% user + 4.9% kernel / faults: 1472 minor 18 major
06-27 09:22:32.647 768 782 E ActivityManager: 14% 1897/com.android.systemui: 10% user + 4% kernel / faults: 3229 minor 4 major
从logcat,我们可以看到MediaPlayer._release,来自回溯分析,调用后是mediaplayer.cpp disconnect func
可能会断开连接