<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Caleb Mundati</title>
    <description>The latest articles on DEV Community by Caleb Mundati (@mundatic).</description>
    <link>https://dev.to/mundatic</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4234840%2F8692503d-7813-484b-8841-e11f6138894e.jpg</url>
      <title>DEV Community: Caleb Mundati</title>
      <link>https://dev.to/mundatic</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mundatic"/>
    <language>en</language>
    <item>
      <title>Shipping a three-repo security platform on free tiers: what broke and why</title>
      <dc:creator>Caleb Mundati</dc:creator>
      <pubDate>Thu, 12 Nov 2026 10:45:39 +0000</pubDate>
      <link>https://dev.to/mundatic/shipping-a-three-repo-security-platform-on-free-tiers-what-broke-and-why-ffb</link>
      <guid>https://dev.to/mundatic/shipping-a-three-repo-security-platform-on-free-tiers-what-broke-and-why-ffb</guid>
      <description>&lt;p&gt;I built &lt;strong&gt;Sentinel&lt;/strong&gt;, a small self-hostable security monitoring platform, as three separate repos:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://github.com/MundatiC/sentinel-api" rel="noopener noreferrer"&gt;&lt;code&gt;sentinel-api&lt;/code&gt;&lt;/a&gt;: Node 22, TypeScript, Express 5, PostgreSQL, Prisma 7. It ingests security events and scan results, raises alerts from threshold rules, tracks incidents and streams alerts live over SSE.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/MundatiC/sentinel-dashboard" rel="noopener noreferrer"&gt;&lt;code&gt;sentinel-dashboard&lt;/code&gt;&lt;/a&gt;: Next.js. Live alert feed, events explorer, incident timeline, scan reports, admin screens.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://github.com/MundatiC/sentinel-scanner" rel="noopener noreferrer"&gt;&lt;code&gt;sentinel-scanner&lt;/code&gt;&lt;/a&gt;: a Python CLI that scans a site you own, checks dependencies, analyses logs and writes incident post-mortems, then sends results to the API.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything worked on my laptop with Docker Compose. Putting it online for free (Neon for Postgres, Render for the API, Vercel for the dashboard) is where the interesting bugs were. This is the account of those, in the order I hit them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The design decision that shaped the deployment
&lt;/h2&gt;

&lt;p&gt;The dashboard keeps the short-lived access token &lt;strong&gt;in memory only&lt;/strong&gt;. The long-lived refresh token lives in an &lt;code&gt;httpOnly; Secure; SameSite=Strict&lt;/code&gt; cookie set by the API. That protects against token theft by XSS and against CSRF.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;SameSite=Strict&lt;/code&gt; has a consequence. &lt;code&gt;my-app.vercel.app&lt;/code&gt; and &lt;code&gt;my-api.onrender.com&lt;/code&gt; are different &lt;em&gt;sites&lt;/em&gt; (both are on the public suffix list), so a browser would never send the refresh cookie from one to the other. On localhost, ports don't count, so everything worked. Hosted, I would have been logged out on every reload.&lt;/p&gt;

&lt;p&gt;The tempting fix is &lt;code&gt;SameSite=None&lt;/code&gt;. I didn't, because it removes the protection the cookie was chosen for. Instead the dashboard runs as a &lt;strong&gt;same-origin proxy&lt;/strong&gt;: the browser only talks to the dashboard, and Next.js rewrites &lt;code&gt;/api/v1/*&lt;/code&gt; to the API. No CORS, no cross-site cookie.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bug 1: "Cannot reach the Sentinel API", and no network request
&lt;/h2&gt;

&lt;p&gt;After deploying, sign-in showed "Cannot reach the Sentinel API. Check your connection." The Network tab was empty, and the same login worked from PowerShell, curl and the browser console.&lt;/p&gt;

&lt;p&gt;I chased the wrong things first: CORS, the proxy, cold starts, browser extensions. The clues that finally mattered:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The error appeared instantly, with no request.&lt;/li&gt;
&lt;li&gt;The message is only shown when &lt;code&gt;fetch()&lt;/code&gt; &lt;em&gt;itself throws&lt;/em&gt;; every real server response maps to a specific message.&lt;/li&gt;
&lt;li&gt;Only the silent session-refresh call worked, and it was the only one using &lt;code&gt;fetch&lt;/code&gt; directly.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The cause was one line: &lt;code&gt;new URL(&lt;/code&gt;${API_BASE}${path}&lt;code&gt;)&lt;/code&gt;. In proxy mode &lt;code&gt;API_BASE&lt;/code&gt; is the relative string &lt;code&gt;/api/v1&lt;/code&gt;, and &lt;code&gt;new URL&lt;/code&gt; throws &lt;code&gt;Invalid URL&lt;/code&gt; on a relative string with no base. Every API call threw before it was sent. The fix is the origin as a base: &lt;code&gt;new URL(path, location.origin)&lt;/code&gt;, which is ignored when the base is already absolute.&lt;/p&gt;

&lt;p&gt;Two lessons:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;My proxy change had been "verified"&lt;/strong&gt;, but against a stub upstream and a built server, which never exercised the browser's real call path. A regression test that uses a relative base failed with &lt;code&gt;Invalid URL&lt;/code&gt; before the fix and passed after, which is the test I should have written first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A catch-all error message hides the real error.&lt;/strong&gt; "Cannot reach the API" was true for none of the actual causes. Distinguish "the request failed" from "the code threw before sending".&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Bug 2: the password I set did not work
&lt;/h2&gt;

&lt;p&gt;I seeded the admin on Neon from my own machine, then couldn't sign in. The seed script is an upsert with &lt;code&gt;update: {}&lt;/code&gt;, so re-running it never overwrites an existing admin's password. That is deliberate (a re-run must not reset a real admin), but it means "just seed again" is not a reset.&lt;/p&gt;

&lt;p&gt;I wrote a small one-off script that hashes with the API's own &lt;code&gt;hashPassword&lt;/code&gt;, updates the user, and revokes their refresh tokens so old sessions don't survive. Running it from PowerShell also taught me to use &lt;code&gt;Read-Host&lt;/code&gt; for secrets (it keeps them out of shell history) and that &lt;code&gt;Invoke-RestMethod&lt;/code&gt; against the API directly is the fastest way to tell "the API is wrong" from "the dashboard is wrong".&lt;/p&gt;

&lt;h2&gt;
  
  
  Bug 3: every user looked like Cloudflare
&lt;/h2&gt;

&lt;p&gt;After signing in, the audit log showed client IPs in &lt;code&gt;172.68.x&lt;/code&gt;, &lt;code&gt;104.22.x&lt;/code&gt;, &lt;code&gt;162.158.x&lt;/code&gt;, &lt;code&gt;141.101.x&lt;/code&gt;: all Cloudflare edge addresses, not mine. Express's &lt;code&gt;trust proxy&lt;/code&gt; setting says how many proxy hops to trust when reading &lt;code&gt;X-Forwarded-For&lt;/code&gt;, and I had set it one hop short for the chain browser, Vercel, Cloudflare, Render's load balancer, app.&lt;/p&gt;

&lt;p&gt;This is not cosmetic. Rate limits and the audit log both key on the client IP, so with the wrong value every visitor behind the same edge node shares one login-rate-limit bucket.&lt;/p&gt;

&lt;p&gt;The guide I had written said "adjust it if the audit log shows a Render or Vercel address", so I used the audit log as the instrument. I sent a login with fake credentials from my machine (public IP known) and read which address the API recorded for it at each setting:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;code&gt;TRUST_PROXY&lt;/code&gt;&lt;/th&gt;
&lt;th&gt;Address recorded&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;a Cloudflare edge address&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Vercel's outbound server (an AWS address in the region shown in Vercel's response headers)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;the real client&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;At &lt;code&gt;4&lt;/code&gt; the dashboard path was right. Then I tried the other path: calling the API's URL directly with a forged &lt;code&gt;X-Forwarded-For: 198.51.100.77&lt;/code&gt; and fake credentials. The audit log recorded &lt;code&gt;198.51.100.77&lt;/code&gt;. Express's own docs describe exactly this: a numeric &lt;code&gt;trust proxy&lt;/code&gt; is only safe when there are no "multiple, different-length paths to the Express application". Mine had two (through the dashboard proxy, or direct, as the scanner does), and one number cannot be right for both. A forged IP means the IP-based login rate limit can be dodged by rotating the header.&lt;/p&gt;

&lt;h3&gt;
  
  
  How people usually handle it
&lt;/h3&gt;

&lt;p&gt;I read around before choosing a fix. The recurring advice:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Never use &lt;code&gt;trust proxy: true&lt;/code&gt;&lt;/strong&gt; on a public server, because it takes the left-most (client-supplied) entry. &lt;code&gt;express-rate-limit&lt;/code&gt; even logs a warning for it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Trust by address, not by count&lt;/strong&gt;, where you can. That works for Cloudflare (it publishes its ranges) but not for Vercel's outbound addresses, which are not fixed.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make the edge overwrite the header.&lt;/strong&gt; Vercel does overwrite &lt;code&gt;X-Forwarded-For&lt;/code&gt; with the real visitor IP at its edge, and its docs describe a custom header carrying the real client IP as the pattern for a proxy in front of Vercel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't rely on IP alone for login limits&lt;/strong&gt;: add a per-account limit too, with the caveat that lockouts can be abused to lock real users out.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  What I did
&lt;/h3&gt;

&lt;p&gt;The proxy vouches for the visitor. The dashboard's middleware adds &lt;code&gt;X-Sentinel-Client-IP&lt;/code&gt; (read from &lt;code&gt;x-vercel-forwarded-for&lt;/code&gt;) plus &lt;code&gt;X-Sentinel-Proxy-Secret&lt;/code&gt; to &lt;code&gt;/api/v1/*&lt;/code&gt; requests and strips any such headers a visitor sent. The API only believes the IP header when the secret matches (constant-time compare). &lt;code&gt;TRUST_PROXY&lt;/code&gt; then only has to count the hops every route shares. It is a small amount of code in each repo, with unit tests, and I checked the dashboard half through a production build and a rewrite against a stub that echoed the headers it received.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Result, on the live deployment&lt;/strong&gt; (&lt;code&gt;TRUST_PROXY=3&lt;/code&gt;, the same secret on Render and Vercel, fake credentials from a machine with a known public IP): six probes, and every audit-log entry showed my real IP.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Probe&lt;/th&gt;
&lt;th&gt;Recorded&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Through the dashboard&lt;/td&gt;
&lt;td&gt;my IP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Direct to the API&lt;/td&gt;
&lt;td&gt;my IP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Direct + forged &lt;code&gt;X-Forwarded-For&lt;/code&gt;
&lt;/td&gt;
&lt;td&gt;my IP (before the fix: the forged value)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Direct + forged &lt;code&gt;X-Sentinel-Client-IP&lt;/code&gt;, no secret&lt;/td&gt;
&lt;td&gt;my IP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Direct + forged client IP + wrong secret&lt;/td&gt;
&lt;td&gt;my IP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Through the dashboard + forged headers&lt;/td&gt;
&lt;td&gt;my IP&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The first and last rows matter most. At &lt;code&gt;TRUST_PROXY=3&lt;/code&gt; the dashboard route would record Vercel's outbound address without the vouching header (that is what I measured earlier), so a correct IP there proves the header is doing the work.&lt;/p&gt;

&lt;h3&gt;
  
  
  The second layer: a per-account limit, without handing attackers a lockout button
&lt;/h3&gt;

&lt;p&gt;With a trustworthy IP, the existing limit (10 attempts per IP and email per 15 minutes) is solid against one machine, but an attacker with many real IPs gets a fresh budget on each. OWASP's advice is to keep the failure counter on the &lt;strong&gt;account&lt;/strong&gt;, not the IP. It also warns that a counter that blocks an account lets anyone who knows the email lock the owner out, and suggests exponential delays or a CAPTCHA instead of a flat lock. Auth0's default is the narrow one: block only the offending IP for that account, and make account-wide lockout opt-in.&lt;/p&gt;

&lt;p&gt;What I built is in between, and the last piece is my own idea rather than something I found written down, so I tested it hardest:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A counter keyed on the email alone, across all IPs: 30 failed logins per 15 minutes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Only failures count.&lt;/strong&gt; A successful login gives its slot back, so normal use never consumes the budget.&lt;/li&gt;
&lt;li&gt;Once the budget is spent, an attempt is still allowed if that &lt;strong&gt;IP has already logged in successfully to that account in the last 30 days&lt;/strong&gt; (read from the audit log, and only queried when someone is over the limit). Everyone else gets a 429. So an attacker spraying from unfamiliar IPs is stopped, and the owner at their usual desk is not.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;On the live deployment, twelve failed logins for a made-up email showed the new third counter (&lt;code&gt;30-in-15min&lt;/code&gt;) going 29, 28, 27 and so on, while the per-IP-and-email counter (10) reached zero first and produced the 429 on the 11th attempt, at which point the account counter stopped moving. The cross-IP block and the known-IP exemption can't be exercised from one machine, so those are covered by integration tests only.&lt;/p&gt;

&lt;p&gt;It isn't a perfect answer. An owner on a new network during an attack waits out the window, and a CAPTCHA or an unlock-by-email flow would be the real fix. I wrote that into the threat model as a known limitation, not a footnote.&lt;/p&gt;

&lt;h2&gt;
  
  
  Smaller things worth knowing
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Neon: use the direct connection string, not the pooled one.&lt;/strong&gt; Prisma migrations take advisory locks that connection poolers can break. The pooled host has &lt;code&gt;-pooler&lt;/code&gt; in its name. If the string has &lt;code&gt;channel_binding=require&lt;/code&gt;, remove it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Don't use Render's free Postgres&lt;/strong&gt; for anything you want to keep; it expires.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Free-tier cold starts:&lt;/strong&gt; Render's free web service sleeps after 15 minutes idle and takes about a minute to wake, so I ping the health endpoint from an uptime monitor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Health checks and rate limits:&lt;/strong&gt; Render health-checks every few seconds. I checked that this wasn't consuming visitors' rate-limit allowance (it uses a separate bucket).&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Screenshots without leaking anything
&lt;/h2&gt;

&lt;p&gt;For the README screenshots I seeded demo data tagged &lt;code&gt;metadata.demo&lt;/code&gt;, using documentation-only IP ranges (RFC 5737) and reserved &lt;code&gt;*.demo.example&lt;/code&gt; domains, with a reset command that removes only the demo rows. For the CLI I captured real runs as SVG using Rich's &lt;code&gt;Console.save_svg&lt;/code&gt;, which GitHub renders crisply. The first capture of the post-mortem command printed my local Windows path, including my username into the image, so I scanned every SVG for personal paths before committing. Worth doing for any terminal screenshot.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cleaning up history
&lt;/h2&gt;

&lt;p&gt;Early commits carried AI co-author trailers that I wanted gone. Removing them meant rewriting history on a protected &lt;code&gt;main&lt;/code&gt; in all three repos: I rewrote fresh clones with &lt;code&gt;git filter-branch --msg-filter&lt;/code&gt;, verified the trees were byte-identical and the commit counts unchanged, pushed backup branches, then force-pushed with &lt;code&gt;--force-with-lease&lt;/code&gt; pinned to the SHA I had verified. Branch protection had to be relaxed temporarily by me; a tool should not quietly change your security settings.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell myself at the start
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Test the deployed shape, not just the app.&lt;/strong&gt; My proxy mode passed unit tests and a stub; it failed on the first real click.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Write the deploy guide as you deploy.&lt;/strong&gt; Mine said the hosted steps had "not been run end to end", and the first real run found two problems.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make error messages specific.&lt;/strong&gt; Three hours went into a message that was wrong.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Know your proxy chain.&lt;/strong&gt; &lt;code&gt;trust proxy&lt;/code&gt; is a number you can get wrong silently.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Treat secrets as shell-only.&lt;/strong&gt; Environment variables for one-off scripts, prompted not typed, never in chat or git.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;All three repos are on GitHub if you want to read the code or the deployment guide: &lt;a href="https://github.com/MundatiC/sentinel-api/blob/main/docs/DEPLOY.md" rel="noopener noreferrer"&gt;&lt;code&gt;sentinel-api/docs/DEPLOY.md&lt;/code&gt;&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>security</category>
      <category>nextjs</category>
      <category>node</category>
    </item>
    <item>
      <title>Fix Loggy3 Stuck on "Starting Recording" on Windows — DirectX Error 0x887A0004</title>
      <dc:creator>Caleb Mundati</dc:creator>
      <pubDate>Mon, 09 Nov 2026 09:56:17 +0000</pubDate>
      <link>https://dev.to/mundatic/fix-loggy3-stuck-on-starting-recording-on-windows-directx-error-0x887a0004-38b6</link>
      <guid>https://dev.to/mundatic/fix-loggy3-stuck-on-starting-recording-on-windows-directx-error-0x887a0004-38b6</guid>
      <description>&lt;p&gt;I recently installed Loggy3 on my Windows laptop, but couldn't get past the first recording setup.&lt;/p&gt;

&lt;p&gt;Every time I clicked &lt;strong&gt;Start Recording&lt;/strong&gt;, the app would show &lt;strong&gt;Starting...&lt;/strong&gt; and remain stuck there. The recording timer never appeared, and clicking Stop just took me back to the &lt;strong&gt;Record your first recording&lt;/strong&gt; screen.&lt;/p&gt;

&lt;p&gt;After quite a bit of troubleshooting, I managed to identify the issue and fix it. I'm sharing the steps in case anyone else runs into the same problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem
&lt;/h2&gt;

&lt;p&gt;The symptoms were pretty consistent:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Clicking Start Recording showed a recording/starting status, but no timer.&lt;/li&gt;
&lt;li&gt;The recording never became active.&lt;/li&gt;
&lt;li&gt;Clicking Stop returned me to the onboarding screen.&lt;/li&gt;
&lt;li&gt;Running the app as administrator didn't help.&lt;/li&gt;
&lt;li&gt;Restarting Windows, clearing application files and changing internet connections made no difference.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Windows' built-in screen recording worked perfectly using &lt;code&gt;Win + Alt + R&lt;/code&gt;, so the computer wasn't completely unable to record its screen.&lt;/p&gt;

&lt;h3&gt;
  
  
  My system
&lt;/h3&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Details&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;OS&lt;/td&gt;
&lt;td&gt;Windows&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Application&lt;/td&gt;
&lt;td&gt;Loggy3 v0.10.0&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CPU&lt;/td&gt;
&lt;td&gt;Intel Core i5-8250U&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Integrated GPU&lt;/td&gt;
&lt;td&gt;Intel UHD Graphics 620&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dedicated GPU&lt;/td&gt;
&lt;td&gt;NVIDIA GeForce MX150&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Display&lt;/td&gt;
&lt;td&gt;1920 × 1080&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;This is a hybrid-GPU laptop, where the integrated Intel GPU drives the display while NVIDIA is available for applications requiring additional graphics performance.&lt;/p&gt;

&lt;h2&gt;
  
  
  Finding the actual error
&lt;/h2&gt;

&lt;p&gt;After trying the usual fixes without success, I decided to check Loggy3's logs.&lt;/p&gt;

&lt;p&gt;On Windows, Loggy3 stores diagnostic logs under:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;%USERPROFILE%\.loggy3\logs
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The files I found were:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;app-log.jsonl
kernel-log.jsonl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The interesting one was &lt;code&gt;kernel-log.jsonl&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;You can inspect the most recent recording-related errors using PowerShell:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$path&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$&lt;/span&gt;&lt;span class="nn"&gt;env&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="nv"&gt;USERPROFILE&lt;/span&gt;&lt;span class="s2"&gt;\.loggy3\logs\kernel-log.jsonl"&lt;/span&gt;&lt;span class="w"&gt;

&lt;/span&gt;&lt;span class="n"&gt;Get-Content&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$path&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Tail&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;100&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;ForEach-Object&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="kr"&gt;try&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="nv"&gt;$entry&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="bp"&gt;$_&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;ConvertFrom-Json&lt;/span&gt;&lt;span class="w"&gt;

        &lt;/span&gt;&lt;span class="kr"&gt;if&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$entry&lt;/span&gt;&lt;span class="o"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;severity&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-in&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;@(&lt;/span&gt;&lt;span class="s2"&gt;"warn"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"error"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"fatal"&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;PSCustomObject&lt;/span&gt;&lt;span class="p"&gt;]@{&lt;/span&gt;&lt;span class="w"&gt;
                &lt;/span&gt;&lt;span class="nx"&gt;Severity&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$entry&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;severity&lt;/span&gt;&lt;span class="w"&gt;
                &lt;/span&gt;&lt;span class="nx"&gt;Event&lt;/span&gt;&lt;span class="w"&gt;    &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$entry&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;event&lt;/span&gt;&lt;span class="w"&gt;
                &lt;/span&gt;&lt;span class="nx"&gt;Message&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nv"&gt;$entry&lt;/span&gt;&lt;span class="err"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;message&lt;/span&gt;&lt;span class="w"&gt;
            &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
        &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="kr"&gt;catch&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="n"&gt;Format-List&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  The error
&lt;/h3&gt;

&lt;p&gt;The logs repeatedly showed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;IDXGIOutput1::DuplicateOutput is temporarily unavailable

The specified device interface or feature level
is not supported on this system. (0x887A0004)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Followed by:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;input capture failed:
input capture stopped before screen capture became ready
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Another log entry confirmed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;capture_became_ready: false
session_complete: false
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These messages explained why the timer wasn't starting.&lt;/p&gt;

&lt;p&gt;Loggy3 was failing to initialize screen capture through the DirectX Desktop Duplication API.&lt;/p&gt;

&lt;p&gt;The application was also repeatedly retrying the recording initialization, roughly every five seconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why changing the GPU initially didn't work
&lt;/h2&gt;

&lt;p&gt;My laptop has two graphics adapters:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Intel UHD Graphics 620&lt;/li&gt;
&lt;li&gt;NVIDIA GeForce MX150&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I first went into Windows Graphics Settings and changed Loggy3 to use Intel integrated graphics.&lt;/p&gt;

&lt;p&gt;That didn't solve it.&lt;/p&gt;

&lt;p&gt;I also tried selecting the dedicated NVIDIA GPU. Still nothing.&lt;/p&gt;

&lt;p&gt;The missing piece was that &lt;strong&gt;Loggy3 uses a separate executable for its recording engine&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;Inspecting the installation directory revealed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Loggy3/
├── loggy3-gui.exe
├── loggy3-kernel.exe
├── replay_windows.exe
└── uninstall.exe
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The GUI and the recording kernel are separate programs.&lt;/p&gt;

&lt;p&gt;I had only changed the GPU preference for &lt;code&gt;loggy3-gui.exe&lt;/code&gt;, while the DirectX failure was occurring in the recording kernel.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix that worked
&lt;/h2&gt;

&lt;p&gt;The solution was to explicitly configure &lt;strong&gt;both Loggy3's interface and recording kernel to use the integrated Intel GPU&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Close Loggy3
&lt;/h3&gt;

&lt;p&gt;Make sure the application is completely closed.&lt;/p&gt;

&lt;p&gt;You can also use PowerShell:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;Get-Process&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;loggy3-gui&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;loggy3-kernel&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-ErrorAction&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nx"&gt;SilentlyContinue&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="o"&gt;|&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="n"&gt;Stop-Process&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nt"&gt;-Force&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2: Open Windows Graphics Settings
&lt;/h3&gt;

&lt;p&gt;Navigate to:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Settings → System → Display → Graphics&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Choose the option to add a desktop application.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 3: Add the recording kernel
&lt;/h3&gt;

&lt;p&gt;Browse to your Loggy3 installation directory.&lt;/p&gt;

&lt;p&gt;In my case, it was:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;%USERPROFILE%\Loggy3\loggy3-kernel.exe
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Select the executable, open &lt;strong&gt;Options&lt;/strong&gt;, and choose:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Power saving — Intel UHD Graphics 620&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Click Save.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 4: Configure the GUI as well
&lt;/h3&gt;

&lt;p&gt;Repeat the process for:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;%USERPROFILE%\Loggy3\loggy3-gui.exe
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Assign it to:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Power saving — Intel UHD Graphics 620&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The resulting configuration should look like this:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Executable&lt;/th&gt;
&lt;th&gt;GPU preference&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;loggy3-gui.exe&lt;/td&gt;
&lt;td&gt;Power saving (Intel)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;loggy3-kernel.exe&lt;/td&gt;
&lt;td&gt;Power saving (Intel)&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h3&gt;
  
  
  Step 5: Restart Loggy3
&lt;/h3&gt;

&lt;p&gt;Launch Loggy3 normally, then click Start Recording.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;That was it. The recording started successfully and the timer finally appeared.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;No driver reinstall, Windows reset or application reinstall was necessary.&lt;/p&gt;

&lt;h2&gt;
  
  
  What's actually happening?
&lt;/h2&gt;

&lt;p&gt;Loggy3's recording kernel uses Windows' DirectX Desktop Duplication functionality to capture the screen.&lt;/p&gt;

&lt;p&gt;On hybrid-GPU systems, desktop duplication can fail with &lt;code&gt;0x887A0004&lt;/code&gt; when the application's graphics configuration isn't compatible with the display being captured.&lt;/p&gt;

&lt;p&gt;In my case, the laptop display was driven by Intel UHD Graphics 620, and explicitly assigning Loggy3's recording kernel to Intel resolved the failure.&lt;/p&gt;

&lt;p&gt;I can't confirm exactly which adapter the kernel was selecting before the change, but the GPU preference configuration was the difference between repeated capture failures and successful recording.&lt;/p&gt;

&lt;p&gt;Also, other screen recording tools working doesn't necessarily rule out a DirectX Desktop Duplication issue. Different applications can use different capture APIs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Quick takeaway
&lt;/h2&gt;

&lt;p&gt;If you're using Loggy3 on Windows and clicking Start Recording leaves it stuck on Starting without a timer:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Check &lt;code&gt;%USERPROFILE%\.loggy3\logs\kernel-log.jsonl&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Look for &lt;code&gt;IDXGIOutput1::DuplicateOutput&lt;/code&gt; and &lt;code&gt;0x887A0004&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Check whether your laptop has both integrated and dedicated graphics.&lt;/li&gt;
&lt;li&gt;In Windows Graphics Settings, assign &lt;strong&gt;both &lt;code&gt;loggy3-gui.exe&lt;/code&gt; and &lt;code&gt;loggy3-kernel.exe&lt;/code&gt;&lt;/strong&gt; to the integrated GPU.&lt;/li&gt;
&lt;li&gt;Restart Loggy3 and test again.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The most important part is &lt;strong&gt;configuring &lt;code&gt;loggy3-kernel.exe&lt;/code&gt;&lt;/strong&gt;, not just the main application.&lt;/p&gt;

&lt;p&gt;This fixed the problem on my Intel UHD 620 / NVIDIA MX150 laptop running Loggy3 v0.10.0. Other hardware or software configurations may behave differently.&lt;/p&gt;

&lt;p&gt;Hopefully this saves someone else the time I spent figuring it out!&lt;/p&gt;

</description>
      <category>loggy3</category>
      <category>debugging</category>
      <category>microsoft</category>
    </item>
  </channel>
</rss>
