mojira.dev
MC-118506

Minecraft crashes after the Mojang screen in OS X (During the initialization of Minecraft)

See my crash reports below. Note that the class ca.weblite.objc.NSObject is not found and relates to Java-Objective C bridge. No wonder why this bug only applies to Mac OS X which use Objective C as its native programming language. I verified it by running Minecraft 1.12 on Windows PC edition and it's all fine. The exception is thrown in the method com.mojang.text2speech.Narrator.getNarrator(Narrator.java:22) in which Narrator text to speech is introduced in Minecraft 1.12. This may have something to do with the library java-objc-bridge-1.0.0.jar which contains a .dylib Library and a META-INF directory.

Linked issues

Attachments

Comments 6

I've already seen MC-115725 that cannot be reproduced and is marked as resolved. My issue is for the released version, not any of the snapshot or pre-releases. I want to bring awareness to the Mojang team that this issue still persists in the latest version. Please tell me if I'm missing any libraries

I want to ask if a bug cannot be reproduced and is resolved, will Mojang never going to fix it?

Same problem with me. Minecraft 1.11.2 works well.

I solved my Problem on my own! This is due to launcher not recognizing and downloading a library file "java-objc-bridge-1.0.0.jar". It is specified in 1.12.json and is only required for Mac OSX.(yet it is not a native library) As found in that file, the download link for it is https://libraries.minecraft.net/ca/weblite/java-objc-bridge/1.0.0/java-objc-bridge-1.0.0.jar The class com.mojang.text2speech.NarratorOSX extends ca.weblite.NSObject in which NSObject.class is in the missing library jar file. Put that jar library into the directory "~/Library/Application Support/minecraft/libraries/ca/weblite/java-objc-bridge/1.0.0" (without quotation mark) on your Mac OS X PC.

i got the same Problem...
Minecraft crashes with the same crash log...

Kaiwen, could you explain what NSObject really is? I searched all files, but didnt found something called NSObject...

You should at least know a bit of java programming language to understand, such as what's an object, a class, what's extend or subclassing. NSObject.class is a class that relates java classes into objective C classes. I don't know much about objective C programming language, but at least I know it's the native language of macOS, and even iOS! The class NarratorOSX is a subclass of NSObject that implements the narrator feature of Minecraft in macOS.

If you don't know that much, you can just follow my fix by using the download link above and put it in the directory I've specified. Tell me if you get any problem.

Kevin He

(Unassigned)

Unconfirmed

Minecraft 1.12

Retrieved