Skip to content

Crash on PlaybackEngine deinit #6

@alexiscreuzot

Description

@alexiscreuzot

Had lots of the following crash

#0	(null) in __exceptionPreprocess ()
#1	(null) in objc_exception_throw ()
#2	(null) in +[NSException raise:format:arguments:] ()
#3	(null) in AVAE_RaiseException(NSString*, ...) ()
#4	(null) in _AVAE_CheckAndReturnErr(char const*, int, char const*, char const*, bool, int, NSError**) ()
#5	(null) in AVAudioEngineGraph::RemoveNode(AVAudioNode*, NSError**) ()
#6	(null) in -[AVAudioNode didDetachFromEngine:error:] ()
#7	(null) in AVAudioEngineImpl::DetachNode(AVAudioNode*, bool, NSError**) ()
#8	(null) in -[AVAudioEngine detachNode:] ()
#9	0x10352fc34 in PlaybackEngine.deinit at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/playing/PlaybackEngine.swift:84
#10	(null) in PlaybackEngine.__deallocating_deinit ()
#11	(null) in _swift_release_dealloc ()
#12	(null) in bool swift::HeapObjectSideTableEntry::decrementStrong<(swift::PerformDeinit)1>(unsigned int) ()
#13	(null) in AudioPipeline.onFormatChanged(_:) ()
#14	0x103500cac in 0x1034f4000 at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/decoding/AudioDecoder.swift:55
#15	0x1035258dc in $s14YbridPlayerSDK9AudioDataC6formatSo13AVAudioFormatCSgvW at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/decoding/AudioData.swift:39
#16	(null) in $s14YbridPlayerSDK9AudioDataC6formatSo13AVAudioFormatCSgvs ()
#17	0x1035258dc in OpusData.onOpusHead(package:packetno:) at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/decoding/opus/OpusData.swift:228
#18	0x10352426c in 0x1034f4000 at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/decoding/opus/OpusData.swift:122
#19	0x1035237c0 in 0x1034f4000 at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/decoding/opus/OpusData.swift:109
#20	0x103520f80 in 0x1034f4000 at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/decoding/opus/OggContainer.swift:97
#21	0x103527830 in 0x1034f4000 at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/decoding/opus/OpusDecoder.swift:109
#22	0x103504490 in closure #1 in AudioPipeline.decode(data:) at /Users/alex/Developer/iOS/_frameworks/player-sdk-swift/player-sdk-swift/AudioPipeline.swift:285

This line was the issue, crashes disappeared after removing it :

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions