[OnePlus 3 & 3T Cross Device Development] h1ghKL:
System UI / Trebuchet hangs

Hi,

For some reason System UI / Trebuchet crashes randomly.

It can happen after just a few minutes or after a few hours.

Been re-installing multiple times now and can pretty much reproduce the crash/hang every time with below step-by-step on a fresh install.

Install details:

Latest official TWRP, 'twrp-3.2.1-0-oneplus3.img'.

Advanced Wipe.

/data has been formatted with new TWRP version and rebooted back to Recovery before install.

Boot to Recovery:

1) Install Firmware, 'OnePlus3T_Beta29-(13-06-18)-FIRMWARE-flashable.zip'

2) Install LineageOS, 'lineage-15.1-20180619-nightly-oneplus3-signed.zip'

3) Install Open GApps, 'open_gapps-arm64-8.1-nano-20180613.zip'

Clear Dalvik/Cache.

Reboot System.

Setup Wifi, Google Account, OK.

Launch Google Play, install Brave Browser.

Launch Brave Browser.

Touch Home Button to get back to Trebuchet Launcher.

Launch Brave Browser again...

System UI now hangs/freezes completely.

While frozen, touching the home button will activate the light in soft buttons.

Pressing Power Button, turns off display.

Touching Home Button or Power Button thereafter will light the soft buttons, but display wont turn on, and hard shutdown must be performed.

Logcat below (got full dump if needed).

Key error message:

InputDispatcher: Application is not responding: Window{2de5e17 u0 org.lineageos.trebuchet/com.android.launcher3.Launcher}. It has been 5005.3ms since event, 5004.7ms since wait started. Reason: Waiting because the touched window is paused.
WindowManager: Input event dispatching timed out sending to org.lineageos.trebuchet/com.android.launcher3.Launcher. Reason: Waiting because the touched window is paused.

06-24 17:45:44.367 4510 4510 D InstalledAppDetails: Got broadcast response: Restart status for com.brave.browser false
06-24 17:45:44.457 4510 4510 I chatty : uid=1000(system) com.android.settings identical 3 lines
06-24 17:45:44.484 4510 4510 D InstalledAppDetails: Got broadcast response: Restart status for com.brave.browser false
06-24 17:45:44.859 2208 2435 E fpc_tac : sysfs_node_write write failed 5
06-24 17:45:44.860 2208 2435 E fpc_fingerprint_hal: fpc_wait_finger_down_for_home_12_zone after irq 0
06-24 17:45:44.860 2208 2435 D fpc_tac : fpc_tac_wakeup_qualification begin
06-24 17:45:44.860 2208 2435 D fpc_tac : fpc_tac_send_cmd begin
06-24 17:45:44.871 2208 2435 D fpc_tac : fpc_tac_send_cmd end
06-24 17:45:44.872 2208 2435 D fpc_tac : fpc_tac_wakeup_qualification end
06-24 17:45:44.872 2208 2435 I fpc_fingerprint_hal: do_home status 0
06-24 17:45:44.872 2208 2435 D fpc_fingerprint_hal: do_home HOME DOWN
06-24 17:45:44.872 2208 2435 D fpc_fingerprint_hal: fpc_wait_finger_up
06-24 17:45:44.918 2208 2435 E fpc_fingerprint_hal: fpc_wait_finger_up FPC_LIB_FINGER_LOST
06-24 17:45:44.918 2208 2435 D fpc_fingerprint_hal: do_home HOME UP
06-24 17:45:44.918 2208 2435 D fpc_fingerprint_hal: fpc_wait_finger_down_for_home_12_zone enter
06-24 17:45:44.918 2208 2435 D fpc_tac : fpc_tac_12zones_wakeup_setup begin
06-24 17:45:44.918 2208 2435 D fpc_tac : fpc_tac_send_cmd begin
06-24 17:45:44.928 2415 2929 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=org.lineageos.trebuchet/com.android.launcher3.Launcher (has extras)} from uid 1000
06-24 17:45:44.935 2208 2435 D fpc_tac : fpc_tac_send_cmd end
06-24 17:45:44.935 2208 2435 D fpc_tac : fpc_tac_12zones_wakeup_setup end
06-24 17:45:44.936 2208 2435 E fpc_tac : sysfs_node_write write failed 5
06-24 17:45:45.528 4750 7321 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
06-24 17:45:45.528 4750 7321 W OpenGLRenderer: Incorrectly called buildLayer on View: ShortcutAndWidgetContainer, destroying layer...
06-24 17:45:45.610 2415 2424 I zygote64: NativeAlloc concurrent copying GC freed 132858(6MB) AllocSpace objects, 72(3MB) LOS objects, 49% free, 12MB/24MB, paused 291us total 126.367ms
06-24 17:45:45.724 2167 6019 I NuPlayerDecoder: [video] saw output EOS
06-24 17:45:45.731 2415 9159 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.brave.browser/com.google.android.apps.chrome.Main bnds=[827,1674][1018,1914]} from uid 10030
06-24 17:45:45.731 2064 4443 I AudioPolicyManagerCustom: FLAG None hence request for a primary output
06-24 17:45:45.732 2064 4443 I AudioPolicyManagerCustom: FLAG None hence request for a primary output
06-24 17:45:45.752 2415 2444 E AppOps : Creating dialog box
06-24 17:45:45.802 2167 6015 D NuPlayerDriver: notifyListener_l(0xeef19780), (2, 0, 0, -1), loop setting(0, 1)
06-24 17:45:45.811 2167 6019 I NuPlayerDecoder: [OMX.qcom.video.decoder.avc] resubmitting CSD
06-24 17:45:45.812 2167 6019 I NuPlayerDecoder: [OMX.qcom.video.decoder.avc] resubmitting CSD
06-24 17:45:45.825 2167 6015 D NuPlayerDriver: notifyListener_l(0xeef19780), (6, 0, 0, -1), loop setting(0, 1)
06-24 17:45:47.314 2415 6830 I WifiService: getCurrentNetwork uid=10040
06-24 17:45:47.317 2415 6830 I WifiService: getWifiEnabledState uid=10040
06-24 17:45:47.320 2415 9159 I WifiService: getConnectionInfo uid=10040
06-24 17:45:47.321 2415 9159 I WifiService: getConfiguredNetworks uid=10040
06-24 17:45:48.857 493 2021 D audio_hw_primary: out_standby: enter: stream (0xee58b000) usecase(1: low-latency-playback)
06-24 17:45:48.891 493 2021 D audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback quat_i2s
06-24 17:45:48.892 493 2021 D soundtrigger: audio_extn_sound_trigger_update_stream_status: uc_id 1 of type 0 for Event 2, with Raise=0
06-24 17:45:48.893 493 2021 D hardware_info: hw_info_append_hw_type : device_name = speaker
06-24 17:45:48.893 493 2021 D audio_hw_primary: disable_snd_device: snd_device(2: speaker)
06-24 17:45:48.893 493 2021 D msm8974_platform: platform_split_snd_device: snd_device(2) num devices(0) new_snd_devices(0)
06-24 17:45:48.906 493 2021 I soundtrigger: audio_extn_sound_trigger_update_device_status: device 0x2 of type 0 for Event 0, with Raise=0
06-24 17:45:48.906 493 2021 D audio_hw_primary: out_standby: exit
06-24 17:45:50.196 2167 6019 I NuPlayerDecoder: [video] saw output EOS
06-24 17:45:50.276 2167 6015 D NuPlayerDriver: notifyListener_l(0xeef19780), (2, 0, 0, -1), loop setting(0, 1)
06-24 17:45:50.288 2167 6019 I NuPlayerDecoder: [OMX.qcom.video.decoder.avc] resubmitting CSD
06-24 17:45:50.288 2167 6019 I NuPlayerDecoder: [OMX.qcom.video.decoder.avc] resubmitting CSD
06-24 17:45:50.303 2167 6015 D NuPlayerDriver: notifyListener_l(0xeef19780), (6, 0, 0, -1), loop setting(0, 1)
06-24 17:45:51.111 533 581 E ANDR-PERF-RESOURCEQS: Failed to apply optimization [4, 0]
06-24 17:45:51.115 533 581 E ANDR-PERF-RESOURCEQS: Failed to apply optimization [2, 0]
06-24 17:45:52.475 2415 2930 I PowerManagerService: Going to sleep due to power button (uid 1000)...
06-24 17:45:52.953 2415 2929 I InputDispatcher: Application is not responding: Window{2de5e17 u0 org.lineageos.trebuchet/com.android.launcher3.Launcher}. It has been 5005.3ms since event, 5004.7ms since wait started. Reason: Waiting because the touched window is paused.
06-24 17:45:52.962 2415 2929 I WindowManager: Input event dispatching timed out sending to org.lineageos.trebuchet/com.android.launcher3.Launcher. Reason: Waiting because the touched window is paused.
06-24 17:45:52.991 2415 2461 I DisplayPowerController: Blocking screen off
06-24 17:45:52.992 2415 2461 I DisplayPowerController: Unblocked screen off after 0 ms
06-24 17:45:53.187 2415 2930 I PowerManagerService: Waking up from dozing (uid=1000 reason=android.policy:POWER)...
06-24 17:45:54.670 2167 6019 I NuPlayerDecoder: [video] saw output EOS
06-24 17:45:54.747 2167 6015 D NuPlayerDriver: notifyListener_l(0xeef19780), (2, 0, 0, -1), loop setting(0, 1)
06-24 17:45:54.759 2167 6019 I NuPlayerDecoder: [OMX.qcom.video.decoder.avc] resubmitting CSD
06-24 17:45:54.760 2167 6019 I NuPlayerDecoder: [OMX.qcom.video.decoder.avc] resubmitting CSD
06-24 17:45:54.774 2167 6015 D NuPlayerDriver: notifyListener_l(0xeef19780), (6, 0, 0, -1), loop setting(0, 1)
^C

Any hints on what could cause this?

Same experience a few weeks ago, with older, newest versions at that time, but had to revoke back to 14.1.

Will try to install another launcher and see if that helps, but would like to be able to use default Trebuchet.

EDIT: Hang/freeze can also happen with other apps, above example with Brave Browser just to explain step-by-step. Launching or returning back to home screen can hang/freeze Trebuchet.