[Xperia Z3 Compact Original Android Development] stefandoesinger:
Yap, looks like there's a memory leak in the new build. Here's the dmesg output:

[ 1576.954700] init: File /vendor/bin/hw/android.hardware.drm@1.1-service.clearkey(labeled "u:object_r:hal_drm_clearkey_exec:s0") has incorrect label or no domain transition from u:r:init:s0 to another SELinux domain defined. Have you configured your service correctly? https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
[ 1576.954842] init: starting service 'vendor.drm-clearkey-hal-1-1'...
[ 1576.955792] type=1400 audit(1562413411.971:1645): avc: denied { getattr } for pid=25000 comm="sh" path="/system/vendor/bin/suntrold" dev="mmcblk0p23" ino=601 scontext=u:r:shell:s0 tcontext=u:object_r:suntrold_exec:s0 tclass=file permissive=0
[ 1576.955922] type=1400 audit(1562413412.155:1646): avc: denied { execute_no_trans } for pid=25028 comm="init" path="/system/vendor/bin/hw/android.hardware.drm@1.1-service.clearkey" dev="mmcblk0p23" ino=710 scontext=u:r:init:s0 tcontext=u:object_r:hal_drm_clearkey_exec:s0 tclass=file permissive=0
[ 1576.955972] init: cannot execve('/vendor/bin/hw/android.hardware.drm@1.1-service.clearkey'): Permission denied
[ 1576.957661] init: Service 'vendor.drm-clearkey-hal-1-1' (pid 25028) exited with status 127
[ 1576.957688] init: Sending signal 9 to service 'vendor.drm-clearkey-hal-1-1' (pid 25028) process group...
[ 1576.957775] libprocessgroup: Successfully killed process cgroup uid 1013 pid 25028 in 0ms
[ 1577.007987] send sigkill to 25015 (.android.chrome), adj 0, size 5014
[ 1577.134553] send sigkill to 25029 (.android.chrome), adj 0, size 5061
[ 1577.203566] send sigkill to 25042 (re-initialized>), adj 0, size 4831
[ 1577.324514] send sigkill to 25056 (.android.chrome), adj 0, size 5703
[ 1577.475129] send sigkill to 25074 (.android.chrome), adj 0, size 6705
[ 1577.598629] send sigkill to 25088 (.android.chrome), adj 0, size 7428
[ 1577.738352] send sigkill to 25101 (.android.chrome), adj 0, size 7812
[ 1577.892915] send sigkill to 25114 (.android.chrome), adj 0, size 7857
[ 1578.028748] send sigkill to 25127 (.android.chrome), adj 0, size 7887
[ 1578.051263] send sigkill to 25140 (droid.launcher3), adj 0, size 7834
[ 1578.194526] send sigkill to 25153 (.android.chrome), adj 0, size 7995
[ 1578.361569] send sigkill to 25166 (.android.chrome), adj 0, size 8111
[ 1578.508214] send sigkill to 25179 (.android.chrome), adj 0, size 8109
[ 1578.631780] send sigkill to 25192 (.android.chrome), adj 0, size 7989
[ 1578.723877] type=1400 audit(1562413412.155:1646): avc: denied { execute_no_trans } for pid=25028 comm="init" path="/system/vendor/bin/hw/android.hardware.drm@1.1-service.clearkey" dev="mmcblk0p23" ino=710 scontext=u:r:init:s0 tcontext=u:object_r:hal_drm_clearkey_exec:s0 tclass=file permissive=0
[ 1578.724118] type=1400 audit(1562413413.921:1647): avc: denied { getattr } for pid=25218 comm="su" path="/system/vendor/bin/credmgrd" dev="mmcblk0p23" ino=647 scontext=u:r:shell:s0 tcontext=u:object_r:credmgrd_exec:s0 tclass=file permissive=0
[ 1578.725175] type=1400 audit(1562413413.921:1647): avc: denied { getattr } for pid=25218 comm="su" path="/system/vendor/bin/credmgrd" dev="mmcblk0p23" ino=647 scontext=u:r:shell:s0 tcontext=u:object_r:credmgrd_exec:s0 tclass=file permissive=0
[ 1578.726000] type=1400 audit(1562413413.925:1648): avc: denied { getattr } for pid=25218 comm="su" path="/system/vendor/bin/iddd" dev="mmcblk0p23" ino=649 scontext=u:r:shell:s0 tcontext=u:object_r:iddd_exec:s0 tclass=file permissive=0
[ 1578.726209] type=1400 audit(1562413413.925:1648): avc: denied { getattr } for pid=25218 comm="su" path="/system/vendor/bin/iddd" dev="mmcblk0p23" ino=649 scontext=u:r:shell:s0 tcontext=u:object_r:iddd_exec:s0 tclass=file permissive=0
[ 1578.726333] type=1400 audit(1562413413.925:1649): avc: denied { getattr } for pid=25218 comm="su" path="/system/vendor/bin/suntrold" dev="mmcblk0p23" ino=601 scontext=u:r:shell:s0 tcontext=u:object_r:suntrold_exec:s0 tclass=file permissive=0
[ 1578.771123] send sigkill to 25205 (.android.chrome), adj 0, size 7996
[ 1578.870521] send sigkill to 25219 (.android.chrome), adj 0, size 7968
[ 1579.155230] send sigkill to 25238 (.android.chrome), adj 0, size 8013
[ 1579.210998] send sigkill to 25251 (re-initialized>), adj 0, size 4703
[ 1579.282498] send sigkill to 25264 (re-initialized>), adj 0, size 4720
[ 1579.360875] send sigkill to 25277 (.android.chrome), adj 0, size 6237
[ 1579.432508] send sigkill to 25290 (.android.chrome), adj 0, size 7987
[ 1579.504999] send sigkill to 25303 (.android.chrome), adj 0, size 7110
[ 1579.658209] send sigkill to 25316 (.android.chrome), adj 0, size 8049
[ 1579.785587] send sigkill to 25331 (.android.chrome), adj 0, size 8057
[ 1579.908873] send sigkill to 25351 (re-initialized>), adj 0, size 4767
[ 1580.082400] send sigkill to 25364 (.android.chrome), adj 0, size 8095
[ 1580.168186] send sigkill to 25377 (re-initialized>), adj 0, size 4683
[ 1580.250408] send sigkill to 25390 (.android.chrome), adj 0, size 8058
[ 1580.311683] send sigkill to 25403 (re-initialized>), adj 0, size 4545
[ 1581.039695] send sigkill to 25422 (re-initialized>), adj 0, size 4664
[ 1581.301192] send sigkill to 25435 (.android.chrome), adj 0, size 4751
[ 1581.354802] send sigkill to 25454 (re-initialized>), adj 0, size 4763
[ 1581.427170] send sigkill to 25472 (.android.chrome), adj 0, size 4915
[ 1581.484259] send sigkill to 25486 (re-initialized>), adj 0, size 4676
[ 1581.551362] send sigkill to 25499 (.android.chrome), adj 0, size 4922
[ 1581.644852] send sigkill to 25512 (.android.chrome), adj 0, size 5026
[ 1581.707874] send sigkill to 25525 (.android.chrome), adj 0, size 5342
[ 1581.775016] send sigkill to 25541 (re-initialized>), adj 0, size 4687
[ 1581.865568] send sigkill to 25554 (.android.chrome), adj 0, size 5392
[ 1581.961183] init: File /vendor/bin/hw/android.hardware.drm@1.1-service.clearkey(labeled "u:object_r:hal_drm_clearkey_exec:s0") has incorrect label or no domain transition from u:r:init:s0 to another SELinux domain defined. Have you configured your service correctly? https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
[ 1581.961363] init: starting service 'vendor.drm-clearkey-hal-1-1'...
[ 1581.966475] init: cannot execve('/vendor/bin/hw/android.hardware.drm@1.1-service.clearkey'): Permission denied
[ 1581.967746] init: Service 'vendor.drm-clearkey-hal-1-1' (pid 25578) exited with status 127
[ 1581.967773] init: Sending signal 9 to service 'vendor.drm-clearkey-hal-1-1' (pid 25578) process group...
[ 1581.967870] libprocessgroup: Successfully killed process cgroup uid 1013 pid 25578 in 0ms
[ 1581.979888] type=1400 audit(1562413413.925:1649): avc: denied { getattr } for pid=25218 comm="su" path="/system/vendor/bin/suntrold" dev="mmcblk0p23" ino=601 scontext=u:r:shell:s0 tcontext=u:object_r:suntrold_exec:s0 tclass=file permissive=0
[ 1581.980258] type=1400 audit(1562413417.165:1650): avc: denied { execute_no_trans } for pid=25578 comm="init" path="/system/vendor/bin/hw/android.hardware.drm@1.1-service.clearkey" dev="mmcblk0p23" ino=710 scontext=u:r:init:s0 tcontext=u:object_r:hal_drm_clearkey_exec:s0 tclass=file permissive=0
[ 1582.001182] send sigkill to 25567 (re-initialized>), adj 0, size 4730
[ 1582.074068] send sigkill to 25581 (re-initialized>), adj 0, size 4720
[ 1582.186833] send sigkill to 25594 (.android.chrome), adj 0, size 4821
[ 1582.247025] send sigkill to 25607 (.android.chrome), adj 0, size 4938
[ 1582.384984] send sigkill to 25620 (.android.chrome), adj 0, size 5547
[ 1582.467167] send sigkill to 25633 (re-initialized>), adj 0, size 4645
[ 1582.573121] send sigkill to 25647 (.android.chrome), adj 0, size 5661
[ 1582.726573] send sigkill to 25665 (.android.chrome), adj 0, size 6196
[ 1582.872693] send sigkill to 25678 (.android.chrome), adj 0, size 5840
[ 1582.928577] send sigkill to 25696 (re-initialized>), adj 0, size 4649
[ 1583.881655] send sigkill to 25716 (re-initialized>), adj 0, size 4728
[ 1585.265557] send sigkill to 25722 (re-initialized>), adj 0, size 4106
[ 1586.529612] send sigkill to 25767 (re-initialized>), adj 900, size 4387
[ 1586.557803] send sigkill to 25787 (re-initialized>), adj 0, size 4396
[ 1586.644749] send sigkill to 25772 (re-initialized>), adj 0, size 4426
[ 1586.968040] init: File /vendor/bin/hw/android.hardware.drm@1.1-service.clearkey(labeled "u:object_r:hal_drm_clearkey_exec:s0") has incorrect label or no domain transition from u:r:init:s0 to another SELinux domain defined. Have you configured your service correctly? https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials
[ 1586.968184] init: starting service 'vendor.drm-clearkey-hal-1-1'...
[ 1586.969174] init: cannot execve('/vendor/bin/hw/android.hardware.drm@1.1-service.clearkey'): Permission denied
[ 1586.972483] init: Service 'vendor.drm-clearkey-hal-1-1' (pid 25823) exited with status 127
[ 1586.972510] init: Sending signal 9 to service 'vendor.drm-clearkey-hal-1-1' (pid 25823) process group...
[ 1586.972616] libprocessgroup: Successfully killed process cgroup uid 1013 pid 25823 in 0ms
[ 1587.093650] type=1400 audit(1562413417.165:1650): avc: denied { execute_no_trans } for pid=25578 comm="init" path="/system/vendor/bin/hw/android.hardware.drm@1.1-service.clearkey" dev="mmcblk0p23" ino=710 scontext=u:r:init:s0 tcontext=u:object_r:hal_drm_clearkey_exec:s0 tclass=file permissive=0
[ 1587.093804] type=1400 audit(1562413422.168:1651): avc: denied { execute_no_trans } for pid=25823 comm="init" path="/system/vendor/bin/hw/android.hardware.drm@1.1-service.clearkey" dev="mmcblk0p23" ino=710 scontext=u:r:init:s0 tcontext=u:object_r:hal_drm_clearkey_exec:s0 tclass=file permissive=0

I don't have the messages all the way back to the device boot, and the term "memory" does not occur anywhere, but the "send sigkill to <pid>" messages look very much like the OOM killer messages.

Why does it do that with 300mb not even used for caches? I guess it freed 300 MB by killing the launcher, and after it fails to restart the device sits here semi-unusable with some free memory.