相关文章推荐
帅气的荔枝  ·  pandas ...·  7 月前    · 
魁梧的排球  ·  Oython概述·  1 年前    · 
风流倜傥的熊猫  ·  b站下载器_抖抖音·  1 年前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I am using WebRTC for voice calling everything work fine. When Call hangUp i am disposing the PeerConnection as follows before finishing Call Activity .

 executor.execute(() -> {
        if (peerConnectionFactory != null) {
            peerConnectionFactory.dispose();
            peerConnectionFactory=null;
        if (localPeer != null) {
            localPeer.dispose();
            localPeer=null;

I am getting fatal-signal-6. I have read what-is-fatal-signal-6 . Its says Do not block the UI thread, this can cause a SIGABRT as the OS will kill a non-responsive app . But i am calling it on non Ui thread and still getting the issue.

Fatal signal 6 (SIGABRT) at 0x00007e2f (code=-6), thread 32390 (worker_thread)

Please look into issue.

I was doing wrong during closing the peerConnection . Correct flow of closing connection is below.

 executor.execute(() -> {
            if (peerConnectionFactory != null) {
                peerConnectionFactory.stopAecDump();
            if (localPeer != null) {
                localPeer.dispose();
                localPeer = null;
            if (peerConnectionFactory != null) {
                peerConnectionFactory.dispose();
                peerConnectionFactory = null;
            PeerConnectionFactory.stopInternalTracingCapture();
            PeerConnectionFactory.shutdownInternalTracer();
                I tried it your way but I'm still getting a Fatal signal 11 (SIGSEGV), code 1, fault addr 0xb8 in tid 26448 (Thread-13148) when calling peerConnectionFactory.dispose() the only difference I can see with your code is that I'm using Kotlin and my peerConnectionFactory is declared as var peerConnectionFactory: PeerConnectionFactory? = null so I need the !! operator to access it... Any clues? Do I actually need to call dispose() on my peerConnectionFactory?
– Jairo Lozano
                Nov 21, 2018 at 20:36
                Found another thread facing my same situation here, although it has not ben answered yet it gets the exact same error message...
– Jairo Lozano
                Nov 21, 2018 at 20:54
        

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.