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

feat: Log iOS low memory warnings #6933

Closed
tristan-morris opened this issue Sep 25, 2023 · 2 comments
Closed

feat: Log iOS low memory warnings #6933

tristan-morris opened this issue Sep 25, 2023 · 2 comments

Comments

@tristan-morris
Copy link

Feature Request

Description

It would be very useful if Capacitor logged iOS low memory warnings when they are broadcast. Selfishly, I spent quite a bit of time figuring out why WkWebView was restarting--because a webgl process was being terminated as the device had no memory. But I assume this happens fairly frequently and people might not know. I didn't realise so much memory coud have been consumed. While the crash is logged, it is identified as the process terminated rather than being reaped due to low memory (even though my process was the cause of the memory being low).

Platform(s)

iOS

Preferred Solution

Log memory warnings to console is enough

Alternatives

Reducing memory is always nice, but knowing it is an issue is more important.

Additional Context

Mapbox-gl-js on iOS in WkWebView

@jcesarmobile
Copy link
Member

Your problem is most likely the webViewWebContentProcessDidTerminate being called, which reloads your app. The memory warnings by themselves won't restart your app.

So I'm closing as duplicate of #2379

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Sep 25, 2023
@ionitron-bot
Copy link

ionitron-bot bot commented Oct 25, 2023

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Oct 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants