[Samsung Galaxy Nexus] MWisBest:
Well, one of the graphical glitches we've been experiencing with KitKat on the Galaxy Nexus is black boxes appearing in the AOSP browser and anything using the rendering engine the browser uses. I looked through some logs and found this:

E/IMGSRV (31385): :0: gralloc_module_map: Mismatching lock usage bits 0xP...FHWR=0x00000033 vs requested usage bits 0xP...FHWR=0x00000100
E/IMGSRV (31385): :0: MapBufferObtainParams: Mapping buffer failed
E/IMGSRV (31385): :0: WSEGL_GetDrawableParameters: Failed to obtain buffer parameters
E/chromium(31385): [ERROR:gl_image_egl.cc(36)] Error creating EGLImage: 12300

that file is at external/chromium_org/ui/gl/gl_image_egl.cc in my AOSP directory. This seemed to pop up in the logs whenever a black box appeared. Figuring out exactly what's causing the problem is a little over my head, I don't have much experience with OpenGL ES/EGL/whatever, but I figured some other dev might have a better idea as to what's going on.

Another thing that has been happening is complete lock-ups of the phone, some kernels requiring a battery pull to reboot and other kernels just do a reboot anyways. This is some stuff I pulled from logcats when the screen completely froze, linebreaks represent random junk being removed:

W/SurfaceFlinger( 139): setTransactionState timed out waiting for previous animation frame

### Screen is now completely frozen here.

W/ManagedEGLContext(31385): doTerminate failed: EGL count is 2 but managed count is 1

W/ManagedEGLContext(31146): doTerminate failed: EGL count is 3 but managed count is 1

E/ActivityManager( 462): ANR in com.android.systemui
E/ActivityManager( 462): PID: 588
E/ActivityManager( 462): Reason: Input dispatching timed out (Waiting because the touched window has not finished processing the input events that were previously delivered to it.)
E/ActivityManager( 462): Load: 4.38 / 2.79 / 2.31
E/ActivityManager( 462): CPU usage from 3613ms to -2817ms ago with 99% awake:
E/ActivityManager( 462): 84% 788/com.google.android.googlequicksearchbox: 0% user + 84% kernel / faults: 30 minor
E/ActivityManager( 462): 24% 462/system_server: 15% user + 9.3% kernel / faults: 1862 minor 29 major
E/ActivityManager( 462): 5.1% 151/adbd: 0.6% user + 4.5% kernel / faults: 16 minor
E/ActivityManager( 462): 3.7% 737/com.android.phone: 1.8% user + 1.8% kernel / faults: 1612 minor 5 major
E/ActivityManager( 462): 0.9% 588/com.android.systemui: 0.6% user + 0.3% kernel / faults: 662 minor 10 major
E/ActivityManager( 462): 0.9% 5101/com.google.android.apps.plus: 0.6% user + 0.2% kernel / faults: 1185 minor 2 major
E/ActivityManager( 462): 1.3% 753/com.sec.android.internal.ims: 0.6% user + 0.7% kernel / faults: 1740 minor 2 major
E/ActivityManager( 462): 1.3% 2411/kworker/1:2: 0% user + 1.3% kernel
E/ActivityManager( 462): 0.1% 768/com.android.nfc: 0.1% user + 0% kernel / faults: 2029 minor 1 major
E/ActivityManager( 462): 0.9% 5267/com.google.android.youtube: 0.3% user + 0.6% kernel / faults: 189 minor
E/ActivityManager( 462): 0.3% 31385/com.android.browser: 0.3% user + 0% kernel / faults: 240 minor
E/ActivityManager( 462): 0.7% 4410/android.process.media: 0.3% user + 0.4% kernel / faults: 45 minor
E/ActivityManager( 462): 0.7% 5180/com.google.android.music:main: 0.6% user + 0.1% kernel / faults: 9 minor
E/ActivityManager( 462): 0.6% 4053/kworker/0:0: 0% user + 0.6% kernel
E/ActivityManager( 462): 0.6% 31500/com.facebook.katana: 0.1% user + 0.4% kernel / faults: 42 minor
E/ActivityManager( 462): 0.4% 2724/com.google.process.gapps: 0.3% user + 0.1% kernel / faults: 10 minor
E/ActivityManager( 462): 0% 96/mmcqd/0: 0% user + 0% kernel
E/ActivityManager( 462): 0% 5247/com.google.android.setupwizard: 0% user + 0% kernel / faults: 9 minor
E/ActivityManager( 462): +0% 5510/logcat: 0% user + 0% kernel
E/ActivityManager( 462): 70% TOTAL: 13% user + 55% kernel + 1.5% iowait
E/ActivityManager( 462): CPU usage from 1773ms to 2326ms later:
E/ActivityManager( 462): 94% 788/com.google.android.googlequicksearchbox: 0% user + 94% kernel
E/ActivityManager( 462): 90% 788/equicksearchbox: 0% user + 90% kernel
E/ActivityManager( 462): 16% 462/system_server: 7.2% user + 9% kernel / faults: 3 minor
E/ActivityManager( 462): 5.4% 474/HeapTrimmerDaem: 5.4% user + 0% kernel
E/ActivityManager( 462): 5.4% 483/ActivityManager: 0% user + 5.4% kernel
E/ActivityManager( 462): 1.8% 567/ConnectivitySer: 1.8% user + 0% kernel
E/ActivityManager( 462): 1.8% 783/Binder_4: 1.8% user + 0% kernel
E/ActivityManager( 462): 1.8% 737/com.android.phone: 1.8% user + 0% kernel / faults: 4 minor
E/ActivityManager( 462): 1.1% 5101/com.google.android.apps.plus: 1.1% user + 0% kernel / faults: 1 minor
E/ActivityManager( 462): 1.1% 5116/Binder_2: 1.1% user + 0% kernel
E/ActivityManager( 462): 1.2% 5267/com.google.android.youtube: 1.2% user + 0% kernel / faults: 13 minor
E/ActivityManager( 462): 56% TOTAL: 7.2% user + 49% kernel
I/ActivityManager( 462): Killing 588:com.android.systemui/u0a7 (adj -12): background ANR
I/art ( 5267): Wrote stack traces to '/data/anr/traces.txt'
W/SurfaceFlinger( 139): setTransactionState timed out waiting for previous animation frame

E/ActivityManager( 462): ANR in com.android.settings (com.android.settings/.Settings)
E/ActivityManager( 462): PID: 30674
E/ActivityManager( 462): Reason: Input dispatching timed out (Waiting because the touched window has not finished processing the input events that were previously delivered to it.)
E/ActivityManager( 462): Load: 4.33 / 2.83 / 2.33
E/ActivityManager( 462): CPU usage from 7196ms to 0ms ago:
E/ActivityManager( 462): 95% 788/com.google.android.googlequicksearchbox: 0% user + 95% kernel
E/ActivityManager( 462): 8% 462/system_server: 6.8% user + 1.2% kernel / faults: 870 minor 3 major
E/ActivityManager( 462): 1.6% 5267/com.google.android.youtube: 1.1% user + 0.5% kernel / faults: 204 minor 5 major
E/ActivityManager( 462): 0.8% 31500/com.facebook.katana: 0.2% user + 0.5% kernel / faults: 28 minor 8 major
E/ActivityManager( 462): 0.5% 2724/com.google.process.gapps: 0.2% user + 0.2% kernel / faults: 5 minor
E/ActivityManager( 462): 0.5% 4410/android.process.media: 0.2% user + 0.2% kernel / faults: 24 minor
E/ActivityManager( 462): 0.4% 737/com.android.phone: 0.1% user + 0.2% kernel / faults: 7 minor
E/ActivityManager( 462): 0.4% 753/com.sec.android.internal.ims: 0.4% user + 0% kernel / faults: 156 minor
E/ActivityManager( 462): 0.4% 5180/com.google.android.music:main: 0.4% user + 0% kernel / faults: 7 minor
E/ActivityManager( 462): 0.2% 151/adbd: 0.1% user + 0.1% kernel
E/ActivityManager( 462): 0% 118/irq/206-mms_ts: 0% user + 0% kernel
E/ActivityManager( 462): 0% 136/netd: 0% user + 0% kernel / faults: 8 minor
E/ActivityManager( 462): 0.1% 4053/kworker/0:0: 0% user + 0.1% kernel
E/ActivityManager( 462): 0.1% 5101/com.google.android.apps.plus: 0% user + 0.1% kernel / faults: 3 minor
E/ActivityManager( 462): 0.1% 5247/com.google.android.setupwizard: 0.1% user + 0% kernel / faults: 4 minor
E/ActivityManager( 462): 0% 31146/ru.mail.games.android.JungleHeat: 0% user + 0% kernel / faults: 148 minor
E/ActivityManager( 462): 56% TOTAL: 5% user + 50% kernel + 1.1% iowait
E/ActivityManager( 462): CPU usage from 1729ms to 2249ms later:
E/ActivityManager( 462): 96% 788/com.google.android.googlequicksearchbox: 0% user + 96% kernel
E/ActivityManager( 462): 98% 788/equicksearchbox: 0% user + 98% kernel
E/ActivityManager( 462): 11% 462/system_server: 5.7% user + 5.7% kernel / faults: 1 minor
E/ActivityManager( 462): 5.7% 474/HeapTrimmerDaem: 5.7% user + 0% kernel
E/ActivityManager( 462): 3.8% 483/ActivityManager: 0% user + 3.8% kernel
E/ActivityManager( 462): 52% TOTAL: 2.8% user + 50% kernel

I/art ( 788): Wrote stack traces to '/data/anr/traces.txt'
I/Process ( 462): Sending signal. PID: 462 SIG: 3
I/art ( 462): Thread[3,tid=469,WaitingInMainSignalCatcherLoop,Thread*=0x414c3250,peer=0x64d4a238,"Signal Catcher"]: reacting to signal 3
I/art ( 462): Wrote stack traces to '/data/anr/traces.txt'
I/DEBUG ( 137): timed out waiting for tid=139 to die
I/DEBUG ( 137): ptrace detach from 139 failed: No such process
I/DEBUG ( 137): debuggerd committing suicide to free the zombie!
I/DEBUG ( 5560): debuggerd: Nov 15 2013 13:07:12
I/Process ( 462): Sending signal. PID: 462 SIG: 3
I/art ( 462): Thread[3,tid=469,WaitingInMainSignalCatcherLoop,Thread*=0x414c3250,peer=0x64d4a238,"Signal Catcher"]: reacting to signal 3
I/Process ( 462): Sending signal. PID: 737 SIG: 3
I/art ( 737): Thread[3,tid=744,WaitingInMainSignalCatcherLoop,Thread*=0x41557b08,peer=0x64d52a60,"Signal Catcher"]: reacting to signal 3
I/art ( 462): Wrote stack traces to '/data/anr/traces.txt'
I/art ( 737): Wrote stack traces to '/data/anr/traces.txt'
I/DEBUG ( 5560): timed out waiting for tid=139 to die
I/DEBUG ( 5560): ptrace detach from 139 failed: No such process
I/DEBUG ( 5560): debuggerd committing suicide to free the zombie!
I/DEBUG ( 5573): debuggerd: Nov 15 2013 13:07:12
I/Watchdog_N( 462): dumpKernelStacks
I/Process ( 462): Sending signal. PID: 462 SIG: 9
W/Watchdog( 462): *** WATCHDOG KILLING SYSTEM PROCESS: Blocked in monitor com.android.server.wm.WindowManagerService on foreground thread (android.fg), Blocked in handler on ActivityManager (ActivityManager)
W/Watchdog( 462): foreground thread stack trace:
W/Watchdog( 462): at com.android.server.wm.WindowManagerService.monitor(WindowManagerService.java:10695)
W/Watchdog( 462): at com.android.server.Watchdog$HandlerChecker.run(Watchdog.java:147)
W/Watchdog( 462): at android.os.Handler.handleCallback(Handler.java:733)
W/Watchdog( 462): at android.os.Handler.dispatchMessage(Handler.java:95)
W/Watchdog( 462): at android.os.Looper.loop(Looper.java:137)
W/Watchdog( 462): at android.os.HandlerThread.run(HandlerThread.java:61)
W/Watchdog( 462): ActivityManager stack trace:
W/Watchdog( 462): at android.view.SurfaceControl.nativeCreate(Native Method)
W/Watchdog( 462): at android.view.SurfaceControl.<init>(SurfaceControl.java:238)
W/Watchdog( 462): at com.android.server.wm.WindowStateAnimator.createSurfaceLocked(WindowStateAnimator.java:686)
W/Watchdog( 462): at com.android.server.wm.WindowManagerService.relayoutWindow(WindowManagerService.java:2885)
W/Watchdog( 462): at com.android.server.wm.Session.relayout(Session.java:190)
W/Watchdog( 462): at android.view.ViewRootImpl.relayoutWindow(ViewRootImpl.java:5114)
W/Watchdog( 462): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1412)
W/Watchdog( 462): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:998)
W/Watchdog( 462): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5582)
W/Watchdog( 462): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
W/Watchdog( 462): at android.view.Choreographer.doCallbacks(Choreographer.java:562)
W/Watchdog( 462): at android.view.Choreographer.doFrame(Choreographer.java:532)
W/Watchdog( 462): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
W/Watchdog( 462): at android.os.Handler.handleCallback(Handler.java:733)
W/Watchdog( 462): at android.os.Handler.dispatchMessage(Handler.java:95)
W/Watchdog( 462): at android.os.Looper.loop(Looper.java:137)
W/Watchdog( 462): at com.android.server.am.ActivityManagerService$AThread.run(ActivityManagerService.java:1848)
W/Watchdog( 462): *** GOODBYE!

### Bunch of services just die here, no more logs come in after.

Also attached is the /data/anr/traces.txt, pulled from the device once the logcats stopped coming in.

I just haven't really seen much for logs in attempts to debug this, so hopefully I've been able to get something substantial here to work with. I'm doing what I can to look through the logs, grep my AOSP directory for things in it to find where stuff is messing up, and checking the git logs to see what's changed in those files and related files since 4.3. I know there are lots of people here much more talented and skilled than myself, and I feel confident that we can all figure this stuff out before December, or at least the middle of it.

EDIT: Based on feedback from some users of my ROM, other ROMs, and some experience with the freezes myself, it seems to happen when doing one thing and then quickly trying to do something else, one thing that usually ends up triggering it for myself is unlocking the phone and then nearly immediately pressing the Dialer icon to open the Dialer app. The app doesn't even open, the screen freezes with the little glow around the icon and that's it. Looks to be related to the:

W/ManagedEGLContext(31385): doTerminate failed: EGL count is 2 but managed count is 1

part of the log. Seems an extra EGL Context is being created, but the maximum allowable is 1? Something like that? Again, not a lot of experience with OpenGL ES for me.

I'm also now attaching a couple logcats from a user of my ROM who was able to get a couple of them, [MENTION=4961223]sonic147862[/MENTION], so thanks to him. The second logcat has some very interesting GL stuff at the bottom of it as well.