Memory usage continues to increase when receiving Payload #2147
Labels
P3
Priority 3 issue (default for bugs or new feature requests; things we'd like to work on)
platform: apple
An issue with the macOS or iOS implementation
project: connections
An issue with the Connections project
type: bug
Something is broken or not working as intended
Project
Nearby Connections
Language
Swift
OS Platform
Apple
What happened?
I'm trying to use the nearby connection api to connect an Android device to an IOS (Simulator), and both can connect perfectly.
However, when receiving Payload on iOS, I found that the memory usage increased over time. And that can happen even if the data received is not handled at all. It doesn't matter if the Payload received is of Stream or Data (Bytes) type. Both can cause it.
The data received is a real-time audio recording, so every few milliseconds the device will receive the data.
I am a newbie in Swift (IOS) by the way, I don't know if there is a way to free the received data in memory or not. I apologize if this was my mistake in handling the API, and this issue is not a bug. And I ask for help to resolve this issue
Attachment
What did you expect to happen?
Immediately free memory allocation once the received data is handled, or at least memory usage does not continue to increase
How can we reproduce it (as minimally and precisely as possible)?
How often does this bug happen?
Every time
Standalone code to reproduce the issue
No response
Relevant log output
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: