lincollincol / Amplituda

Audio processing library, which provides waveform data
Apache License 2.0
213 stars 31 forks source link

Crash in libavformat-amplituda.so #68

Open rantianhua opened 8 months ago

rantianhua commented 8 months ago

Describe the bug A crash from libavformat-amplituda.so collected by firebase.

Smartphone (please complete the following information):

Additional context I only use Amplituda to process local mp3 files. Full stack trace in Play Store Console:

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 6590 >>> xxx <<<

backtrace:
  #00  pc 0x00000000000acf54  /data/app/~~qkyirIoQaLIraAi2R3lLEA==/xxx-pEUVMrlyM4d6fOWispRR2g==/split_config.arm64_v8a.apk!libavformat-amplituda.so
thedroiddiv commented 7 months ago

+1

Device info

Device: POCO X3 NFC (SURYA) OS: PixelExperience (Android 13)

Context

Earlier it was working fine for almost a month. Recently it started crashing for some of the audio files. Not happening with all audio files. I'm processing 8bit 16KHz .wav files only.

Stacktrace

1

pid: 20874, tid: 20994, name: DefaultDispatch  >>> com.XXX.app <<<

#00 pc 00000000000ab9d4  /data/app/~~AaZypzpUzMr26Vo3tuU70w==/com.XXX.app-UTWM3h9hPeOKOdJaszZngQ==/lib/arm64/libavformat-amplituda.so (avformat_find_stream_info+1536)

2

11:04:19.974  A  pid: 21267, tid: 21286, name: DefaultDispatch  >>> com.xxx.xxx.debug <<<
11:04:19.974  A        #00 pc 00000000000ad5f0  /data/app/~~AaZypzpUzMr26Vo3tuU70w==/com.xxx.xxx.debug-UTWM3h9hPeOKOdJaszZngQ==/lib/arm64/libavformat-amplituda.so (av_find_best_stream+28)
11:04:19.974  A        #01 pc 0000000000014374  /data/app/~~AaZypzpUzMr26Vo3tuU70w==/com.xxx.xxx.debug-UTWM3h9hPeOKOdJaszZngQ==/lib/arm64/libamplituda-native-lib.so (Java_linc_com_amplituda_Amplituda_amplitudesFromAudioJNI+636) (BuildId: d5b3eb8441f843d054aa47500750fc0a5638b4bc)
11:04:19.974  A        #04 pc 0000000000416a76  [anon:dalvik-classes20.dex extracted in memory from /data/app/~~AaZypzpUzMr26Vo3tuU70w==/com.xxx.xxx.debug-UTWM3h9hPeOKOdJaszZngQ==/base.apk!classes20.dex] (linc.com.amplituda.Amplituda.processFileJNI+214)
11:04:19.974  A        #06 pc 0000000000416846  [anon:dalvik-classes20.dex extracted in memory from /data/app/~~AaZypzpUzMr26Vo3tuU70w==/com.xxx.xxx.debug-UTWM3h9hPeOKOdJaszZngQ==/base.apk!classes20.dex] (linc.com.amplituda.Amplituda.processAudio+62)
11:04:19.975  A        #08 pc 0000000000416766  [anon:dalvik-classes20.dex extracted in memory from /data/app/~~AaZypzpUzMr26Vo3tuU70w==/com.xxx.xxx.debug-UTWM3h9hPeOKOdJaszZngQ==/base.apk!classes20.dex] (linc.com.amplituda.Amplituda.processAudio+10)
11:04:19.975  A        #10 pc 000000000002cabe  [anon:dalvik-classes2.dex extracted in memory from /data/app/~~AaZypzpUzMr26Vo3tuU70w==/com.xxx.xxx.debug-UTWM3h9hPeOKOdJaszZngQ==/base.apk!classes2.dex] (com.xxx.common.utils.AudioManager$getAmplitudesAndDuration$2.invokeSuspend+118)
11:04:19.975  A        #14 pc 00000000003e6c2a  [anon:dalvik-classes20.dex extracted in memory from /data/app/~~AaZypzpUzMr26Vo3tuU70w==/com.xxx.xxx.debug-UTWM3h9hPeOKOdJaszZngQ==/base.apk!classes20.dex] (kotlinx.coroutines.internal.LimitedDispatcher$Worker.run+10)
11:04:19.975  A        #16 pc 00000000003ee87e  [anon:dalvik-classes20.dex extracted in memory from /data/app/~~AaZypzpUzMr26Vo3tuU70w==/com.xxx.xxx.debug-UTWM3h9hPeOKOdJaszZngQ==/base.apk!classes20.dex] (kotlinx.coroutines.scheduling.TaskImpl.run+6)
11:04:19.975  A        #18 pc 00000000003ed946  [anon:dalvik-classes20.dex extracted in memory from /data/app/~~AaZypzpUzMr26Vo3tuU70w==/com.xxx.xxx.debug-UTWM3h9hPeOKOdJaszZngQ==/base.apk!classes20.dex] (kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely+2)
11:04:19.975  A        #20 pc 00000000003ec4ee  [anon:dalvik-classes20.dex extracted in memory from /data/app/~~AaZypzpUzMr26Vo3tuU70w==/com.xxx.xxx.debug-UTWM3h9hPeOKOdJaszZngQ==/base.apk!classes20.dex] (kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask+34)
11:04:19.975  A        #22 pc 00000000003ec61c  [anon:dalvik-classes20.dex extracted in memory from /data/app/~~AaZypzpUzMr26Vo3tuU70w==/com.xxx.xxx.debug-UTWM3h9hPeOKOdJaszZngQ==/base.apk!classes20.dex] (kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker+56)
11:04:19.975  A        #24 pc 00000000003ec5cc  [anon:dalvik-classes20.dex extracted in memory from /data/app/~~AaZypzpUzMr26Vo3tuU70w==/com.xxx.xxx.debug-UTWM3h9hPeOKOdJaszZngQ==/base.apk!classes20.dex] (kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run+0)