Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash in AudioEnginePlayer #624

Closed
UnknownCoder807 opened this issue Nov 9, 2023 · 8 comments
Closed

Crash in AudioEnginePlayer #624

UnknownCoder807 opened this issue Nov 9, 2023 · 8 comments

Comments

@UnknownCoder807
Copy link
Sponsor

UnknownCoder807 commented Nov 9, 2023

Since the recent commits (I don't know when exactly) I am seeing a vast increase in crashes with AudioEnginePlayer.swift

Screenshot 2023-11-09 at 14 41 45
Fatal Exception: com.apple.coreaudio.avfaudio
0  CoreFoundation                 0xed5e0 __exceptionPreprocess
1  libobjc.A.dylib                0x2bc00 objc_exception_throw
2  CoreFoundation                 0x172334 +[NSException raise:format:]
3  AVFAudio                       0x2d20 AVAE_RaiseException(NSString*, ...)
4  AVFAudio                       0x4a3dc AVAudioEngineGraph::_Connect(AVAudioNodeImplBase*, AVAudioNodeImplBase*, unsigned int, unsigned int, AVAudioFormat*)
5  AVFAudio                       0xefbd4 AVAudioEngineImpl::Connect(AVAudioNode*, AVAudioNode*, unsigned long, unsigned long, AVAudioFormat*)
6  AVFAudio                       0xf3588 -[AVAudioEngine connect:to:format:]
7  xxxx IPTV                  0x9b8c28 AVAudioEngine.connect(nodes:format:) + 299 (AudioEnginePlayer.swift:299)
8  xxxx IPTV                  0x9b7fd0 AudioEnginePlayer.prepare(audioFormat:) + 177 (AudioEnginePlayer.swift:177)
9  xxxx IPTV                  0x9e62a4 closure #3 in KSMEPlayer.sourceDidOpened() + 202 (KSMEPlayer.swift:202)
10 xxxx IPTV                  0x4bccdc thunk for @escaping @callee_guaranteed () -> () (<compiler-generated>)
11 libdispatch.dylib              0x26a8 _dispatch_call_block_and_release
12 libdispatch.dylib              0x4300 _dispatch_client_callout
13 libdispatch.dylib              0x12998 _dispatch_main_queue_drain
14 libdispatch.dylib              0x125b0 _dispatch_main_queue_callback_4CF
15 CoreFoundation                 0x379bc __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
16 CoreFoundation                 0x346c8 __CFRunLoopRun
17 CoreFoundation                 0x33e18 CFRunLoopRunSpecific
18 GraphicsServices               0x35ec GSEventRunModal
19 UIKitCore                      0x22f2fc -[UIApplication _run]
20 UIKitCore                      0x22e938 UIApplicationMain
21 SwiftUI                        0x114d354 OUTLINED_FUNCTION_31
22 SwiftUI                        0x114d198 OUTLINED_FUNCTION_31
23 SwiftUI                        0xdca434 OUTLINED_FUNCTION_26
24 xxxx IPTV                  0x4be488 main (xxxx.swift)
25 ???                            0x1b382fd44 (Missing)
@kingslay
Copy link
Owner

是否有日志呢?看下音频格式的信息。

@UnknownCoder807
Copy link
Sponsor Author

I have no further logs. This is the only info I have. Its causing hundreds of crashes per day, and is only because of a recent commit.

@kingslay
Copy link
Owner

这个没有日志很难找到原因,但是按照这个crash来看。应该是传入的音频格式不合法导致的。可以多找一些不规范的视频来播放下。看能不能重现。这个是tvos吗?还是iOS系统呢?

@UnknownCoder807
Copy link
Sponsor Author

It is both iOS and tvOS. I don't know what type of video they are viewing, the people are anonymous and unless they contact me, I don't know how to get one of the url's.

Is AudioUnitPlayer safe to use now? Are there any negatives to using it over AudioEnginePlayer ?

@kingslay
Copy link
Owner

AudioUnitPlayer 只有暂停,静音,倍数播放的能力。没有调节音效的能力。是可以安全使用的。

@UnknownCoder807
Copy link
Sponsor Author

AudioUnitPlayer 只有暂停,静音,倍数播放的能力。没有调节音效的能力。是可以安全使用的。

What do you mean by sound effects?

@matteogobbi
Copy link
Contributor

+1 on this.
Suddenly this crash resurfaced, and it's the most happening crash. It was fixed versions ago:

Screenshot 2023-11-12 at 01 36 14

theonlymo pushed a commit to theonlymo/KSPlayer that referenced this issue Nov 16, 2023
* 'develop' of github.com:kingslay/KSPlayer:
  解决本地依赖问题
  解决字幕无法显示的问题
  fix kingslay#624
  fix kingslay#528
  add log
  fix  kingslay#618
  fix  kingslay#618
  fix build
  fix kingslay#627
  add sponsor
  fix build
  fix kingslay#528

# Conflicts:
#	Sources/KSPlayer/MEPlayer/FFmpegAssetTrack.swift
#	Sources/KSPlayer/MEPlayer/FFmpegDecode.swift
#	Sources/KSPlayer/MEPlayer/MEPlayerItem.swift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants