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

Crash sometimes when switching users #4661

Open
MatiP911 opened this issue Jan 10, 2025 · 3 comments
Open

Crash sometimes when switching users #4661

MatiP911 opened this issue Jan 10, 2025 · 3 comments
Labels
bug Something isn't working upstream

Comments

@MatiP911
Copy link

Im using pixel 8. Sometimes when i want to switch users from main to some other one, im stuck on this circle screen with user logo and cannot do anything but reboot with power button.

type: crash

SystemUptimeMs: 36372527
Process: system_server
Timestamp: 2025-01-10 15:46:28.944+0100
Build: google/akita/akita:15/AP4A.250105.002/2025010700:user/release-keys
Crash-Handler: com.android.internal.os.RuntimeInit$KillApplicationHandler
Loading-Progress: 1.0
Dropped-Count: 0

java.lang.RuntimeException: Keyguard is not shown in 20 seconds
	at com.android.server.am.UserController$Injector.lockDeviceNowAndWaitForKeyguardShown(UserController.java:4168)
	at com.android.server.am.UserController.startUserInternal(UserController.java:1993)
	at com.android.server.am.UserController.startUserNoChecks(UserController.java:1834)
	at com.android.server.am.UserController.startUser(UserController.java:1788)
	at com.android.server.am.UserController.startUser(UserController.java:1747)
	at com.android.server.am.UserController.startUserInForeground(UserController.java:2106)
	at com.android.server.am.UserController.handleMessage(UserController.java:3523)
	at android.os.Handler.dispatchMessage(Handler.java:105)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.os.HandlerThread.run(HandlerThread.java:85)
	at com.android.server.ServiceThread.run(ServiceThread.java:46)
@thestinger thestinger added bug Something isn't working upstream labels Jan 10, 2025
@thestinger
Copy link
Member

This was previously filed as #3208 and #3644 but it appeared to be fixed so they were closed.

@f5n
Copy link

f5n commented Jan 11, 2025

I have a similar issue on a Pixel 7a since yesterday - when I want to use my secondary profile the system crashes (every time - reproducable) after a few seconds. Afterwards on the "owner" profile i get this crashlog

type:crash
flags: dev options enabled

SystemUptimeMs: 88940
Process: system_server
Timestamp: 2025-01-11 10:44:04.717+0100
Build: google/lynx/lynx:15/AP4A.250105.002/2025010700:user/release-keys
Crash-Handler: com.android.internal.os.RuntimeInit$KillApplicationHandler
Loading-Progress: 1.0
Dropped-Count: 0

java.lang.OutOfMemoryError: Failed to allocate a 32 byte allocation with 349264 free bytes and 341KB until OOM, target footprint 536870912, growth limit 536870912; giving up on allocation because <1% of heap free after GC.
	at android.util.ArrayMap.allocArrays(ArrayMap.java:278)
	at android.util.ArrayMap.put(ArrayMap.java:603)
	at android.os.BaseBundle.putString(BaseBundle.java:921)
	at com.android.server.usage.IntervalStats.deobfuscateEvents(IntervalStats.java:593)
	at com.android.server.usage.IntervalStats.deobfuscateData(IntervalStats.java:615)
	at com.android.server.usage.UsageStatsDatabase.readLocked(UsageStatsDatabase.java:1176)
	at com.android.server.usage.UsageStatsDatabase.readLocked(UsageStatsDatabase.java:1126)
	at com.android.server.usage.UsageStatsDatabase.readLocked(UsageStatsDatabase.java:1108)
	at com.android.server.usage.UsageStatsDatabase.getLatestUsageStats(UsageStatsDatabase.java:762)
	at com.android.server.usage.UserUsageStatsService.loadActiveStats(UserUsageStatsService.java:923)
	at com.android.server.usage.UserUsageStatsService.rolloverStats(UserUsageStatsService.java:874)
	at com.android.server.usage.UserUsageStatsService.reportEvent(UserUsageStatsService.java:317)
	at com.android.server.usage.UsageStatsService.reportEvent(UsageStatsService.java:1271)
	at com.android.server.usage.UsageStatsService.onUserUnlocked(UsageStatsService.java:557)
	at com.android.server.usage.UsageStatsService.-$$Nest$monUserUnlocked(UsageStatsService.java:0)
	at com.android.server.usage.UsageStatsService$H.handleMessage(UsageStatsService.java:2130)
	at android.os.Handler.dispatchMessage(Handler.java:109)
	at android.os.Looper.loopOnce(Looper.java:232)
	at android.os.Looper.loop(Looper.java:317)
	at android.os.HandlerThread.run(HandlerThread.java:85)
	at com.android.server.ServiceThread.run(ServiceThread.java:46)

I have shut down my system and started it again and tried to directly switch after boot to my secondary profile (without logging in with owner pin) but this did/do not work either.

The owner profile seems to work perfectly so it seems not to be a hardware related problem.

Any ideas or suggestions to solve this issue?

Is there any way to get on the data of the secondary profile?

@f5n
Copy link

f5n commented Jan 19, 2025

after installing the latest software updates the profile problems are still there - actual i cannot use the profile because every time i try to switch to it it crashes after a few seconds...

@thestinger do you have an idea what the problem might be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

3 participants