VDK Discussion Forum

You must be logged in to post

Receive SIGABORT after call getAudioInputDevice()

UserPost

16:38
11 February 2013


grin

Russia

Member

posts 3


Hello.

I try to fill QCombobox by data of audio input devices, using the following code:

    foreach( const QString& name, m_vdk->getAudioInputDeviceList() )
    {
        const int id = -1;
        id = m_vdk->getAudioInputDevice( name );
        m_ui->combo_input_devices->addItem( name, id );
    }

Calling getAudioInputDevice() invokes a crash of application with signal SIGABORT. First string of the 'backtrace report' says that cause is that "*** buffer overflow detected ***". If will comment call getAudioInputDevice() – then application will not crash.


System: Ubuntu 12.04 ( 64-bits ).

VDK:  Trial Version 1.1.0


Please, help me. =)

16:44
11 February 2013


grin

Russia

Member

posts 3

I check list, returned by getAudioInputDeviceList() – it's contains tree names:

"HDA Intel PCH: VT1708S Analog (hw:0,0)"
"USB2.0 PC CAMERA: USB Audio (hw:1,0)"
"sysdefault"

VDKQtEngine::getAudioInputDevice() invokes a crash with 1st and 2nd name ( "HDA Intel PCH: VT1708S Analog (hw:0,0)" and  "USB2.0 PC CAMERA: USB Audio (hw:1,0)" ), but works fine with "sysdefault" – returns '6';

Also I check list, returned by getAudioOutputDevice() – it's contains four names:

    "HDA Intel PCH: VT1708S Digital (hw:0,1)"
    "HDA Intel PCH: VT1708S HP (hw:0,2)"
    "iec958″
    "spdif"

VDKQtEngine::getAudioOutputDevice() invokes a crash with the 2nd name ( "HDA Intel PCH: VT1708S HP (hw:0,2)" ) only.

0:44
21 February 2013


lamonica

Admin

posts 28

Hello grin,

the crash you mention is most certainly a bug that has already been fixed in retail version. Unfortunately the trial package has not yet been updated.

It is peculiar that the getDefaultOutputDevice does not crash for you with the first device.

If you are interested i can pm you a link where to download the trial version of 1.2RC (that supports Ubuntu 12.04)

best regards

7:28
21 February 2013


grin

Russia

Member

posts 3

Hello, lamonica!

Yes, I want to try the trial version 1.2 RC , where this bug is fixed.

Please, give me a link, through PM.


Best regards.

11:43
21 February 2013


lamonica

Admin

posts 28

Hello grin,

I sent you a pm with the download link.

get back to us if you need further help :)


Happy VoIPing Cool



About the VoipDevKit forum

Most Users Ever Online:

23


Currently Online:

1 Guest

Forum Stats:

Groups: 1

Forums: 2

Topics: 20

Posts: 75

Membership:

There are 235 Members

There has been 1 Guest

There are 2 Admins

There are 2 Moderators

Top Posters:

Antti – 9

zanes – 7

simon – 5

chedy – 3

Elimu – 3

grin – 3

Administrators: lamonica (28 Posts), admin (0 Posts)

Moderators: alienpenguin (8 Posts), murgia (0 Posts)