[Google Pixel 3 XL ROMs, Kernels, Recoveries, & Oth] Freak07:
Hello.

Well in both logcats I can see the google ambient music tracker producing this error:

01-26 16:35:09.138 1156 1185 I ActivityManager: Start proc 18511:com.google.intelligence.sense/u0a24 for service com.google.intelligence.sense/.ambientmusic.AmbientMusicDetector$Service
01-26 16:35:09.172 18511 18511 E LoadedApk: Unable to instantiate appComponentFactory
01-26 16:35:09.172 18511 18511 E LoadedApk: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.CoreComponentFactory" on path: DexPathList[[zip file "/data/app/com.google.intelligence.sense-0oPYifAZdZDkgM4X0j_W5Q==/base.apk"],nativeLibraryDirectories=[/data/app/com.google.intelligence.sense-0oPYifAZdZDkgM4X0j_W5Q==/lib/arm64, /data/app/com.google.intelligence.sense-0oPYifAZdZDkgM4X0j_W5Q==/base.apk!/lib/arm64-v8a, /system/lib64]]
01-26 16:35:09.172 18511 18511 E LoadedApk:	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at android.app.LoadedApk.createAppFactory(LoadedApk.java:226)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:731)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at android.app.LoadedApk.getClassLoader(LoadedApk.java:810)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at android.app.LoadedApk.getResources(LoadedApk.java:1032)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at android.app.ContextImpl.createAppContext(ContextImpl.java:2345)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5798)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at android.app.ActivityThread.access$1100(ActivityThread.java:200)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at android.os.Handler.dispatchMessage(Handler.java:106)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at android.os.Looper.loop(Looper.java:193)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at android.app.ActivityThread.main(ActivityThread.java:6718)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at java.lang.reflect.Method.invoke(Native Method)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
01-26 16:35:09.172 18511 18511 E LoadedApk:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

01-26 17:55:26.510 20118 20150 I ActivityManager: Start proc 15651:com.google.intelligence.sense/u0a24 for service com.google.intelligence.sense/.ambientmusic.AmbientMusicDetector$Service
01-26 17:55:26.536 15651 15651 E LoadedApk: Unable to instantiate appComponentFactory
01-26 17:55:26.536 15651 15651 E LoadedApk: java.lang.ClassNotFoundException: Didn't find class "android.support.v4.app.CoreComponentFactory" on path: DexPathList[[zip file "/data/app/com.google.intelligence.sense-0oPYifAZdZDkgM4X0j_W5Q==/base.apk"],nativeLibraryDirectories=[/data/app/com.google.intelligence.sense-0oPYifAZdZDkgM4X0j_W5Q==/lib/arm64, /data/app/com.google.intelligence.sense-0oPYifAZdZDkgM4X0j_W5Q==/base.apk!/lib/arm64-v8a, /system/lib64]]
01-26 17:55:26.536 15651 15651 E LoadedApk:	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at android.app.LoadedApk.createAppFactory(LoadedApk.java:226)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at android.app.LoadedApk.createOrUpdateClassLoaderLocked(LoadedApk.java:731)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at android.app.LoadedApk.getClassLoader(LoadedApk.java:810)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at android.app.LoadedApk.getResources(LoadedApk.java:1032)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at android.app.ContextImpl.createAppContext(ContextImpl.java:2345)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5798)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at android.app.ActivityThread.access$1100(ActivityThread.java:200)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1656)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at android.os.Handler.dispatchMessage(Handler.java:106)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at android.os.Looper.loop(Looper.java:193)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at android.app.ActivityThread.main(ActivityThread.java:6718)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at java.lang.reflect.Method.invoke(Native Method)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
01-26 17:55:26.536 15651 15651 E LoadedApk:	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)

This is causing the phone to slow down and also the wlan driver to misbehave. Does your phone recover from these freezes in the end or do you have to reboot to get it back from being unresponsive?

You might try to disable WLAN and see if the issue persists.

You can try to disable ambient music tracking and see if the issues persists.

That may at least narrow down the cause.

I don´t see any obvious kernel fault at play here. But that java error in the logcat shouldn´t be there in the first place.

Logcat shows errors caused by apps or the system. Dmesg shows errors caused by the kernel.

It may be that custom kernels use a piece of code that don´t like the java error found in the logcat. Stock kernel may be unaffected, because it´s missing that piece of code.