tanhakabir / SwiftAudioPlayer

Streaming and realtime audio manipulation with AVAudioEngine
https://medium.com/chameleon-podcast/creating-an-advanced-streaming-audio-engine-for-ios-9fbc7aef4115
MIT License
544 stars 107 forks source link

‼️ Crash on iOS 16 for 100% users – signal SIGABRT #169

Open snowtema opened 1 year ago

snowtema commented 1 year ago
#11 0x000000010066a680 in AudioParser.determineIfMoreDataNeedsToBeParsed(index:) at AudioParser.swift:218

stella(637,0x1701eb000) malloc: Heap corruption detected, free list is damaged at 0x281eb6080
*** Incorrect guard value: 0
stella(637,0x1701eb000) malloc: *** set a breakpoint in malloc_error_break to debug
stella(637,0x1701eb000) malloc: Heap corruption detected, free list is damaged at 0x281eb6080
*** Incorrect guard value: 0
(lldb) 
jserrafindster commented 1 year ago

+1

Sethi1998 commented 1 year ago

How we will solve this I am getting the same error?

papfonseca commented 1 year ago

+1

snowtema commented 1 year ago

@Sethi1998 I decided to switch to another library

kuamanet commented 1 year ago

@snowtema when is this happening? I'm using this library too, on iOS 16 iPhone 13 Pro, and it's working fine for me

bevanchristian commented 1 year ago

f

bevanchristian commented 1 year ago

Crash in here SwiftAudioPlayer DirectorThreadSafeClosures.swift - Line 49 didUpdate + 49

jiangdi0924 commented 1 year ago

same issue + 1

snowtema commented 1 year ago

A lot of crashes only on iOS 16 in this library. Looks like Apple broke something in iOS16.

Screenshot 2022-09-19 at 11 55 57
jiangdi0924 commented 1 year ago

@snowtema Have you solved it? 😂

Sethi1998 commented 1 year ago

@Sethi1998 I decided to switch to another library

Which Library ?

Sethi1998 commented 1 year ago

@snowtema when is this happening? I'm using this library too, on iOS 16 iPhone 13 Pro, and it's working fine for me

It is crashing in iPhone 11 and 12 pro I tested in both the devices in iOS 16 version

jiangdi0924 commented 1 year ago

both

I found that it works fine in the simulator,crashes in real devices(IOS16)

Sethi1998 commented 1 year ago

both

I found that it works fine in the simulator,crashes in real devices(IOS16)

yes its working in simulator have anyone solved it I got the error that the buffer Is nil when we are calling it in method

snowtema commented 1 year ago

@snowtema Have you solved it? 😂

Yes @jiangdi0924, I switched to ModernAVPlayer, which works fine 😂

snowtema commented 1 year ago

FYI, @jiangdi0924 @Sethi1998, ModernAVPlayer doesn't have a queue functionality from the box.

UPD: also it's unable to set custom HTTP headers for remote audio

kuamanet commented 1 year ago

@snowtema if you want to give this a try https://github.com/tanhakabir/SwiftAudioPlayer/pull/175

bevanchristian commented 1 year ago

pod 'SwiftAudioPlayer' , :git => 'https://github.com/Kuama-IT/SwiftAudioPlayer.git', :branch => 'fix-ios-16-crash'

solve the problem

Sethi1998 commented 1 year ago

pod 'SwiftAudioPlayer' , :git => 'https://github.com/Kuama-IT/SwiftAudioPlayer.git', :branch => 'fix-ios-16-crash'

solve the problem

Thanks working now

jiangdi0924 commented 1 year ago

@snowtema if you want to give this a try #175
after a few days of testing, I found sometime audio duration not correctly

drainmond commented 1 year ago

Will this ever be fixed? 🙏🏼

patrickjquinn commented 4 months ago

This is still borked I take it?