Skip to content

Conversation

dkimitsa
Copy link
Contributor

Rootcase:

on minimize iOS will put application to background and suspend all threads.
if background time is longer than MAX_FINALIZE_NANOS and watchdog was
waiting on object -- sleep will exit before finalizer and will cause
$classname.finalize() timed out after 10 seconds

Workaround:

split wait interval into two. This will allow to survive this case

…conds

 Rootcase: on minimize iOS will put application to background and suspend all threads.
 if background time is longer than MAX_FINALIZE_NANOS and watchdog was
 waiting on object -- sleep will exit before finalizer and will cause
 `$classname`.finalize() timed out after 10 seconds
 Workaround: split wait interval into two. This will allow to survive this case
@Tom-Ski Tom-Ski merged commit 5ba8c55 into MobiVM:master Apr 14, 2022
@dkimitsa dkimitsa deleted the fix/finalizer_watchdog_crash branch April 16, 2022 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants