Giter VIP home page Giter VIP logo

Comments (3)

sauwming avatar sauwming commented on June 14, 2024

I have created a patch to fix it in #3901.

One thing worth mentioning is that the app seems to initiate media stoppage by calling MediaLine::stopTransport(). I believe this shouldn't be necessary since typically the media should be stopped by other components, such as the call itself via pjsua_media_channel_deinit().

If the issue still persists, please provide us the stack trace of the two threads that race, i.e. the threads that call pjmedia_transport_media_stop() at the same time.

from pjproject.

XQTING-Wout avatar XQTING-Wout commented on June 14, 2024

That seems to fix it, thanks!

We don't use pjsua for our IVR (for performance reasons), we use pjsip and pjmedia directly. Hence why pjsua_media_channel_deinit() isn't called.

from pjproject.

XQTING-Wout avatar XQTING-Wout commented on June 14, 2024

Hi,
After some more research of the fix, I saw that pjmedia_clock_stop() is now protected by a mutex only in dtls_media_stop(). But pjmedia_clock_stop() is called from within ssl_flush_wbio() as well without mutex protection, so we could still get the error trying to stop a clock that is already stopped by another thread.

from pjproject.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.