공부

[MAC] ERROR : NSInternalInconsistencyException

Chelsey 2023. 3. 13. 22:19
728x90

마인크래프트 런쳐를 실행하는데 문제가 생겼다.

 

에러 내용을 가지고 아무리 구글링해봐도 모두가 하나같이 누군가 해결했다면 알려달라는 내용 뿐이었다. 

 

[Minecraft] 2023-03-13 20:16:41.308 java[1668:46411] *** 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                      0x00007ff804f3f3eb __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007ff804a8be25 objc_exception_throw + 48
	2   CoreFoundation                      0x00007ff804f67596 _CFBundleGetValueForInfoKey + 0
	3   AppKit                              0x00007ff80803c1c7 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 307
	4   AppKit                              0x00007ff808061dd7 -[NSThemeFrame setStyleMask:] + 162
	5   AppKit                              0x00007ff808061be5 __25-[NSWindow setStyleMask:]_block_invoke + 2091
	6   AppKit                              0x00007ff808061362 NSPerformVisuallyAtomicChange + 132
	7   AppKit                              0x00007ff808061248 -[NSWindow setStyleMask:] + 172
	8   liblwjgl.dylib                      0x0000000126df0ee2 Java_org_lwjgl_opengl_MacOSXDisplay_nSetResizable + 82
	9   ???                                 0x0000000109bf1747 0x0 + 4458485575
	10  ???                                 0x0000000109be133d 0x0 + 4458419005
)

 

찾아보니 mac은 main을 통해서만 thread가 가능하다나?

아무튼 몇 가지 해결책을 찾았는데

 

1. 노트북을 껐다가 다시 켠다

2. minecraft 최신 버전으로 업데이트

3. 창모드로 시도한 경우 전체 화면 모드에서 실행해본다. 전체 화면 모드였다면 창모드로 실행해본다.

4. 다른 애플리케이션과의 충돌인지 확인한다.

 

1,2,4번을 시도했지만 계속해서 같은 에러가 났고

3번의 경우 전체 화면 모드로 시도해도 되질않아서 여기저기 뒤지던 와중에...

 

/Library/Application Support/Launcher/config.json

 

config.json 파일에서 

 

{
    "settings": {
        "game": {
            "resWidth": 1280,
            "resHeight": 720,
            "fullscreen": false,
            "autoConnect": true,
            "launchDetached": true
        },

 

fullscreen이 false로 지정된걸 발견했다.

 

이걸 true로 변경하고 

 

{
    "settings": {
        "game": {
            "resWidth": 1280,
            "resHeight": 720,
            "fullscreen": true,
            "autoConnect": true,
            "launchDetached": true
        },

 

실행하는 순간 ... 전체화면으로 화면이 전환되면서 로딩이 진행되고 ... 게임이 켜졌다

맥으로 할 수 없나 좌절하던 차에 ... 이렇게 에러를 해결할 수 있었다 ... !!!!!!!!!!!!!!!!!!!

728x90