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

rtc::PeerConnection::close() causes the application to crash when called multiple times #1241

Open
vietdungdev0106 opened this issue Aug 9, 2024 · 1 comment

Comments

@vietdungdev0106
Copy link

Hello author. I encountered a problem when I closed 1 Peer multiple times and the error log is below. I wonder if anyone has the same error as me?

(std::__ndk1::function<void (rtc::PeerConnection::State)>::operator()(rtc::PeerConnection::State) const+60) (BuildId: 17c6e24c2208acb2d1e627a27f8a3f60e03ad59a)
(ZNK3rtc21synchronized_callbackIJNS_14PeerConnection5StateEEE4callES2+104) (BuildId: 17c6e24c2208acb2d1e627a27f8a3f60e03ad59a)
(ZNK3rtc21synchronized_callbackIJNS_14PeerConnection5StateEEEclES2+80) (BuildId: 17c6e24c2208acb2d1e627a27f8a3f60e03ad59a)
(rtc::impl::PeerConnection::changeState(rtc::PeerConnection::State)+588) (BuildId: 17c6e24c2208acb2d1e627a27f8a3f60e03ad59a)
(rtc::impl::PeerConnection::closeTransports()+260) (BuildId: 17c6e24c2208acb2d1e627a27f8a3f60e03ad59a)
(rtc::impl::PeerConnection::remoteClose()+212) (BuildId: 17c6e24c2208acb2d1e627a27f8a3f60e03ad59a)
(rtc::impl::PeerConnection::close()+372) (BuildId: 17c6e24c2208acb2d1e627a27f8a3f60e03ad59a)
(rtc::PeerConnection::close()+52) (BuildId: 17c6e24c2208acb2d1e627a27f8a3f60e03ad59a)

@paullouisageneau
Copy link
Owner

Calling close() multiple times shouldn't be an issue. Are you sure nothing causes a crash in the onStateChange() user callback?

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

2 participants