Menu

2.2 segmentation failt on linux choosing pulse audio

Claude M
2019-05-01
2019-05-06
  • Claude M

    Claude M - 2019-05-01

    Hello

    I have updated Dream 2.2 from version uploaded to 2019-04-24 that was working very fine with version 2019-04-29 found today in files sections

    System is Debian Testing (debian 10) x64 core i7 8 gb

    Now dream want run when choosing input device -> virtual_sink (a pulse audio device same as use in previous version) program crash with segmentation fault

    here is the output of gdb

    rig_register: rig_register (3102)
    rig_register called
    rig_register: rig_register (3101)
    barrett: _init called
    rig_register called
    rig_register: rig_register (3201)
    barrett: _init back from rig_register
    [New Thread 0x7fffe92a1700 (LWP 6624)]
    [New Thread 0x7fffe8a4f700 (LWP 6625)]
    initplay 48000 38400 0
    CSoundOutPulse::Init_HW()
    CSoundOutPulse::Init_HW pa_stream_connect_playback failed
    pulseaudio output device 'default', init done
    enum alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
    enum alsa_input.pci-0000_00_1b.0.analog-stereo
    enum alsa_output.usb-GeneralPlus_USB_Audio_Device-00.analog-stereo.monitor
    enum alsa_input.usb-GeneralPlus_USB_Audio_Device-00.analog-mono
    enum Virtual_Sink.monitor
    CSoundCardSelMenu::OnSoundOutDeviceChanged default
    output device changed in trx default
    enum alsa_output.pci-0000_00_1b.0.analog-stereo
    enum alsa_output.usb-GeneralPlus_USB_Audio_Device-00.analog-stereo
    enum Virtual_Sink
    [New Thread 0x7fffc7fff700 (LWP 6627)]
    Working thread started
    [New Thread 0x7fffc642b700 (LWP 6628)]
    stoprec
    QMutex: destroying locked mutex
    stoprec
    ~CSoundInPulse
    stoprec
    ~CSoundPulse
    
    Thread 7 "CRx" received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x7fffc7fff700 (LWP 6627)]
    0x00005555556f792d in ?? ()
    (gdb) bt
    #0  0x00005555556f792d in  ()
    #1  0x000055555568c872 in  ()
    #2  0x000055555568cf57 in  ()
    #3  0x00005555556c30cf in  ()
    #4  0x000055555576946e in  ()
    #5  0x00007ffff5f07aa7 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
    #6  0x00007ffff5e2bfa3 in start_thread (arg=<optimized out>)
        at pthread_create.c:486
    #7  0x00007ffff5a3982f in clone ()
        at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
    

    Where i can download the previous version that working (2019-04-24)
    thank
    Claude

     
  • Julian Cable

    Julian Cable - 2019-05-01

    Sorry about that. Are you building from source or using the .deb file?

    I'll either fix this tonight and put out a new version or re-create the one from the 24th and re-upload it. It looks like the one you want is r1290 which you can get the source for with:

    svn checkout svn://svn.code.sf.net/p/drm/code/tags/dream-2.2 -r1290

    and then

    cd dream-2.2
    qmake
    make

    should get you there.

     
  • Claude M

    Claude M - 2019-05-01

    thanks for your answer and your nice program julian

    Build from source svn compile without error but running program crash at startup
    here is the gdb output with backtrace

    [New Thread 0x7fffe8a51700 (LWP 17612)]
    stoprec
    stoprec
    ~CSoundInPulse
    stoprec
    ~CSoundPulse
    ~CSoundOutPulse
    stopplay
    ~CSoundPulse
    initplay 48000 38400 0
    CSoundOutPulse::Init_HW()
    pulseaudio output device 'alsa_output.pci-0000_00_1b.0.analog-stereo', init done
    CSoundCardSelMenu::OnSoundOutDeviceChanged alsa_output.pci-0000_00_1b.0.analog-stereo
    output device changed in trx alsa_output.pci-0000_00_1b.0.analog-stereo
    [New Thread 0x7fffc7fff700 (LWP 17614)]
    Working thread started
    initrec 48000 1280 1
    Assertion 's' failed at pulse/stream.c:2663, function pa_stream_set_buffer_attr(). Aborting.
    
    Thread 7 "CRx" received signal SIGABRT, Aborted.
    [Switching to Thread 0x7fffc7fff700 (LWP 17614)]
    __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
    50  ../sysdeps/unix/sysv/linux/raise.c: Aucun fichier ou dossier de ce type.
    (gdb) bt
    #0  0x00007ffff588e8bb in __GI_raise (sig=sig@entry=6)
        at ../sysdeps/unix/sysv/linux/raise.c:50
    #1  0x00007ffff5879535 in __GI_abort () at abort.c:79
    #2  0x00007ffff72f7bb5 in pa_stream_set_buffer_attr ()
        at /lib/x86_64-linux-gnu/libpulse.so.0
    #3  0x0000555555668869 in CSoundInPulse::SetBufferSize_HW()
        (this=<optimized out>) at src/sound/drm_pulseaudio.cpp:479
    #4  0x0000555555669229 in CSoundInPulse::Init(int, int, bool)
        (bNewBlocking=<optimized out>, iNewBufferSize=1280, iNewSampleRate=48000, this=0x555555e6c070) at src/sound/drm_pulseaudio.cpp:826
    #5  0x0000555555669229 in CSoundInPulse::Init(int, int, bool)
        (this=0x555555e6c070, iNewSampleRate=48000, iNewBufferSize=1280, bNewBlocking=<optimized out>) at src/sound/drm_pulseaudio.cpp:784
    #6  0x00005555556baf25 in CReceiveData::InitInternal(CParameter&)
        (this=0x7ffffffef948, Parameters=...) at src/DRMSignalIO.cpp:772
    #7  0x0000555555677096 in CModul<double, double>::InitThreadSave(CParameter&)
        (this=this@entry=0x7ffffffef948, Parameter=...)
        at src/GlobalDefinitions.h:254
    #8  0x0000555555677160 in CModul<double, double>::Init(CParameter&, CBuffer<double>&) (this=0x7ffffffef948, Parameter=..., OutputBuffer=...)
        at src/util/Modul.h:303
    #9  0x0000555555676a0c in CReceiverModul<double, double>::ReadData(CParameter&, CBuffer<double>&) (this=0x7ffffffef948, Parameter=..., OutputBuffer=...)
    --Type <RET> for more, q to quit, c to continue without paging--
        at src/util/Modul.h:1043
    #10 0x00005555556a170d in CDRMReceiver::process() (this=0x7ffffffef940)
        at src/DrmReceiver.cpp:887
    #11 0x0000555555740716 in CRx::run() (this=0x7ffffffef610)
        at src/main-Qt/crx.cpp:51
    #12 0x00007ffff5eb2aa7 in  () at /lib/x86_64-linux-gnu/libQt5Core.so.5
    #13 0x00007ffff5d40fa3 in start_thread (arg=<optimized out>)
        at pthread_create.c:486
    #14 0x00007ffff595082f in clone ()
        at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
    

    claude

     
  • Julian Cable

    Julian Cable - 2019-05-01

    OK I think the version you had working used the alsa driver.

    But that is also crashing on the latest commit.

    If you want to try 1290 with alsa you can use:

    make clean
    qmake CONFIG+=alsa CONFIG+=sound
    make

    you will need libasound2-dev

    Julian

     
  • Julian Cable

    Julian Cable - 2019-05-06

    Hi, please report failures and successes with linux here: https://sourceforge.net/p/drm/tickets/230/

     

Log in to post a comment.