Minecraft-Console-Client icon indicating copy to clipboard operation
Minecraft-Console-Client copied to clipboard

[BUG]

Open miyatatakeshi opened this issue 3 years ago • 9 comments

Prerequisites

  • [X] I made sure I am running the latest development build
  • [X] I tried to look for similar issues before opening a new one
  • [X] I have set debugmessages=true in config to diagnose my issue
  • [X] I have redacted session tokens and passwords before attaching screenshots

Minecraft Version

1.8.9

Console Client Version

20220909-54

Expected Behavior

I don't know what happened so i can't really expect anything.

Actual Behavior

Error while using client and it close itself.

Steps to Reproduce the bug

  1. Client running smoothly
  2. This error appears after running for a while.
  3. When I click yes clients close itself.

Attach screenshot here (If applicable)

mcc

Anythings that could help diagnosing the bug

No response

Device

Laptop

Operating System

Windows

Server Address (If applicable)

No response

miyatatakeshi avatar Sep 09 '22 14:09 miyatatakeshi

Which .NET version are you running? You need .NET core 6.0

milutinke avatar Sep 09 '22 14:09 milutinke

Is there any error that appears on the console?

breadbyte avatar Sep 09 '22 14:09 breadbyte

Which .NET version are you running? You need .NET core 6.0

I have .NET Core 6.0.7.

Is there any error that appears on the console?

I forgot to look. I am running the client again to get this error again but it is not coming, I will reply when I get it.

miyatatakeshi avatar Sep 09 '22 18:09 miyatatakeshi

This article may be of some help in solving this problem: How to solve unknown software exception 0xe0434352

BruceChenQAQ avatar Sep 10 '22 05:09 BruceChenQAQ

This article may be of some help in solving this problem: How to solve unknown software exception 0xe0434352

These are general troubleshooting steps for a windows machine, and may not help in our situation.

According to MSDN, 0xe0434352 is simply the exception code that is given to windows when there is a CLR exception.

A CLR Exception is a generic .NET Exception, that is why I suggested checking the console for the actual error.

Since this is given to Windows, we may be able to see the exception itself using Event Viewer.

breadbyte avatar Sep 10 '22 06:09 breadbyte

If you are willing to go through the trouble, here is a quick guide to opening the Event Viewer.

Guide

1. Open the Event Viewer from the Start Menu.

Muted-Dobermanpinscher-c14473605404cac5

2. On the left side of the screen, click on Windows Logs, and then Application.

Repentant-Antelope-d10f81b93dda560b

3. On the right hand side of the screen, select Filter Current Log.

Carefree-Dassie-bd961509a9a87de9

4. Fill out the following information in the popup as shown.

Darkgoldenrod-Azurevasesponge-0c1d566a418ef25d

5. You should now be able to see the exception information. Please find the correct time and date when the error happened.

The information that we require should be shown on the box below.

Kaleidoscopic-Peafowl-88f7341007bf88f1

breadbyte avatar Sep 10 '22 06:09 breadbyte

Application: MinecraftClient.exe CoreCLR Version: 6.0.722.32202 .NET Version: 6.0.7 Description: The process was terminated due to an unhandled exception. Exception Info: System.InvalidOperationException: Console Reader thread is already running. at ConsoleInteractive.ConsoleReader.BeginReadThread(CancellationTokenSource cancellationTokenSource) at ConsoleInteractive.ConsoleReader.RequestImmediateInput() at MinecraftClient.Program.<>c__DisplayClass13_0.<HandleFailure>b__0() at System.Threading.Thread.StartCallback()

Event viewer log.

miyatatakeshi avatar Sep 10 '22 08:09 miyatatakeshi

This issue is most likely triggered by reconnecting the client, therefore calling Init twice. I'll be looking into a fix for this issue.

breadbyte avatar Sep 10 '22 10:09 breadbyte

This issue is most likely triggered by reconnecting the client, therefore calling Init twice. I'll be looking into a fix for this issue.

I've experienced it when testing the WebSocket bot on 1.19.2, on 1.18 it never happens. Still haven't figured where the problem is.

milutinke avatar Sep 18 '22 08:09 milutinke

Since I've ported the WebSocket chat bot on to the master with TOML settings, I have not experienced this issue anymore. So I'll consider this as fixed and will close the issue. If you still have it, reopen the issue.

milutinke avatar Oct 22 '22 13:10 milutinke