google / oboe

Oboe is a C++ library that makes it easy to build high-performance audio apps on Android.
Apache License 2.0
3.72k stars 573 forks source link

Is there any way to detach a faulty oboe program or insufficient memory for it to process? #2055

Closed nguyenquynh201 closed 4 months ago

nguyenquynh201 commented 5 months ago

Hello, I'm currently having a problem. While I was recording, suddenly the oboe program got an error. It seems like there isn't enough memory for the oboe to execute, but I don't receive any error messages from the oboe. Is there any way to fix it? I can detach when the oboe fails, for example there is no sound in the headphones, etc

philburk commented 5 months ago

We need more information.

suddenly the oboe program got an error.

What app were you using? On what device? On what version of Android? What was the error? Did Oboe return an error code? Did it crash? Was there anything interesting in the logcat? How log did it record before failing?

I can detach when the oboe fails,

What do you mean by detach?

If you are recording to memory then it can use a lot of memory and run out. You may want to save the audio to SSD storage as you record.

If the device had been running for a long time it may be in a low memory condition. Rebooting may help.

nguyenquynh201 commented 5 months ago

Thank you for your response. I will provide some necessary information.

Currently, my application is a recording app using Oboe to manage audio and using DeepAR to record images. The devices I am having issues with are Samsung SM-A325F, Redmi 2201117SG, and some other devices, mostly on Android 13.

During the recording process, my console log reports errors as shown in the provided image. I suspect that the memory might be insufficient for Oboe to execute properly, but this is just a guess. I hope you can help me with this issue.

image
philburk commented 4 months ago

You only answered a few of my questions.

console log reports errors as shown in the provided image.

Messages on the Console are not a problem. May programs print alarming messages even when everything is fine. If the app runs well and the audio sounds good then maybe there is not a problem.

Maybe express the Issue in terms of "what you expected" and "what actually happened". See bug template here.

By the way, Oboe does not do compression. So this probably is not the place to report bugs with Codecs. Is Oboe or AAudio failing in some way?

philburk commented 4 months ago

Closing because this seems unrelated to Oboe and due to inactivity.