Comments (16)
要怎么样才会复现这个crash呢?
from ksplayer.
from ksplayer.
需要打印出audioFormat的值,才能定位问题。估计是audioFormat的值不对。
from ksplayer.
@kingslay new log: required condition is false: IsFormatSampleRateAndChannelCountValid(format)
from ksplayer.
@kingslay the situation is very critical,
Now this crash is the most happening in my product.
I have the last version.
![Screenshot 2023-09-30 at 12 08 43](https://private-user-images.githubusercontent.com/1998171/271762363-84d71d95-e2bf-4566-8fea-125e1e4d6581.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMDUxNDMsIm5iZiI6MTcyMTMwNDg0MywicGF0aCI6Ii8xOTk4MTcxLzI3MTc2MjM2My04NGQ3MWQ5NS1lMmJmLTQ1NjYtOGZlYS0xMjVlMWU0ZDY1ODEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MThUMTIxNDAzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MzgxNGM2NDJjNjk3MTZhZWY3MjQxOWQ0NmUxN2Q5ZDQzMzdiOWIwZTE0NDI0MDU5OTZjMzhmNTllNTAzNTA1YiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.191wC80Vt9TosF37T8yKDOnxzPwwdGNWIQVRpndgFyc)
from ksplayer.
是的,但是需要知道为什么会产生一个不正常的AVAudioFormat。 需要能够找到那个出问题的url或是打印出AVAudioFormat的值。这样才只要要怎么进行兜底处理。
from ksplayer.
yeah but maybe revert the recent changes you did? This is happening like crazy now. Is happening for sure with .ts
streams and maybe also .m3u8
from ksplayer.
![Screenshot 2023-10-01 at 22 37 33](https://private-user-images.githubusercontent.com/1998171/271846979-438c878b-14f0-41f2-b271-3025c5513931.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEzMDUxNDMsIm5iZiI6MTcyMTMwNDg0MywicGF0aCI6Ii8xOTk4MTcxLzI3MTg0Njk3OS00MzhjODc4Yi0xNGYwLTQxZjItYjI3MS0zMDI1YzU1MTM5MzEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MThUMTIxNDAzWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MTU0NzM2ZmIwMTFmYWZmODg4ODkxYjE1ZjU3N2E1MWUwYTNhMjVjZmY5NGYyNTFlNjcxZDcyMjNhNzM5MWU5MSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.HgTKzdP8F8k_h4bOuu1gv_oNFJ7C9A_qHkun6LrhYnM)
from ksplayer.
I managed to reproduce the crash, and I have all the logs with you with also audio format. Notice that this works with other players.
error KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | non-existing SPS 0 referenced in buffering period
error KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | non-existing SPS 0 referenced in buffering period
error KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | Stream ends prematurely at 4754560, should be 18446744073709551615
warning KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | Will reconnect at 4754560 in 0 second(s), error=Input/output error.
warning KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | Packet corrupt (stream = 0, dts = 5109798600)
warning KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | .
warning KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | DTS discontinuity in stream 0: packet 249 with DTS 5109798600, packet 250 with DTS 5112979200
warning KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Audio Format: Optional(<AVAudioFormat 0x600006859130: 2 ch, 0 Hz, Float32, deinterleaved>)
warning KSPlayer: AudioEnginePlayer.swift:149 ceateSourceNode(audioFormat:) | [audio] outputFormat AudioFormat: <AVAudioFormat 0x600006859130: 2 ch, 0 Hz, Float32, deinterleaved>
warning KSPlayer: AudioEnginePlayer.swift:151 ceateSourceNode(audioFormat:) | [audio] outputFormat tag: 6619138
warning KSPlayer: AudioEnginePlayer.swift:152 ceateSourceNode(audioFormat:) | [audio] outputFormat channelDescriptions: []
warning KSPlayer: AudioEnginePlayer.swift:167 ceateSourceNode(audioFormat:) | [audio] new sourceNode inputFormat: <AVAudioFormat 0x600006852bc0: 2 ch, 0 Hz, Float32, deinterleaved>
AVAEInternal.h:76 required condition is false: [AVAudioEngineGraph.mm:2,128:_Connect: (IsFormatSampleRateAndChannelCountValid(format))]
error KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | non-existing SPS 0 referenced in buffering period
error KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | Failed setup for format videotoolbox_vld: hwaccel initialisation returned error.
error KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | No such filter: 'linear'
error KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | Error creating filters
*** Terminating app due to uncaught exception 'com.apple.coreaudio.avfaudio', reason: 'required condition is false: IsFormatSampleRateAndChannelCountValid(format)'
*** First throw call stack:
(
0 CoreFoundation 0x0000000113b368cb __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00000001105b79c5 objc_exception_throw + 48
2 CoreFoundation 0x0000000113b366db +[NSException raise:format:] + 0
3 AVFAudio 0x000000012be512ee _Z19AVAE_RaiseExceptionP8NSStringz + 156
4 AVFAudio 0x000000012be98a1a _ZN18AVAudioEngineGraph8_ConnectEP19AVAudioNodeImplBaseS1_jjP13AVAudioFormat + 320
5 AVFAudio 0x000000012bf30aec _ZN17AVAudioEngineImpl7ConnectEP11AVAudioNodeS1_mmP13AVAudioFormat + 1518
6 AVFAudio 0x000000012bf26fcb -[AVAudioEngine connect:to:format:] + 113
7 AppName 0x0000000102b619f3 $sSo13AVAudioEngineC8KSPlayerE7connect5nodes6formatySaySo0A4NodeCG_So0A6FormatCSgtF + 1363
8 AppName 0x0000000102b5f3ef $s8KSPlayer17AudioEnginePlayerC15ceateSourceNode11audioFormatySo07AVAudioI0C_tF + 3119
9 AppName 0x0000000102b5e6be $s8KSPlayer17AudioEnginePlayerC7prepare11audioFormatySo07AVAudioG0C_tF + 398
10 AppName 0x0000000102b631d9 $s8KSPlayer17AudioEnginePlayerCAA0bD0A2aDP7prepare11audioFormatySo07AVAudioG0C_tFTW + 9
11 AppName 0x0000000102bdabb8 $s8KSPlayer10KSMEPlayerC15sourceDidOpenedyyFyycfU2_ + 360
12 AppName 0x00000001028943c8 $sIeg_IeyB_TR + 40
13 libdispatch.dylib 0x000000011543c476 _dispatch_call_block_and_release + 12
14 libdispatch.dylib 0x000000011543d720 _dispatch_client_callout + 8
15 libdispatch.dylib 0x000000011544d060 _dispatch_main_queue_drain + 1304
16 libdispatch.dylib 0x000000011544cb3a _dispatch_main_queue_callback_4CF + 31
17 CoreFoundation 0x0000000113a94b7b __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
18 CoreFoundation 0x0000000113a8f5af __CFRunLoopRun + 2463
19 CoreFoundation 0x0000000113a8e857 CFRunLoopRunSpecific + 557
20 GraphicsServices 0x000000011df7e21e GSEventRunModal + 137
21 UIKitCore 0x000000012e5d392d -[UIApplication _run] + 972
22 UIKitCore 0x000000012e5d8385 UIApplicationMain + 123
23 AppName 0x000000010279d082 main + 114
24 dyld 0x000000010d0343ee start_sim + 10
25 ??? 0x0000000204ebf3a6 0x0 + 8672506790
)
libc++abi: terminating due to uncaught exception of type NSException
Message from debugger: Terminated due to signal 6
from ksplayer.
As far as I am aware there is no filter called linear in ksplayer.
error KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | No such filter: 'linear' error KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | Error creating filters
from ksplayer.
from ksplayer.
Isn’t that the problem. With some streams it doesn’t crash. This is just a recent crash. Filters errors can be ignored.
…
On Oct 1, 2023, at 23:59, UnknownCoder807 @.***> wrote: As far as I am aware there is no filter called linear in ksplayer. error KSPlayer: MEPlayerItem.swift:125 MEPlayerItem | No such filter: 'linear' — Reply to this email directly, view it on GitHub <#560 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAPH2W2E7LR3YRLDPNXRN4DX5HDS7ANCNFSM6AAAAAA5HIODEY. You are receiving this because you authored the thread.
Your crash seems to come straight after this error, maybe it's related. hopefully kingslay will know and solve it.
from ksplayer.
from ksplayer.
MEPlayerItem.swift:125 MEPlayerItem | Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Audio Format: Optional(<AVAudioFormat 0x600006859130: 2 ch, 0 Hz, Float32, deinterleaved>)
warning KSPlayer: AudioEnginePlayer.swift:149 ceateSourceNode(audioFormat:) | [audio] outputFormat AudioFormat: <AVAudioFormat 0x600006859130: 2 ch, 0 Hz, Float32, deinterleaved>
问题在于这个流解析有问题
from ksplayer.
问题应该是这个视频返回的HZ为0。我可以试着把这个改成不会crash。但是改完之后我不知道这个视频能不能正常播放
from ksplayer.
@kingslay this always worked before. What did you change?
Suddenly thousands of user with the exact same streams they had before, started to get the crash on almost everything the have on LIVE videos. So you changed something. Please try to go back with the changes to understand what it could be.
Also yes, crash should avoided in any case and an error returned. Please.
from ksplayer.
Related Issues (20)
- TracyPlayer does not play stream HOT 5
- avformat can't open input - In test app it works, production app it doesn't HOT 2
- Cannot run AV1 codecs Video HOT 4
- 打开了logLevel为debug,还是没有显示debug的日志 HOT 2
- Invalid bundle identifier when pushing to testflight using KSPlayer via SPM (doesnt happen over ccoapods) HOT 2
- Xcode 15.4上传App Store报错 HOT 2
- Can the caching function be added? HOT 5
- 您好,如何在不播放的情况下,获取视频的总时间长度? 目前貌似没有 api 可以获取? HOT 1
- Stream doesn't start HOT 2
- Compilation warning in AudioEnginePlayer.swift
- Unable to add via Swift Package manager HOT 3
- 双语字幕重叠 HOT 3
- Error sanbox when build application
- Package resolution failed HOT 2
- Fix Apple TV App HOT 1
- Video cache support HOT 5
- Crash when view livestream HOT 1
- 能否自定义一个KSPictureInPictureController? HOT 3
- 使用swift Package Manager更新KSPlayer,添加依赖失败
- 请问咱这个播放器支持3d播放吗? 左右眼 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ksplayer.