Skip to content
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

CMD, [process exited with code 3762504530 (0xe0434352)] #13736

Closed
kevincrans opened this issue Aug 13, 2022 · 11 comments
Closed

CMD, [process exited with code 3762504530 (0xe0434352)] #13736

kevincrans opened this issue Aug 13, 2022 · 11 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Issue-Question For questions or discussion Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Answered Related to questions that have been answered

Comments

@kevincrans
Copy link

kevincrans commented Aug 13, 2022

Windows Terminal version

1.14.196.3.0

Windows build number

1?.?.22518.1000

Other Software

At least any windowed app with a console in any relevant prompt except the powershell hotfix for this, when restarting for example after the app updated. Look at steps to reproduce for similar software having this issue.

Steps to reproduce

The program I'm using is unofficial, but Similar issues are #4981 and #6287.

Expected Behavior

I expected to application to continue and restart. I also expected terminal to be fixed and not powershell.

Actual Behavior

It showed me my system specifications like supposed, but gave me the following error:
[process exited with code 3762504530 (0xe0434352)]

@kevincrans kevincrans added the Issue-Bug It either shouldn't be doing this or needs an investigation. label Aug 13, 2022
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels Aug 13, 2022
@zadjii-msft
Copy link
Member

I mean, it just kinda sounds like whatever application you're running is returning a non-zero exit code. Refer to:

Why am I seeing [process exited with code ...]?

I'd file an issue upstream with whatever software you're using. If the application should be exiting cleanly, it should be returning 0. The Terminal displays that message by default so that when an application does return an error, you can view its output.

@zadjii-msft zadjii-msft closed this as not planned Won't fix, can't repro, duplicate, stale Aug 15, 2022
@zadjii-msft zadjii-msft added Issue-Question For questions or discussion Resolution-Answered Related to questions that have been answered labels Aug 15, 2022
@Mrgaton
Copy link

Mrgaton commented Aug 22, 2022

i got the same problem tryng to run my c# app 😢

[proceso terminado con el código 3762504530 (0xe0434352)]

@Mrgaton
Copy link

Mrgaton commented Aug 22, 2022

aparently is when i write something in the console.readline()

@DHowett
Copy link
Member

DHowett commented Aug 22, 2022

This error code means that your C# application is crashing with a "COM+" error. Terminal has displayed it so that you know what is going on!

@Mrgaton
Copy link

Mrgaton commented Aug 22, 2022

But only happens when i runned on windows terminal

@kevincrans
Copy link
Author

kevincrans commented Aug 23, 2022

@zadjii-msft < Someone already did, but it's lazy to say all the app makers fix it individually, while it's clearly a terminal issue, like @Mrgaton stated.
Did u even look into the powershell issue?
However, still thanks for giving insight, we could all use some of that.

@zadjii-msft
Copy link
Member

Of course it only happens on the Windows Terminal, conhost (the vintage console) never had any code to handle anything like this. If an app crashed running in conhost, it'd just disappear itself, which doesn't provide any useful information. Providing an error code is certainly useful - best practice has always been to return 0 if your process exits cleanly, and I'd want to know if my app wasn't for whatever reason.

You can always tell the terminal to just ignore this by settings closeOnExit: always.

I haven't looked more into the root of this, because there were no minimal repro steps in the OP 😉

@Mrgaton
Copy link

Mrgaton commented Aug 23, 2022

I only know that's the program crashes on the console.readlline() I tested out

@lamplt
Copy link

lamplt commented Nov 4, 2022

I encountered it while obfuscating the dlls via a post build script. It looks like .exe was invoked before the obfuscation was completed. But the .exe is working well after that. So I just ignored it.

@GitHub-source-42
Copy link

Same Error Code when Lauching Powershell through VS Code or directly from "C:\Program Files\PowerShell\7\pwsh.exe"

PowerShell 7.4.5

An error has occurred that was not properly handled. Additional information is shown below. The PowerShell process will exit.
Unhandled exception. System.Management.Automation.CmdletInvocationException: The type initializer for '' threw an exception.
---> System.TypeInitializationException: The type initializer for '' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'WinRT.Runtime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'. The system cannot find the file specified.
File name: 'WinRT.Runtime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=99ea127f02d97709'
at WinRT.ProjectionInitializer.InitalizeProjection()
at .cctor()
--- End of inner exception stack trace ---
at Microsoft.WinGet.Client.Commands.FindPackageCmdlet.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location ---
at Microsoft.WinGet.CommandNotFound.WinGetCommandNotFoundFeedbackPredictor.WarmUp()
at System.Threading.Tasks.Task.<>c.b__128_1(Object state)
at System.Threading.QueueUserWorkItemCallback.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

@DHowett
Copy link
Member

DHowett commented Oct 10, 2024

You are commenting with a powershell issue on a thread that clearly seems to be about CMD.
Please file your bug on the powershell repository.

@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Issue-Question For questions or discussion Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-Answered Related to questions that have been answered
Projects
None yet
Development

No branches or pull requests

6 participants