-
Notifications
You must be signed in to change notification settings - Fork 573
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
Crash at DataConversionFlowGraph::write() #1026
Comments
Thanks for the report. There have been some recent changes in the DataConversionFlowGraph. #1011 @rpattabi - I assume you are setting a callback size. What value are you using? Do you know if it happens when a headset is plugged in or unplugged? This could be related to a timing issue involved with deleting a stream too close to the time it is closed. |
Yes, we're setting callback size. We're interfacing oboe with puredata (pd). Pd requires block size to be a multiple of 64. We use multiple (2 to 4) of frames per burst as callback size if they are multiples of 64. Otherwise, we choose a number that is divisible by 64 which is close to twice of frames per burst. In this crash, we don't have information about the actual callback size, except that the logic used for its calculation is above.
Again, we're not sure of the state of connectivity in this case. As per the recommendation, we do handle onErrorAfterClose() which restarts the stream in case of -- Today we saw another crash with the same call stack on this other device:
(We also updated list of devices in this issue description) -- Just wanted to add what our app does with audio streams: We create input stream with callback. Depending on user's actions, we also create an output stream with callback. Again, depending on user's actions, we stop one stream and start another stream. At any time, only one stream is in started state, and the other stream is kept in stopped state. Stream are closed when the user leaves the app. -- We understand, with so little information, there is nothing much can be done about this crash. We'll try if we can access any of these devices to be able to run some tests. |
Closing stale bug |
Android version(s): 10
Android device(s):
Oboe version: master (commit
ee39453
)App name used for testing: Shruti Carnatic Tuner v7.0.6 (partially rolled out. The other version in production does not use oboe.)
Our app uses input stream with callback. This is working fine on devices we tested. However, we saw this crash in our google play console for the mentioned device:
Look here for decoded stack trace with line numbers.
As this crash is from google play console, we don't have any other information. Let us know if you need anything specific about our use of oboe.
The text was updated successfully, but these errors were encountered: