Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
395 views
in Technique[技术] by (71.8m points)

c# - Sqlserver.exe has stopped working

Since installing Visual Studio 2015 Update 3 I have been getting the below error. It happens only when Visual Studio 2015 is open and happens whether I am running as a local admin or not. It is frequent and is irritating, but does not seem to affect any work that I am doing. Code, Server Explorer, VS all work fine bat the error messages popping up and Microsoft Error Reporting taking up long periods of 50% usage of my CPU in the process.

Does anyone know how to fix this? I don't want to spend hours trying to resolve it.

Error Message:

enter image description here

In my Application event log I see the following:

Fault bucket 126419871336, type 5 Event Name: SQLException64 Response: Not available Cab Id: 0

Problem signature: P1: sqlservr.exe P2: 0.0.0.0 P3: 0000000000000000 P4: sqlmin.dll P5: 2015.130.1601.5 P6: 000000005724AE98 P7: -1073741819 P8: 0000000000064BB2 P9: 00000001D8D946AB P10:

Attached files: ?C:Usersm_fAppDataLocalMicrosoftMicrosoft SQL Server Local DBInstancesProjectsV13SQLDump0100.mdmp ?C:Usersm_fAppDataLocalMicrosoftMicrosoft SQL Server Local DBInstancesProjectsV13SQLDump0100.txt ?C:Usersm_fAppDataLocalMicrosoftMicrosoft SQL Server Local DBInstancesProjectsV13SQLDump0100.log ?C:ProgramDataMicrosoftWindowsWERTempWERE021.tmp.WERInternalMetadata.xml

These files may be available here: C:ProgramDataMicrosoftWindowsWERReportArchiveCritical_sqlservr.exe_7113a987f49ac660cb71f97cb4183ea19827ef0_00000000_0bd7e949

Analysis symbol: Rechecking for solution: 0 Report ID: 3e38065a-5d62-11e6-89a7-97ade4354400 Report Status: 1 Hashed bucket: ff995718a61d049a3664662b84518798

And in the SQL log:

Process 49 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.

Is also seems to have been a known issue - see this Microsoft KB Article that says it has been patched.

My system is as up to date as possible in terms of OS, patches, security updates, Visual Studio updates etc but I still see the issue. Hopefully someone has solved this before and can save me some frustration trying to get it sorted!

Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

There is an ongoing thread about this crash on Microsoft's MSDN forum:

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/0c486ed7-9fdb-45f0-9fcd-342eadbb0476/sqlserverexe-crashing

Apparently, this crash occurs after upgrading to the most recent version of SSDT (14.0.60525.0).

A Microsoft employee suggested this as a fix:

We've investigated and believe that this happens when the query store feature is enabled in any database in the localdb server. You can work around this problem by disabling the query store feature in all localdb database instances. To find the names of databases that have query store enabled, run this query:

select [name] from sys.databases where is_query_store_on=1

Then for each database, disable query store by executing a query like so:

alter database DBNAME set query_store=off

Some reported this did not fix the issue for them, others that it did, so your success may vary.

See Microsoft employee Kevin Cunnane's comment below:

The fixed LocalDB.msi is included in the August release - available from msdn.microsoft.com/en-us/library/mt204009.aspx with update via the Visual Studio Extensions and Updates channel due in the next few weeks.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...