-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
too many migrations files give compilation error and even BSOD #33641
Comments
I actually found some errors in the event viewer that may help :
and before that one :
and then the big one :
|
What's the size of your migration folders, and of the largest file in there? |
the size of the migration folder is 236 Mb and largest file is about 1 Mb |
Duplicate of #2174 |
@graphicsxp take a look at #2174, which tracks first-class support squashing migrations; we're also thinking about deeper changes that would remove the need to have a full model snapshot for each and every migration. In any case, 236MB of code are bound to have a negative impact on your compilation time etc. In many cases, this huge size is called by using EF's data seeding feature with large data, which is discouraged (since the data has to be duplicated in each model snapshot, for each migration); I advise taking a look, and if that's your case, planning to remove that. Otherwise I'm going to go ahead and close this as a duplicate of #2174, but if you feel something special is going on, feel free to post back and we can revisit. |
i could not agree more on the fact that the high number of migrations in my project has a negative impact. For instance it takes almost 9 minutes to compile the solution on my laptop, so that's way too long, and we'll need to squash them at some point. Nevertheless my ticket was not about performance issues, but rather about the fact that i get an an error during compilation + bsod. That's very suspicious and always happen with the migration project only. I pasted the event viewer entries above, did you see them ? |
@graphicsxp sorry, I missed the compiler errors. First, you didn't mention which SDK version you're actually using - make sure it's the latest 8.0. If you're still seeing those errors there, can you please post an issue on the compiler repo, as this doesn't actually have anything to do with EF? You'll most likely have to provide a |
8.0.204 is the version i'm using. ok, i'll see to post on that repo but it is unlikely i can provide a runnable repro given the type of issue. |
@graphicsxp note that it doesn't actually need to be runnable (my bad), just code that, when compiled, produces these exceptions etc. You can probably provide it offline as it's pretty huge. I suspect the issue is somehow related to the size of the code, but who knows... |
I have a solution made of 58 .net 8 projects. They all compile just fine in less than 50 seconds except for the migration project which fails to compile on my desktop computer with the error :
MSB6006 "csc.exe" exited with code -1073741819
.After having this error, I clean the solution and rebuild and I get a BSOD with error driver_irql_not_less_or_equal. This behavior is consistent each time I compile the migration project.
This happens only on my desktop and not on any other laptop/desktop computers of my colleagues.
My PC is very new with an intel i9 14th generation and 64gb of ram. I don't think there is any hardware issue - I have run memtest + ssd health check - and it runs demanding programs such as games and photo-editing softwares just fine.
The migration project contains 788 migrations files ! If I squash all the migrations into one single file, it compiles just fine.
So is there a known issue with the number of migrations files in a project that could lead to this failed compilation ?
The text was updated successfully, but these errors were encountered: