Bug Report: Unhandled exception - access violation #1368

Closed
opened 2026-01-30 22:23:47 +00:00 by claunia · 3 comments
Owner

Originally created by @Morgy93 on GitHub (May 26, 2019).

Environment

Windows build number: Microsoft Windows [Version 10.0.18362.116]
Windows Terminal version (if applicable): Not quite sure, latest master branch commit

Any other software?

Steps to reproduce

  1. Start terminal
  2. Open several tabs
  3. Close each one

Expected behavior

The terminal window just closes

Actual behavior

The program crashed with some unhandled exception:

Unhandled exception at 0x00007FFD5923E36F (Microsoft.UI.Xaml.Markup.dll) in WindowsTerminal.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF. occurred

image

Call Stack:

Microsoft.UI.Xaml.Markup.dll!winrt::impl::root_implements<winrt::Microsoft::UI::Xaml::Markup::implementation::XamlApplication,winrt::Microsoft::UI::Xaml::Markup::XamlApplication,winrt::Microsoft::UI::Xaml::Markup::IXamlMetadataProviderContainer,winrt::Windows::Foundation::IClosable,winrt::composable,winrt::composing,winrt::Windows::UI::Xaml::IApplicationOverrides,winrt::Windows::UI::Xaml::IApplicationOverrides2,winrt::Windows::UI::Xaml::Markup::IXamlMetadataProvider>::Release() Line 6413
	at c:\dev\terminal\src\cascadia\microsoft.ui.xaml.markup\generated files\winrt\base.h(6413)
Microsoft.UI.Xaml.Markup.dll!winrt::implements<winrt::Microsoft::UI::Xaml::Markup::implementation::XamlApplication,winrt::Microsoft::UI::Xaml::Markup::XamlApplication,winrt::Microsoft::UI::Xaml::Markup::IXamlMetadataProviderContainer,winrt::Windows::Foundation::IClosable,winrt::composable,winrt::composing,winrt::Windows::UI::Xaml::IApplicationOverrides,winrt::Windows::UI::Xaml::IApplicationOverrides2,winrt::Windows::UI::Xaml::Markup::IXamlMetadataProvider>::Release() Line 6954
	at c:\dev\terminal\src\cascadia\microsoft.ui.xaml.markup\generated files\winrt\base.h(6954)
Microsoft.UI.Xaml.Markup.dll!winrt::impl::produce_base<winrt::Microsoft::UI::Xaml::Markup::implementation::XamlApplication,winrt::Microsoft::UI::Xaml::Markup::IXamlApplication,void>::Release() Line 6085
	at c:\dev\terminal\src\cascadia\microsoft.ui.xaml.markup\generated files\winrt\base.h(6085)
[External Code]

Originally created by @Morgy93 on GitHub (May 26, 2019). <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Microsoft Windows [Version 10.0.18362.116] Windows Terminal version (if applicable): Not quite sure, latest master branch commit Any other software? ``` # Steps to reproduce 1. Start terminal 2. Open several tabs 3. Close each one # Expected behavior The terminal window just closes # Actual behavior The program crashed with some unhandled exception: ``` Unhandled exception at 0x00007FFD5923E36F (Microsoft.UI.Xaml.Markup.dll) in WindowsTerminal.exe: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF. occurred ``` ![image](https://user-images.githubusercontent.com/7961978/58387065-7bb48580-8009-11e9-9f47-8a59d5bd6e68.png) Call Stack: ``` Microsoft.UI.Xaml.Markup.dll!winrt::impl::root_implements<winrt::Microsoft::UI::Xaml::Markup::implementation::XamlApplication,winrt::Microsoft::UI::Xaml::Markup::XamlApplication,winrt::Microsoft::UI::Xaml::Markup::IXamlMetadataProviderContainer,winrt::Windows::Foundation::IClosable,winrt::composable,winrt::composing,winrt::Windows::UI::Xaml::IApplicationOverrides,winrt::Windows::UI::Xaml::IApplicationOverrides2,winrt::Windows::UI::Xaml::Markup::IXamlMetadataProvider>::Release() Line 6413 at c:\dev\terminal\src\cascadia\microsoft.ui.xaml.markup\generated files\winrt\base.h(6413) Microsoft.UI.Xaml.Markup.dll!winrt::implements<winrt::Microsoft::UI::Xaml::Markup::implementation::XamlApplication,winrt::Microsoft::UI::Xaml::Markup::XamlApplication,winrt::Microsoft::UI::Xaml::Markup::IXamlMetadataProviderContainer,winrt::Windows::Foundation::IClosable,winrt::composable,winrt::composing,winrt::Windows::UI::Xaml::IApplicationOverrides,winrt::Windows::UI::Xaml::IApplicationOverrides2,winrt::Windows::UI::Xaml::Markup::IXamlMetadataProvider>::Release() Line 6954 at c:\dev\terminal\src\cascadia\microsoft.ui.xaml.markup\generated files\winrt\base.h(6954) Microsoft.UI.Xaml.Markup.dll!winrt::impl::produce_base<winrt::Microsoft::UI::Xaml::Markup::implementation::XamlApplication,winrt::Microsoft::UI::Xaml::Markup::IXamlApplication,void>::Release() Line 6085 at c:\dev\terminal\src\cascadia\microsoft.ui.xaml.markup\generated files\winrt\base.h(6085) [External Code] ```
Author
Owner

@oising commented on GitHub (May 27, 2019):

@Morgy93 Could you let us know what the commit hash is for the version of Windows Terminal that you built? git log -1 should tell you. This assumes you have not done a git pull since you built the solution.

@oising commented on GitHub (May 27, 2019): @Morgy93 Could you let us know what the commit hash is for the version of Windows Terminal that you built? `git log -1` should tell you. This assumes you have not done a `git pull` since you built the solution.
Author
Owner

@Morgy93 commented on GitHub (May 28, 2019):

@oising Well, it's the latest commit from 3 days ago: commit 4c47631bf4

image

@Morgy93 commented on GitHub (May 28, 2019): @oising Well, it's the latest commit from 3 days ago: commit 4c47631bf4aa907aad4f7088bc7edc7e5cde11b9 ![image](https://user-images.githubusercontent.com/7961978/58457197-5d907780-8126-11e9-9ab6-3c1c11e510f6.png)
Author
Owner

@zadjii-msft commented on GitHub (May 28, 2019):

This is #457

@zadjii-msft commented on GitHub (May 28, 2019): This is #457
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#1368