Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug output #33

Open
rchastain opened this issue Apr 18, 2021 · 38 comments
Open

Debug output #33

rchastain opened this issue Apr 18, 2021 · 38 comments

Comments

@rchastain
Copy link

rchastain commented Apr 18, 2021

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
Copy link
Author

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

@fredvs
Copy link
Owner

fredvs commented Apr 18, 2021

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.

PortAudio/portaudio#555

Fre;D

@fredvs
Copy link
Owner

fredvs commented Apr 18, 2021

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

@rchastain
Copy link
Author

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.

@fredvs
Copy link
Owner

fredvs commented Apr 18, 2021

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.

@rchastain
Copy link
Author

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
Copy link
Author

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.

@fredvs
Copy link
Owner

fredvs commented Apr 18, 2021

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
Copy link
Owner

fredvs commented Apr 18, 2021

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" ?

@rchastain
Copy link
Author

rchastain commented Apr 18, 2021

Hum, reaction of a new converted? ;-)

Yes. :)

@fredvs
Copy link
Owner

fredvs commented Apr 19, 2021

Hello Roland.

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

PortAudio/portaudio#463

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

@rchastain
Copy link
Author

rchastain commented Apr 19, 2021

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

@fredvs
Copy link
Owner

fredvs commented Apr 19, 2021

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)?

@rchastain
Copy link
Author

rchastain commented Apr 19, 2021

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.

@fredvs
Copy link
Owner

fredvs commented Apr 22, 2021

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);

@rchastain
Copy link
Author

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.

@fredvs
Copy link
Owner

fredvs commented Apr 23, 2021

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
Copy link
Owner

fredvs commented Apr 25, 2021

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.

@rchastain
Copy link
Author

Good!

@rchastain
Copy link
Author

rchastain commented Jan 1, 2022

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

@fredvs
Copy link
Owner

fredvs commented Jan 2, 2022

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

@rchastain
Copy link
Author

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.

@fredvs
Copy link
Owner

fredvs commented Jan 2, 2022

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
Copy link
Owner

fredvs commented Jan 2, 2022

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

@rchastain
Copy link
Author

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
Copy link
Author

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

@fredvs
Copy link
Owner

fredvs commented Jan 2, 2022

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

@rchastain
Copy link
Author

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
Copy link
Author

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.

@fredvs
Copy link
Owner

fredvs commented Jan 2, 2022

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.

@rchastain
Copy link
Author

rchastain commented Jan 2, 2022

Yes, I speak of the files from Eschecs 5.0.6.

For the new files, I converted them like this:
ffmpeg -i move.wav -acodec mp3 move.mp3

@rchastain
Copy link
Author

rchastain commented Jan 2, 2022

About Xboard here the sound is ok.

So probably the problem is with my hardware or with my OS.

@fredvs
Copy link
Owner

fredvs commented Jan 2, 2022

For the new files, I converted them like this:
ffmpeg -i move.wav -acodec mp3 move.mp3

Ha ok.

So the difference is maybe with the channels.
move.wav from "collection" is mono and is converted into a mono mp3.

All the original sounds of Eschecs 5.0.6. are stereo sounds.

But it does not explain why there are problems with Xboard because it uses mono wav sounds too.

Anyway, if it works with your new mono-mp3, better to stay with it and maybe later you will find why there are problems with Xboard sound and old Eschecs 5.0.6. stereo sound files in your system.

Fre;D

@rchastain
Copy link
Author

Wise conclusion. Thank you Fred, and have a good night (if we don't speak later).

@fredvs
Copy link
Owner

fredvs commented Jan 2, 2022

Hello Roland.

Just tried to edit /eschecs-5.0.6-lin64/audio/sound/move.mp3 using Audacity and it cannot play it because of corrupted data.
So, yes, I confirm that there is problem with original move.mp3.

( And why here on my system with eschecs-5.0.6-lin64 it can play it is a mystery ).

@rchastain
Copy link
Author

Ah, so we have an explanation now. Well done inspector Fred!

@fredvs
Copy link
Owner

fredvs commented Jan 3, 2022

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.

Hello Roland.

Yes, I think it is a good idea to give the libraries (only PortAudio and Mpg123) for Windows because they are not included by default in original Windows OS and not easy to compile + install.

By the way, for your release, you may adapt the /uos/src/define.inc for Eschecs.
And comment all the define not used and keep only:

{$DEFINE portaudio} // uncomment to enable portaudio In/Out sound port
{$DEFINE mpg123} // uncomment to enable mpg123 (mp3 audio file)

This will compile only the needed methods for Eschecs.
And will use only those files:
define.inc, uos.pas, uos_flat.pas, uos_portaudio.pas and uos_mpg123.pas.

[EDIT] This remember me that define.inc should be renamed into uos_define.inc., I will change this soon.

OK, define.inc renamed into uos_define.inc., in 44e6d8b

Fre;D

@rchastain
Copy link
Author

Done. Thank you Fred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants