Share via


Visual Studio Crashes on opening Data Sources window

Question

Tuesday, December 8, 2015 1:00 PM | 2 votes

I have this very weird problem

When I select my project in the solutions explorer and i then open up the data sources and i can see all my data sources

When i then open up any form the datasources list goes away and my visual studio crashes

the error in the event viewer is the following

Faulting application name: devenv.exe, version: 14.0.24720.0, time stamp: 0x564ea97e
Faulting module name: clr.dll, version: 4.6.1055.0, time stamp: 0x563c0f73
Exception code: 0xc00000fd
Fault offset: 0x00014264
Faulting process ID: 0x30b0
Faulting application start time: 0x01d131b730eae76f
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe
Faulting module path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\clr.dll
Report ID: 7753c615-440d-4af9-a873-394282ee82ed
Faulting package full name:
Faulting package-relative application ID:

All replies (19)

Monday, January 4, 2016 7:53 AM ✅Answered | 1 vote

Hi Reader Man Me,

Do you mean that you get the crashed issue with the specific project?

Could you share us a simple sample using one drive? So I could test it in my side.

If just the specific app has this issue, please also test it in other VS machine, maybe it would be related to the project itself you know that there are different reasons which will generate the crashed issue.

Thanks,

Jack

Update:

https://connect.microsoft.com/VisualStudio/Feedback/Details/2201539

As you already submit one feedback on the Microsoft Connect site, let's focus
on the case on that channel, may our senior members can provide more
professional support.

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Sunday, February 14, 2016 12:36 PM ✅Answered

Hi everyone

So today I found out that there is a Update 2 CTP available from the visual studio website. I installed it and it seems to have solved the problem I initially had. So if you have this issue you can maybe install Update 2 or you can uninstall from the other suggestions in this thread and go back to VS without update1


Thursday, December 10, 2015 8:59 AM | 1 vote

Hi PSZA,

>>When I select my project in the solutions explorer and i then open up the data sources and i can see all my data sources.

Could you share me a screen shot about the above result?

>>When i then open up any form the datasources list goes away and my visual studio crashes.

Which kind of app did you create, Winform or others? What is the data source in your solution explorer window? Is it related to Windows Forms Data Controls and Databinding?

In addition, if you use the data source like the SQL Server, could you connect it normally from your SSMS or the Server explorer windows in your VS IDE?

For the VS crashed issue, we also could think about the VS or the windows Environment.

For example, maybe the system is so busy, we could restart the machine, re-open the app again.

Or run the VS in safe mode, we could know that whether it is related to the add-ins or extension tools in the VS IDE.

If I have misunderstood this issue, please feel free to let me know.

Best Regards,

Jack

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Wednesday, December 16, 2015 2:14 PM | 1 vote

I get the same error since Update 1 was applied.

When I open the Data Sources window (activate the pane) with a C# forms designer active, the IDE is frozen for about a minute, then it restarts by itself.

The actual C# windows forms has just 1 bindingcontext, but the project has a datacontext with about 25 tables. However, any attempts to open the Data Sources window gets the same result. This didn't happen earlier this week - but I just applied Update 1.

I suggest you do not apply this update right now.

Edit: Did some more experimenting: I can open the Data Sources window and for example remove almost everything, without a designer window open. However, if I then try to open a designer (windows forms) window - the Data Sources window clears, the IDE locks up, and restarts. Every single time.

/Micke, Sweden.


Wednesday, December 16, 2015 3:47 PM | 1 vote

Hi Micke,

If you get the same issue, and we make sure that it is the update 1's issue.

You can submit this feedback to Microsoft Connect feedback portal: http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx,Microsoft engineers will evaluate them seriously.

Best Regards,

Jack

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Wednesday, December 16, 2015 5:11 PM | 1 vote

Yes, I uninstalled Update 1, and now it works - IDE doesn't crash horribly. So I would strongly recommend you guys out there to NOT install Update 1 for VS2015.

I'll try to find a suitable way to report it the way you wrote. And find out why all of a sudden, the font in this editing window turned to a 2-pixel large one once I accidentally pressed enter twice. I can hardly see what I write ;)

/Micke 


Thursday, December 17, 2015 6:06 AM | 1 vote

Hi Micke,

You have made sure your problem is caused by Update 1. I suggest you post this problem to Visual Studio Connect and share the link here. If there any workaround for this problem on Connect, it will be benefit to other communities.

Best Regards,
Weiwei


Monday, December 28, 2015 8:18 PM | 1 vote

Attempting to complete these steps

https://msdn.microsoft.com/it-it/data/jj574514

I am having the same problem.

Unfortunately I am starting with the latest VS2015 that encompass Update 1 so I am unable to un-install Update 1.

Thank you for any suggestion.

Ciao

Marco


Tuesday, December 29, 2015 8:53 AM | 1 vote

Hi Marco,

For the crashed issue, there are different possible reasons, it is hard for us to find the real reason directly even if it has the same crashed result, and we are not very sure that whether it is the same project type as PSZA.

Like that document provided by you, we could know that it would be related to the specific Databinding with WPF app, so to really help you repro and troubleshoot this issue, if possible, you could post a new case in the WPF developing forum, so there you would get dedicated support.

https://social.msdn.microsoft.com/Forums/en-US/home?forum=wpf

Best Regards,

Jack

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Tuesday, December 29, 2015 11:15 AM | 1 vote

Thank you Jack, I will follow your suggestion.

Ciao

Marco


Wednesday, December 30, 2015 11:49 AM | 1 vote

Hi Guys

First of I would like to thank everyone's input in to this problem. I think I have found the Issue and I am going to try and explain it just now.

First of Thank you Jack for replying. Like Micke I had the same issue of when I have my form open and I add an Object datasource(entity object) it would crash. If no forms are open then it would work fine.

What I have done to try and fix it. 1: tried uninstalling all other versions of visual studio , 2: tried repairing Visual studio. None of those options fixed the problem. I have not tried the uninstalling update 1 option but I might still do that (thank you Micke) .

Eventually I got the Idea to make a new Database . Just a simple one table database. And that worked fine. Which meant that there is somehow an issue with my entities.

I then looked at my relations between my tables and this is where I found my problem.

It seems that my tables have Circular relations and when you have the normal Lazy loading in Visual studio then it crashes the system.

Like as an example. I have a Users table and Roles table. My user table needs to have multiple entries in the roles table so it is a one to many relationship. But in the Model it seems my Users is a 0..1 option

Which causes a circular relationship and from what I could understand about it Lazy loading tries to load all references to the Table all the time.

What I did then according to this article http://www.asp.net/web-api/overview/data/using-web-api-with-entity-framework/part-4

I found that putting the Virtual keyword infront of the collection in the entity it would either make it lazy load or explicit.

So in my case the virtual keyword was there I took it away. Recompiled. Added my entity into my datasources and had no crash.

So it seems that Visual studio update 1 does not handle circular references as well as the previous VS

Micke If you can maybe check your DB too and let us know maybe you have the same case as what I have

Regards


Wednesday, December 30, 2015 8:38 PM | 1 vote

I have tried the following:

  1. Reinstall of .NET Frameworks (all versions)
  2. Repair Visual Studio
  3. Cleaning all C:\Users\username\AppData\Local\Microsoft\VisualStudio (and VisualStudio Services) data.
  4. Cleaning Visual Studio: devenv.exe /ResetSettings
  5. Change "Lazy Loading Enabled" on EDMX designer to "false"
  6. Remove all virtual keywords from all navigational properties of DB classes

No one of the above step helped.

The temporary workaround which allows me to work until Microsoft fixes this bug:

Never open "Form Designer" and "Data Sources" together. Close one before opening the other. When both are opened simultaneously Visual Studio 2015 Update 1 crashes immediately.


Thursday, December 31, 2015 8:27 AM | 1 vote

I am going to go back to the older version of visual studio

For some reason my way of taking away the circular references and the virtual keyword has no effect whatsoever on visual studio. It still CRASHES

Hope Microsoft can fix this bug ASAP


Thursday, December 31, 2015 10:53 AM | 1 vote

Thanks for PSZA and Waldek Nowak's friendly response.

If you get the same issue, to get the issue confirmed and diagnose by product team, would you please create connect report for it? You will get email notification for update. http://connect.microsoft.com/VisualStudio/feedback/CreateFeedback.aspx

If you submit the report, please share us the link here, so we could get the latest information from the report team, and other members who get the same issue could help you vote your report.

In addition, please also collect the crashed dump files and upload to the connect report, the report team members would help you debug your crashed dump files.

Best Regards,

Jack

We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.


Sunday, January 3, 2016 10:05 PM | 1 vote

The same crash happens with me, and i don't have any virtual properties, nor circular relations, and i don't recall it happened before update 1.

but i noticed that this happens only when there is a property that links class A to B, i mean that u will see in A definition:

    public IList<B> var2 { get; set; }

e.g.:

public class A
{

    public string eName { get; set; }
    public string aName { get; set; }
    public string eDesc { get; set; }
    public string aDesc { get; set; }
    public int age { get; set; }

    public IList<B> var2 { get; set; }

}

public class B
{
    public string eName { get; set; }
    public string aName { get; set; }

}

Regards.


Sunday, January 31, 2016 4:26 PM

Hi,

To duplicate this problem follow this MSDN article "Walkthrough: Creating LINQ to SQL Classes (O/R Designer)"

https://msdn.microsoft.com/en-us/library/bb384428(v=vs.120).aspx

When you get down to the stage where you need to use data sources view and the form editor together ("Creating Data-Bound Controls to Display the Data on a Windows Form"), Visual Studio freezes and eventually reports an error.

I really hope this is fixed soon. 

Thanks 

Brian Jaikens


Monday, February 8, 2016 1:44 PM

I have the almost identical problem when following the MSDN article "Entity Framework Databinding with WPF (https://msdn.microsoft.com/en-us/data/jj574514.aspx?f=255&MSPPError=-2147217396).  I am using a brand new laptop with a fresh install of Windows 7, SQL Server 2012 and Visual Studio 2015 Update 1.  When I work through the tutorial to the point of opening the Data Sources Window Visual Studio crashes ignominiously.  This does NOT happen on my home machine which has Visual Studio 2015 WITHOUT Update 1

UPDATE (2 hrs Later)

Just uninstalled VS 2015 Update 1 (using Revo Uninstaller to clean up (a lot of) garbage) and installed VS 2015 being very careful NOT to select Update 1.  Problem is solved!  Data Sources Window now opens with incident.  (Note:  If you select certain features, such as Python, Update 1 gets auto-selected and you'll be back to square 1)


Saturday, February 13, 2016 4:25 AM

Yes I have the same problem. For a full day none stop have done the same things over and over and yet the result is the same.

Have searched the internet and not a clue what is wrong. I am doing some samples from this book

C# 2012 Fundamentals LiveLessons(chapter 20 sample "BooksExamples")

I am very upset and exhausted. I wish I knew which version is stable to do some samples. this is just for learning purpose and I cannot spent days to just figure out why a simple project is not working.


Wednesday, April 27, 2016 9:19 AM

I confirm that Visual Studio 2015 Update 2 RTM (Release to Manufacturing) version solves this problem completely.