Windows 10: Terminal exiting with code 4294967295 every time

Discus and support Terminal exiting with code 4294967295 every time in Windows 10 Gaming to solve the problem; I have been struggling with this problem very recently. The terminal will give me the regular prompt, at which point I can quickly type something in... Discussion in 'Windows 10 Gaming' started by EBFoster, Jun 3, 2022.

  1. EBFoster Win User

    Terminal exiting with code 4294967295 every time


    I have been struggling with this problem very recently. The terminal will give me the regular prompt, at which point I can quickly type something in and maybe get it to run, but then in about 5 seconds I get the "[process exited with code 4294967295 0xffffffff]" message. When and WhereThis problem occurs in any terminal I open, be it Command Prompt, the Terminal app, or Visual Studio Code. What I've TriedI have tried disabling and shutting down WSL2 because that was recommended, but it changed nothing. I have no clue how to fix it, and since I haven't found anything else online that seems to

    :)
     
    EBFoster, Jun 3, 2022
    #1

  2. Is there a way to continue giving input after terminating process with Ctrl + C and getting exit code?

    I'm using Powershell from Windows Terminal. When I run some CMD process (such as serving file on local server) and quiet with Ctrl + C, It outputs Process exited with code ****** and stops taking input after that. So I have to open new terminal tab, CD into
    working directory and cont. every time. Is there a way to continue giving input after terminating process with Ctrl + C and getting exit code?

     
    DnyanDeepTaur, Jun 3, 2022
    #2
  3. Brink Win User
    Windows Terminal Release Candidate v0.11.1333.0 (1.0rc2) to Windows 10

    Source: https://github.com/microsoft/termina...g/v0.11.1333.0
     
    Brink, Jun 3, 2022
    #3
  4. nietras Win User

    Terminal exiting with code 4294967295 every time

    Silent Process Exit: process '?' was terminated by the process 'C:\Windows\System32\svchost.exe' with termination code 1067

    We have a serious issue with a C# application being terminated silently at random and infrequent points in time on a Windows 10 32-bit installation.
    E.g. it might be a month between occurrences. Or sometimes just a day.

    Basic system specifications:

    Using Configuring Silent Process Exit Monitoring - Windows drivers we have configured silent process exit monitoring. And we finally have a few samples of this:

    Looking at the dumps for this, which was setup for the monitoring we got a process ID for the svchost. This service was still running at the system, and it shows the following list of services:


    Terminal exiting with code 4294967295 every time mGed2.png


    Which seems to be a list of "netsvcs" for Windows. Opening the dump from the svchost.exe and looking at this a single thread was found with an interesting call stack:

    UBPM is the Unified Background Process Manager. But how can this be terminating our application? And why? And what does the termination code 1067tell us?

    Below is the log entry from Silent Process Monitoring:

    NOTES: The PC is not being shut down at the moment the app terminates nor are there any other indications in event logs as to why the process was terminated.

    UPDATE 1: Here a few extra details (trying to answer as many as in comments):

    • Process is (sometimes) started via TaskScheduler when Windows is started yes. Other times by user. Not entirely sure problem only occurs when started via TaskScheduler. But interesting point? Could windows kill a task for some reason? Note that times between process exiting can be up to a month.
    • We have the source for the main program, but would have problems running it inside a debugger since this is running at a customer, but maybe. We can't run it compiled for Debug though. Not at all, due to performance. This is live production.
    • Application is a normal WPF application without any child processes or any other inter-process communication. It does use a few third party devices e.g. libraries and drivers.
    • We have setup event handling of appdomain exceptions and application exceptions etc. None of these occur. The process exits without any indication of an exception occurring. It is a hard process exit.
    • We have suspected perhaps a third party driver being the source, but how? And how could we determine whether this was the case?

    UPDATE 2: We use the nuget package TaskScheduler to setup the task via code. Note we do not set the ExecutionTimeLimit, which should therefore be Nothing and hence infinite.

    UPDATE 3: Perhaps the above statement was wrong, the default in the TaskScheduler library seems to be 3 days or 72 hours.

    UPDATE 4: Only thing is we observe silent process exits after the process has been running for much longer than 3 days, e.g. 30 days so not sure it is this after all.

    UPDATE 5: The longer than 3 days was not correctly observed, so after everything it is now clear this was due to incorrect settings for the task scheduler task. The wrong settings shown below:


    Terminal exiting with code 4294967295 every time 5tqwS.png


    Correct settings being:


    Terminal exiting with code 4294967295 every time e9PF8.png
     
    nietras, Jun 3, 2022
    #4
Thema:

Terminal exiting with code 4294967295 every time

Loading...
  1. Terminal exiting with code 4294967295 every time - Similar Threads - Terminal exiting code

  2. WSL2 Failing to start. Error: [process exited with code 4294967295 0xffffffff]

    in Windows 10 Gaming
    WSL2 Failing to start. Error: [process exited with code 4294967295 0xffffffff]: This started after I fully changed my local username, including the user path, so I think that is the issue. But I do not know how to remedy it....
  3. WSL2 Failing to start. Error: [process exited with code 4294967295 0xffffffff]

    in Windows 10 Software and Apps
    WSL2 Failing to start. Error: [process exited with code 4294967295 0xffffffff]: This started after I fully changed my local username, including the user path, so I think that is the issue. But I do not know how to remedy it....
  4. W10 erreur Terminal exiting with code 4294967295 écran bleu

    in Windows 10 Gaming
    W10 erreur Terminal exiting with code 4294967295 écran bleu: BJ, W10, j'ai 1 problème lié à l erreur Terminal exiting with code 4294967295 every time écran bleu et j ai suivi la 1ere instruction de https://answers.microsoft.com/en-us/windows/forum/all/terminal-exiting-with-code-4294967295-every-time/920b405b-38df-435b-bd31-550ce29f31c8...
  5. W10 erreur Terminal exiting with code 4294967295 écran bleu

    in Windows 10 Software and Apps
    W10 erreur Terminal exiting with code 4294967295 écran bleu: BJ, W10, j'ai 1 problème lié à l erreur Terminal exiting with code 4294967295 every time écran bleu et j ai suivi la 1ere instruction de https://answers.microsoft.com/en-us/windows/forum/all/terminal-exiting-with-code-4294967295-every-time/920b405b-38df-435b-bd31-550ce29f31c8...
  6. W10 erreur Terminal exiting with code 4294967295 écran bleu

    in Windows 10 Installation and Upgrade
    W10 erreur Terminal exiting with code 4294967295 écran bleu: BJ, W10, j'ai 1 problème lié à l erreur Terminal exiting with code 4294967295 every time écran bleu et j ai suivi la 1ere instruction de https://answers.microsoft.com/en-us/windows/forum/all/terminal-exiting-with-code-4294967295-every-time/920b405b-38df-435b-bd31-550ce29f31c8...
  7. Terminal exiting with code 4294967295

    in Windows 10 Gaming
    Terminal exiting with code 4294967295: I have tried everything but my cmd is not fixing how can I fix it it is showing Terminal exiting with code 4294967295 After some time how can I fix this issue my vs code is also not working via this issue the code exit by cmd same issue with power shell the code exit with...
  8. Terminal exiting with code 4294967295

    in Windows 10 Software and Apps
    Terminal exiting with code 4294967295: I have tried everything but my cmd is not fixing how can I fix it it is showing Terminal exiting with code 4294967295 After some time how can I fix this issue my vs code is also not working via this issue the code exit by cmd same issue with power shell the code exit with...
  9. Terminal exiting with code 4294967295 every time

    in Windows 10 Software and Apps
    Terminal exiting with code 4294967295 every time: I have been struggling with this problem very recently. The terminal will give me the regular prompt, at which point I can quickly type something in and maybe get it to run, but then in about 5 seconds I get the "[process exited with code 4294967295 0xffffffff]" message. When...
  10. WSL process exited with code 4294967295 in Windows 11

    in Windows 10 News
    WSL process exited with code 4294967295 in Windows 11: [ATTACH]Are you frustrated with the error code 4294967295 displayed in Windows 11? It mainly occurs when the users are trying to start the Windows Subsystem for Linux. While installation of WSL is easy and hassle-free and can be done with a single command, problems can still...