CarGuo / GSYRecordWave

MP3音频录制,支持类似IOS原生的单边或者双边波形显示,低版本音频权限兼容,本地或者在线音频播放的波形显示,录制波形和播放波形会根据声音频率变色的功能,边播边缓存功能,简书入口http://www.jianshu.com/p/2448e2903b07
Apache License 2.0
934 stars 200 forks source link

nexus 5 Android 7.1.2 crash #13

Closed ForeverLiuyaqi closed 7 years ago

ForeverLiuyaqi commented 7 years ago

Crashing frenquently on the following method :

java.lang.ArrayIndexOutOfBoundsException: length=360; index=360 at java.util.ArrayList.get(ArrayList.java:413) at com.shuyu.waveview.AudioWaveView.resolveToWaveData(AudioWaveView.java:258) at com.shuyu.waveview.AudioWaveView.access$900(AudioWaveView.java:27) at com.shuyu.waveview.AudioWaveView$drawThread.run(AudioWaveView.java:193)

CarGuo commented 7 years ago

which version??

ForeverLiuyaqi commented 7 years ago

RecordWave:v1.1.2 Android7.1.2 Nexus 5X

CarGuo commented 7 years ago

resolveToWaveData list clone from mRecDataList, i m not sure why it ArrayIndexOutOfBounds?

CarGuo commented 7 years ago

try v1.1.3