danikula / danikula/AndroidVideoCache

com.danikula.videocache.ProxyCacheException: Error processing request. Version: 2.7.1

Offen
#260 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
5.5k
Forks
1.2k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

https://lbtafx.oss-cn-shenzhen.aliyuncs.com/video/mp4/db14d201908231421197737.mp4

2019-08-25 12:40:02.027 10273-10665/com.hldm.lbtafxapp I/Pinger: Ping response: `ping ok`, pinged? true
2019-08-25 12:40:02.038 10273-10273/com.hldm.lbtafxapp D/tv.danmaku.ijk.media.player.IjkMediaPlayer: Couldn't open file on client side, trying server side
2019-08-25 12:40:02.038 10273-10273/com.hldm.lbtafxapp D/IJKMEDIA: IjkMediaPlayer_setDataSourceAndHeaders
2019-08-25 12:40:02.038 10273-10273/com.hldm.lbtafxapp V/IJKMEDIA: setDataSource: path http://127.0.0.1:40538/https%3A%2F%2Flbtafx.oss-cn-shenzhen.aliyuncs.com%2Fvideo%2Fmp4%2Fdb14d201908231421197737.mp4
2019-08-25 12:40:02.038 10273-10273/com.hldm.lbtafxapp D/IJKMEDIA: ijkmp_set_data_source(url="http://127.0.0.1:40538/https%3A%2F%2Flbtafx.oss-cn-shenzhen.aliyuncs.com%2Fvideo%2Fmp4%2Fdb14d201908231421197737.mp4")
2019-08-25 12:40:02.038 10273-10273/com.hldm.lbtafxapp D/IJKMEDIA: ijkmp_set_data_source(url="http://127.0.0.1:40538/https%3A%2F%2Flbtafx.oss-cn-shenzhen.aliyuncs.com%2Fvideo%2Fmp4%2Fdb14d201908231421197737.mp4")=0
2019-08-25 12:40:02.038 10273-10273/com.hldm.lbtafxapp D/IJKMEDIA: IjkMediaPlayer_prepareAsync
2019-08-25 12:40:02.038 10273-10273/com.hldm.lbtafxapp D/IJKMEDIA: ijkmp_prepare_async()
2019-08-25 12:40:02.039 10273-10669/com.hldm.lbtafxapp I/IJKMEDIA: SDL_RunThread: [10669] ff_msg_loop
2019-08-25 12:40:02.039 10273-10669/com.hldm.lbtafxapp D/IJKMEDIA: message_loop
2019-08-25 12:40:02.039 10273-10273/com.hldm.lbtafxapp D/IJKMEDIA: ijkmp_prepare_async()=0
2019-08-25 12:40:02.039 10273-10670/com.hldm.lbtafxapp I/IJKMEDIA: SDL_RunThread: [10670] ff_vout
2019-08-25 12:40:02.039 10273-10671/com.hldm.lbtafxapp I/IJKMEDIA: SDL_RunThread: [10671] ff_read

2019-08-25 12:40:02.063 10273-10672/com.hldm.lbtafxapp E/HttpProxyCacheServer: HttpProxyCacheServer error
com.danikula.videocache.ProxyCacheException: Error processing request. Version: 2.7.1
at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:243)
at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:54)
at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:340)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)
Caused by: com.danikula.videocache.ProxyCacheException: Error using file /storage/emulated/0/lbtafx/video/cache/dd23c41711bee3d2fcfcdcacca61df7e.mp4 as disc cache. Version: 2.7.1
at com.danikula.videocache.file.FileCache.(FileCache.java:39)
at com.danikula.videocache.HttpProxyCacheServerClients.newHttpProxyCache(HttpProxyCacheServerClients.java:83)
at com.danikula.videocache.HttpProxyCacheServerClients.startProcessRequest(HttpProxyCacheServerClients.java:49)
at com.danikula.videocache.HttpProxyCacheServerClients.processRequest(HttpProxyCacheServerClients.java:39)
at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:236)
at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:54) 
at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:340) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457) 
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) 
at java.lang.Thread.run(Thread.java:764) 
Caused by: java.io.IOException: Directory /storage/emulated/0/lbtafx/video/cache can't be created
at com.danikula.videocache.file.Files.makeDir(Files.java:33)
at com.danikula.videocache.file.FileCache.(FileCache.java:34)
at com.danikula.videocache.HttpProxyCacheServerClients.newHttpProxyCache(HttpProxyCacheServerClients.java:83) 
at com.danikula.videocache.HttpProxyCacheServerClients.startProcessRequest(HttpProxyCacheServerClients.java:49) 
at com.danikula.videocache.HttpProxyCacheServerClients.processRequest(HttpProxyCacheServerClients.java:39) 
at com.danikula.videocache.HttpProxyCacheServer.processSocket(HttpProxyCacheServer.java:236) 
at com.danikula.videocache.HttpProxyCacheServer.access$200(HttpProxyCacheServer.java:54) 
at com.danikula.videocache.HttpProxyCacheServer$SocketProcessorRunnable.run(HttpProxyCacheServer.java:340) 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:457) 
at java.util.concurrent.FutureTask.run(FutureTask.java:266) 
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636) 
at java.lang.Thread.run(Thread.java:764) 
2019-08-25 12:40:02.064 10273-10671/com.hldm.lbtafxapp I/tv.danmaku.ijk.media.player.IjkMediaPlayer: onNativeInvoke 2

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start with com.danikula.videocache.file.Files.makeDir and FileCache., then follow the request path through HttpProxyCacheServerClients and HttpProxyCacheServer.processSocket. Reproduce the failure using the reported external-storage cache path; done means the cache request no longer fails because the directory cannot be created, with video playback still working.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
android, java
Bereich
mobile-dev
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.