Re: [pjsip] Segmentation fault when running pjsua demo app on Raspberry Pi

PT
Philipp Trenz
Thu, Aug 23, 2018 6:28 PM

I’m facing exactly the same issues as Christian on a Raspberry Pi 3 using PJSUA2 and Python. Is there any solution? Do earlier versions work?

Many Thanks!

I’m facing exactly the same issues as Christian on a Raspberry Pi 3 using PJSUA2 and Python. Is there any solution? Do earlier versions work? Many Thanks!
CH
Christian Hoff
Fri, Aug 24, 2018 9:44 AM

Hello Philipp,

I don't know what caused this particular crash, but I got it to run
meanwhile. You can check these things:

  1. You need to disable echo cancellation and set the audio output to
    stereo (instead of mono) when running the pjsua app. Otherwise PJSIP
    crashes. I think the bug with echo cancellation is a bug in PJSIP
    itself, while the mono audio issue is probably a problem with my
    audio card (Cirrus Logic AUdio Card). It might very well be that
    mono output works with other sound cards.
    These were also the settings that Adam Rossi was using when he
    compiled his guide on how to run PJSIP on the Raspberry Pi 3:
    https://github.com/acrossi/raspberry-pi-stuff/wiki/Compiling-PJSIP-with-Video-and-Audio-on-the-Raspberry-Pi-3---RPI-Camera-Module
    . You might find his guide useful as a reference in general.
  2. If all this does not help, compile PJSIP with Address Sanitizer (a
    tool similar to Valgrind), run the PJSUA demo app and analyze/post
    the output from Address Sanitizer.

Kind regards,

Christian

On 23/08/18 20:28, Philipp Trenz wrote:

I’m facing exactly the same issues as Christian on a Raspberry Pi 3 using PJSUA2 and Python. Is there any solution? Do earlier versions work?

Many Thanks!


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

Hello Philipp, I don't know what caused this particular crash, but I got it to run meanwhile. You can check these things: 1. You need to disable echo cancellation and set the audio output to stereo (instead of mono) when running the pjsua app. Otherwise PJSIP crashes. I think the bug with echo cancellation is a bug in PJSIP itself, while the mono audio issue is probably a problem with my audio card (Cirrus Logic AUdio Card). It might very well be that mono output works with other sound cards. These were also the settings that Adam Rossi was using when he compiled his guide on how to run PJSIP on the Raspberry Pi 3: https://github.com/acrossi/raspberry-pi-stuff/wiki/Compiling-PJSIP-with-Video-and-Audio-on-the-Raspberry-Pi-3---RPI-Camera-Module . You might find his guide useful as a reference in general. 2. If all this does not help, compile PJSIP with Address Sanitizer (a tool similar to Valgrind), run the PJSUA demo app and analyze/post the output from Address Sanitizer. Kind regards, Christian On 23/08/18 20:28, Philipp Trenz wrote: > I’m facing exactly the same issues as Christian on a Raspberry Pi 3 using PJSUA2 and Python. Is there any solution? Do earlier versions work? > > Many Thanks! > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org