The bug
After being kicked from the game in singleplayer, when clicking "Back to title screen", the multiplayer menu is shown, but it's supposed to be either the title screen or the single player menu.
How to reproduce
Run /kick @s
in a creative single player world.
→ ❌ You will be back to the multiplayer screen.
Related issues
is duplicated by
relates to
Attachments
Comments


Please attach the complete output of the "Development console" which can be found on the second tab of the launcher.
If the launcher closes after game start, please edit your profile and select "Launcher visibility" then, "Keep the launcher open".

The console outputs nothing concerning the problem. It's only a bad GUI redirection.
[10:24:47 INFO]: Client> [10:24:47] [Server thread/INFO]: Fredb555 lost connection: TextComponent{text='Illegal position', siblings=[], style=Style{hasParent=false, color=null, bold=null, italic=null, underlined=null, obfuscated=null, clickEvent=null, hoverEvent=null, insertion=null}}
I'm being kicked from solo, the screen with the message "Connection Lost" pops up with reason "Illegal Position". When I press "Back to title screen", it brings me to the Multiplayer server selection menu.
To reproduce it quickly, go in a Singleplayer world (a new one preferably), and do the command /tp ~30000000 ~ ~ two times. You will be kicked and you will understand the problem when clicking the button.

It also happends in 14w05a, when you enter spectator mode, you exit "inside" an entity (watching its POV) and you hit the entity outside of spectator mode, it outputs "Attempting to atack an invalid entity" (As in MC-46411 )

Also affects 14w08a. I wanted to test this issue: MC-34074 but I discovered that one instead.
How to reproduce:
Create a superflat world (if you create a normal one and you go into the void, you will crash)
Use this command "/tp 29999999 ~ ~" to teleport yourself at the end of the map.
Go into the void (note that there is no invisible wall)
You are kicked off the game and you receive this message: Illegal Position
Click the button, you will return to the multiplayer menu

Still a concern in 14w10x

Confirmed for 14w18b

Confirmed for 1.7.5 and 14w18b

Confirmed for 14w19a.

Confirmed in 14w25b. As in duplicate report MC-58265.

Confirmed for
14w30c
14w31a
Minecraft 1.8-pre 1 now the game crashes

Is there any way to trigger this on 1.8.1 Pre3 or later?

As of 1.8.1-pre3, I can't seem to reproduce it on a superflat world. If I try to teleport to 30 million, it gives off this error message:
The number you have entered (3.00000005E7) is too big, it must be at most 30000000
Teleporting to a number below 30 million works like a charm with no sudden kick.

Use a relative teleport and do it multiple times until you cross the border. You've never been able to absolute teleport beyond the border.

I crossed the border, and got no error message or kick.

Well, yes, confirmed for 1.8.1 pre3.
Thanks.

Very likely duplicated by MC-80613

Confirmed for 15w38a

Can't reproduce.
Reproduction steps anyone? Or is it fixed?

You need to find a kick trigger, which is getting increasingly difficult.

@unknown, can you share what singleplayer kick you used to confirm this?

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time.

I was unable to test it because of MC-92255

Looks like MC-92255 is not always blocking this bug. Maybe depends on the used computer and how many threads it can run at the same time?

I am reliably getting this using /stop in single player with 18w11a.

Confirmed for 18w19a and 18w19b.
Update description because of the fix of MC-121636
Steps to Reproduce:
Enter a singleplayer world
Use
/kick @a

Confirmed for 1.13.1.

Confirmed for 1.14.2. Right now, they all use the same kick instance, could be fixed by adding check for if in singleplayer world and return to the singleplayer world menu instead.

Confirmed in 1.16 Pre-release 2.

Confirmed in 1.16-pre3.

Confirmed in 1.16-pre4.

Confirmed in 1.16-pre5.

Confirmed in 1.16-pre7.

Confirmed in 20w30a

Confirmed in 21w03a

Utilizing this method of accessing the multiplayer menu also allows you to skip the "Caution: Third-Party Online Play" message
Can confirm in 21w07a.
Video attached.

Added a screenshot of what I see when kicked in singleplayer.
Also, confirmed in 21w14a.
Can confirm in 1.17.

Can confirm in 1.17.1 Pre-release 1.
This also allows you to see the multiplayer menu even if you've disabled it in Xbox Safety Settings (MC-230656). You cannot actually join a server though.
Can confirm in 1.17.1.

Can confirm in 21w40a.

Can confirm in 21w44a.

Can confirm in 22w03a
Can confirm in 1.18.2 and 22w11a.
Can confirm in 1.19.
Can confirm in 1.19.2.

happened to a friend of mine in 1.19
protip: do NOT dupe a world in file explorer and expect it to fix the glitch, that will end up in the duped world disappearing from the saves folder, at least from my experience

Can confirm in 23w14a.

Can confirm in 1.20.1

Can confirm in 23w42a

Confirmed in 1.20.2

Update: I canno't longer reproduce in 23w43a. Showing the "Cannot kick server owner in LAN game".

Running /kick @s
in 1.21 Pre-Release 4 gives me this message:

Cannot reproduce in 1.21 release.

Seems to have been resolved a few snapshots ago. Kicking in LAN also does not work.
[media]
As the method in the description no longer works, the reproduction steps should be updated so that it can be reproduced for future versions. 🙂