Terminal crashes on startup when initial rows on screen (initialRows setting) is set too high #1165

Open
opened 2026-01-30 22:17:56 +00:00 by claunia · 0 comments
Owner

Originally created by @metathinker on GitHub (May 16, 2019).

Using this commit: e3764b2081

  1. Make sure there is no existing Terminal settings file at: %LocalAppData%\Packages\WindowsTerminalDev_8wekyb3d8bbwe\RoamingState\profiles.json
  2. Build Terminal with tools\razzle.cmd & bcz.
  3. Open the OpenConsole.sln in Visual Studio, select debug/release and CPU architecture to match your build, and hit F5 to deploy and run the Terminal .appx package.
  4. Open the newly created Terminal settings file, and change the initialRows setting from 30 to 1637.
  5. Close and restart Terminal.

Observe that Terminal does not start at all. If you start Terminal under a debugger, you'll see that the release build crashes with an unhandled C++ exception. (I haven't tried the debug build.)

Setting initialRows to 1636 or less does not cause the problem, but setting it to 1637 (as above) or greater does cause it.

Originally posted by @metathinker in https://github.com/microsoft/terminal/pull/843#discussion_r284818080 - that PR does not fix or otherwise affect this bug.

Originally created by @metathinker on GitHub (May 16, 2019). Using this commit: e3764b2081b74c67fb901b2c133380c5bd3787af 1. Make sure there is no existing Terminal settings file at: `%LocalAppData%\Packages\WindowsTerminalDev_8wekyb3d8bbwe\RoamingState\profiles.json` 2. Build Terminal with `tools\razzle.cmd & bcz`. 3. Open the OpenConsole.sln in Visual Studio, select debug/release and CPU architecture to match your build, and hit F5 to deploy and run the Terminal .appx package. 4. Open the newly created Terminal settings file, and change the `initialRows` setting from 30 to 1637. 5. Close and restart Terminal. Observe that Terminal does not start at all. If you start Terminal under a debugger, you'll see that the release build crashes with an unhandled C++ exception. (I haven't tried the debug build.) Setting `initialRows` to 1636 or less does not cause the problem, but setting it to 1637 (as above) or greater does cause it. _Originally posted by @metathinker in https://github.com/microsoft/terminal/pull/843#discussion_r284818080_ - that PR does not fix or otherwise affect this bug.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1165