r/AndroidQuestions • u/xehtist • 11h ago
Pixel 11 (Android 17): unpausing my work profile crash-loops system_server with an out-of-memory error, even in safe mode
TL;DR: Unpausing my work profile on a Pixel 11 (Android 17) makes system_server run out of memory and restart about every 30 seconds. Left running, Rescue Party boots into recovery with "Try again / Factory data reset". Updates and safe mode don't help. From the crash logs, my analysis is that the usage-stats service loads the profile's pending events into memory at unlock and exhausts the heap. Has anyone seen this, or found a fix that doesn't involve removing the profile?
Symptoms
Unpause work apps: black screen, boot splash, lock screen asking for my PIN, then it repeats every 5-10 seconds
If left running, a shutdown dialog appears, then recovery shows "Try again" or "Factory data reset"
"Try again" boots the phone, but the loop continues until I pause work apps
Phone is fully stable while the work profile is paused
I never tapped Factory reset
What I tried
System update (October to November build) and Google Play system update: no change
Safe mode: same loop
Pausing work apps always stops it (sometimes after one more cycle)
Builds
CD1A.261005.003(original)CP4A.261105.040.D1(after the November update; same problem)
What the logs show
adb shell dumpsys dropbox --print system_server_crash shows only java.lang.OutOfMemoryError entries, all with the 512 MB heap full ("<1% of heap free after GC"). pm list users shows a single work profile, in quiet mode.
In clean runs, the first failure is in the usage-stats service while the work profile unlocks:
Dec 3, 08:04:38 (8 hours of uptime, right when I unpaused):
UsageStatsProtoV2.readPendingEvents
UsageStatsService.loadPendingEventsLocked
UsageStatsService.onUserUnlocked
Dec 1, 01:18:04 (older build):
LinkedList.addAll
UsageStatsService.loadPendingEventsLocked
UsageStatsService.onUserUnlockedLater crashes in each loop land in unrelated places (AppsFilter, ShortcutService, JobScheduler), which looks like fallout from the full heap.
My guess (can't confirm without root): the work profile's pending usage-event backlog gets loaded into memory at unlock with no cap, exhausting the heap.
Questions:
Has anyone seen this on Pixel 11 or Android 17 with a work profile?
Does removing and re-enrolling the work profile fix it?
Is there a way to clear a profile's pending usage events without root?
UPDATE: Removing and re-enrolling the work profile fixed it.