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
Trying to load DiscordRPC native library even if module is disabled - causing MC to crash #187
Comments
This is one of those bugs that exists just because we didn't test it on freebsd yet, ill see what I can to get it fixed. Alot of us run linux so I know how it feels to have just random shit not be supported for basically no reason. |
Thank you very much. As I mentioned, if you need any assistance it testing, I'm more than happy to help where I can. |
Just to add. Renaming the |
Sadly, discord rpc library is currently not supported for freebsd. Maybe this issue will be solved in future. |
I honestly don't care about the DiscordRPC module (I don't need it), but if Lambda could be modified so it doesn't try and load anything Discord related, when the module is disabled, that should fix the issue. At the moment it tries to initialize the discord library, even though the DiscordRPC module is disabled - which doesn't seem right. |
Can you send the full logs/latest.log file with https://paste.ee? |
Sure, here is the link: https://paste.ee/p/mycnW |
I don't know how freebsd works but you can try installing JNA through the package manager (make sure the jar containing the native is in the game's classpath), if that doesn't work maybe you can try adding this manually https://github.com/java-native-access/jna/blob/master/lib/native/freebsd-x86-64.jar It's not an ideal solution, and i'll see if i can get it to at least not crash on launch later, but this could be a fix to be able to use rpc |
I'm not sure how i missed that, but my changes to discord rpc happened after the latest release, can you test if the latest commit with no modifications works even without my previous comment? If it doesn't i will set up lazy native initialization so that people who don't want to separately install JNA can still use lambda (though without rpc) |
I build and ran the latest |
Please try this version, if it works i will make a PR https://github.com/NepNep21/lambda/tree/lazy-rpc |
Sorry if i'm being annoying but it has been a while, have you tested it yet? does it work? |
Apologies for the delay, I've been away on work for a while. I've just tested the Screenshot of the "graceful showing an error": So yeah, this seems to work perfectly under FreeBSD now. Thank you. |
Describe the bug
I was trying to use the latest official Lambda release v2.07.01 on my FreeBSD system but it simply crashes MC. As Minecraft with Forge runs fine on my system. I tried Impact, ForgeHax and the Seppuku mods and they work just fine. Seems Lambda is trying to load a native library for Discord integration, even though I have the module disabled. This doesn't seem right.
To Reproduce
Expected behaviour
I double checked in the
default.json
file, and I have the DiscordRPC disabled, but it seems Lambda is still trying to load some or other discord library regardless ofenabled: false
setting.Debug info
Additional context / media
Let me know if there is anything else you need or debug builds I can test. I don't mind.
The text was updated successfully, but these errors were encountered: