Case studies
#powershell#debugging#windows#electron#docker#pterodactyl#python#csharp#wpf#bash#security#cpp#git#performance#ci#nodejs#pyside6#react-native
17 posts · #debugging
Clear filters·6 min read

Chiti · Story
A 10 second timeout failed an 11.3 second handshake
A socket timeout that looked generous lost every frame during reconnects. I measured the server's handshake at 11.3 seconds and moved the budget to 25.
In short
- The socket connect timeout was 10 seconds. The server's handshake measured 11.3 seconds, so the first attempt failed on exactly the connections that needed patience.
- Every failed attempt cost a full reconnect cycle with no frames, and the server replays nothing.
- I raised the budget to 25 seconds, above the server's own 20 second ping timeout, so the ping cycle decides when a link is dead.
#socket-io#react-native#debugging#timeouts
·5 min read

DailyBrief · Story
A stray PowerShell error turned my digest into 391 MB
One unsuppressed script call inside a foreach expression put a .NET error object into DailyBrief's digest. The same commit fixed a Georgian text repair that had never worked.
In short
- A call inside a foreach expression leaked an error object into the captured array, and ConvertTo-Json serialized its whole object graph.
- The fix is $null = ... 2>$null, plus a comment so nobody removes it.
- fixMojibake inverted a cp1252 corruption with latin1, so it always rejected its own output.
#powershell#debugging#encoding#electron
·5 min read

DailyBrief · Story
Every AI run died in 2 seconds, and nothing said why
A one-kilobyte stub where the claude binary should be made every DailyBrief run end silently. The fix was checking file size, and a second silent failure taught me the same lesson.
In short
- After a global npm install, claude.cmd was present but bin\claude.exe was a tiny text stub that Windows refused to run.
- Test-Path says yes to a stub, so the fix checks the binary's size, in one shared file instead of four hardcoded paths.
- Five days later a swallowed ENOENT made the app blame the CLI for a problem it did not have (c452d06).
#powershell#windows#claude-cli#debugging
·5 min read

domain_hunter · Story
When a 404 does not mean the domain is free
rdap.org answers 404 for both a free name and a TLD with no RDAP server. DomainHunter only trusts the 404 if the request was redirected to a registry host.
In short
- rdap.org returns a plain 404 for extensions with no RDAP server at all, such as .io and .gg.
- The code counts a 404 as "free" only when the final URL is a registry host, not rdap.org itself.
- Otherwise the result is unknown, and the check falls through to WHOIS.
#python#rdap#domains#http#debugging
·6 min read

Light Browser · Story
One parser branch took 215 sites offline in my browser
Cosmetic filter rules I did not support fell through to the hosts-file branch and became blocked domains. chatgpt.com, bing.com and instagram.com stopped loading. Here is the line that did it.
In short
- Filter lines I did not understand were not skipped. They fell into the last branch of the parser and were read as hostnames.
- The fix is an explicit skip for four cosmetic syntaxes, plus a stricter rule for what counts as a trailing comment.
- The same commit made $third-party rules fire only on cross-site requests.
#cpp#adblock#debugging#parsing
·6 min read

Light Browser · Story
Why my browser signed everyone out: the host exited first
Chromium writes its cookie store while it shuts down, and my Win32 shell quit before it finished. The fix was a shutdown barrier that waits for the engine process to exit.
In short
- Chromium saves the cookie database, site storage and an encryption key during engine shutdown. My shell closed its window and quit first.
- The fix is TeardownEngine: close every WebView, drop the environment, then wait on the engine's process handle.
- The same barrier now covers Windows sign-out, the updater restart, deep sleep and engine crashes.
#cpp#webview2#windows#debugging#shutdown
·5 min read

Light Browser · Story
The memory saver that made Figma run out of memory
I added Chromium's low-end mode to cut my browser's RAM, and about seven hours later removed it. It halves V8 heap limits, so heavy apps died with out-of-memory exits.
In short
- --enable-low-end-device-mode cut idle RAM, but it halves V8 heap limits, which heavy apps like Figma and Google Docs cannot live with.
- The fix removed the flag, raised the renderer cap from 4 to 16, and throttled my own RAM cascade so it stops squeezing the last open page.
- The crash page now says why a tab died, including "out of memory" and the exit code.
#cpp#webview2#chromium#memory#debugging
·6 min read

TaskPad · Story
Two TaskPad bugs that failed without a single error on screen
A restored window that existed but never appeared, and an edit button that did nothing. Both came from code that kept the app alive and so hid the failure. Here is how I found each one.
In short
- Session restore could register a window and never show it, then report success. Fixed in 48b16bf (v1.3.5).
- Editing a comment failed inside a click handler that a global exception handler swallowed. Fixed in 25a3d6f (v1.9.4).
- Both bugs were invisible because the app was designed to survive errors, not to surface them.
#wpf#csharp#error-handling#debugging