terminal: Terminal crashes when dragged to another monitor

Environment

Windows build number:  Microsoft Windows [Version 10.0.18362.418]
Windows Terminal version (if applicable): 0.6.2951.0

Steps to reproduce

  1. Open Windows Terminal with “only one tab open”
  2. Drag to another monitor with a lower resolution (from 2160p to 1080p)

Expected behavior

Terminal is dragged onto another monitor

Actual behavior

It crashes. Funny thing: The terminal doesn’t crash when I have more than one tab open.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 37
  • Comments: 47 (16 by maintainers)

Commits related to this issue

Most upvoted comments

Just hit this bug. The multiple tabs with cmd workaround is the only thing that works for me.

Hey everyone, just an update here:

I’ve dug real deep into XAML over the last week, and working with @teap, we were able to find that the source of the E_LAYOUTCYCLE wasn’t coming from the Windows Terminal code, it was coming from the TabView code itself. Fortunately, @teap has whipped up a fix for us, which should be available on the next update of Microsoft.UI.Xaml 🎉.

At the time of writing it’s unclear when we’ll ingest that update and push an update to the store. We’ll keep you posted in this thread when we know more. Thanks all for help with getting repro steps found!

For me the multiple tabs work around only works if one of the tabs is CMD

edit: Also noticed it’s only when moving from my laptop screen(4k) to an external monitor(1080p). Moving between my external monitors seems fine. Maybe due to them using different graphic cards?

It has nothing to do with the drag … the same crash behaviour is exhibited if you use the windows + arrow keys

aaaaaaaaaaaaa

welp. That’s insane, but it works. I’ll dig in farther in the morning.

My notes: Win-Shift-Left and Win-Shift-Right work fine, its just when “dragging” the window.

I’m having the same issue on my setup. Two tabs workaround doesn’t help.

Primary monitor is 2K at 125% and other monitors are 1080p at 100%. The app crashes as soon as I move it from the primary monitor to the others.

Okay so it’s even more challenging that just dragging it to another display while it’s starting up. It specifically crashes if the title is changing when you drag it to the other display. I’m not sure if it has to change exactly during the drag, or how it’s related, but now that I have a little script repros this consistently, I can investigate more.

I can consistently reproduce it when I set Ubuntu-18.04 as the default profile, it does not happen when openning Windows PowerShell or cmd.

Then I also have to quickly drag Terminal to another monitor, while it is still loading Ubuntu, if I wait a few seconds for the command prompt to be ready, then I can safely move Terminal to another monitor without it crashing.

It has nothing to do with the drag … the same crash behaviour is exhibited if you use the windows + arrow keys

which is 100% what I said.

Hi, I just sent a feedback using the Feedback Hub. Thanks everyone for more details.

https://aka.ms/AA6e9sl