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

Audio task doesn't work #341

Open
bardram opened this issue Oct 23, 2024 · 1 comment
Open

Audio task doesn't work #341

bardram opened this issue Oct 23, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@bardram
Copy link
Contributor

bardram commented Oct 23, 2024

When clicking an audio task nothing happens.

Samsung Galaxy S10e Android 12.

[log] [CAMS INFO] Initializing BackgroundTaskExecutor [112496505] (created)
I/flutter (29483): ┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
I/flutter (29483): │ #0   new FlutterSoundRecorder (package:flutter_sound/public/flutter_sound_recorder.dart:139:13)
I/flutter (29483): │ #1   new AudioProbe (package:carp_audio_package/audio_probe.dart:20:21)
I/flutter (29483): ├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
I/flutter (29483): │ 🐛 ctor: FlutterSoundRecorder()
I/flutter (29483): └───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
[log] [CAMS INFO] Initializing AudioProbe [399478870] (created)
[log] [CAMS INFO] Initializing LocationProbe [919669977] (created)
@bardram bardram added the bug Something isn't working label Oct 23, 2024
@bardram bardram self-assigned this Oct 24, 2024
@bardram
Copy link
Contributor Author

bardram commented Oct 29, 2024

The first problem is that the widget parameter wasn't set.

The second problem was that the audio meaurement wasn't added to the overall stream of measurements and hence not stored locall in the DB.

This latter problem only occurs when the audio measure is part of an AppTask.

The problem is that the UserTask is stopped (onDone() called) BEFORE the audio probe has time to stop and generate the audio measurement. So - once the measurement is generated and added to the stream of measurements, the background executor has been removed from the overall stream of measurements (the group).

bardram added a commit to cph-cachet/carp.sensing-flutter that referenced this issue Oct 29, 2024
bardram added a commit that referenced this issue Oct 29, 2024
bardram added a commit to cph-cachet/carp.sensing-flutter that referenced this issue Oct 31, 2024
* fix of cph-cachet/carp_studies_app#340
* fix of cph-cachet/carp_studies_app#341
* handling error messages from NGINX
* improved unit testing in carp_backend
bardram added a commit that referenced this issue Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant