Comments (7)
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
Closed similar issues:
- Terminal crashing when dragging the tab (#4453), similarity score: 0.75
Note: You can give me feedback by thumbs upping or thumbs downing this comment.
from terminal.
For some reason closing or tearing off a tab leads to a call to OnCreateAutomationPeer
on the TermControl
of the next tab (the one receiving the focus after this tab is closed).
OnCreateAutomationPeer
seems to originate from XAML:
In the case of a single tab terminal window, there is no next tab, so the same tab (being replaced) receives the call. Note that the tab being torn off gets into the "detached" mode and has no _interactivity
associated with it. This results in the crash due to null pointer deref:
from terminal.
That makes sense after i ran Windows Debugger on Terminal Canary:
(e670.164b4): Windows Runtime Transform Error - code 40080202 (first chance)
(e670.164b4): C++ EH exception - code e06d7363 (first chance)
onecoreuap\windows\frameworkudk\warppal.cpp(783)\Microsoft.Internal.WarpPal.dll!00007FFA99D0EE4C: (caller: 00007FFA9A1798EA) ReturnHr(4) tid(164b4) 80004002 No such interface supported
onecoreuap\windows\frameworkudk\warppal.cpp(783)\Microsoft.Internal.WarpPal.dll!00007FFA99D0EE4C: (caller: 00007FFA9A1798EA) ReturnHr(5) tid(164b4) 80004002 No such interface supported
onecoreuap\windows\frameworkudk\warppal.cpp(783)\Microsoft.Internal.WarpPal.dll!00007FFA99D0EE4C: (caller: 00007FFA9A1798EA) ReturnHr(6) tid(164b4) 80004002 No such interface supported
onecoreuap\windows\advcore\winrt\onecoreiwindow\corewindow\common\desktopwindowcontentbridge.cpp(540)\Windows.UI.dll!00007FFA89C2C507: (caller: 00007FFA89C2C681) ReturnHr(1) tid(164b4) 8007139F The group or resource is not in the correct state to perform the requested operation.
(e670.164b4): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
Windows_UI_Xaml!DirectUI::DXamlCore::EnsureDragDrop [inlined in Windows_UI_Xaml!<lambda_389d8a62991e0fa55478e04c88286937>::operator()+0xc8]:
00007ffa`895b2444 488b8058010000 mov rax,qword ptr [rax+158h] ds:00000000`00000158=????????????????
from terminal.
Huh, this looks like it fails here:
Windows_UI_Xaml!DirectUI::DXamlCore::EnsureDragDrop [inlined in Windows_UI_Xaml!<lambda_389d8a62991e0fa55478e04c88286937>::operator()+0xc8]
And I can repro this even on #17251 branch. Maybe they are unrelated 🤔
After re-reading this from the first comment:
Two strange scenarios happen: Either the first window hangs but I successfully dropped the tab to the second window, or the entire Terminal hangs then crashes.
I believe there are two crash scenarios:
- Drag the only tab in the single-tab terminal window and drop it such that it creates a new window.
- Drag the only tab in the single-tab terminal window and drop it into any other terminal window to merge it with that window.
(1) is fatal, crashes the entire process taking down all the running terminal windows, and should be fixed by #17251. But (2) doesn't seem to crash the process or any running windows. You would only see the no-tab window to take a while before it disappears.
I'm going to unlink this issue from #17251 because it doesn't fix all the issues.
from terminal.
Is this issue older than Canary?
I just had Terminal Preview (1.21.1272.0) crash when merging in a tab, though the reported versions don't seem to line up at all:
Faulting application name: WindowsTerminal.exe, version: 1.21.2405.6002, time stamp: 0x66396ac3
Faulting module name: Microsoft.Terminal.Control.dll, version: 1.21.2405.6002, time stamp: 0x66396908
Exception code: 0xc0000005
Fault offset: 0x00000000000f60c9
Faulting process ID: 0x0x18B8
Faulting application start time: 0x0x1DAA601207F96C8
Faulting application path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminalPreview_1.21.1272.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
Faulting module path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminalPreview_1.21.1272.0_x64__8wekyb3d8bbwe\Microsoft.Terminal.Control.dll
Report ID: 2046127b-c89a-446d-9f22-77734d5137be
Faulting package full name: Microsoft.WindowsTerminalPreview_1.21.1272.0_x64__8wekyb3d8bbwe
Faulting package-relative application ID: App
Description
Faulting Application Path: C:\Program Files\WindowsApps\Microsoft.WindowsTerminalPreview_1.21.1272.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe
Problem signature
Problem Event Name: MoAppCrash
Package Full Name: Microsoft.WindowsTerminalPreview_1.21.1272.0_x64__8wekyb3d8bbwe
Application Name: praid:App
Application Version: 1.21.2405.6002
Application Timestamp: 66396ac3
Fault Module Name: Windows.UI.Xaml.dll
Fault Module Version: 10.0.22621.3527
Fault Module Timestamp: ac70373e
Exception Code: c0000005
Exception Offset: 000000000041dc17
OS Version: 10.0.22631.2.0.0.768.101
Locale ID: 1033
Additional Information 1: bee9
Additional Information 2: bee97536ba640759fac0d38a6ed36481
Additional Information 3: d7a5
Additional Information 4: d7a5acd4c1813a34b6cf99e57e6ac9ba
Extra information about the problem
Bucket ID: 2b5e3f6ac22530ac49d0202c4830bf22 (1860022020665818914)
from terminal.
I mean, canary and preview forked off like, last week, so I'd fully imagine that whatever the root cause of this is, it's in Preview too.
from terminal.
I tried to reproduce the issue again with Windows Debugger and that's what I got. However, this time, Terminal Canary just hangs, and it becomes unresponsive.
(540c.d828): Windows Runtime Transform Error - code 40080202 (first chance)
(540c.d828): C++ EH exception - code e06d7363 (first chance)
onecoreuap\windows\frameworkudk\warppal.cpp(783)\Microsoft.Internal.WarpPal.dll!00007FFF8881EE4C: (caller: 00007FFF89A598EA) ReturnHr(4) tid(d828) 80004002 No such interface supported
onecoreuap\windows\frameworkudk\warppal.cpp(783)\Microsoft.Internal.WarpPal.dll!00007FFF8881EE4C: (caller: 00007FFF89A598EA) ReturnHr(5) tid(d828) 80004002 No such interface supported
onecoreuap\windows\frameworkudk\warppal.cpp(783)\Microsoft.Internal.WarpPal.dll!00007FFF8881EE4C: (caller: 00007FFF89A598EA) ReturnHr(6) tid(d828) 80004002 No such interface supported
(540c.4ea8): Windows Runtime Transform Error - code 40080202 (first chance)
onecoreuap\windows\advcore\winrt\onecoreiwindow\corewindow\common\desktopwindowcontentbridge.cpp(540)\Windows.UI.dll!00007FFF7707C507: (caller: 00007FFF7707C681) ReturnHr(1) tid(d828) 8007139F The group or resource is not in the correct state to perform the requested operation.
(540c.d828): Access violation - code c0000005 (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
Microsoft_Terminal_Control!DllCanUnloadNow+0x37509:
00007ffe`897d6419 488b01 mov rax,qword ptr [rcx] ds:00000000`00000000=????????????????```
from terminal.
Related Issues (20)
- We broke `nt...` in the Command Palette HOT 1
- Broken Menu Bar HOT 1
- Windows Terminal Window Does Not Send `EVENT_OBJECT_DESTROY` On Close HOT 6
- 1.19.11213.0 shortcut doubleclick opens window in background HOT 2
- When trying to type in prompt, first search result is forced-focus into view HOT 1
- Terminal crashes when closing any other pane than the last HOT 6
- Behavior Change with multiple Double Quotes HOT 2
- The "Move pane, tab index..." and "Resize pane..." commands should be nested in the palette
- Weird focus change after multiline paste
- Support for Kitty Graphics Protocol HOT 3
- Ghostly cursor droppings in OpenConsole HOT 2
- Azure Shell Reports Unknown Id Instead of Tenant ID
- ConPTY does not pass Device Control Strings (DCS) to 3rd-party terminals HOT 14
- OSC escape sequences received out-of-order in 3rd-party terminals HOT 4
- Character navigation issue HOT 2
- Unable to render theme properly, Prompt is rendered in black and white HOT 3
- Imported WSL instance not discovered until Terminal is restarted HOT 5
- Is SU (ESC[<n>S) supposed to erase text? HOT 2
- encoding problem HOT 7
- Leading tabs in pasted text can be interpreted as tab-completion instead of tab character (\t) HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from terminal.