Hello macOS developer and/or video game or maybe web developer friends: evidence accumulates for this kind of ridiculous hypothesis that really *must* be wrong and I really want to debug what is happening so that I can stop having this failure mode annoy me: mastodon.social/@glyph/1138796…
Glyph (@glyph@mastodon.social)
@SnoopJ@hachyderm.io I am still probably going to reboot but the failure mode kinda looks, to my untrained eye, like they exhaust the video RAM so that apps can't allocate their own textures and end up with blank surfaces.Mastodon
Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Oh hey, Weather is failing to launch again, and this console message looks interesting:
VFX/Renderer.swift:1123: Fatal error: Cannot create commandBuffer VFX update command buffer
Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •okay I think the CPU usage thing was a one-off blip disconnected from the obscure graphics problem.
I now have my *own* app misbehaving though, even though I don't use Metal at all. When it's failing, I also get this message (to stderr, not nslog!) coming off some point in the main loop I can't triangulate (it's not coming from my custom draw method) "Context leak detected, msgtracer returned -1"
Glyph
Als Antwort auf Glyph • • •GitHub - glyph/Pomodouroboros: Pomodoro timer that acknowledges the inexorable, infinite passage of time
GitHubGlyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Forced switching to dedicated videocard · Issue #110 · AdguardTeam/AdGuardForSafari
GitHubGlyph
Als Antwort auf Glyph • • •Safari 18.1.1 on MacOS 15.1.1 becomes unstable after some time (after waking up) · Issue #1040 · AdguardTeam/AdGuardForSafari
GitHubGlyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Closer… that "leaks React components on Safari" bug above was a hint. And this suggests something:
github.com/aws/amazon-chime-sd…
Several of the Safari dock apps I'm using (Unifi, Nest, YouTube, Mastodon) are constantly doing stuff with video components, and it seems that this is a "known" sore spot for WebKit…
Safari leaks memory when videos are rapidly removed from the screen and re-added · Issue #771 · aws/amazon-chime-sdk-component-library-react
GitHubGlyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •PLOT TWIST:
after reproing for the 10th or 11th time (my quick test now is "can I launch Weather", which seems to presage all the other problems), I quit Safari and all my "dock apps", and it did *not* fix the problem. I noticed a bunch of `com.apple.WebKit.WebContent` processes still running. Killed them: *still* didn't fix the problem.
Did a quick jaunt over to Activity Monitor to see if I had any big RAM users, and … mediaanalysisd was an outlier again. So I killed it… and that *did* fix it
Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •How to stop mediaanalysisd from hogging your CPU in macOS
Chip Loder (AppleInsider)Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •I think I know the noun I'm looking for now; it is a "GPU command queue", as evidenced by these two log lines:
2025-02-01 20:44:14.589205-0800 kernel: (IOGPUFamily) mediaanalysisd has reached a high water mark of 710 gpu command queues.
2025-02-01 20:44:14.939613-0800 kernel: (IOGPUFamily) static IOReturn IOGPUDeviceUserClient::s_new_command_queue(…): The number of queues (708) exceeding limit (512), failing IOGPUCommandQueue creation
The latter is repeated 1000s of times.
Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Okay, a much stronger hypothesis after letting fs_usage run all night and collecting repeated patterns. There are several files it keeps scanning over and over, including:
- some pedestrian .jpg files from a personal family IT project I worked on a while ago
- some retrocomputing data, specifically a movie file exported from "Graphing Calculator" in macOS 9.0.4
- a bunch of files (e.g. test/imghdrdata/ , idlelib/Icons) in various PyPy releases
It does not seem to be visiting many other files.
Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •All right. Too early to have much real data but the trajectory at least isn't horrible thus far, and sometimes after a few minutes of idle time it *has* been pretty horrible.
Considering spending my next livestream building my first OBS overlay, and making that overlay be a real-time report of the memory usage and last gpu command queue high water mark.
Glyph
Als Antwort auf Glyph • • •Why does my network set my hostname? How can I stop this?
Super UserGlyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Okay, I think this is hopefully the conclusion. There are some methodological problems with my tests (more research is needed) but in terms of predictive power, I now have 2 log files, each of which has the relevant IOGPUFamily kernel logs from two separate days. the number of lines in each of these files:
before I made changes: 73929
after I made changes: 9
That feels like a statistically significant difference.
Going to turn off all the logging and watch memory usage for the next 24h now.
Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •But hey I'm a Programmer let's maybe turn this into a teachable moment about Programming.
There's a bug here, obviously. I don't know what it is. I know nothing about mediaanalysisd, I'm only even vaguely aware of what it does. But there are general to learn from this journey, which is applicable to most software development projects.
Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •How to stop mediaanalysisd from hogging your CPU in macOS
Chip Loder (AppleInsider)Glyph
Als Antwort auf Glyph • • •Choosing our Preferences
ometer.comGlyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •You can also see this as just a restatement of the other two flaws, which is to say:
1. the dead-letter queue needs to be operator-legible; tell me about the files that are producing errors, give me a way to handle them. give me a good UI for it, make it possible for me to understand where and how it's happening, remember to try the work again when new software is available
Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Deciphering Glyph :: Beyond ThunderDock
blog.glyph.imGlyph
Als Antwort auf Glyph • • •glyph - Overview
GitHubGlyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •good news for the "it's a hardware issue" fans: baldur's gate 3 now reliably indues a kernel panic at launch (failed WindowServer checkin)
(I haven't played bg3 since updating to 15.3 though. also, other video games still work fine.)
Glyph
Als Antwort auf Glyph • • •Anyone experiencing kernel panics with Sequoia?
SC2 ForumsGlyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •now one of my wireless access points appears to be failing. but only like… a little bit, intermittently, maybe.
I _will_ face god and walk backwards into hell, if I'm not there already
Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Tried playing BG3 on a different mac, with the same account. Worked fine. Same on a Steam Deck, just in case. Did the full hardware test, let the machine stay powered off for a few minutes to allow any ghosts in the capacitors to depart, notwithstanding.
Launched BG3 on the cursed machine. It worked! Hooray! Took a celebratory screenshot, switched spaces to look at it, switched spaces back, and as soon as the space-switch slide animation *began*… full-screen freeze, crash.
OS reinstall it is.
Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •As I noted upthread, this is all pretty upsetting. The kernel panics, even more so. Kind of ruined my whole day today, even though I didn't get another one. With everything else going on it might seem weird that *this* is what did it for me, but I want to extrapolate a little bit because I suspect other people might be feeling the same (although probabaly — hopefully — not about GPU-related kernel panics) mastodon.social/@glyph/1139326…
As I noted upthread, this is all pretty upsetting. The kernel panics, even more so. Kind of ruined my whole day today, even though I didn't get another one. With everything else going on it might seem weird that *this* is what did it for me, but I want to extrapolate a little bit because I suspect other people might be feeling the same (although probabaly — hopefully — not about GPU-related kernel panics) mastodon.social/@glyph/1139326…
Glyph
2025-02-02 05:19:54
Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Computers can be understood
Made of BugsGlyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Okay. Reproduced the kernel panic in front of an Apple retail employee immediately* after completely wiping the machine, then sent in the laptop for repairs. I am assured that there will be a free logic board replacement and it will be returned in at most 5 days but probably more like 2 or 3. I guess if it doesn’t work when it comes back I might continue this thread but let’s hope not, for all our sakes.
*: for values of “immediate” that involve downloading 145GB on apple store internet
Glyph
Als Antwort auf Glyph • • •Coda 1: I received the notification that the repair center received my device and began diagnosis about 12 hours ago.
This is not dispositive, but generally when I have seen an apple repair notification in the past they move from “diagnosis” to “repair” within a couple of hours, and it has been in this state all day.
Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Okay that’s enough grim satisfaction, just the computer now please
(it’s still in “inspecting”)
Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •So I will—hopefully–have this machine back in my hands in the next 72h at worst, and I have a little puzzle to solve.
If I Migration Assistant my way back from my Time Machine backup, I can inherit it and continue incremental backups. But, based on the speed of other time machine restores, this will take somewhere from 3-4 literal *weeks* of uninterrupted plugged-in time, which is unacceptable.
If I set up as new, I need to create a new backup image… which will burn like 8TB on the old backup.
Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •Glyph
Als Antwort auf Glyph • • •tef
Als Antwort auf Glyph • • •