[Xiaomi Poco X3 NFC ROMs, Kernels, Recoveries, & Ot] luke50:
All goes well... until you start getting the dreaded freezes/lockups 😨

Apparently it's really workload-dependent but in my case I went from having 0 freezes in an entire year of using LineageOS 17/18, to 2-3 lockups every day on the official LineageOS 19 build. Which makes it very tedious to use as a daily driver, as it has a nasty tendency to lock up when using GPS... which you are likely to be using when you are travelling and actually need your phone to work.

Annoyingly enough it seems to be some kind of driver or kernel issue, judging from how almost every process ends up being stuck in uninterruptible state (D) and the high amount of system CPU time:

In this state the entire phone just grinds to a halt. Sometimes it recovers on its own, sometimes it doesn't. If it does recover, running dmesg shows a ton of binder (Android IPC, iirc?) errors:

[20788.261178] logd: SocketClient: write error (Broken pipe)
[20788.261194] logd: logdr: UID=0 GID=0 PID=28361 b tail=0 logMask=99 pid=0 start=0ns deadline=0ns
[20789.275116] binder: 28406:28406 ioctl 40046210 7fe1546904 returned -22
[20789.475911] thermal_notifier_callback 3842
[20789.492497] [NVT-ts] nvt_drm_notifier_callback 2334: event=1, *blank=5
[20789.492514] [NVT-ts] nvt_ts_suspend 2169: start
[20789.492973] [NVT-ts] nvt_ts_suspend 2180: Enabled touch wakeup gesture
[20789.545975] [NVT-ts] nvt_ts_suspend 2214: end
[20789.686357] dsi-ctrl:[dsi_message_tx] [DSI_0]Command transfer failed
[20789.686380] dsi-ctrl:[dsi_ctrl_cmd_transfer] command msg transfer failed, rc = -110
[20789.686387] msm-dsi-display:[dsi_host_transfer] [dsi_nt36672c_tianma_fhd_video_display] cmd transfer failed, rc=-110
[20789.686400] msm-dsi-panel:[dsi_panel_tx_cmd_set:548] failed to set cmds(24), rc=-110
[20789.686405] msm-dsi-display:[sysfs_hbm_write] unable to set hbm mode
[20789.763199] msm-dsi-panel:[dsi_panel_power_off:490] dsi_panel_power_off: lcd-reset-gpio keep high
[20789.763305] thermal_notifier_callback 3842
[20789.763307] thermal_notifier lct_backlight_off:1
[20789.763480] smblib_set_prop_system_temp_level val=11, chg->system_temp_level=15, LctThermal=1, lct_backlight_off= 1, IsInCall=0 \x0a
[20789.763484] smblib_set_prop_system_temp_level intval:11 system temp level:11 thermal_levels:16
[20789.783389] binder_alloc: 4537: binder_alloc_buf failed to map pages in userspace, no vma
[20789.783407] binder: 1305:1521 transaction failed 29189/-3, size 124-0 line 3215
[20789.961582] binder: 1305:1305 transaction failed 29189/-22, size 108-0 line 3069
...
[20790.011529] binder: 1305:1305 transaction failed 29189/-22, size 108-0 line 3069
[20790.235111] binder: release 25086:14614 transaction 11104607 in, still active
[20790.235119] binder: send failed reply for transaction 11104607 to 26210:26230
[20790.252327] binder: 28451:28451 ioctl 40046210 fff10a68 returned -22
[20790.327373] binder: 28459:28459 ioctl 40046210 7fe1546904 returned -22
...
[20790.755086] i2c_geni 888000.i2c: i2c error :-107
[20790.755107] nq-nci 0-0028: nfc_write: failed to write -107
[20791.143775] binder: 28577:28577 ioctl 40046210 7fe1546904 returned -22
[20791.332113] binder: 28586:28586 ioctl 40046210 7fe1546904 returned -22
[20791.373478] init: Untracked pid 28642 exited with status 0
[20791.656467] binder: 28331:28331 ioctl 40046210 7fd9b50314 returned -22
[20791.949677] binder_alloc: 26536: binder_alloc_buf failed to map pages in userspace, no vma
[20791.949694] binder: 3722:24213 transaction failed 29189/-3, size 168-0 line 3215
[20792.010621] binder_alloc: 26536: binder_alloc_buf failed to map pages in userspace, no vma
[20792.010637] binder: 3722:24212 transaction failed 29189/-3, size 168-0 line 3215
[20792.140479] binder_alloc: 26536: binder_alloc_buf failed to map pages in userspace, no vma
[20792.140496] binder: 3722:24213 transaction failed 29189/-3, size 168-0 line 3215
[20792.148922] binder_alloc: 26536: binder_alloc_buf failed to map pages in userspace, no vma
[20792.148940] binder: 3722:24212 transaction failed 29189/-3, size 168-0 line 3215

I saw that there were test builds posted earlier last month. Has anyone who is also being affected by the random freezes tested those builds? Do they actually fix the issue? The lockups are so bad that I would be willing to wipe my data just to get rid of them.