yangkun19921001 / AudioManager

这是一个 Android 端万能音频播放器,只要给我一个路径我就能进行播放。
37 stars 21 forks source link

打开本地mp3文件,奔溃了 #5

Open gewu851755259 opened 3 years ago

gewu851755259 commented 3 years ago

一开始avformat_open_input本地路径的音频文件总是返回-13的错误,AndroidManifest.xml中也是有读写权限,后来在节点增加 android:requestLegacyExternalStorage="true" 后不再返回-13,但是运行后点开始播放后崩溃,如下为崩溃信息:

gewu851755259 commented 3 years ago

2020-12-24 09:42:28.198 23447-23767/com.devyk.audioplayer E/CrashReport: #++++++++++Record By Bugly++++++++++# 2020-12-24 09:42:28.198 23447-23767/com.devyk.audioplayer E/CrashReport: # You can use Bugly(http:\bugly.qq.com) to get more Crash Detail! 2020-12-24 09:42:28.198 23447-23767/com.devyk.audioplayer E/CrashReport: # PKG NAME: com.devyk.audioplayer 2020-12-24 09:42:28.198 23447-23767/com.devyk.audioplayer E/CrashReport: # APP VER: 1.0.2 2020-12-24 09:42:28.198 23447-23767/com.devyk.audioplayer E/CrashReport: # SDK VER: 3.3.3-3.7.7 2020-12-24 09:42:28.199 23447-23767/com.devyk.audioplayer E/CrashReport: # LAUNCH TIME: 2020-12-24 09:40:14 2020-12-24 09:42:28.199 23447-23767/com.devyk.audioplayer E/CrashReport: # CRASH TYPE: NATIVE_CRASH 2020-12-24 09:42:28.199 23447-23767/com.devyk.audioplayer E/CrashReport: # CRASH TIME: 2020-12-24 09:42:28 2020-12-24 09:42:28.199 23447-23767/com.devyk.audioplayer E/CrashReport: # CRASH PROCESS: com.devyk.audioplayer 2020-12-24 09:42:28.199 23447-23767/com.devyk.audioplayer E/CrashReport: # CRASH THREAD: pool-2-thread-1(12056) 2020-12-24 09:42:28.199 23447-23767/com.devyk.audioplayer E/CrashReport: # REPORT ID: 1599d992-572a-4484-9aae-62c3817a7712 2020-12-24 09:42:28.199 23447-23767/com.devyk.audioplayer E/CrashReport: # CRASH DEVICE: SCM-AL09 UNROOT 2020-12-24 09:42:28.199 23447-23767/com.devyk.audioplayer E/CrashReport: # RUNTIME AVAIL RAM:1808568320 ROM:74373591040 SD:74352619520 2020-12-24 09:42:28.199 23447-23767/com.devyk.audioplayer E/CrashReport: # RUNTIME TOTAL RAM:3770044416 ROM:118914809856 SD:118893838336 2020-12-24 09:42:28.200 23447-23767/com.devyk.audioplayer E/CrashReport: # EXCEPTION FIRED BY KERNEL UNKNOWN 2020-12-24 09:42:28.200 23447-23767/com.devyk.audioplayer E/CrashReport: # CRASH STACK: 2020-12-24 09:42:28.200 23447-23767/com.devyk.audioplayer E/CrashReport: SIGSEGV(SEGV_MAPERR) 0x5e63fc92b23538

00 pc 000000000001d5d4 /data/app/com.devyk.audioplayer-4ynXXNNtDAdq2qNDgoeWkQ==/lib/arm64/libavutil.so (av_dict_get+316) [arm64-v8a::a3103e7ee642b8e8fc00670508fed689]

#01    pc 000000000001d664    /data/app/com.devyk.audioplayer-4ynXXNNtDAdq2qNDgoeWkQ==/lib/arm64/libavutil.so (av_dict_set+116) [arm64-v8a::a3103e7ee642b8e8fc00670508fed689]
java:
java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1092)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1152)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
java.lang.Thread.run(Thread.java:929)

2020-12-24 09:42:28.200 23447-23767/com.devyk.audioplayer E/CrashReport: #++++++++++++++++++++++++++++++++++++++++++#