"The error is due to LOS livedisplay. Proper fix unknown.
Someone has posted a workaround in our telegram group - this workaround fixes PIS issue at cost of livedisplay."
We now have:
"the issue resides in LiveDisplay implementation
if you can live without some LiveDisplay options, flash the "fix" attached below"
At least one ROM removed Livedisplay in favour of another implementation:
That was in May and as far as i know that fixed the issue there.
While Livedisplay may not account for ALL instances of this bug, it certainly appears to be at least a major factor. My own logs, (taken when both my OP3T and OP5 were hung on the 'Phone is Starting' message), include Livedisplay entries that are not present on a subsequent bootup.
Overall it doesn't look good for Livedisplay. You can see from the second link above that the .zip mentioned in the first link has been posted for use with the OP5/T.
What we know about the fix:
1) It makes edits to /vendor/etc/vintf/manifest.xml removing Livedisplay entries
2) Removes two files: /vendor/bin/hw/[email protected]_msm8998 and /vendor/etc/init/[email protected]_msm8998
(In the case of the OP3/T the 'oneplus_msm8998' would read 'oneplus3')
3) It removes a lot of Livedisplay functionality.
4) The fix as posted here should work on any LOS/Based ROM for both the OP3 and OP3T
Please read what @nvertigo67 had to say about the PIS bug:
In the logs I've seen, there is not only livedisplay hal crashing, but other hals as well. It seems to me that this relates to some boot timing differences over different boots, depending when hwservicemanager is started - if hardware service manager comes up to late quite some hals (among others also livedisplay) are constantly crashing. Perhaps late start of hwservicemanaher is a followup error from something even more different. Removing livedisplay changes the boot up sequence and it's timing, as using a third party launcher or uninstalling magisk does for others. configstore seems to play in here, too. But I don't completely umderstand, if crashing hwcservice is the cause fpr configstore to crash, or vice versa.
The flashable zip is attached as well as a screenshot showing what the Livedisplay settings now look like after it is applied: (crDroid/OP3T). 'Profiles' is removed but to me the calibration looks like 'Standard'.
Dirty flash your ROM again to undo the changes.
Many thanks to 2Tweak for adapting the script for use here, and to nvertigo67 as always for input and inspiration. Great work as always from both.