Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.12(.2) crashes on macOS #205

Closed
Proplex opened this issue Sep 20, 2017 · 17 comments
Closed

1.12(.2) crashes on macOS #205

Proplex opened this issue Sep 20, 2017 · 17 comments

Comments

@Proplex
Copy link
Contributor

Proplex commented Sep 20, 2017

Hey there, loving this launcher. Interesting problem with macOS, and it's due to a missing library. I've created an empty 1.12.2 pack for users who which to play basic vanilla and it works great on Windows--but it seems on macOS it's crashing because of a missing library required for the new narration functionality. Through the Mojang client, it works fine.

Here's the client crash summary:

Caused by: java.lang.ClassNotFoundException: ca.weblite.objc.NSObject
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 19 more

Although it works fine through the Mojang launcher (for me), some quick Googling of this issue shows that other people have experienced it: https://bugs.mojang.com/browse/MC-118506

It seems like an edge case since the report is rare and Mojang hasn't addressed it at all.

I notice that the Launcher is fetching the .jar from the enumerated libraries list:

[info] Fetching ca/weblite/java-objc-bridge/1.0.0/java-objc-bridge-1.0.0-natives-osx.jar from [https://libraries.minecraft.net/ca/weblite/java-objc-bridge/1.0.0/java-objc-bridge-1.0.0-natives-osx.jar, http://togame.ipwnage.com/launcher/libraries/ca/weblite/java-objc-bridge/1.0.0/java-objc-bridge-1.0.0-natives-osx.jar]

But it seems like a futile effort since it crashes.

I've tried building the vanilla pack with the java-objc-bridge-1.0.0.jar in ./src/libraries/ca/weblite/java-objc-bridge/1.0.0 but that doesn't seem to help either.

Any ideas? I've hit a wall here.
Here's the full Launcher log (with download output + launch crash): https://ipwnage.com/stuff/vanilla_crash.txt

@Proplex Proplex changed the title 1.12 crashes on macOS 1.12(.2) crashes on macOS Sep 20, 2017
@kozlek
Copy link

kozlek commented Oct 12, 2017

Hey ! I have currently the same problem. I made some tests like adding the library in the folder, then add it in the manifest file, but it keeps failing... I think we have to dig in the code to see where the librairies are downloaded, to add the missing one.

@jwulf
Copy link

jwulf commented Oct 24, 2017

I have the same problem.

I've tried copying java-objc-bridge-1.0.0.jar to .modpacks/staging/launcher/libraries/ca/weblite/java-objc-bridge/1.0.0

Same result - crashes.

@panwolfram
Copy link

panwolfram commented Nov 11, 2017

I've got the same error, with 1.12.1. I can't figure out how to connect this library to my modpack...

@gailingmic
Copy link

gailingmic commented Dec 10, 2017

yes this error still exists...

this seems kinda related:
MinecraftForge/MinecraftForge#3964

especially the post:

Wow...... The native for mac is packaged in the main jar as a compiled dylib file.
That is why I cannot find the jar on any maven repo because it is totally unnecessary. LOL

seems like we have to add a check in installLibraries to filter the Mac native out!

@DaMatrix
Copy link
Contributor

Can confirm, a number of my users are unable to launch because of this.

@jkroepke
Copy link
Contributor

I can't launch it, too. Same error. Maybe it just works on the original launcher.

Maybe a libPath is missing?

@jkroepke
Copy link
Contributor

I resolved this issues by using the fixes from forge and modify the distributed versionManifest from mojang.

See: https://gist.github.com/jkroepke/bea657959a625c50297ceb7797df452c

Maybe this isn't straight forward, but it just works.

@panwolfram
Copy link

@jkroepke Could you please tell me how to apply this fix to creator-tools?

@jkroepke
Copy link
Contributor

jkroepke commented Jan 4, 2018

Do have not any knowledge about Java coding. Sorry.

@DaMatrix
Copy link
Contributor

DaMatrix commented Jan 4, 2018

image

download the file as version.json and put it next to your modpack's src folder

@panwolfram
Copy link

panwolfram commented Jan 4, 2018 via email

@gailingmic
Copy link

Awesome to hear that its the error i pointed to! Maybe someone can fix it in java now :-) the forge commit should explain it good enough (would do it myself but im only good in c++)

@panwolfram
Copy link

Could anyone fix it?

@sk89q
Copy link
Member

sk89q commented Jul 15, 2018

Is still an issue I should look into?

@sk89q sk89q closed this as completed Jul 15, 2018
@panwolfram
Copy link

Yes, it's still an issue. I can't launch literally any modpack because of it.

@gailingmic
Copy link

gailingmic commented Jul 15, 2018

Yes its still an issue! The forge guys had the exact same error too and managed to fix it! All you have to do is to not search for the mac natives as theyre packaged with the game already.

My post above links the forge issue wich explains it better

@jkroepke
Copy link
Contributor

See #205 (comment) for the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants