MacOS: Minecraft 1.12.2 with Forge crashes when exiting fullscreen mode
System Information
MultiMC version: 0.6.11-1370
Operating System: macOS 10.15.4
Summary of the issue or suggestion:
Minecraft 1.12.2 crashes with an NSInternalConsistencyException when I exit fullscreen mode by pressing F11. Entering fullscreen mode works fine. I'm using Java version 1.8.0_252.
The exception is:
[00:22:46] [Client thread/INFO] [FML]: Forge Mod Loader has successfully loaded 6 mods
[00:22:46] [Client thread/WARN] [minecraft/GameSettings]: Skipping bad option: lastServer:
2020-06-01 00:22:48.604 java[20783:1025056] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff3086bd07 __exceptionPreprocess + 250
1 libobjc.A.dylib 0x00007fff6958f5bf objc_exception_throw + 48
2 CoreFoundation 0x00007fff3089450c -[NSException raise] + 9
3 AppKit 0x00007fff2da9b24c -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 310
4 AppKit 0x00007fff2dac594e -[NSThemeFrame setStyleMask:] + 137
5 AppKit 0x00007fff2dac579c __25-[NSWindow setStyleMask:]_block_invoke + 1908
6 AppKit 0x00007fff2dac4fce NSPerformVisuallyAtomicChange + 132
7 AppKit 0x00007fff2dac4ed9 -[NSWindow setStyleMask:] + 184
8 liblwjgl.dylib 0x0000000121126cca Java_org_lwjgl_opengl_MacOSXDisplay_nSetResizable + 90
9 ??? 0x000000010b4b5407 0x0 + 4484453383
10 ??? 0x000000010b4a4ffd 0x0 + 4484386813
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Process crashed with exitcode 6.
What should happen:
I should be able to toggle fullscreen mode without the game crashing.
Steps to reproduce the issue (Add more if needed):
-
Launch Minecraft (opens in windowed mode)
-
Press F11 to enter fullscreen mode
-
Press F11 to exit fullscreen mode
-
Minecraft crashes
Logs/Screenshots:
https://paste.ee/p/NQwSu
Additional Info:
The bug also occurs on Minecraft 1.12.2 with only Forge 14.23.5.2854 installed (no mods), but it does not occur on Vanilla 1.12.2.
The same bug does also occur on Minecraft 1.7.10 with Forge.
I was also not able to reproduce this bug on Minecraft 1.15.2, with or without Forge installed.
It looks like it's closely related to https://github.com/dscalzi/HeliosLauncher/issues/70
Does this happen with the vanilla launcher as well?
I am having this same issue on my Mac. When I load the pack, the screen only appears on the bottom left of the screen and it is stuck in full screen. The screen behaves like it is fullscreen, like I can't click on them directly but where they would be if it WAS showing up full screen. When I exit fullscreen, the game crashes.
@Heufneutje I tested it in the vanilla launcher, with Minecraft 1.12.2 and Forge 14.23.5.2854 (no mods), and toggling fullscreen mode works fine, so this must be a MultiMC-specific bug.
It turns out the crash is caused by OpenJDK, and it does not occur on Oracle JDK, so it isn't actually caused by MultiMC.
On latest stable Multimc:0.6.11-1370 on osx64
2020-07-20 14:24:00.094 java[2042:95310] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
0 CoreFoundation 0x00007fff2f8c39a9 __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff59fa6a17 objc_exception_throw + 48
2 CoreFoundation 0x00007fff2f8dd509 -[NSException raise] + 9
3 AppKit 0x00007fff2ce825ca -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 317
4 AppKit 0x00007fff2cf8543f -[NSThemeFrame setStyleMask:] + 137
5 AppKit 0x00007fff2cf85292 __25-[NSWindow setStyleMask:]_block_invoke + 1896
6 AppKit 0x00007fff2ce3a970 NSPerformVisuallyAtomicChange + 132
7 AppKit 0x00007fff2cf84adf -[NSWindow setStyleMask:] + 184
8 liblwjgl.dylib 0x0000000121045cca Java_org_lwjgl_opengl_MacOSXDisplay_nSetResizable + 90
9 ??? 0x000000010fd226c7 0x0 + 4560398023
10 ??? 0x000000010fd122bd 0x0 + 4560331453
)
libc++abi.dylib: terminating with uncaught exception of type NSException
This is with oracle JRE 1.8 macosx64

Basically I can still trigger this crash on attempting to come out of fullscreen on both openjdk and oracle, as of this date and these versions.
From this I suspect that the problem may not be with OpenJDK.
Getting the same problem with Oracle JRE 8.261 on Mac OS X Catalina 10.15.5, running MultiMC 0.6.11-1370, except it only flashes in windowed mode.
Maybe I'll try to compile the JDK and see if it works. (Putting this here for people trying to google their problem)
Use Java 8.241
Just like to add that I'm also experiencing this issue without Optifine installed (although there are other performance related mods that might be doing the same thing). Also @kingbrosidon, when fullscreen does not scale properly, that is a pretty common issue on Mac related to whatever is creating the loading splash screen, and can be disabled in config/splash.properties, so I believe that issue is unrelated.
similar situation but crashed on the first start: Greedycraft Modspack :) may this would hint https://pastebin.ubuntu.com/p/GjXzP2N9XQ/
@ryuujo1573 this specific issue on the tracker is for Mac, but the same fix is required.
PLS USE ORACLE JAVA 1.8.0_291
OLDER VERSIONS HAVE MISSING FEATURES AND NEWER ONES ARE UNSTABLE WITH MODS.
also don't necro old posts.