Skip to content

[iOS] Expo App Crash when using StreamerNode when reaching end of stream #731

@jlm0

Description

@jlm0

Hi @mdydek! I just started using the library today, and I was looking for this exact thing. I'm currently seeing on 0.9.0 my Expo app crash (Simulator - iPhone 16 - iOS 18.6) when I allow a song to play all the way through, and the onEnded callback fires specifically in the StreamerNode::cleanup() function when the audio finishes playing. The crash occurs in std::__1::thread::join(), which imo suggests the library is trying to join a thread that's already been joined or destroyed. Not an expert but from the Apple crash report, I gather:

audioapi::StreamerNode::cleanup() (StreamerNode.cpp:276)
    ↓
  std::__1::thread::join()
    ↓
  SIGABRT

I hope #718 addresses this for iOS as well, since it's fixing callback clearing for AudioScheduledSourceNode, which StreamerNode derives from.

Will look out for 0.10.0 and then test, and if not, open a new bug.

Thanks!

Originally posted by @jlm0 in #717

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