Codex Desktop continuously generates Crashpad pending dumps
Posted by AIorNot 4 days ago
Comments
Comment by glenngillen 4 days ago
- my approach to using git worktrees for all work. Not entirely surprising, the duplicated build artifacts in each worktree being the main culprit here. There were some limited gains to be had by just being more efficient with how builds were managed but ultimately I just had to limit the number of concurrent features I was working on in a couple of particularly large repos.
- more insidious was the fact I was actually hitting memory limits more than I realised and causing my mac to have to swap heavily. The system was surprisingly still quite performant while this was happening... until it wasn't. Unfortunately as best I can tell the only "fix" when this happens is to restart the machine. There's no way to have the system reclaim any of the swap space once it's written to disk. Which if you have it thrash a couple of times a day (especially easy if you leave something running overnight) adds up very quickly.
Comment by monster_truck 4 days ago
Copy on write worktrees do absolutely nothing to solve this, either. The build artifacts alone will do it
Comment by nullpoint420 4 days ago
Comment by gimlichgu 4 days ago
Comment by tonytamps 4 days ago
Switching to Orbstack solved the problem for me because of their memory management efforts. Just wanted to mention it in case it leads to an easy fix for someone else too.
Comment by veidr 4 days ago
Comment by tonytamps 4 days ago
Comment by singularity2001 4 days ago
Comment by thesz 4 days ago
Deduplication in ZFS needs 5G of RAM for 1TB of logical data - if you expect your agents to produce 2TB of data, you should provide 10G of RAM for deduplication.
Comment by malfist 4 days ago
Comment by thesz 2 days ago
[1] https://stackoverflow.com/questions/75452073/understanding-e...
Builds of some of projects I've been working on required 20Gbytes and more of disk space.
Comment by vikramkr 2 days ago
Comment by singularity2001 3 days ago
What are realistic scenarios in which you change a byte back?
Comment by jwiz 4 days ago
Comment by glenngillen 4 days ago
Comment by bentcorner 4 days ago
It's all a bit adhoc - agents still need to pull (or I need to keep the main enlistment up to date on these machines) - I'm thinking of using containers or something else like github actions keep things cleaner, but right now it's "good enough".
Regardless I'm pretty happy with how it's working so far. Previously I'd be letting agents do work in the background and they'd kick off builds in the middle of a meeting or something and I'd start dropping video streams until I killed everything.
Comment by josephg 4 days ago
Comment by trollbridge 4 days ago
Comment by treve 4 days ago
Comment by machomaster 3 days ago
Comment by treve 4 days ago
Comment by _matthew_ 4 days ago
Regarding swapping, are you sure it's not just from ram backed tmpfs partition? For me that was it and most of the swap was from /tmp. So I created an agressive job that runs frequently to delete all tmp files not used in the last ~2 hours without any command holding handles to it.
The other thing I found was that there were a bunch of leftover processes from prior coding agents forking commands and just leaving them. So I had to build a system into my agent spawner to automatically launch each agent session in a cgroup whose processes all get killed on task completion.
Comment by feelamee 4 days ago
So, only first worktree is built: - less space needed. - less time spent on build, which is usually caused by switching branches. - you are not required to merge/rebase of master branch to solve conflicts, which also cause long time rebuilds.
Comment by satvikpendem 4 days ago
Comment by jbellis 4 days ago
two things help:
1. fs-level compression, I use ZFS bc Btrfs has massive contention problems with concurrent Rust builds
2. Archive your old sessions using something like sessionwiki (https://github.com/youdie006/sessionwiki), I've integrated this into my control plane (https://github.com/BrokkAi/mjolnir/)
Comment by backlands 4 days ago
I haven't read about btrfs having issues with concurrent workloads like multiple concurrent rust builds. Are there notes on this somewhere I can read?
Comment by jbellis 4 days ago
Comment by squidbeak 4 days ago
Comment by CountSessine 4 days ago
You add to that all of the weird confusion over Chat/Work/Cloud Work/Work Local modes and marooned conversations, broken connectors (will OpenTable ever work? Will the Chrome connector ever be reliable on restart?) questionable UI decisions, and I start to worry a whole lot less about being replaced by AI.
Comment by CountSessine 4 days ago
Comment by laurels-marts 4 days ago
Comment by CountSessine 4 days ago
It’s just that Codex, the harness, is hot garbage. I’m going to invest some time in using Astra with OpenCode to see if I can live with that but going back to Anthropic is very low on my preference list.
Comment by pzo 4 days ago
Comment by smileybarry 4 days ago
Comment by aaronbrethorst 4 days ago
Comment by piskov 4 days ago
TUI version is free, though there is a paid app if that’s your thing
Comment by Tw93 4 days ago
Comment by columk 4 days ago
Comment by piskov 4 days ago
Back in the days you would use cleanmymac for emptiying caches and what have you, and daisydisk to find big folders
Comment by clumsysmurf 4 days ago
Comment by rudedogg 4 days ago
They still update it, it works perfectly, no version 2.0 forced obsolescence. Just a nice, reliable tool.
Comment by mococa 4 days ago
Comment by krembo 4 days ago
Comment by madaxe_again 4 days ago
And yes, codex is eating my disk, too. Ironically my solution is mostly codex - I have a task which goes around stomping on detritus.
Comment by boesboes 4 days ago
Comment by squidbeak 4 days ago
Comment by unrented7977 3 days ago
Comment by starfallg 4 days ago
On a work project, we're moving financial processes from Excel to code, and Codex ended up creating and storing thousands of validation tests unnecessarily. That ended up eating 90GB after we let it loose on a Windows VM that we connected with a custom agent between codex and the VM.
This is definitely a Codex thing and I've never seen this happen in Claude Code or Antigravity.
Comment by zamadatix 4 days ago
There was a REALLY annoying period where I'd give it full control of a VM and a dedicated project folder and it'd continually refuse to delete anything I asked it to or just silently archive it, even though everything was already in a git repo. It seems to have gotten somewhat better about that now, but I still include "create cleanup scripts to delete unnecessary project content" in the default steps before doing the final merge on a change.
Comment by majormajor 4 days ago
Had to tell it to update it's agents.md to not do that...
Comment by plantain 4 days ago
Comment by vikramkr 4 days ago
Comment by mattgreenrocks 4 days ago
Comment by tonyarkles 4 days ago
Works especially well for transient/hard to repro bugs. It’ll either set breakpoints or write a monitoring script, go to sleep, get woken up by the harness when the bug trips, inspect state, put together a new build based on a hypothesis built from the debugging, flash it, and loop. I’ve had sessions run completely autonomously for over a day and come with a beautiful one-line solution to a gnarly race condition.
In that regard it’s like a human: you can read code all day if you want and you might get somewhere, but being able to inspect what happened, build a new theory, test it, and iterate is way more powerful 99% of the time.
Comment by bentcorner 4 days ago
I was trying to upload HDR photos to Instagram and couldn't figure out how to make it preserve the HDR-ness of my photos, and was going back and forth with an agent - step by step we'd slowly iterate on a photo, I'd upload, then I'd download the jpg and give it to the agent and it'd think, change something in the format, and we'd try again.
I got impatient and just said fuck it and gave it chrome-devtools and a blank instagram account and a test photo, and it figured the whole thing out in about a half hour. I built a little browser-based tool from what it discovered, and I use it to run my HDR photos through to format them correctly for instagram and it works a treat.
Comment by cyberax 4 days ago
I was kinda expecting: "And when my agent built a perfect clone of Instagram and social-engineered all my contact list to join"
Comment by giancarlostoro 4 days ago
When I was younger I thought we would be having exabyte hard drives by now.
Comment by AIorNot 4 days ago
See this: https://github.com/openai/codex/issues/25921#issuecomment-62...
Comment by aleph_minus_one 4 days ago
Because the former can be marketed very prestigiously, the latter hardly can.
According to https://www.briefia.fr/en/article/openai-revendique-la-resol... it is estimated that solving Navier-Stokes did cost OpenAI 40 million USD. I would bet that if OpenAI spent the same amount of money using its super-intelligence to fix this bug, this would work.
But seems not to be very economical. :-)
Comment by topaz0 4 days ago
Comment by spicyusername 4 days ago
You don't have to give any more legitimacy to Trump's inane ramblings than they already get.
Comment by mrlonglong 4 days ago
Comment by AIorNot 2 days ago
Comment by cyanydeez 4 days ago
Comment by HackerThemAll 4 days ago
Apparently OpenAI is unable to fix this properly, even using its state of the art AI.
Comment by adamddev1 4 days ago
Comment by raegis 4 days ago
Comment by adamddev1 4 days ago
What people can get away with on the upper crust with end-user apps would spell disaster for the inner parts.
Comment by steve1977 4 days ago
Home users maybe. I've started with Windows NT 4.0 and don't remember it being crash-prone.
Comment by machomaster 3 days ago
Comment by hluska 4 days ago
Comment by AIorNot 3 days ago
The world adapted, that is to say if something is popular- they will keep it going through just enough fixes to keep it going
Comment by sick_of_slop 4 days ago
Comment by vikramkr 4 days ago
Comment by kirykl 4 days ago
>"One possibility is single-person startups, each with a human founder steering swarms of agents to rake in billions in revenue. Another is companies built by AI genius CEOs employing human agents only to wield pipettes and testify before Congress."
Comment by piskov 4 days ago
Comment by dingaling911 4 days ago
Comment by AgharaShyam 4 days ago
for some reason I had 11 separate codex and codex-code-mode-host binaries in mine. each weighing about ~300 MB.
Comment by AIorNot 4 days ago
Comment by hluska 4 days ago
Comment by vikramkr 4 days ago
Comment by AIorNot 2 days ago
Ie are they ready for primetime - if some app kills all the space on your HD just running it daily its a bad sign that any SaaS company would want to address
Comment by kudokatz 4 days ago
Comment by farmin 4 days ago
Comment by matt3210 4 days ago
Comment by throwaway613746 4 days ago
Comment by shivam_techrevi 4 days ago
Comment by simonchai-tw 4 days ago
Comment by K-etoranger 4 days ago
Comment by skillstackhq 4 days ago
Comment by throwaway613746 4 days ago
Comment by pang_claw 3 days ago
Comment by verytrivial 4 days ago