AutoModpack icon indicating copy to clipboard operation
AutoModpack copied to clipboard

Client startup crash when using certain combinations of local and modpack mods

Open n-zer opened this issue 1 year ago • 7 comments

Bug description

Certain combinations of mods in the server modpack and the client's local mods folder may cause the client to crash on startup.

One such combination is PassthroughSigns (and dependencies) in the server's modpack, and Charmonium (and dependencies) in the client's local mods folder.

There is no crash when both mods are in the server's modpack or when both mods are in the client's mods folder. I suspect the crash has to do with the mods sharing a dependency (Fabric API) and the way AutoModpack handles duplicate mods in the modpack and the local mods folder.

Steps to reproduce

  1. Create a fresh server instance.
  2. Add AutoModpack, PassthroughSigns, Forge Config API Port, and Fabric API to the server's modpack folder
  3. Start the server
  4. Create a fresh client instance with Fabric 0.16.0
  5. Add AutoModpack, Charmonium, and Fabric API to the client's mods folder
  6. Start the client and connect to the server

Expected behavior

After downloading the server's modpack and restarting, the client works as expected

Actual behavior

After downloading the server's modpack and attempting to restart, the client will crash on startup.

Note that the client will continue to crash on startup if AutoModpack is removed; Fabric API must be redownloaded to resolve the crashing.

Relevant logs

https://mclo.gs/RsUNJ7v

Minecraft & Mod Loader versions

1.21 fabric 0.16.0

Minecraft launcher

No response

Operating system

Windows 10

AutoModpack version

4.0.0-beta11

Other information

No response

Check list

  • [X] I have verified that the issue persists in the latest version of the mod.
  • [X] I have searched the existing issues and confirmed that this is not a duplicate.

n-zer avatar Jul 24 '24 20:07 n-zer

Hey, could you try with fabric loader 0.15.11?

Skidamek avatar Jul 24 '24 20:07 Skidamek

Sorry for the late reply, I've been kind of busy the last few days. But yeah, I can try with 0.15.11 tomorrow and see what happens

n-zer avatar Jul 29 '24 07:07 n-zer

After a little digging i see that its because Charmonium provides outdated night-config packages specifically version 3.6.6 but forgeconfigapiport depends on the same night-config packages but with version 3.8.0 and because Charmonium is in default mods dir, older packages are loaded first, and then for some reason they are not getting replaced by the new ones. (automodpack should somehow handle that)

So when PassthroughSigns is getting initialized it calls forgeconfigapiport which then calls methods from night-config which doesn't even exist yet in the older version which causes game to crash. For the time being easiest solution is to recompile Charmonium for it to provide newer version of night-config to fix the crash. I've created pull request to do that and also since it has MIT license I've uploaded compiled one to my proton drive

Skidamek avatar Aug 12 '24 11:08 Skidamek

This is also an issue on Forge 1.20.1

SirOaken avatar Aug 21 '24 06:08 SirOaken

Hello, so for the last few days, i got an issue, that looks like that has been a recurring problem "how automodpack loads certain mods", i have a server where ive been tweaking with several mods, like a lot, but in the last batch i installed the sinytra connector mod crashes, i first thought it was the connector bug, and i went to their github but couldn't find a fix, so i made two instances of the client side, one with the automodpack and one without it, well without the automodpack the game ran smoothly, but with the automodpack same error "Connector Error no existing paths: [ Forge 1.20.1.jar]", using forge 47.3.0, minecraft 1.20.1 and automodpack AutoModpack 4.0.0-beta14 forge, it the worst cases the mods working sinytra are merely client side and visual enhancements, i think (i haven't tested it) i saw that you can disable automodpack on client so you can join the server (obviously having the same matching mods) but only on fabric?, thats the only way i can think to at least fix this kinda bug, i ve read that is kinda more complicated on forge for the way it is coded

DuskCrow19 avatar Aug 26 '24 17:08 DuskCrow19

Huh connector error? That's seems different, could you @DuskCrow19 create a new issue and provide a log please?

i saw that you can disable automodpack on client so you can join the server (obviously having the same matching mods) but only on fabric?

Sorry that's completely wrong, thanks for bringing it to my attention, updated wiki, it should work perfectly fine also on forge.

Skidamek avatar Aug 26 '24 18:08 Skidamek

hello, i have the same issues, when i put my mods on the mods folder as a client, the launcher crashed

im using the latest beta version 1.21.1 for fabric

image

v0xtcode avatar Sep 04 '24 09:09 v0xtcode

Has there been any progress regarding this? I presume there isn't a way to have multiple versions of a dep loaded for a mod so they don't fail on load.

Eclipse-Sol avatar Oct 07 '24 14:10 Eclipse-Sol

@Mentalgen No, i will work on this when i get some more free time.

What it requires to work is to add more logic to my mod de-duplication code right now it only checks if there's mod which has the same mod id in the modpack and if so, we remove it from default mods, accounting to not remove client side deps.

It should check if modpack mods are dependent on any mod in the default mods folder and if so, then check if the that dependency version is lower than required/provided by modpack mod. if so then force move that modpack mod to the default mods folder (and add that mod to the ) or extract just that dependency.

Everyone is welcome to make pull request with that changes to speed up fixing it!

Skidamek avatar Oct 07 '24 15:10 Skidamek

Hey @Skidamek had now the same Issue on Farmers Delight and Aether. with Automodpack it crash, without Automodpack, it does not Crash the client anymore.

you could look on the issues here https://github.com/MehVahdJukaar/FarmersDelightRefabricated/issues/107 https://github.com/The-Aether-Team/The-Aether/issues/2379

suerion avatar Nov 16 '24 10:11 suerion

@suerion please try this build now it should not crash but if you encounter a boot loop (which is very possible) please send your client log and your automodpack-content.json file.

Skidamek avatar Nov 16 '24 11:11 Skidamek

@Skidamek hope i could help, i'm using 1.21.1 Fabric on 0.16.9

Farmers Delight and Aether are installed

suerion avatar Nov 16 '24 12:11 suerion

Okay, forgot to account for built-in loader mods like mixinextras. Try that one

Skidamek avatar Nov 16 '24 13:11 Skidamek

Okey, i had looked again on the Files, Log file does not include exceptions, that the client gives, but the client started not anymore yet

latest.log

Here the Client Logger: image image image

suerion avatar Nov 16 '24 14:11 suerion

Tried to start e few times, latest.log

suerion avatar Nov 16 '24 14:11 suerion

Tested, to delete automodpack-content.json and regenerate it with server new.

Deleted all Cached files on Client: (Clean Client)

Latest (automodpack-content.json should not up to date but is on latest? latest.log

Now i delete also the whole Modpack in the Modpacks folder logs will come after testing

suerion avatar Nov 16 '24 14:11 suerion

I think yet are the librarys or fabric api not moved any more and a lot of mods moved without needed...

2024-11-16-1.log latest.log

suerion avatar Nov 16 '24 15:11 suerion

Generated from Server: automodpack-content.json On Client Side: automodpack-content.json

suerion avatar Nov 16 '24 15:11 suerion

woah i dont need that deep testing, log is enough thanks. if you willing to spend more time testing next build is for you lol

Skidamek avatar Nov 16 '24 15:11 Skidamek

Trying allways, deep test :) if something could also fix ;)

suerion avatar Nov 16 '24 15:11 suerion

Had again the issue, that Minecraft loaded in Vanilla Minecraft after issue with File movement on first start latest.log

image image image

second Start -> again start in Vanilla Minecraft latest.log image image

Cleared Cache and all and it is again the same issue

suerion avatar Nov 16 '24 15:11 suerion

But, it has loaded only the disabled files ;) the file movement is right now

suerion avatar Nov 16 '24 15:11 suerion

The issue with the crash from automodpack is fixed again, but, now it crash again on Mixin Inject latest.log

suerion avatar Nov 16 '24 21:11 suerion

Should be fixed at least on fabric right now. If anyone wants to test go ahead

edit: it was not fixed...

Skidamek avatar Nov 22 '24 16:11 Skidamek

Is there a release with a fix for this available?

Kamaad1 avatar Nov 22 '24 20:11 Kamaad1

@Kamaad1 we are working and debuging right now on the fixes, and there will be an release, if it does work

suerion avatar Nov 22 '24 20:11 suerion

@Kamaad1 dev build 99% fixes the issue, would be awesome to also get your feedback you can download build from there. We with @suerion tested and it seem to work pretty well now (if you are on fabric - but forge feedback would be also welcome). If everything goes well beta 19 with the fix is expected to be released tomorrow.

Skidamek avatar Nov 22 '24 23:11 Skidamek

Fixed in beta 19. If someone is still encounters this on neo/forge please open new issue.

Skidamek avatar Nov 23 '24 11:11 Skidamek