-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Upgrade 9.9.2963 -> 9.10.4067 causes server silent reboot #4224
Comments
can you send me the model that triggers the error. Windows silently crashes on floating point errors for instance. |
The problem, I'm not certain of the place where it crashes. It works on localhost, but crashes on Azure App Service (previous version has been working fine). But I'm confident it happens here: CpModel model = new CpModel();
var allBookings = inputData.Items.OrderBy(x => x.Start).ToArray();
var numBookings = allBookings.Length;
var allTasks = new Dictionary<int, IntVar>();
foreach (var booking in allBookings)
{
allTasks[booking.Id] = booking.IsFixed ?
model.NewConstant(booking.Spot.Value) :
model.NewIntVar(0, numSpots - 1, $"{booking.Id}_spot");
if (booking.Spot.HasValue && !booking.IsFixed)
{
model.AddHint(allTasks[booking.Id], booking.Spot.Value);
}
}
for (int i = 0; i < numBookings; i++)
{
for (int j = i; j < numBookings; j++)
{
if (i == j) continue;
var booking = allBookings[i];
var otherBooking = allBookings[j];
var distance = otherBooking.Start - booking.Start - booking.Duration;
var bookingLeft = allTasks[booking.Id];
var bookingRight = allTasks[otherBooking.Id];
var reqDistance = booking.UseGaps && otherBooking.UseGaps ? gapSize : 0;
if (distance < reqDistance)
{
ILiteral couldBeInChainAtTheSameSpot = model.FalseLiteral();
model.Add(bookingLeft != bookingRight).OnlyEnforceIf(couldBeInChainAtTheSameSpot.Not());
}
}
}
CpSolver solver = new CpSolver
{
StringParameters = "linearization_level:1 num_workers:4"
};
CpSolverStatus status = solver.Solve(model); AllBookings could contain only 1 record, and it will crash on 9.10. Not likely that the problem is in the model. |
can you check protobuf was correctly updated ? |
No doubts, 3.26.1 |
Microsoft Azure Support shared the stack trace:
|
Still, it works locally. So the issue is a configuration issue. |
All the configuration above and still works with previous versions down to 9.6 (we started from it) |
Probably I know the reason why it works on localhost. On localhost I run it always in debugger. And InlinedCallFrame never appears in debug mode as far I remember. |
I cannot do anything until you send me something I can reproduce. |
Sorry, I don't have anythig else. I already sent everything I have. The fact it happenes only in Cloud makes the task harder. |
see the other issues I just closed, it was a missing updated visual studio version. |
We are using Azure Pipelines to build the artifact. |
Unless you can reproduce on a vanilla windows machine, I cannot do anything.
I do not have access to an azure server.
Le ven. 10 mai 2024, 09:59, Pavel Andreev ***@***.***> a
écrit :
… We are using Azure Pipelines to build the artifact.
Azure Agent named "windows-latest", according to the documentation doc
<https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml>
it contains windows-2022 and visual studio 2022 (version: 17.9.34728.123).
On localhost I have 17.8...
The full list of installed software on the agent is here
<https://github.com/actions/runner-images/blob/main/images/windows/Windows2022-Readme.md>
.
—
Reply to this email directly, view it on GitHub
<#4224 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACUPL3IEF5FBLBGKGW32OUDZBR44RAVCNFSM6AAAAABHPLGJLKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBUGEZDQNZQHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I have the exact same issue with python |
I did many tests, please note: I built (win-x64) in azure pipeline and deployed to Azure Function / Azure App Service - same result: AccessViolationException. Apparently, the issue is in win-x64 platform binaries. |
my 2 cents: if VS 2022 Preview is shipped with an "advanced" redistributable VS runtime it may explain why azure base image can't load them... I'll try to see If I can use a regular VS 2022 Community install to build (i.e. removed the preview from my Windows VM). |
Version: 9.9.2963 -> 9.104067
Language: C#, .NET 8, AspNet Core latest stable
CP-SAT
Windows (on Azure App Services)
After upgrading from 9.9.* to 9.10.* AspNet Core Web Application Service reboots without any error message or exception. We accidentally upgraded library, considering that minor version upgrade should not affect anything. We were wrong. Downgrade make it work again.
The text was updated successfully, but these errors were encountered: