Bug Report: Cannot find profile --> Crash #3448

Closed
opened 2026-01-30 23:21:30 +00:00 by claunia · 2 comments
Owner

Originally created by @carlos-zamora on GitHub (Aug 16, 2019).

Environment

Introduced by #2422

Since we'll be defaulting to the Windows Terminal default settings, this means that the user may be working with profiles that don't exist AFTER the proper settings are imported. Below is an example of such a case, but several other places may cause the same issue to arise.

I'd bet that this is because we usually use "FindProfile()" (or something like that) and we just don't handle that properly.

Steps to reproduce

  • create a tab from the WT default settings
  • import your custom settings
  • duplicate the created tab

Expected behavior

Not sure. Maybe a dialogue box saying "This operation could not be completed"?

Actual behavior

CRASH!

Originally created by @carlos-zamora on GitHub (Aug 16, 2019). # Environment Introduced by #2422 Since we'll be defaulting to the Windows Terminal default settings, this means that the user may be working with profiles that don't exist AFTER the proper settings are imported. Below is an example of such a case, but several other places may cause the same issue to arise. I'd bet that this is because we usually use "FindProfile()" (or something like that) and we just don't handle that properly. # Steps to reproduce - create a tab from the WT default settings - import your custom settings - duplicate the created tab # Expected behavior Not sure. Maybe a dialogue box saying "This operation could not be completed"? # Actual behavior CRASH!
Author
Owner

@zadjii-msft commented on GitHub (Aug 16, 2019):

for the record, I don't think this was introduced in #2422, this probably dates back to pre-open source, when we started falling back to the default profiles if the settings were invalid. This just makes it more apparent, because we crash less aggressively.

@zadjii-msft commented on GitHub (Aug 16, 2019): for the record, I don't think this was introduced in #2422, this probably dates back to pre-open source, when we started falling back to the default profiles if the settings were invalid. This just makes it more apparent, because we crash less aggressively.
Author
Owner

@ghost commented on GitHub (Apr 22, 2020):

:tada:This issue was addressed in #5090, which has now been successfully released as Windows Terminal Preview v0.11.1121.0.🎉

Handy links:

@ghost commented on GitHub (Apr 22, 2020): :tada:This issue was addressed in #5090, which has now been successfully released as `Windows Terminal Preview v0.11.1121.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.11.1121.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#3448