❔ Published App fails to start and exits with code -1073740286

Having a bad time trying to figure out why this is happening, I had built logging into my app too but that seems to not be kicking in for some odd reason, I'm thinking something in the runtime might be having issues before it's calling into my code.
21 Replies
Gamma_Draconis
Gamma_DraconisOP2y ago
Oh, and this is trying to run with .NET 7, and I have not tried running with earlier versions.
phaseshift
phaseshift2y ago
How are you running this?
Gamma_Draconis
Gamma_DraconisOP2y ago
Either through file explorer or in the command line, which both exit without giving rime or reason. I used a separate process (using the Process BCL Api) to start and then read the exit code when it crashes.
phaseshift
phaseshift2y ago
Can you try with dotnet run Or with windbg
Gamma_Draconis
Gamma_DraconisOP2y ago
It runs fine in VS, starts up with logging and everything. This is the published app that's having issues.
phaseshift
phaseshift2y ago
Hmm It sounds like missing/unfindable library
Gamma_Draconis
Gamma_DraconisOP2y ago
Does it not bother to report that to the console or something?
phaseshift
phaseshift2y ago
Console, no. From explorer it would normally tell you
Gamma_Draconis
Gamma_DraconisOP2y ago
Which it does not.
phaseshift
phaseshift2y ago
Suggest launching from windbg
Gamma_Draconis
Gamma_DraconisOP2y ago
Using VS to open the folder, setup a debug configuration for the app, started to debug it, and it has this to say:
'The process aborted due to a fail fast exception.'
phaseshift
phaseshift2y ago
No clue. You could try grep.app to try and find any use of FailFast in bcl for clues That should be triggering WER and a dump? Error message should also be in the event log according to docs
Gamma_Draconis
Gamma_DraconisOP2y ago
What's funny is that it ran "fine" when compiled as a single file, but that has it's own issues with the app's function at present. The event viewer logs don't give any great insight into the problem, only that the issue is from coreclr.dll
Jayy
Jayy2y ago
What's the 0x fail code?
Tvde1
Tvde12y ago
Does the event viewer tell you anything?
Tvde1
Tvde12y ago
IIRC FailFast logs to there
Gamma_Draconis
Gamma_DraconisOP2y ago
Nothing useful. A few attempts at a clean rebuild later, and it finally starts normally but I'm none the wiser for why this happened...
Jayy
Jayy2y ago
hit it with procmon show the screenshots
Gamma_Draconis
Gamma_DraconisOP2y ago
Now that I've gotten rid of it, I don't know if I can repro...
Jayy
Jayy2y ago
mood
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server