xivdev / Penumbra

FINAL FANTASY XIV modding, but actually good this time
674 stars 123 forks source link

[Crash to Desktop] At title screen #290

Open Rueby opened 1 year ago

Rueby commented 1 year ago

This is a recent issue that started happening, my game would start up, go through the logo animation- freeze then crash to desktop with Penumbra enabled. On RARE occasions it goes through the logo loading animation and starts up. Leading me to think something is failing to load.

Things I tried :

This is part of the dalamud.boot.log after I updated everything.

[21:18:39 CPP/INF] [global_import_hook] "C:\Users\user\AppData\Roaming\XIVLauncher\runtime\shared\Microsoft.NETCore.App\7.0.0\System.Reflection.Emit.dll" ("System.Reflection.Emit" ver file=7.0.22.51805 prod=7.0.0.0) has been loaded at 0x28A32690000 ~ 0x28A32698000 (0x8000); finding import table items to hook. Fatal error. Invalid Program: attempted to call a UnmanagedCallersOnly method from managed code. Fatal error while logging another fatal error. Fatal error while logging another fatal error.

Things I figured out: I seem to be able to get around this by disabling Penumbra before I log out. Start the game, log in. Enable Penumbra. I've spent a few hours now with Penumbra enabled without any crash whatsoever. The only issue I seem to be having is when starting the game. I've never had this problem before I updated penumbra.

Of course this is a really annoying work around so I'm hoping for help here...

Ottermandias commented 1 year ago

That's probably caused by Chat2, but only with Penumbra enabled, according to other reports. Try disabling Chat2 if you have it?

Rueby commented 1 year ago

I do not have chat2 installed or enabled. I also saw on the discord that Just Backup might be causing issues but I don't have it installed or enabled either.

Rueby commented 1 year ago

I've yet to try launching penumbra on its own. If it's a plugin that's conflicting with penumbra how do I go about finding it without losing all my plugin config/settings? It puzzles me why it sometimes goes through but mostly crashes.

Ottermandias commented 1 year ago

Disabling plugins does not delete their settings.

Rueby commented 1 year ago

Okay then... I moved everything in XIVLauncher/installedPlugins elsewhere and installed Penumbra on its own. It loads fine with no freeze ups whatsoever.

Is there an easier way of slowly putting back the plugins I had installed to see what's causing an issue? For example will moving a few plugins into the installedPlugins folder work? Or do I have to try to enable them one by one in game?

Edit : I guess I can do just that.

Ottermandias commented 1 year ago

Faster than one-by-one would be bisection. Take half of the plugins and enable them, see if it works, if it doesn't, take the other half. Repeat always halving the amount of plugins.

Rueby commented 1 year ago

Honestly. I'm stumped. I just finished moving all the plugins I had installed back....and it didn't crash. I don't know what was done right that fixed it. The only anomaly I'm noticing is that Title Edit does not change the logo (login screen but this issue was there before) - it made me suspect this was causing the crash but it seems not to....

Here's the steps I followed that I suppose...fixed this issue. -Went to: AppData\Roaming\XIVLauncher\ -Copied the installedPlugins folder elsewhere -Deleted the contents of installedPlugins folder -Launched the game through the XIVLauncher -Installed Penumbra from the plugin list -Quit the game

Then I gradually started copying back the plugins I had installed prior. I do not copy Penumbra back; leaving the fresh Penumbra I installed in the AppData\Roaming\XIVLauncher\installedPlugins

You could close this since it's...magically fixed. But I suppose it's here if anyone bumps into this.

Edit : clarified some thing

GibXIV commented 1 year ago

@Rueby please clarify: did you also copy back the previous Penumbra from InstalledPlugins to restore the old settings? or did you start with fresh settings?

Rueby commented 1 year ago

@GibXIV No, the old Penumbra was the only thing I did NOT copy back! I was able to retain my mods/collections/settings. I believe such things are stored in the pluginConfigs folder.

Fudgegod commented 1 year ago

I had this same problem last night, I came back to check if this had been seen by someone else.

I found out some things of my own. The only changed variable being the whitelisting, the plugin lists as well as the modlists (good to mention i also have testing version of dalamud enable aswell)

I went in with the same approach of bisection i found it was conflict with the plugin "allagan tools" (inventory tools in files) loaded up with itself in and saw it needed an update, did that and it seemed fixed. So it seems that it was allagan tools' old version conflicting with something that may have happened because of the patch and updates and such but honestly not well versed enough to know or understand

Fawkes-Allen commented 1 year ago

I had a similar issue, I fixed it, seemingly, by disabling my MaterialUI/User Interface collection.

Though, since I disabled Penumbra completely first and managed to get in, AllaganTools would have been updated as well. So Fudgegod above might still have the more comprehensive answer

foolishbunny commented 1 year ago

I've been having a similar issue and have yet to be able to find a fix for it. It seems to be penumbra specifically (for me) as I've been able to run the game fine with my other plugins and penumbra disabled but it crashes my game if I attempt to reinstall it and crashes at logo if I have it downloaded and try to long in. šŸ˜µā€šŸ’«

Rueby commented 1 year ago

I have Allagan Tools installed as well...but I'm not sure if it managed to sneakily update while I was moving back my plugins or if perhaps Penumbra didn't update properly and that removing it and doing a fresh install of it fixed it....I'm not really well versed in this either.

@foolishbunny Have you tried moving everything out of your installedPlugins folder and trying to reinstall Penumbra on its own? Your game when launching it with an empty installedPlugins folder should load with 0 plugins. I was able to install Penumbra from the ingame plugin list again without issue.

I logged out and logged in to verify that Penumbra alone is NOT causing these crashes; which it was not countary to my initial belief. I think there's no harm in giving that a go. And like stated above the Penumbra folder is the only one I did not copy back.

Ottermandias commented 1 year ago

It might be caused by the way I hook a system function being not quite supported/compatible with what other plugins do. I'll try to change that with aers' help and see if this resolves the crashes.

Ottermandias commented 1 year ago

I pushed 0.6.6.3 which changes how I hook CreateFileW, please try and let me know if the issues are resolved with that.

GibXIV commented 1 year ago

0.6.6.3 fixed my CTD issues <3

foolishbunny commented 1 year ago

0.6.6.3 also fixed my issues!

Rueby commented 1 year ago

idk if worth mentioning but 0.6.6.3 just caused the title logo to lag? during animation though it loads fine after a few seconds (abit reminiscent of when it was crashing without actually crashing)

I went into Dalamud settings and ticked the 'Wait for plugins before the game loads' and now this little freeze up went away. Hopefully no crashes in the future. Thanks alot, Otter!