uos icon indicating copy to clipboard operation
uos copied to clipboard

Debug output

Open rchastain opened this issue 3 years ago • 38 comments

Hello Fred!

I noticed that uos produces debug output, even when DEBUG is not defined. I believe that it comes from the binaries. Would it be possible to have binaries without debug output? This is for the Eschecs project.

No emergency, just a question. ;)

Regards.

Roland

[roland@localhost eschecs-202104122121]$ ./eschecs
ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
ALSA lib pcm_dmix.c:1009:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
ALSA lib pcm_dmix.c:1075:(snd_pcm_dmix_open) unable to open slave
[roland@localhost eschecs-202104122121]$ 

rchastain avatar Apr 18 '21 04:04 rchastain

And I have another question. Would it be possible to use libraries already installed on the user's computer?

rchastain avatar Apr 18 '21 10:04 rchastain

Hello Roland. There was discussion-issue about this in PortAudio project. It is the same for all applications that uses Portaudio.

Here for example the result if you run audacity via a terminal:

fred@fiens ~> audacity ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map ALSA lib pcm_route.c:869:(find_matching_chmap) Found no matching channel map Cannot connect to server socket err = Aucun fichier ou dossier de ce type Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock Cannot connect to server socket err = Aucun fichier ou dossier de ce type Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card Cannot connect to server socket err = Aucun fichier ou dossier de ce type Cannot connect to server request channel jack server is not running or cannot be started JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock 12:24:16: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:16: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:16: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:16: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:16: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:16: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:16: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:16: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:16: Debug: ScreenToClient cannot work when toplevel window is not shown Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736 Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1904 Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2171 Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2840 ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736 Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1904 Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2171 Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2840 Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736 Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1904 Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2171 Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2840 Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736 Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1904 Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2171 Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2840 Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4628 Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4628 Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736 Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1904 Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2171 Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2840 Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736 Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->pcm )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1904 Expression 'PaAlsaStreamComponent_Initialize( &self->capture, alsaApi, inParams, StreamDirection_In, NULL != callback )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2171 Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters, outputParameters, sampleRate, framesPerBuffer, callback, streamFlags, userData )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2840 Expression 'stream->playback.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 4628 Expression '*idev = open( idevName, flags )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 832 Expression 'OpenDevices( idevName, odevName, &idev, &odev )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 878 Expression 'PaOssStream_Initialize( stream, inputParameters, outputParameters, streamCallback, userData, streamFlags, ossHostApi )' failed in 'src/hostapi/oss/pa_unix_oss.c', line: 1249 12:24:23: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:23: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:23: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:23: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ScreenToClient cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown 12:24:23: Debug: ClientToScreen cannot work when toplevel window is not shown

Thanks to remind me this I created a new issue to PortAudio, I hope that they will finally fix it or give the opportunity to not have those infos.

https://github.com/PortAudio/portaudio/issues/555

Fre;D

fredvs avatar Apr 18 '21 10:04 fredvs

And I have another question. Would it be possible to use libraries already installed on the user's computer?

Yes, of course, just use for loading the libraries 'system' for filename.

For example:

uos_LoadLib('system', nil, 'system', nil, nil, nil) ;

Fre;D

fredvs avatar Apr 18 '21 10:04 fredvs

Yes, of course, just use for loading the libraries 'system' for filename.

For example:

uos_LoadLib('system', nil, 'system', nil, nil, nil) ;

Good to know, thank you.

rchastain avatar Apr 18 '21 10:04 rchastain

About libraries installed in system. This is the case on nearly all Linux-FreeBSD distros, all the libraries used by uos are installed by default.

But it is not the case for Windows, imho, it is better to give those libraries for Windows release.

fredvs avatar Apr 18 '21 11:04 fredvs

Thanks to remind me this I created a new issue to PortAudio, I hope that they will finally fix it or give the opportunity to not have those infos.

PortAudio/portaudio#555

My finger doesn't thank you. It's almost dead after I scrolled your message. :)

rchastain avatar Apr 18 '21 11:04 rchastain

About libraries installed in system. This is the case on nearly all Linux-FreeBSD distros, all the libraries used by uos are installed by default.

But it is not the case for Windows, imho, it is better to give those libraries for Windows release.

OK, good to know.

By the way, I hate Windows, and I think I will no longer make Windows builds myself. I think everybody should use Linux.

rchastain avatar Apr 18 '21 11:04 rchastain

By the way, I hate Windows, and I think I will no longer make Windows builds myself. I think everybody should use Linux.

Hum, reaction of a new converted? ;-)

The same for me but Windows is still the king for PC-desktop, more than 85 % of the market use it. I was thinking when I discovered Linux 30 years ago that Windows will die with the time but it is the contrary that occurs. Windows is still living and dont stop to have more users each year.

fredvs avatar Apr 18 '21 11:04 fredvs

You know, I am a utopist.

When Bill decided to create the "Bill and Melinda Gates Foundation" I forgive him. (And I know that there are lot of "Oui mais..." for that foundation but I think "D'accord mais...")

By the way, imho, should it not be more "gentleboy" to call it "Melinda and Bill Gates foundation" ?

fredvs avatar Apr 18 '21 11:04 fredvs

Hum, reaction of a new converted? ;-)

Yes. :)

rchastain avatar Apr 18 '21 15:04 rchastain

Hello Roland.

I just remember that I already created a issue for this:

https://github.com/PortAudio/portaudio/issues/463

I hope that with the last one there will be more enthusiasm...

fredvs avatar Apr 19 '21 14:04 fredvs

Hello Fred!

Thank you for the link. I saw in the discussion that ALSA messages are sent to stderr. So I tried this and it works fine:

./eschecs 2>> error.log

ALSA messages are no longer mixed with Eschecs debug output. (I use the fpGUI DebugLn procedure. It seems, fortunately, that it writes to stdout.)

Other topic. I tried to use system sound libraries, as your did show in your example. uos_LoadLib returns 0, but I have no sound.

Here is my code.

// eschecs/sound.pas
function LoadSoundLib(const AUseSystemLib: boolean): integer;
var
  LPortAudio, LMpg123, LAudioPath, LSndFilesPath: string;
  x: integer;
begin
{ ... }
  if AUseSystemLib then
    result := uos_LoadLib('system', nil, 'system', nil, nil, nil)
  else
    result := uos_LoadLib(PChar(LPortAudio), nil, PChar(LMpg123), nil, nil,  nil);

It isn't important, just for discussion.

Other other topic. As I already said some monthes ago (I don't know if you remember), the sound system of Eschecs doesn't work very well on my Linux computer. Sometimes the sound sounds well, sometimes not. I will try with other sound files to see if it changes something. (I wanted since a long time to use new sound files.) I will also try the uos examples to see if they work well here.

Once again, not very important. Don't waste your time about that. I will investigate and say to you the result.

Regards.

Roland

rchastain avatar Apr 19 '21 16:04 rchastain

Hello Roland.

I tried to use system sound libraries, as your did show in your example. uos_LoadLib returns 0, but I have no sound

Strange, here on Debian 10.1 64 bit it works.

If it works with the libraries given by uos (they are compiled from last commit of portaudio and mpg123), maybe there is problem with the one given in your distro. Does "audacity" work for mp3 files in your distro (because audacity uses portaudio and mpg123 too)?

fredvs avatar Apr 19 '21 19:04 fredvs

Does "audacity" work for mp3 files in your distro (because audacity uses portaudio and mpg123 too)?

I don't know. I will try. Thank you for your answer.

rchastain avatar Apr 19 '21 20:04 rchastain

Hello Roland.

Thank you for the link. I saw in the discussion that ALSA messages are sent to stderr. So I tried this and it works fine:

./eschecs 2>> error.log

Thanks for the tip! It works great here too.

Do you know the equivalent in Pascal to do it by code? In C (and thanks to @strawmanninen) it is:

#include <stdio.h>
freopen("error.log", "w", stderr);

fredvs avatar Apr 22 '21 19:04 fredvs

Hello Fred!

I think an equivalent in Pascal would be this:

begin
  WriteLn(ErrOutput, 'I am a message written to stderr');
  Assign(ErrOutput, 'error.log');
  Rewrite(ErrOutput);
  WriteLn(ErrOutput, 'I am another message written to stderr');
  Close(ErrOutput);
  Assign(ErrOutput, '');
end.

rchastain avatar Apr 23 '21 02:04 rchastain

Hello Roland.

I try this:

program strumpract;
...
begin
   Assign(ErrOutput, 'error.log');
   Rewrite(ErrOutput);
  ...
   Application.run;
   Close(ErrOutput);
 end.

A empty error.log is created this but the console-messages are still there.

There is some noise in Lazarus forum, I will study it.

Fre;D

fredvs avatar Apr 23 '21 11:04 fredvs

Hello Roland.

Thanks to Warfley in Lazarus forum:

program errorlog;
     uses
      Classes, BaseUnix;
       ...
        var
         fs: TFileStream;
        begin
           fs := TFileStream.Create('error.log', fmOpenReadWrite or fmCreate);
           FpDup2(fs.Handle, StdErrorHandle);
           ...
           Application.run;
           fs.free;
        end.

fredvs avatar Apr 25 '21 15:04 fredvs

Good!

rchastain avatar Apr 25 '21 16:04 rchastain

Hello Fred (and happy new year).

Hope to make again great things with you this year. :)

Other other topic. As I already said some monthes ago (I don't know if you remember), the sound system of Eschecs doesn't work very well on my Linux computer. Sometimes the sound sounds well, sometimes not. I will try with other sound files to see if it changes something. (I wanted since a long time to use new sound files.)

I confirm that the sound problem doesn't come from UOS, because I noticed that other applications (xboard, for example) have the same problem. (Sometimes the sound is audible, sometimes not.)

But I replaced sound files (by files coming from this collection) and now it works perfectly, maybe because the files are lighter (?).

By the way, Eschecs continues here. (I am moving all my projects to GitLab.)

Regards.

Roland

rchastain avatar Jan 01 '22 14:01 rchastain

Hello Roland and happy new all.

I just checked the code of escheccs/sound.pas and indeed there are wrong parameters. I apologize, there is one zero too much after the comma for the latency parameter:

 {$if defined(cpuarm)} // needs lower latency
uos_AddIntoDevOut(x, -1, 0.08, -1, -1, 0, 1024, -1);
 {$else}
uos_AddIntoDevOut(x, -1, 0.03, -1, -1, 0, 1024, -1);
 {$endif} 

Those 0.08 ( for arm ) and 0.03 latency parameters are for direct-wiring application with very good sound cards.

Here code that should work for "classical" sound-cards:

 {$if defined(cpuarm)} // needs lower latency
uos_AddIntoDevOut(x, -1, 0.8, -1, -1, 0, -1, -1);
 {$else}
uos_AddIntoDevOut(x, -1, 0.3, -1, -1, 0, -1, -1);
 {$endif} 

Fre;D

fredvs avatar Jan 02 '22 13:01 fredvs

Thank you for the correction Fred. I will do it. Anyway, I intended to change the sound files, so there is no problem.

I think we can close the issue now.

See you soon.

rchastain avatar Jan 02 '22 14:01 rchastain

Hello Roland.

If it does not annoy you too much, I will be very interested to know if there are still problems with your old sound files changing the latency.

This should not happen and if it still does, uos has to be fixed.

Thanks Roland.

fredvs avatar Jan 02 '22 14:01 fredvs

Re-re hello Roland.

If you have still energy, could you try the executable included in attach (for Linux 64 bit) ? It is the compiled example from /uos/examples/deviceinfos_fpgui.pas with needed library.

device_info_fpgui.zip

Just run it and, using the horizontal scrollbar, check the latencies of the "default" device and report here the result you get with your sound-card.

device_info

Thanks.

Fre;D

fredvs avatar Jan 02 '22 14:01 fredvs

I made a quick try with old sound files. The problem is still here. But, as I said, I am not sure that the problem comes from UOS, because even xboard has the same issue.

Have just seen your other message. I will try your app and come back.

rchastain avatar Jan 02 '22 15:01 rchastain

My "latency high out" has exactly the same value than on your screenshot.

rchastain avatar Jan 02 '22 15:01 rchastain

Hum..., strange, ...

And did you have problems with all the older files or only with few ( could you give the names of that files, I have still the older version of eschecs ) ?

By the way, about your other problem using "system" as filename of the portaudio-library ( to use the installed in system), are you able to run "deviceinfo_fpgui" using "system" as file name (here it works with portaudio installed by Debian 11)?

device_info_system

fredvs avatar Jan 02 '22 15:01 fredvs

The problem is obvious with move.mp3 (when you move a file). For the other, it's hard to say, because they aren't played often.

Yes, your app works here with "system" as filename.

rchastain avatar Jan 02 '22 16:01 rchastain

I confirm that "system" works also in eschecs. Maybe I did something wrong the last time I tried.

So I think I will distribute the libraries only with the Windows package, as you suggested sooner in the discussion.

rchastain avatar Jan 02 '22 16:01 rchastain

To be sure we are talking about the same version of Eschecs. I do the test from the release eschecs-5.0.6-lin64 from here: https://github.com/rchastain/eschecs/releases/tag/5.0.6

Here using the "move" from menu item or doing by myself a play, the sound of "move" is always ok ( and dont take much time to make me "échec et mat" with the painful ( but ok ) sound. )

About the new sound that you use and is ok, what kind of format do you use ? In the "collection" that you use, there are only "wav" files. Did you convert it into mp3 or are you using the original "wav" file from the collection (and then added the sndfile library to read wav files) ?

About Xboard here the sound is ok.

fredvs avatar Jan 02 '22 16:01 fredvs