[PR #13995] [MERGED] Stop DoSing users with renderer errors #29875

Open
opened 2026-01-31 09:37:23 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/13995
Author: @lhecker
Created: 9/14/2022
Status: Merged
Merged: 9/16/2022
Merged by: @undefined

Base: mainHead: dev/lhecker/renderer-fixup


📝 Commits (5)

📊 Changes

1 file changed (+20 additions, -19 deletions)

View changed files

📝 src/renderer/base/renderer.cpp (+20 -19)

📄 Description

If a rendering engine constantly throws error we'll effectively
denial-of-service our users by drowning them in warning popups.
This commit fixes the issue by limiting the retries in all cases.

Issue found in: #13985

Validation Steps Performed

  • Add a THROW_HR(E_INVALIDARG); in AtlasEngine::StartPaint()
  • Launch Windows Terminal
  • Only one warning popup shows up
  • Rendering is disabled until one clicks "resume"

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/13995 **Author:** [@lhecker](https://github.com/lhecker) **Created:** 9/14/2022 **Status:** ✅ Merged **Merged:** 9/16/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/lhecker/renderer-fixup` --- ### 📝 Commits (5) - [`a8c9776`](https://github.com/microsoft/terminal/commit/a8c9776bacbf492065a6f2973920ad20c7818e32) Stop DoSing users with renderer errors - [`a6cf48c`](https://github.com/microsoft/terminal/commit/a6cf48c050827af1040481ed65bdca092ed0b2f6) Fix test failures - [`f14ae33`](https://github.com/microsoft/terminal/commit/f14ae3313e3e5661af8c72560b60e9c3cbafb34f) Fix test failures - [`7b7cf1a`](https://github.com/microsoft/terminal/commit/7b7cf1aa77de014a10382eed4cadbd7df359ee7a) Fix namespace issue - [`899c23a`](https://github.com/microsoft/terminal/commit/899c23a3c73e9435f2ef83a505824ae06abddc31) Whoops ### 📊 Changes **1 file changed** (+20 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `src/renderer/base/renderer.cpp` (+20 -19) </details> ### 📄 Description If a rendering engine constantly throws error we'll effectively denial-of-service our users by drowning them in warning popups. This commit fixes the issue by limiting the retries in all cases. Issue found in: #13985 ## Validation Steps Performed * Add a `THROW_HR(E_INVALIDARG);` in `AtlasEngine::StartPaint()` * Launch Windows Terminal * Only one warning popup shows up ✅ * Rendering is disabled until one clicks "resume" ✅ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:37:23 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#29875