Stuff That Crashes SSMS 18.1

WEEEEEEEEEEEEEEEEEEEE


Video Summary

In this video, I demonstrate a couple of issues that can cause SQL Server Management Studio (SSMS) 18.1 to crash, particularly when using Extended Events. I start by showing how creating and attempting to configure an Extended Events session can lead to significant CPU spikes and the application freezing, often forcing me to forcibly close it. The video then moves on to illustrate another scenario where simply switching tabs or closing a window can cause SSMS to become unresponsive, sometimes even restarting entirely. These issues highlight ongoing challenges with SSMS 18.1 and prompt me to hope that the development team will investigate these crashes to improve future versions.

Full Transcript

So this is a hopefully short video to illustrate a couple things that will crash SQL Server Management Studio 18.1. I am using 18.1 because I am, at least I think, a pretty decent human being when it comes to updating software. Often that comes back to bite me, but besides the point. So anyway, the first thing is if I go into extended events and I click on new session, and I will name this session, I don’t know, something, because whatever, it’s gonna crash anyway. And then I go into events. This doesn’t ever actually fill out. And if I sit around waiting long enough, CPU will spike up very, very high, and this will die terribly. So I’m just gonna kill that off. We’re already not responding. Get rid of you. Go, go, go, go, go away. Alright, so, uh, let’s open this back up. And, uh, hopefully, show you the second part. There we go. We are booting. We are coming into existence. We are being birthed into life. Ah, there we go. Okay, still waiting a little bit. Alright, let’s, let’s resize you. Let’s fit you perfectly into the 1920 by 1080 screen space. Don’t look at my password. It’s not a good one.

It’s very secret. Ah, loading master. There we go. Nice advertisement for SQL prompt. You owe me $30, Steve Jones. So anyway, the next thing, let’s just pretend that, uh, I had, uh, the extended events session that I wanted, uh, which is to look at hash spills already written. Um, alright, so I’ll, I’ll actually script this session out so you can see what it looks like. It’s not doing any, any weird hanky-panky. And I’ll give you a, I’ll give, I’ll give SQL prompt another nice, uh, plug here. Steve Jones now owes me $60. Uh, so this is just creating a session to look at hash spills. Uh, and if I start this thing up, and I, let’s say, watch live data.

And then I run the, where’d that, where’d that query go? Oh, that’s the other thing. Uh, when you switch tabs, sometimes it doesn’t show you which query you, you, you, you wanted immediately. So now I’m going to run this. And we should start getting some live data in. Hopefully. If I’ve written this query properly, which I’m pretty sure that I should have. Uh, we’ll see. I don’t know. Maybe. It’s been better. It’s been worse. Sometimes it takes a minute. Not a, not a full minute. Sometimes it takes some time. I don’t know how long, though.

Da-da-da. Da-da-da. Da-da-da. Alright, I’m going to pause this and wait for some data to come in. I’ll be right back. Alright, as soon as I hit pause, we had data start coming in. Wasn’t that lucky for us? But now let’s say, okay, I’m sick of watching this. I don’t want to, I don’t want to watch this thing spill anymore. I’m just going to close, I’m just going to close this window.

Uh, eventually this will make Management Studio, uh, go away too. And we’re not responding. And again, if I, oh, there, it just disappears on me. So I don’t even have to intervene to have that. It just restarted. Anyway, uh, I’m recording this in hopes that someone on the Management Studio team can look into why so much Extended Events stuff crashes. And SSMS 18.1, because I’d really love to uninstall SSMS 17.9 and use 18.1 exclusively, because I really like those operator time things.

Anyway, uh, bye. Bye.

Going Further


If this is the kind of SQL Server stuff you love learning about, you’ll love my training. I’m offering a 25% discount to my blog readers if you click from here. I’m also available for consulting if you just don’t have time for that and need to solve performance problems quickly.



6 thoughts on “Stuff That Crashes SSMS 18.1

  1. The “switching tabs” problem (where it doesn’t update your screen) can be mitigated by turning off hardware acceleration (Tools > Options > Environment > General > User hardware graphics acceleration if available).

    I am told this is a “known problem”.

  2. I was running through a bunch of XE stuff the other day to help somebody on the SQL Server Community Slack and I too was subjected to those delightful sudden restarts when closing the live event viewer; glad it’s not just me. As a workaround you can stop the XE session via your weapon of choice and the tab’ll close a bit more gracefully.

    I’ve also found and voted for an, er, “Idea” on the horrible new Connect website, so give it an upvote — https://feedback.azure.com/forums/908035-sql-server/suggestions/37725610-ssms-18-0-crashes-when-closing-extended-events-wat

    That said, only an hour ago a UI issue that myself and some others have been experiencing in the new SSMS 18 (and Visual Studio 2019) had both of its issues closed with the modern-day equivalent of “Won’t Fix”, so I don’t think stuff that’s inconvenient is going to get worked on. The raft of ancient SSMS annoyances that were fixed with the original SSMS 18 release made me think MS might have changed tack on the smaller productivity interferences, but maybe not :p

    Loads of bugs have been reported in the community Slack since the initial release, but many of them are only affecting certain users with no rhyme or reason as to whom, so I don’t imagine this release has been a bundle of fun for MS either. The line between SSMS and VS is still pretty blurry to me so I’m a little afraid of doing anything in either of them (note that VS 2019 Community is now the replacement for the SSDT VS shell for the “BI stack”, and much as I’d rather never touch any of those products my hands are tied from having to support some SSIS stuff).

  3. I’ve just upgraded to 18.2 and can no longer replicate the crash from closing the Live Data tab. Woo…?

Comments are closed.