mojira.dev
MCPE-19393

Clients disconnect when window focus changes on remote host/server (Windows 10)

Edited by @unknown
Verification builds:
1.1.0.9 Retail

Summary:
LAN connected clients will be disconnected when the Windows 10 host switches applications or minimises the game window.

Steps to Reproduce:
Fullscreen Mode:

  1. Hosting a LAN game, press alt+tab to switch to another application

Windowed Mode:

  1. Press T or E

  2. Minimise the active window

Observed Results:
Clients will be disconnected after a short time

Expected Results:
Clients should stay connected, as the game is still active and running.

Screenshots/Videos attached: Yes

Notes:
Original Description:
In versions prior to 1.0 I was able to start a server game on my laptop and have Android tablets connect as clients. I can still do this, but now when I Alt+Tab away from Minecraft on my PC the clients disconnect. We have all upgraded to 1.0.

Connection type: Wi-fi

Linked issues

MCPE-31064 Get kicked out of realm when Alt-Tabbing out of MC Resolved MCPE-184507 minimising the window kicks online players out of my world Resolved MCPE-181015 When I am in the pause menu it ejects my friends from my world. Resolved MCPE-147296 The server is disconnected when the MEE window is minimized Resolved MCPE-146209 Pressing CTRL+TAB as host kicks everyone from the game Resolved

Attachments

Comments 66

I was able to reproduce this issue, but only if I minimised the MCPE (Win10) window.

Sorry, yes that's a good point. I forgot to say that I play it full screen so I'm switching away to another app from full screen mode MCPE (not with Win10 Tablet Mode).

This still happens in 1.2.2.3

This still exists in 1.2.6.2

Still happening in 1.2.9. Can we please have a way to disable auto pausing when the game is minimized? It makes a joke of the better together version when a family are using it at home and the person on Windows 10 needs to go to another window for a sec or whatever.

56 more comments

I found a workaround for this issue. You need to use PLMDebug which is included in Debugging Tools for Windows.

After installing this, run plmdebug /enableDebug _package_ in the console. You need to replace _package_ with game package full name, which can be obtained by running *Get-AppxPackage *MinecraftUWP** in a PowerShell.
If there is no such command as plmdebug, try specifying the full path to it. For me it's "C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\plmdebug.exe".

To automate package full name insertion, replace package with *(Get-AppxPackage *MinecraftUWP* | Select-Object -ExpandProperty PackageFullName)* and run plmdebug under PowerShell.

You need to run command once per Windows user session. After logging out, the debug status is reset.

If you want to disable "anti-suspend", just replace enableDebug with disableDebug.

@unknown, thank you for the information. It is certainly reliable as the items are from Microsoft itself. 👏

This issue continues to affect version 1.19.11 on mobile devices (Minecraft Pocket Edition)

This issue affected me, as I was trying to setup an AFK account on a Bedrock Realm.

In order to have the account active 24/7 I created a Windows VM on a headless home server to run the Minecraft client.

It works as long as I keep a Remote Desktop connection actively connected to the VM, keeping the Minecraft client in focus, but as soon as I disconnect the Remote Desktop session then the Minecraft client also disconnects from the Realm.

My own workaround was to create a second VM on the same server, with Ubuntu Linux, from which I establish the Remote Desktop connection to the Windows VM. I can close any remote connections to Ubuntu because it still keeps the RDP connection to Windows active, therefore keeping the AFK account always connected.

If I'd known about this issue in advance I'd have tried to simply run Minecraft on an Android emulator directly on a Ubuntu VM, but my current setup works.

Can this still be reproduced? If so, can you provide a video and updated reproduction steps

Paul Reilly

(Unassigned)

68678 / 92387 / 224052

Confirmed

Windows

Win 10 v1607

1.19.50.22 Preview, 1.19.50.21 Preview, 1.18.0.22 Beta, 1.17.30.22 Beta, 1.17.11 Hotfix, ..., 1.19.40, 1.20.32 Hotfix, 1.20.80, 1.21.2 Hotfix, 1.21.51 Hotfix

Retrieved