mojira.dev
MC-95574

Minecraft freezes when windows looses focus

When I switch to another windows and back to Minecraft, it sometimes freezes (Javaw.exe doesn't react) for some time. How long this time is, varies, sometimes it doesn't even catch itself anymore and I have to terminate the process.
Not just 16w02a, but also previous 1.9 snapshot and I think even stable versions had this problem. Also on my laptop where I have the new launcher. On both computers there are JVM arguments to give it more RAM.
In the video I have sped up the part where I do other things in another window. It seems like Minecraft doesn't lag when I only switch away and back very quickly.

Environment

Windows 7, 64 bit, old (or middle-old?) launcher, latest Java

Attachments

Comments 8

doesn't happen to me, even when having focus somewhere else for over 2 hours

after the issue happened, please force a crash by pressing f3+c for 10 secconds and attach that and the sessions log file

I almost forgot... Here is a crash report somewhere in my test world. There's much stuff everywhere, so there's probably much not of use. Will send another log from an empty area.

---- Minecraft Crash Report ----
// My bad.

Time: 15.01.16 17:49
Description: Manually triggered debug crash

java.lang.Throwable
	at bcc.ay(SourceFile:1682)
	at bcc.s(SourceFile:1603)
	at bcc.au(SourceFile:949)
	at bcc.a(SourceFile:390)
	at net.minecraft.client.main.Main.main(SourceFile:122)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
	at bcc.ay(SourceFile:1682)

-- Affected level --
Details:
	Level name: MpServer
	All players: 1 total; [bmp['FaRoGaming'/7, l='MpServer', x=-224,10, y=56,00, z=-153,52]]
	Chunk stats: MultiplayerChunkCache: 289, 289
	Level seed: 0
	Level generator: ID 01 - flat, ver 0. Features enabled: false
	Level generator options: 
	Level spawn location: World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
	Level time: 14936339 game time, 1000 day time
	Level dimension: 0
	Level storage version: 0x00000 - Unknown?
	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
	Forced entities: 29 total; [yc['item.item.leather'/8, l='MpServer', x=-228,13, y=56,00, z=-145,31], vw['Cow'/9, l='MpServer', x=-225,50, y=56,00, z=-147,41], vw['Cow'/10, l='MpServer', x=-231,49, y=56,00, z=-158,91], vw['Cow'/11, l='MpServer', x=-227,84, y=56,00, z=-151,44], vw['Cow'/12, l='MpServer', x=-260,28, y=56,00, z=-147,88], vw['Cow'/13, l='MpServer', x=-242,29, y=56,00, z=-153,68], vw['Cow'/14, l='MpServer', x=-242,06, y=56,00, z=-150,93], vw['Cow'/15, l='MpServer', x=-223,75, y=56,00, z=-165,16], vw['Cow'/16, l='MpServer', x=-227,88, y=56,00, z=-167,25], yc['item.item.beefRaw'/17, l='MpServer', x=-228,50, y=56,00, z=-144,00], vw['Cow'/18, l='MpServer', x=-254,16, y=56,00, z=-120,81], vw['Cow'/19, l='MpServer', x=-230,69, y=56,00, z=-138,19], vw['Cow'/20, l='MpServer', x=-235,19, y=56,00, z=-130,31], vw['Cow'/21, l='MpServer', x=-237,19, y=56,00, z=-126,34], vw['Cow'/22, l='MpServer', x=-225,53, y=56,00, z=-120,50], vw['Cow'/23, l='MpServer', x=-225,63, y=56,00, z=-149,05], vw['Cow'/24, l='MpServer', x=-224,13, y=56,00, z=-151,67], vw['Cow'/25, l='MpServer', x=-216,78, y=56,00, z=-152,59], vw['Cow'/26, l='MpServer', x=-213,84, y=56,00, z=-112,75], vw['Cow'/27, l='MpServer', x=-201,31, y=56,00, z=-157,19], aal['Arrow'/28, l='MpServer', x=-206,75, y=56,00, z=-141,09], aal['Arrow'/29, l='MpServer', x=-195,94, y=56,00, z=-130,59], vw['Cow'/30, l='MpServer', x=-199,84, y=56,00, z=-130,38], bmp['FaRoGaming'/7, l='MpServer', x=-224,10, y=56,00, z=-153,52], yb['Falling Block'/170, l='MpServer', x=-174,50, y=37,83, z=-78,50], yb['Falling Block'/173, l='MpServer', x=-152,25, y=61,61, z=-82,53], yb['Falling Block'/175, l='MpServer', x=-174,50, y=67,64, z=-78,50], yb['Falling Block'/178, l='MpServer', x=-168,91, y=78,65, z=-78,50], yb['Falling Block'/180, l='MpServer', x=-176,50, y=86,15, z=-78,50]]
	Retry entities: 0 total; []
	Server brand: vanilla
	Server type: Integrated singleplayer server
Stacktrace:
	at bkq.a(SourceFile:365)
	at bcc.b(SourceFile:2503)
	at bcc.a(SourceFile:399)
	at net.minecraft.client.main.Main.main(SourceFile:122)

-- System Details --
Details:
	Minecraft Version: 16w02a
	Operating System: Windows 7 (amd64) version 6.1
	Java Version: 1.8.0_66, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 202224056 bytes (192 MB) / 330203136 bytes (314 MB) up to 16763846656 bytes (15987 MB)
	JVM Flags: 7 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -Xmx16000M
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	Launched Version: 16w02a
	LWJGL: 2.9.4
	OpenGL: AMD Radeon R7 200 Series GL version 4.5.13399 Compatibility Profile Context 15.200.1062.0, ATI Technologies Inc.
	GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

	Using VBOs: Yes
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Packs: FaRoPack (incompatible)
	Current Language: English (US)
	Profiler Position: N/A (disabled)
	CPU: 4x AMD FX(tm)-4300 Quad-Core Processor

The promised second test.

---- Minecraft Crash Report ----
// I feel sad now :(

Time: 15.01.16 17:53
Description: Manually triggered debug crash

java.lang.Throwable
	at bcc.ay(SourceFile:1682)
	at bcc.s(SourceFile:1603)
	at bcc.au(SourceFile:949)
	at bcc.a(SourceFile:390)
	at net.minecraft.client.main.Main.main(SourceFile:122)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
	at bcc.ay(SourceFile:1682)

-- Affected level --
Details:
	Level name: MpServer
	All players: 1 total; [bmp['FaRoGaming'/9, l='MpServer', x=19879283,50, y=56,00, z=651,50]]
	Chunk stats: MultiplayerChunkCache: 225, 225
	Level seed: 0
	Level generator: ID 01 - flat, ver 0. Features enabled: false
	Level generator options: 
	Level spawn location: World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
	Level time: 14937180 game time, 1000 day time
	Level dimension: 0
	Level storage version: 0x00000 - Unknown?
	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
	Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
	Forced entities: 2 total; [yc['item.item.leather'/10, l='MpServer', x=-228,13, y=56,00, z=-145,31], bmp['FaRoGaming'/9, l='MpServer', x=19879283,50, y=56,00, z=651,50]]
	Retry entities: 29 total; [yc['item.item.leather'/10, l='MpServer', x=-228,13, y=56,00, z=-145,31], vw['Cow'/11, l='MpServer', x=-231,31, y=56,00, z=-157,19], vw['Cow'/12, l='MpServer', x=-233,19, y=56,00, z=-151,22], vw['Cow'/13, l='MpServer', x=-228,94, y=56,00, z=-142,91], vw['Cow'/14, l='MpServer', x=-260,31, y=56,00, z=-147,84], vw['Cow'/15, l='MpServer', x=-242,03, y=56,00, z=-168,03], vw['Cow'/16, l='MpServer', x=-242,19, y=56,00, z=-154,44], vw['Cow'/17, l='MpServer', x=-237,47, y=56,00, z=-134,72], vw['Cow'/18, l='MpServer', x=-226,19, y=56,00, z=-161,56], vw['Cow'/19, l='MpServer', x=-235,16, y=56,00, z=-160,84], yc['item.item.beefRaw'/20, l='MpServer', x=-228,50, y=56,00, z=-144,00], vw['Cow'/21, l='MpServer', x=-230,69, y=56,00, z=-138,19], vw['Cow'/22, l='MpServer', x=-235,13, y=56,00, z=-118,75], vw['Cow'/23, l='MpServer', x=-231,06, y=56,00, z=-123,59], vw['Cow'/24, l='MpServer', x=-216,84, y=56,00, z=-114,75], vw['Cow'/25, l='MpServer', x=-215,91, y=56,00, z=-152,34], vw['Cow'/26, l='MpServer', x=-221,13, y=56,00, z=-152,25], vw['Cow'/27, l='MpServer', x=-222,53, y=56,00, z=-154,47], yb['Falling Block'/91, l='MpServer', x=-174,50, y=18,56, z=-78,50], vw['Cow'/28, l='MpServer', x=-213,84, y=56,00, z=-112,75], vw['Cow'/29, l='MpServer', x=-202,63, y=56,00, z=-153,88], aal['Arrow'/30, l='MpServer', x=-206,75, y=56,00, z=-141,09], yb['Falling Block'/94, l='MpServer', x=-146,08, y=56,49, z=-82,53], aal['Arrow'/31, l='MpServer', x=-195,94, y=56,00, z=-130,59], vw['Cow'/32, l='MpServer', x=-199,84, y=56,00, z=-130,38], yb['Falling Block'/96, l='MpServer', x=-174,50, y=52,58, z=-78,50], yb['Falling Block'/99, l='MpServer', x=-158,89, y=66,58, z=-78,50], yb['Falling Block'/101, l='MpServer', x=-174,50, y=77,85, z=-78,50], yb['Falling Block'/104, l='MpServer', x=-176,50, y=85,69, z=-78,50]]
	Server brand: vanilla
	Server type: Integrated singleplayer server
Stacktrace:
	at bkq.a(SourceFile:365)
	at bcc.b(SourceFile:2503)
	at bcc.a(SourceFile:399)
	at net.minecraft.client.main.Main.main(SourceFile:122)

-- System Details --
Details:
	Minecraft Version: 16w02a
	Operating System: Windows 7 (amd64) version 6.1
	Java Version: 1.8.0_66, Oracle Corporation
	Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
	Memory: 179699136 bytes (171 MB) / 389091328 bytes (371 MB) up to 16763846656 bytes (15987 MB)
	JVM Flags: 7 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M -Xmx16000M
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	Launched Version: 16w02a
	LWJGL: 2.9.4
	OpenGL: AMD Radeon R7 200 Series GL version 4.5.13399 Compatibility Profile Context 15.200.1062.0, ATI Technologies Inc.
	GL Caps: Using GL 1.3 multitexturing.
Using GL 1.3 texture combiners.
Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported.
Shaders are available because OpenGL 2.1 is supported.
VBOs are available because OpenGL 1.5 is supported.

	Using VBOs: Yes
	Is Modded: Probably not. Jar signature remains and client brand is untouched.
	Type: Client (map_client.txt)
	Resource Packs: FaRoPack (incompatible)
	Current Language: English (US)
	Profiler Position: N/A (disabled)
	CPU: 4x AMD FX(tm)-4300 Quad-Core Processor

After having this issue:

Please attach the complete output of the "Game Output (Your Minecraft name) " which can be found on the fourth tab of the launcher to this ticket.

If the launcher closes after game start, please edit your profile and select "Launcher visibility" then, "Keep the launcher open".

I almost forgot again... I don't use my PC that often, I mostly use my laptop.
I wrote "The bug just happened." in the chat after the bug happened and I pressed "Back to game".

[23:02:23] [Client thread/INFO]: Setting user: FaRoGaming
[23:02:24] [Client thread/INFO]: LWJGL Version: 2.9.4
[23:02:25] [Client thread/INFO]: Reloading ResourceManager: Default, FaRoPack
[23:02:25] [Client thread/WARN]: Missing sound for event: minecraft:entity.snowman.ambient
[23:02:25] [Client thread/WARN]: Missing sound for event: minecraft:item.bottle.fill_dragonbreath
[23:02:26] [Sound Library Loader/INFO]: Starting up SoundSystem...
[23:02:26] [Thread-5/INFO]: Initializing LWJGL OpenAL
[23:02:26] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[23:02:26] [Thread-5/INFO]: OpenAL initialized.
[23:02:26] [Sound Library Loader/INFO]: Sound engine started
[23:02:27] [Client thread/WARN]: Texture minecraft:textures/blocks/quartz_ore.png with size 8x8 limits mip level from 4 to 3
[23:02:27] [Client thread/WARN]: textures: dropping miplevel from 4 to 3, because of minimum power of two: 8
[23:02:27] [Client thread/INFO]: Created: 1024x1024 textures-atlas
[23:02:28] [Client thread/ERROR]: Realms module missing
[23:02:35] [Server thread/INFO]: Starting integrated minecraft server version 16w03a
[23:02:35] [Server thread/INFO]: Generating keypair
[23:02:36] [Server thread/INFO]: Preparing start region for level 0
[23:02:37] [Server thread/INFO]: Changing view distance to 2, from 10
[23:02:37] [Server thread/INFO]: FaRoGaming[local:E:a87cf499] logged in with entity id 5 at (3.8429485123770357, 3.8275448064709066, 7.2564396394870165)
[23:02:37] [Server thread/INFO]: FaRoGaming joined the game
[23:02:37] [Server thread/INFO]: [@: Block placed]
[23:02:38] [Server thread/INFO]: Saving and pausing game...
[23:02:38] [Server thread/INFO]: Saving chunks for level 'Tüftel'/Overworld
[23:02:38] [Server thread/INFO]: Saving chunks for level 'Tüftel'/Nether
[23:02:38] [Server thread/INFO]: Saving chunks for level 'Tüftel'/The End
[23:02:38] [Server thread/INFO]: [@: Block placed]
[23:02:39] [Server thread/INFO]: [@: Block placed]
[23:02:39] [Server thread/INFO]: [@: Block placed]
[23:02:40] [Server thread/INFO]: Saving and pausing game...
[23:02:40] [Server thread/INFO]: Saving chunks for level 'Tüftel'/Overworld
[23:02:40] [Server thread/INFO]: Saving chunks for level 'Tüftel'/Nether
[23:02:40] [Server thread/INFO]: Saving chunks for level 'Tüftel'/The End
[23:03:05] [Server thread/INFO]: <FaRoGaming> The bug just happened.
[23:03:05] [Client thread/INFO]: [CHAT] <FaRoGaming> The bug just happened.
[23:03:06] [Server thread/INFO]: Saving and pausing game...
[23:03:06] [Server thread/INFO]: Saving chunks for level 'Tüftel'/Overworld
[23:03:06] [Server thread/INFO]: Saving chunks for level 'Tüftel'/Nether
[23:03:06] [Server thread/INFO]: Saving chunks for level 'Tüftel'/The End
[23:03:07] [Server thread/INFO]: Stopping server
[23:03:07] [Server thread/INFO]: Saving players
[23:03:07] [Server thread/INFO]: Saving worlds
[23:03:07] [Server thread/INFO]: Saving chunks for level 'Tüftel'/Overworld
[23:03:07] [Client thread/ERROR]: Realms module missing
[23:03:07] [Server thread/INFO]: Saving chunks for level 'Tüftel'/Nether
[23:03:07] [Server thread/INFO]: Saving chunks for level 'Tüftel'/The End
[23:03:07] [Client thread/INFO]: Stopping!
[23:03:07] [Client thread/INFO]: SoundSystem shutting down...
[23:03:07] [Client thread/WARN]: Author: Paul Lamb, www.paulscode.com
[0x7FEF144AAA0] ANOMALY: meaningless REX prefix used
[0x7FEF14348C0] ANOMALY: meaningless REX prefix used
Java HotSpot(TM) 64-Bit Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release

Why did you delete one line of the crash log, @FVbico?

Confirmed fixed for 1.9.4 and 16w21b.

FaRo1

(Unassigned)

Unconfirmed

Minecraft 16w02a

Minecraft 1.9.4

Retrieved