Giter Club home page Giter Club logo

Comments (16)

kingslay avatar kingslay commented on July 18, 2024

要怎么样才会复现这个crash呢?

from ksplayer.

matteogobbi avatar matteogobbi commented on July 18, 2024

from ksplayer.

kingslay avatar kingslay commented on July 18, 2024

需要打印出audioFormat的值,才能定位问题。估计是audioFormat的值不对。

from ksplayer.

matteogobbi avatar matteogobbi commented on July 18, 2024

@kingslay new log: required condition is false: IsFormatSampleRateAndChannelCountValid(format)

from ksplayer.

matteogobbi avatar matteogobbi commented on July 18, 2024

@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

from ksplayer.

kingslay avatar kingslay commented on July 18, 2024

是的,但是需要知道为什么会产生一个不正常的AVAudioFormat。 需要能够找到那个出问题的url或是打印出AVAudioFormat的值。这样才只要要怎么进行兜底处理。

from ksplayer.

matteogobbi avatar matteogobbi commented on July 18, 2024

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.

matteogobbi avatar matteogobbi commented on July 18, 2024
Screenshot 2023-10-01 at 22 37 33 man please help to investigate this without any stream.

from ksplayer.

matteogobbi avatar matteogobbi commented on July 18, 2024

@kingslay

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.

UnknownCoder807 avatar UnknownCoder807 commented on July 18, 2024

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.

matteogobbi avatar matteogobbi commented on July 18, 2024

from ksplayer.

UnknownCoder807 avatar UnknownCoder807 commented on July 18, 2024

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.

matteogobbi avatar matteogobbi commented on July 18, 2024

from ksplayer.

kingslay avatar kingslay commented on July 18, 2024

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.

kingslay avatar kingslay commented on July 18, 2024

问题应该是这个视频返回的HZ为0。我可以试着把这个改成不会crash。但是改完之后我不知道这个视频能不能正常播放

from ksplayer.

matteogobbi avatar matteogobbi commented on July 18, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.