#2428·waydroid

[BUG] com.android.systemui crash-loops on boot — NullPointerException in AppOpsControllerImpl (LineageOS 20 image)

Author: jronminhCreated Sep 22, 2026Updated Sep 22, 2026

Describe the bug

On the LineageOS 20 (VANILLA) image, com.android.systemui enters an infinite crash/restart loop from boot, both in single-window and multi-window mode. Every attempt dies with the same NullPointerException while creating KeyguardService:

FATAL EXCEPTION: main
Process: com.android.systemui, PID: <varies>
java.lang.RuntimeException: Unable to create service com.android.systemui.keyguard.KeyguardService: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
	at android.app.ActivityThread.handleCreateService(ActivityThread.java:4499)
	at android.app.ActivityThread.-$$Nest$mhandleCreateService(Unknown Source:0)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2161)
	at android.os.Handler.dispatchMessage(Handler.java:106)
	at android.os.Looper.loopOnce(Looper.java:201)
	at android.os.Looper.loop(Looper.java:288)
	at android.app.ActivityThread.main(ActivityThread.java:7924)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:937)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object reference
	at com.android.systemui.appops.AppOpsControllerImpl.setListening(AppOpsControllerImpl.java:12)
	at com.android.systemui.appops.AppOpsControllerImpl.addCallback(AppOpsControllerImpl.java:48)
	at com.android.systemui.ForegroundServiceController.<init>(ForegroundServiceController.java:26)
	at com.android.systemui.wallpapers.ImageWallpaper_Factory.get(ImageWallpaper_Factory.java:24)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:13)
	at com.android.systemui.ForegroundServiceNotificationListener_Factory.get(ForegroundServiceNotificationListener_Factory.java:76)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:13)
	at com.android.systemui.statusbar.notification.init.NotificationsControllerImpl_Factory.get(NotificationsControllerImpl_Factory.java:132)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:13)
	at com.android.systemui.statusbar.notification.dagger.NotificationsModule_ProvideNotificationsControllerFactory.get(NotificationsModule_ProvideNotificationsControllerFactory.java:25)
	at dagger.internal.DoubleCheck.get(DoubleCheck.java:13)
	at com.android.systemui.statusbar.phone.CentralSurfacesImpl_Factory.get(CentralSurfacesImpl_Factory.java:13)
	...

system_server, zygote and apps keep running (the phone boots, sys.boot_completed=1), but SystemUI — status bar, nav bar, notifications — is never stable; it re-crashes roughly once a second. This is unrelated to the freeform divide-by-zero in #1446 (it happens with persist.waydroid.multi_windows=false too).

The same stack was reported for a redroid LineageOS 20 image (CNflysky/redroid-rk3588#57) and closed with no fix; the only note there was that it eventually "cures by time" (SystemUI stabilises after many crash cycles). So this looks image-level (LineageOS 20 SystemUI), not Waydroid-specific, but it's reproducible on the official Waydroid image, hence this report.

Waydroid version

1.6.3 (tools), system image 2026-04-03, vendor image 2026-04-28, LineageOS 20 VANILLA (x86_64)

Device

Fujitsu ARROWS (FARQ22005), Intel Celeron N4000 (Gemini Lake), 4 GB RAM

Operating System

Debian forky/sid (uname 7.1.13+deb14-amd64), Wayland session (Phosh)

Kernel version

7.1.13+deb14-amd64

Desktop Environment

Phosh (phoc), Wayland

GPU

Intel Gemini Lake UHD Graphics 600 (i915)

Logs

Full logcat available on request. Crash count for a single boot is ~30+ and grows continuously; the stack above is identical every time.


Disclosure: this report was produced by an AI assistant (opencode, model deepseek-v4-flash, exact id deepseek/deepseek-v4-flash) under human supervision and review; the crash and the reproduction were observed on real hardware by the supervising human.