How to release PCM on gstalsasrc.c when it paused? - alsa
When AudioRecorder app is paused, gstreamer alsa source still open PCM.
I tried to call unprepare, close when state is PLAYING_TO_PAUSED.
gst_alsasrc_change_state()
. . .
case GST_STATE_CHANGE_PLAYING_TO_PAUSED:
gst_alsasrc_unprepare(alsa);
gst_alsasrc_close(alsa);
. . .
but gstreamer still call snd_pcm_readi() like below
/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:1318:snd_pcm_readi: alsalib error: PCM not set up
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:988:xrun_recovery: xrun recovery -5: Unknown error -5
/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:1318:snd_pcm_readi: alsalib error: PCM not set up
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:988:xrun_recovery: xrun recovery -5: Unknown error -5
/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:1318:snd_pcm_readi: alsalib error: PCM not set up
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:988:xrun_recovery: xrun recovery -5: Unknown error -5
/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:1318:snd_pcm_readi: alsalib error: PCM not set up
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:988:xrun_recovery: xrun recovery -5: Unknown error -5
How to release PCM on gstalsasrc.c when it paused?
Here is the log
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:1102:gst_alsasrc_read: gst_alsasrc_read()
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:1102:gst_alsasrc_read: gst_alsasrc_read()
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:251:gst_alsasrc_change_state: GST_STATE_CHANGE_PLAYING_TO_PAUSED
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:258:gst_alsasrc_change_state: call unprepare
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:917:gst_alsasrc_unprepare: gst_alsasrc_unprepare()
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:933:gst_alsasrc_unprepare: gst_alsasrc_unprepare() done
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:261:gst_alsasrc_change_state: call close
/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:1318:snd_pcm_readi: alsalib error: PCM not set up
systemd[1]: app-logic-voicerecorder.service: main process exited, code=killed, status=6/ABRT
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:988:xrun_recovery: xrun recovery -5: Unknown error -5
/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:1318:snd_pcm_readi: alsalib error: PCM not set up
. . .
systemd[1]: Unit app-logic-voicerecorder.service entered failed state.
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:988:xrun_recovery: xrun recovery -5: Unknown error -5
/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:1318:snd_pcm_readi: alsalib error: PCM not set up
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:988:xrun_recovery: xrun recovery -5: Unknown error -5
/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:1318:snd_pcm_readi: alsalib error: PCM not set up
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:941:gst_alsasrc_close: gst_alsasrc_close()
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:957:gst_alsasrc_close: gst_alsasrc_close() call snd_pcm_close()
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:988:xrun_recovery: xrun recovery -5: Unknown error -5
/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:1318:snd_pcm_readi: alsalib error: PCM not set up
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:988:xrun_recovery: xrun recovery -5: Unknown error -5
/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:1318:snd_pcm_readi: alsalib error: PCM not set up
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:988:xrun_recovery: xrun recovery -5: Unknown error -5
/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:1318:snd_pcm_readi: alsalib error: PCM not set up
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:988:xrun_recovery: xrun recovery -5: Unknown error -5
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:977:gst_alsasrc_close: gst_alsasrc_close() done
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:263:gst_alsasrc_change_state: set isPCMOpened = FALSE
/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:1318:snd_pcm_readi: alsalib error: PCM not set up
/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:990: snd_pcm_delay: Assertion pcm' failed.
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:988:xrun_recovery:<alsasrc0> xrun recovery -5: Unknown error -5
/alsa-lib/1.0.29-r0/alsa-lib-1.0.29/src/pcm/pcm.c:1315: snd_pcm_readi: Assertionpcm' failed.
start-stop-daemon[831]: No /usr/bin/app-logic-voicerecorder found running; none killed.
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsaplugin.c:71:plugin_init: binding text domain gst-plugins-base-1.0 to locale dir /usr/share/locale
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsaplugin.c:71:plugin_init: binding text domain gst-plugins-base-1.0 to locale dir /usr/share/locale
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasink.c:357:gst_alsasink_init: gst_alsasink_init()
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:361:gst_alsasrc_init: gst_alsasrc_init
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:382:gst_alsasrc_getcaps: gst_alsasrc_getcaps
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:386:gst_alsasrc_getcaps: device not open, using template caps
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:382:gst_alsasrc_getcaps: gst_alsasrc_getcaps
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:386:gst_alsasrc_getcaps: device not open, using template caps
/gstreamer1.0-plugins-base/1.2.4-r0/git/ext/alsa/gstalsasrc.c:191:gst_alsasrc_set_property: gst_alsasrc_set_property
Related
My Build Failed Due To /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib does not exist
I am trying to run ant build-all, but when I do this it says it cannot find /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib does not exist. I started by executing the build: cd /home/localhost/trunk ant build-all then this was the final result / error: The following error occurred while executing this line: /var/www/html/trunk/kavalok-build/build-all.xml:331: /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib does not exist. How do I enable/install java-6-sun-1.6.0.24? FULL ERROR: BUILD FAILED /var/www/html/trunk/build.xml:82: The following error occurred while executing this line: /var/www/html/trunk/build-base.xml:81: The following error occurred while executing this line: /var/www/html/trunk/kavalok-build/build-all.xml:93: The following error occurred while executing this line: /var/www/html/trunk/kavalok-build/build-all.xml:331: /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib does not exist.
FosUserBundle + Symfony 3.4
Since 7 days I tried to repair HwiOauthFukingBundle with facebook + FosUserOtherFukingBundle + Symfony 3.4. And now, I have this incomprehensible errors in prod but not in dev. [2018-03-17 14:45:27] php.WARNING: Warning: require(/var/www/vhosts/domaine.fr/var/cache/prod/doctrine/orm/Proxies/__CG__ECUserBundleEntityImage.php): failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0): Warning: require(/var/www/vhosts/domaine.fr/var/cache/prod/doctrine/orm/Proxies/__CG__ECUserBundleEntityImage.php): failed to open stream: No such file or directory at /var/www/vhosts/domaine.fr/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:223)"} [] And this one [2018-03-17 14:45:27] request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Compile Error: require(): Failed opening required '/var/www/vhosts/domaine.fr/var/cache/prod/doctrine/orm/Proxies/__CG__ECUserBundleEntityImage.php' (include_path='.:/opt/plesk/php/7.1/share/pear')" at /var/www/vhosts/domaine.fr/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php line 223 {"exception":"[object] (Symfony\Component\Debug\Exception\FatalErrorException(code: 0): Compile Error: require(): Failed opening required '/var/www/vhosts/domaine.fr/var/cache/prod/doctrine/orm/Proxies/__CG__ECUserBundleEntityImage.php' (include_path='.:/opt/plesk/php/7.1/share/pear') at /var/www/vhosts/domaine.fr/vendor/doctrine/common/lib/Doctrine/Common/Proxy/AbstractProxyFactory.php:223)"} [] What's going on ? I have clean the cache folder etc. but this error seems to be falling from the sky... this is a nightmare...
Creating premake project for PuTTYTray
I'm trying to use Premake 4 to create VS2013 project files for PuTTYTray. Initially I'm trying to build just putty.exe but I'd like to be able to build the original suite, based on the original project files. solution "PuTTYTray" configurations {"Debug", "Release"} project "PuTTY" kind "ConsoleApp" language "C++" files { "*.h", "*.c", "windows/**.c", "windows/**.h" } excludes { "pscp.c", "be_all.c", "psftp.c", "be_all_u.c", "be_none.c", "be_nos*", "be_ssh.c", "nocproxy.c", "puttytel*", "notiming.c", "noterm.c", "noprint.c", "noshare.c", "pproxy.c", "windows/wincons.c", "cmdgen.c", "time.c", "windows/winnojmp.c", "windows/winplink.c", "windows/winsftp.c", } defines { "_WINDOWS", "NO_GSSAPI", "WIN32", "SECURITY_WIN32", "_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES=1", "_CRT_SECURE_NO_WARNINGS=1" } links { "advapi32", "comctl32", "imm32", "winmm" } includedirs {"windows","unix","."} I believe I have the config set up similarly to the original but I get the following errors: Error 34 error C1083: Cannot open include file: 'termios.h': No such file or directory D:\Git\Other\PuTTYTray\windows\cthelper\ptyfork.c 2 1 PuTTY Error 15 error C1083: Cannot open include file: 'unistd.h': No such file or directory D:\Git\Other\PuTTYTray\windows\cthelper\buffer.c 4 1 PuTTY Error 16 error C1083: Cannot open include file: 'unistd.h': No such file or directory D:\Git\Other\PuTTYTray\windows\cthelper\cthelper.c 4 1 PuTTY Error 17 error C1083: Cannot open include file: 'unistd.h': No such file or directory d:\git\other\puttytray\windows\cthelper\ourhdr.h 10 1 PuTTY Error 35 error C1083: Cannot open include file: 'unistd.h': No such file or directory d:\git\other\puttytray\windows\cthelper\ourhdr.h 10 1 PuTTY Error 22 error C2059: syntax error : ')' d:\git\other\puttytray\windows\cthelper\mm.h 7 1 PuTTY ... Error 19 error C2061: syntax error : identifier 'len' d:\git\other\puttytray\windows\cthelper\mm.h 7 1 PuTTY Error 30 error C2061: syntax error : identifier 'len' d:\git\other\puttytray\windows\cthelper\mm.h 10 1 PuTTY Error 24 error C2061: syntax error : identifier 'nmemb' d:\git\other\puttytray\windows\cthelper\mm.h 9 1 PuTTY Error 29 error C2081: 'ssize_t' : name in formal parameter list illegal d:\git\other\puttytray\windows\cthelper\mm.h 10 1 PuTTY Error 18 error C2146: syntax error : missing ')' before identifier 'len' d:\git\other\puttytray\windows\cthelper\mm.h 7 1 PuTTY Error 28 error C2146: syntax error : missing ')' before identifier 'len' d:\git\other\puttytray\windows\cthelper\mm.h 10 1 PuTTY Error 23 error C2146: syntax error : missing ')' before identifier 'nmemb' d:\git\other\puttytray\windows\cthelper\mm.h 9 1 PuTTY What can I do to get closer to the mark? I'm not really understanding what I'm doing wrong here.
The issue was I didn't have the correct list of excludes - the original project files can be generated by running a perl script in the root of the source. With the correct excludes and some extra library imports I can create and use the solution successfully. #ostrokarch's note pointed me in the right direction here.
FAILURE: Execution failed for task ':card.io:buildNative'
I downloaded cardio source and config follow First build guide. But when i run './gradlew build', i got message like: FAILURE: Build failed with an exception. Where: Build file '/media/hungnguyendata/eProtea/Projects/temp/card.io-Android-source/card.io/build.gradle' line: 163 What went wrong: A problem occurred configuring project ':SampleApp'. A problem occurred configuring project ':card.io'. No such property: sonatypeUsername for class: org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer After that, i create gradle.properties file for define property sonatypeUsername. Like this: "sonatypeUsername=sonatypeUsername sonatypePassword=sonatypePassword". I got this message: :card.io:buildNative make: Entering directory /Projects/temp/card.io-Android-source/card.io/src/main/jni' make: *** No rule to make target/Projects/temp/card.io-Android-source/card.io/src/main/jni/card.io-dmz/processor_support.cpp', needed by /Projects/temp/card.io-Android-source/card.io/src/main/obj/local/arm64-v8a/objs/cardioDecider/card.io-dmz/processor_support.o'. Stop. make: *** Waiting for unfinished jobs.... make: Leaving directory/Projects/temp/card.io-Android-source/card.io/src/main/jni' :card.io:buildNative FAILED FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':card.io:buildNative'. Process 'command '/home/hungnguyen/applications/android-ndk-r10d/ndk-build'' finished with non-zero exit value 2 what should i do to build project. Thanks so much!
error while compiling solr
While compiling solr I got following error : /home/username/MP3/solr-4.1.0/build.xml:106: The following error occurred while executing this line: /home/username/MP3/solr-4.1.0/solr/common-build.xml:329: The following error occurred while executing this line: /home/username/MP3/solr-4.1.0/solr/common-build.xml:349: The following error occurred while executing this line: /home/username/MP3/solr-4.1.0/lucene/module-build.xml:229: The following error occurred while executing this line: /home/username/MP3/solr-4.1.0/lucene/module-build.xml:141: The following error occurred while executing this line: /home/username/MP3/solr-4.1.0/lucene/common-build.xml:464: The following error occurred while executing this line: /home/username/MP3/solr-4.1.0/lucene/common-build.xml:592: Invalid Manifest: /home/username/MP3/solr-4.1.0/lucene/build/analysis/common/MANIFEST.MF