-
Notifications
You must be signed in to change notification settings - Fork 608
make test
has failures
#474
Comments
It stopped at [100%] Built target SampleApp. |
For integration, you need to have PortAudio and gstreamer installed. Can you show me the cmake command that you used?
Additionally, it should be TZ=UTC (with an equals sign), but that shouldn't affect anything. |
Hi, The PortAudio and Gstreamer were all installed as you instructed. When I compiled it from serial port (not hdmi terminal) it worked. I run both commands separately and it reported the same : [ OK ] AlexaCommunicationsLibraryTest.testMultipleConnectionStatusObservers (2378 ms) [----------] Global test environment tear-down 7 FAILED TESTS |
I also run make all test and got the following.. I tried alsamixer and tested arecord and aplayer and verified the microphone and headphone has no issue. 98% tests passed, 11 tests failed out of 704 Total Test time (real) = 155.52 sec The following tests FAILED: |
Some of the tests will not run on a system that is too slow. Can you run one of those test directly? From the build directory:
I need to see why that family of tests is failing, and that log will provide more information. |
It does look like it was able to compile now, what did you change? |
Hi, I run this: ./MediaPlayer/test/MediaPlayerTest ${SRC_DIR}/MediaPlayer/inputs --gtest_filter=*testAdjustVolumeOutOfBounds It returned the following: 2018-01-25 23:05:48.719 [ 1] I sdkVersion: 1.4.0 I didn't change anything extra. I just followed the instructions from #1 to #12. |
As I mentioned I switched from x-window monitor to serial port and run the compilation and it worked but reported the errors. |
By the way, I am using ARTIK 710 which is a high-end gateway. Just FYI. Thanks a lot! |
make test
has failures
I don't understand why it compiles in one terminal but not in another one. We can leave that alone for now. Let's change the title to the new problem too. Can you show me your cmake line and the output when it is run? |
Hi, I used this line cd /root/avs-sdk/sdk-build && cmake /root/avs-sdk/sdk-source/avs-device-sdk -DSENSORY_KEY_WORD_DETECTOR=OFF -DGSTREAMER_MEDIA_PLAYER=ON -DPORTAUDIO=ON -DPORTAUDIO_LIB_PATH=/root/avs-sdk/third-party/portaudio/lib/.libs/libportaudio.a -DPORTAUDIO_INCLUDE_DIR=/root/avs-sdk/third-party/portaudio/include
Please see the attached log file which shows it is missing GTest and No keyword detector type specified etc. Thanks! |
There's not a whole lot to debug here. Can you rebuild with the DEBUG version? Add -DCMAKE_BUILD_TYPE=RELEASE to your cmake line. Do you know which version of gstreamer you are using? |
Hi, Here is the command line I just run. cd /root/avs-sdk/sdk-build && cmake /root/avs-sdk/sdk-source/avs-device-sdk -DCMAKE_BUILD_TYPE=RELEASE -DSENSORY_KEY_WORD_DETECTOR=OFF -DGSTREAMER_MEDIA_PLAYER=ON -DPORTAUDIO=ON -DPORTAUDIO_LIB_PATH=/root/avs-sdk/third-party/portaudio/lib/.libs/libportaudio.a -DPORTAUDIO_INCLUDE_DIR=/root/avs-sdk/third-party/portaudio/include >& log.txt Attached is the log file. I strictly followed the instruction at apt-get install -y openssl libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-good libgstreamer-plugins-good1.0-dev libgstreamer-plugins-bad1.0-dev gstreamer1.0-libav pulseaudio doxygen libsqlite3-dev repo libasound2-dev Gstreamer's version is 1.0 |
Hi, there, I did the following and the GTest missing issue is fixed. sudo apt-get install cmake libgtest-dev copy or symlink libgtest.a and libgtest_main.a to /usr/lib folder However, the log still shows this issue: Creating the build directory for the ACL with build type: RELEASE Any ideas? |
Here is the log: -- Found GTest: /usr/lib/libgtest.a |
Hi @kevinpei2001, I think the correct flag to pass into your build was DCMAKE_BUILD_TYPE=DEBUG . Try that and post the resulting logs. Sorry for the confusion. Fede |
Hi, Fede, I changed the cmake line as the following. Please see the attached log.txt. cd /root/avs-sdk/sdk-build && cmake /root/avs-sdk/sdk-source/avs-device-sdk -DCMAKE_BUILD_TYPE=DEBUG -DSENSORY_KEY_WORD_DETECTOR=OFF -DGSTREAMER_MEDIA_PLAYER=ON -DPORTAUDIO=ON -DPORTAUDIO_LIB_PATH=/root/avs-sdk/third-party/portaudio/lib/.libs/libportaudio.a -DPORTAUDIO_INCLUDE_DIR=/root/avs-sdk/third-party/portaudio/include >& log.txt |
Hi @kevinpei2001, Now that you've successfully built with DEBUG mode, can you run the failing unit tests again and provide those logs? Fede |
Hi, Fede, I run the command make all test and get the attached log file. Thanks. |
Thanks for those logs. It looks like some tests are failing that are known to be flaky, so this may be a known issue (and probably pretty harmless). Could you run Fede |
Hi, Fede, Here is the log. [root@artik sdk-build]# ./MediaPlayer/test/MediaPlayerTest ${SRC_DIR}/MediaPlaye r/inputs |
Yep, these are known issues on certain platforms. This should be benign. Have you tried playing music or speech while running the SampleApp on your platform? Fede |
I tried the following command from your instructions but it didn't work properly. That is is the reason I created this ticket. Alexa showed "Listening","Thinking" and then turned to "Idle". There is no voice or any result came back. cd ~/sdk-folder/sdk-build/SampleApp/src |
@frozenberg |
Oh ok. One issue we have been seeing with the SDK not playing back audio is the use of a specific gstreamer audio sink. Can you try changing line 577 in
to
? Thanks |
I changed that line and re-compiled it. I then run TZ=UTC make all integration [----------] 10 tests from AlexaCommunicationsLibraryTest (264264 ms total) [----------] Global test environment tear-down 6 FAILED TESTS |
I run make all test and get more errors than before: 94% tests passed, 40 tests failed out of 704 Total Test time (real) = 97.40 sec The following tests FAILED: |
Ok, thank you for trying that. Were you able to run the SampleApp and check if any sound came out with that change? More test failures are expected because our tests don't tolerate changing the gstreamer pipeline. |
cd /root/avs-sdk/sdk-build/SampleApp/src The SampleApp doesn't work. I think it is because of the failure of the compilation as mentioned above. 2018-01-31 21:49:26.812 [ 1] I sdkVersion: 1.4.0 (SampleApp:11740): GStreamer-CRITICAL **: gst_element_set_state: assertion 'GST_IS_ELEMENT (element)' failed (SampleApp:11740): GStreamer-CRITICAL **: gst_object_unref: assertion 'object != NULL' failed (SampleApp:11740): GLib-CRITICAL **: Source ID 119105344 was not found when attempting to remove it |
what about 'echo $PATH' |
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games |
|
ls: cannot access '/usr/local/lib/gst*': No such file or directory |
did you run the ls command with sudo? |
a good way would be |
Please see the log attached. |
|
Hi again @kevinpei2001, The service teams are still investigating, but I have another idea for a potential fix. In from
to
and let me know how that works out? |
@frozenberg Sure I will let you know. I am reinstalling gstreamer. |
@kevinpei2001 , you should only delete the gstreamer plugins. Sorry for the command |
@mradulan @frozenberg I changed the SpeechSynthesizer.cpp accordingly and re-compiled the application but the result is the same. Just "listing" "thinking" "idle" and no other response. |
Thanks for that snapshot. Could you again compile a DEBUG build like before and post debug logs? Those are much more helpful for us. Thanks. |
Another thing that would be interesting to try is simply increasing the timeout. Not sure if you've tried this already. In
Fede |
@frozenberg Hi, I changed the timeout to 20 seconds. Still mute although I saw it took more time "thinking". Please see the log file attached. |
Hi @kevinpei2001 , Can you please try to update your gstreamer? GStreamer 1.8 did not work with the SDK in my ubuntu laptop. We recommend GStreamer 1.10.4 or later [1]. Make sure you update your PATH and LD_LIBRARY_PATH to ensure that you are using the correct GStreamer. Thanks |
@celinval Hi, yes I can. Actually as I mentioned I tried 1.10.4 but AVS still didn't work. Maybe I did somethin wrong. Gstreamer installation is kind of tricky. |
The previous engineer gave me some instructions but it didn't work. |
Hi @kevinpei2001, An update from the service teams: it seems as if your device is attempting to stream additional data after receiving a In
In
Thanks. Also, just double-checking, you haven't edited any part of the codebase, right? Fede |
Hi @kevinpei2001, You can build later GStreamer versions from source. You can find instructions on how to build each package here. Make sure you build all the following packages:
After you installed GStreamer, run You can also use "whereis " to find out where the lib files are. E.g.:
After that, you can run "ls -l " to know if it is pointing to the correct version. E.g.:
|
@frozenberg @celinval Thanks. I will have to set up another board and try them. I will let you know the outcome. |
@celinval Hi, I re-flashed the board and installed the gstreamer 1.10.4 as you instructed. Compiled and installed the following: GStreamer 1.10.4 However, when I run gst-inspect-1.0 --version it still gave me 1.8.3 version which I never installed. [root@artik ~]# gst-inspect-1.0 --version Any suggestions? |
I re-flashed the board and installed GStreamer 1.10.4 and followed the instructions and reached step #12. I executed: Thanks. |
Hi @kevinpei2001, Can you run:
This will give the plugin details including their location. |
Hi @kevinpei2001, I am closing issue due to inactivity. Feel free to re-open if you run into issues around this again or there are further comments. Thank you, |
I'd like to leave a comment:
Built application with paex_record.c will point You what lines should be changed to default in alsa.conf.
How to get GStreamer 1.10.4 and not 1.8.3? Everything else should be just like instructions says. Applying those changes Thanks everybody for your comments and suggestions here. |
Hi AntonKasabutskiSamsung, Thank you for the thorough follow-up notes! -SWH |
IMPORTANT: Before you create an issue, please take a look at our Issue Reporting Guide.
Briefly summarize your issue:
Sdk v1.4. when run "TZ-UTC make all integration" it reported: *** No rule to make target 'integration'. Stop.
What is the expected behavior?
Please advise what rule I need to add for 'integration'.
What behavior are you observing?
Followed the instructions for AVS with Ubuntu Linux.
https://github.com/alexa/avs-device-sdk/wiki/Ubuntu-Linux-Quick-Start-Guide
When reached step #12 and built TZ-UTC make all integration it reported: *** No rule to make target 'integration'. Stop.
Provide the steps to reproduce the issue, if applicable:
When reached step #12 and built TZ-UTC make all integration it reported: *** No rule to make target 'integration'. Stop.
Tell us about your environment:
AVS SDK V1.4
Tell us what hardware you're using:
Tell us about your OS (Type & version):
The text was updated successfully, but these errors were encountered: