bugGNU Octave - Bugs: bug #63899, error report for audio part in...

 
 

bug #63899: error report for audio part in Psychtoolbox

Submitter:  None
Submitted:  Thu 09 Mar 2023 02:15:11 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  Vera Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * dev
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 12 Mar 2023 05:33:26 PM UTC, comment #8: 

Dimitri thank you for your answer.
I filed an issue on Ask Ubuntu.

Anonymous
Sat 11 Mar 2023 12:04:06 PM UTC, comment #7: 

So the problem is most likely with UBUNTU SOFTWARE packaging.
You need to file a bug with them.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Sat 11 Mar 2023 09:37:02 AM UTC, comment #6: 

Hi Dimitri,
I re-installed GNU OCTAVE from UBUNTU SOFTWARE.
The error appears even after the re-installation.
Thank you for your time,
Vera

Anonymous
Fri 10 Mar 2023 09:14:13 PM UTC, comment #5: 

Is your octave native or from Snap?

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Fri 10 Mar 2023 08:47:53 PM UTC, comment #4: 

Hello,
Here is a minimal example followed by the error report:

##### EXAMPLE ######
clear;
close all;
sca;
InitializePsychSound(1);
nrchannels = 2;
freq = 48000;
beepLengthSecs = 1;
startCue = 0;
waitForDeviceStart = 1;
pahandle = PsychPortAudio('Open', [], 1, 1, freq, nrchannels);
PsychPortAudio('Volume', pahandle, 0.5);
myBeep = MakeBeep(500, beepLengthSecs, freq);
PsychPortAudio('FillBuffer', pahandle, [myBeep; myBeep]);
PsychPortAudio('Start', pahandle, repetitions, startCue, waitForDeviceStart);
PsychPortAudio('Stop', pahandle, 1, 1);
PsychPortAudio('Close', pahandle);
##### END OF EXAMPLE #####

#### ERROR REPORT ####
PTB-INFO: Using PortAudio V19.6.0-devel, revision 396fe4b6699ae929d3a685b3ef8a7e97396139a4
PTB-INFO: Choosing deviceIndex 0 [HDA Intel PCH: ALC298 Analog (hw:0,0)] as default output audio device.
PTB-ERROR: Desired audio parameters for device -1 unsupported by audio device: Illegal combination of I/O devices
PTB-ERROR: This could be, e.g., due to an unsupported combination of audio sample rate, audio channel count/allocation, or audio sample format.
PTB-ERROR: On Linux you may be able to use ALSA audio converter plugins to make this work.
Error in function Open:         Usage error
Failed to open PortAudio audio device due to unsupported combination of audio parameters.
error: PsychPortAudio: Usage:

pahandle = PsychPortAudio('Open' [, deviceid][, mode][, reqlatencyclass][, freq][, channels][, buffersize][, suggestedLatency][, selectchannels][, specialFlags=0]);
#### END OF ERROR REPORT ####

Additional notes:
- OS: Ubuntu 22.04 jammy,  Kernel: x86_64 Linux 5.19.0-35-generic
- Psychtoolbox-3 for GNU/Linux X11, under GNU/Octave 64-Bit (Version 3.0.19 - Build date: Feb 24 2023).
- after running the example, there in not sound from the speakers and it comes back after exiting OCTAVE.
- this error appeared suddenly without me changing something in the scripts

I think I will uninstall & re-install Psychtoolbox & OCTAVE.

Thank you for your time.

Anonymous
Fri 10 Mar 2023 08:23:16 AM UTC, comment #3: 

Could you please reduce to a minimal example that reproduces the error? Ideally, without using code from third-party Octave packages.

Markus Mützel <mmuetzel>
Group administrator
Fri 10 Mar 2023 04:13:14 AM UTC, comment #2: 

No but audio is part of Octave.

Why audio fails?


Anonymous
Fri 10 Mar 2023 03:48:18 AM UTC, comment #1: 

What is psych toolbox? Is that part of Octave?

Anonymous
Thu 09 Mar 2023 02:15:11 PM UTC, original submission:  

Hello,
The audio part on Psychtoolbox scripts has suddenly stopped working.
I tried:
1. old scripts of mine that were working 100%
2. a Psychtoolbox tutorial that I found here: https://peterscarfe.com/insertedCode/beepDemoCode.html
3. the command PsychPortAudioTimingTest

I always get the same error (here below is the result from PsychPortAudioTimingTest):
###
PTB-ERROR: Desired audio parameters for device -1 unsupported by audio device: Illegal combination of I/O devices
PTB-ERROR: This could be, e.g., due to an unsupported combination of audio sample rate, audio channel count/allocation, or audio sample format.
PTB-ERROR: On Linux you may be able to use ALSA audio converter plugins to make this work.
Error in function Open:         Usage error
Failed to open PortAudio audio device due to unsupported combination of audio parameters.
error: PsychPortAudio: Usage:

pahandle = PsychPortAudio('Open' [, deviceid][, mode][, reqlatencyclass][, freq][, channels][, buffersize][, suggestedLatency][, selectchannels][, specialFlags=0]);
error: called from
    PsychPortAudioTimingTest at line 161 column 10
###

I have attached a screenshot with the errors.
Thank you in advance for your time,
Vera

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by dasergatskov (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-03-09 None Attached File- Added Screenshot@from@2023-03-08@22-06-51.png, #54467

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code