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

Failing test on API 19 emulator: StreamClosedReturnValues.GetDirectionReturnsLastKnownValue #346

Closed
dturner opened this issue Jan 7, 2019 · 2 comments · Fixed by #1580
Closed
Labels
failing unit test A unit test which is failing version related to compatibility with older versions

Comments

@dturner
Copy link
Collaborator

dturner commented Jan 7, 2019

When running the unit tests on an API 19 emulator I get the following test failure and crash:

01-07 16:54:21.506 8591-8605/com.google.oboe.tests.unittestrunner D/com.google.oboe.tests.unittestrunner.MainActivity: [ RUN ] StreamClosedReturnValues.GetDirectionReturnsLastKnownValue
01-07 16:54:21.516 8607-8607/? W/AudioRecord: AUDIO_INPUT_FLAG_FAST denied by client
01-07 16:54:21.516 1176-1369/? W/AudioPolicyManagerBase: getInput() could not find profile for device 80000004, samplingRate 48000, format 1,channelMask 000c
01-07 16:54:21.516 8607-8607/? E/AudioRecord: Could not get audio input for record source 6
01-07 16:54:21.516 8607-8607/? E/libOpenSLES: android_audioRecorder_realize(0xb7cf2670) error creating AudioRecord object
01-07 16:54:21.516 8607-8607/? W/libOpenSLES: Leaving Object::Realize (SL_RESULT_CONTENT_UNSUPPORTED)
01-07 16:54:21.516 8607-8607/? A/libc: Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 8607 (testOboe)
01-07 16:54:21.516 8591-8605/com.google.oboe.tests.unittestrunner D/com.google.oboe.tests.unittestrunner.MainActivity: /Users/donturner/Code/workspace-android/oboe/tests/testStreamClosedMethods.cpp:41: Failure
01-07 16:54:21.516 8591-8605/com.google.oboe.tests.unittestrunner D/com.google.oboe.tests.unittestrunner.MainActivity: Expected equality of these values:
01-07 16:54:21.516 8591-8605/com.google.oboe.tests.unittestrunner D/com.google.oboe.tests.unittestrunner.MainActivity: r
01-07 16:54:21.516 8591-8605/com.google.oboe.tests.unittestrunner D/com.google.oboe.tests.unittestrunner.MainActivity: Which is: 4-byte object <80-FC FF-FF>
01-07 16:54:21.516 8591-8605/com.google.oboe.tests.unittestrunner D/com.google.oboe.tests.unittestrunner.MainActivity: Result::OK
01-07 16:54:21.516 8591-8605/com.google.oboe.tests.unittestrunner D/com.google.oboe.tests.unittestrunner.MainActivity: Which is: 4-byte object <00-00 00-00>
01-07 16:54:21.516 8591-8605/com.google.oboe.tests.unittestrunner D/com.google.oboe.tests.unittestrunner.MainActivity: Failed to open stream ErrorInternal

It looks like the API 19 emulator encounters a problem creating recording streams.

@dturner dturner self-assigned this Apr 23, 2019
@dturner dturner added the failing unit test A unit test which is failing label Apr 23, 2019
@dturner
Copy link
Collaborator Author

dturner commented Apr 29, 2019

Still occurring with latest master branch.

@dturner
Copy link
Collaborator Author

dturner commented Apr 29, 2019

Tests pass on API 28 emulator. Additionally the test runner app prompts for the recording permission on startup.

A possible cause for the error on API 19 is that for some reason the recording permission is not being granted.

@philburk philburk added the version related to compatibility with older versions label May 13, 2021
@dturner dturner removed their assignment Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failing unit test A unit test which is failing version related to compatibility with older versions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants