-
-
Notifications
You must be signed in to change notification settings - Fork 277
Description
Problem Statement
Relates to #2371
When capturing in tight loops (awaiting the SDK methods), we run into memory issues (screenshot integration) on iOS and the watchdog might be killing the app. This probably happens because of screenshot widget, but there also might be other bottlenecks thought the SDK.
@buenaflor Still need to test this on an actual iOS device. In the meantime, can the user in question use something like exponential backoff until we come up with a solution? Think this PR here is good in itself, no need to do processing for dropped tasks, but it will not solve the issue of too many awaited tasks in a loop. Here we are still attaching screenshots.
Come to think of it, what if we cache the screenshot for some time? That way every event would still get a screenshot attached, but we could probably also relieve a bit of CPU/Memory pressure.
Solution Brainstorm
- Further investage where we have bottlenecks that can be improved.
- Use a short-lived cashed screenshot to avoid making hundreds of screenshots if the SDK is called in a tight loop.
Are you willing to submit a PR?
Yes
Metadata
Metadata
Assignees
Labels
Projects
Status