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

[Granblue Relink: User is stuck after loader successfully loads in its entirety] #323

Open
basterzero opened this issue Feb 29, 2024 · 59 comments
Labels
untriaged No decision has been made by the developers.

Comments

@basterzero
Copy link

I've been stuck in this window for a long time, what should I do to fix it?
Screenshot (724)

@basterzero basterzero added the untriaged No decision has been made by the developers. label Feb 29, 2024
@Sewer56
Copy link
Member

Sewer56 commented Feb 29, 2024

I seriously need to buy this game and see what happens here. This is strange.

@Reflection4Real
Copy link

I also have the same problem

@Sewer56
Copy link
Member

Sewer56 commented Mar 1, 2024

Would you be able to provide more information about your system?
I bought this game but have trouble replicating this.

This is also strange, in that I've never seen the modloader fully initialize before, but the end user be stuck.

Things that come to mind:

  • Anything that can overlay/read/alter game visuals (e.g. ReShade, Special K, Video Capture Software)
    • This includes anything that renders ontop of the game such as 'Nahimic Audio Driver' which comes preinstalled on some prebuilt/OEM machines.

etc. Anything that would be useful in trying to replicate your setup.

@Sewer56 Sewer56 changed the title Help me [Granblue Relink: User is stuck after loader successfully loads in its entirety] Mar 2, 2024
@basterzero
Copy link
Author

What information do you need to help? I'll go get it.

@Sewer56
Copy link
Member

Sewer56 commented Mar 3, 2024

Anything that

Would you be able to provide more information about your system? I bought this game but have trouble replicating this.

This is also strange, in that I've never seen the modloader fully initialize before, but the end user be stuck.

Things that come to mind:

* Anything that can overlay/read/alter game visuals (e.g. ReShade, Special K, Video Capture Software)
  
  * This includes anything that renders ontop of the game such as 'Nahimic Audio Driver' which comes preinstalled on some prebuilt/OEM machines.

etc. Anything that would be useful in trying to replicate your setup.

Anything that falls under the above @basterzero

@Keinechanw
Copy link

im having the same problem now.
I was able to use reloaded before and it has the same problem now.
I did not add any new mods and it will only startup when all my mods turned off(but the mods are still on).
This might happen because I updated the reloaded app, or maybe I forced quit once.

@basterzero
Copy link
Author

I forgot about this one. What is it?
Screenshot (729)

@Sewer56
Copy link
Member

Sewer56 commented Mar 5, 2024

Normally this is printed while loading a code mod.
Hmm, actually. Wait, is something trying to be loaded after Steam DRM Bypass?

What's your enabled mod list?

@Keinechanw
Copy link

Enabled mod list doesnt matter. Game won't start even if I only enable the GBFR mod manager.

@Sewer56
Copy link
Member

Sewer56 commented Mar 5, 2024

Enabled mod list doesnt matter. Game won't start even if I only enable the GBFR mod manager.

My concern was maybe there was a deadlock in the mod itself, causing it to get stuck on boot; since I only print when mods actually finish loading, not when they start.

Does it happen without any mods enabled at all?

@Keinechanw
Copy link

It won't happen without any mod. However, all my mods are loaded even I disabled all of them.

@Sewer56
Copy link
Member

Sewer56 commented Mar 5, 2024

Is the problem specific to GBFR ModManager mod then?

Try loading something generic like 'Reloaded File Monitor', I presume that works OK?

@Keinechanw
Copy link

it works OK

@Sewer56
Copy link
Member

Sewer56 commented Mar 5, 2024

I'll look in ModManager mod source code then, to see if anything stands out. Gimme a while, I gotta finish up some unrelated work

@Keinechanw
Copy link

Actully it doesn't work as expected.
if I activate reloaded file moniter in the game page, the command window pops up and exit in 1 sec then the game won't boot.
However, If I activate the reloaded file moniter in the manage mods page, in the game page the enable/disable box for reload file moniter is a filled red box(I assume that means enabled), and the game boot normally

@Sewer56
Copy link
Member

Sewer56 commented Mar 5, 2024

Hmm, weird, gimme a while, I'll be back later. Will build some debug versions of mods.

@basterzero
Copy link
Author

I have reloaded the monitor file. What happens is that when it reaches this screen, it bounces back to the program.
Screenshot (732)
And I tried to remove GBFR Manager, it appears that it can run the game normally, but it cannot run the mods.

@Sewer56
Copy link
Member

Sewer56 commented Mar 7, 2024

I have reloaded the monitor file. What happens is that when it reaches this screen, it bounces back to the program. Screenshot (732) And I tried to remove GBFR Manager, it appears that it can run the game normally, but it cannot run the mods.

Are you saying that it runs correctly in this situation then?

@basterzero
Copy link
Author

Yes, exactly what you say.

@KurochaK
Copy link

KurochaK commented Apr 6, 2024

Unfortunately, I just run into the same problem and I wonder if there is already a solution now.
screenshot1
I successfully run the game with mods in it at first but failed on the second attempt.
I am just stuck in this window and it cannot run the game again.
I can manually start the game with these mods in it even if I disabled all of them, which is just the same situation as above.
I'm not very good at English, and I'm sorry if I can't describe this situation clearly.

@Sewer56
Copy link
Member

Sewer56 commented Apr 6, 2024

I could probably try debugging it myself but I'd suggest asking the current project maintainer ( @Nenkai ) in case this is a common situation / known problem.

It seems that utility manager is stuck deadlocked on boot.

@Nenkai
Copy link

Nenkai commented Apr 7, 2024

I've seen this problem very rarely from various people, but never personally
I'm not sure. There should be enough error messages during and after initialization, which aren't being fired at all

Maybe it is stuck during the loader's logic somewhere, but I wouldn't know where without an exact setup to reproduce

@Sewer56
Copy link
Member

Sewer56 commented Apr 7, 2024

I've seen this problem very rarely from various people, but never personally I'm not sure. There should be enough error messages during and after initialization, which aren't being fired at all

Maybe it is stuck during the loader's logic somewhere, but I wouldn't know where without an exact setup to reproduce

I'd usually try doing the following:

  • Check for any async code (check for anything that waits).
  • Check for any silent exceptions tied to async code.

If nothing else, just add log lines all over the place and grab someone who's affected by the issue. Should make things easier.

@Nenkai
Copy link

Nenkai commented Apr 13, 2024

Apologies for the very delayed reply,

As far as I know we are not using any async code here but i've added further logging in the newest version to at least know whether the loader's entrypoint is even being hit - every errornous phase should've already been logged before this though, maybe third party lib code deadlocking, hard to tell.

Thanks for the suggestions!

@Vinzelles
Copy link

I am facing the same issue but with a slight difference.
When I click "Launch Application" through the Reload program panel, it will stuck here forever.

image

But if I start the game directly from steam, the Reload terminal will appear and finish the loading stage without any exception, and then every mod works normally.

@Sewer56
Copy link
Member

Sewer56 commented May 7, 2024

[Should I try to reproduce and fix this myself? I did buy the game from my own pocket to fixu another issue a while back.]

@Nenkai
Copy link

Nenkai commented May 18, 2024

The latest version of the manager now has a log at StartEx. If anyone who still has this issue could report if that's it's at least printed, it'd be appreciated

For the past few weeks I haven't seen anyone reporting issues at all at least.

@nukieberry
Copy link

The latest version of the manager now has a log at StartEx. If anyone who still has this issue could report if that's it's at least printed, it'd be appreciated

For the past few weeks I haven't seen anyone reporting issues at all at least.

I'm still having the same issue. It stuck after showing following message.
[GBFRelinkManager] StartEx
[Reloaded] Loading: Granblue Fantasy Relink Mod Manager
[Reloaded] - AppId : gbfrelink.utility.manager
[Reloaded] - Location: D:\Reloaded\Mods\gbfrelink.utility.manager\ModConfig.json
Where is the log file you mentioned?

@Sewer56
Copy link
Member

Sewer56 commented Jun 13, 2024

@nukieberry by 'log' they meant a print out to the log file. It's the one you see at the top of your log snippet.

@Sewer56
Copy link
Member

Sewer56 commented Jun 13, 2024

In any case. This doesn't seem to make any sense. Between this printout and what should be the next one, only the config file should be accessed. It's really strange that a deadlock happens here; I've never seen that happen before.

@nukieberry
Copy link

nukieberry commented Jun 13, 2024

It worked fine after game version 1.3.1. Deadlock happened when I upgraded Reloaded from 1.27.8 to 1.27.10 and added a few new mods yesterday. Same as people mentioned above, the game can only boot up when all mods are crossed out in Reloaded, and it still has the old mods taking effect whatsoever. I'm trying a clean reinstallation now.

@Sewer56
Copy link
Member

Sewer56 commented Jun 13, 2024

Deadlock happened when I upgraded Reloaded from 1.27.8 to 1.27.10

There's no changes in the loader between those versions. It's a bugfix in launcher and improved accessibility in launcher for people with impaired eyesight.

and it still has the old mods taking effect whatsoever.

I've actually brought this up to @WistfulHopes in the past. You really shouldn't be modifying any game files from Reloaded mods, it's a big no-no.

Instead hook NtCreateFile to redirect the file to your own, or hook whatever part of game code opens the file. either-or.


If anything I'm confused why the log stopped there. The mod isn't doing anything substantial other than loading a config file. Yet, it freezes up.

@Sewer56
Copy link
Member

Sewer56 commented Jun 13, 2024

gbfrelink.utility.manager.zip
@nukieberry

I built a copy with some more print statements myself.
Curious what it prints.

@nukieberry
Copy link

gbfrelink.utility.manager.zip @nukieberry

I built a copy with some more print statements myself. Curious what it prints.

I didn't manually modify any files in Reloaded or game folder. But hold on, relevant or not, I did drag a newer version of a mod into Reloaded. Two entries with same name appeared in the mod list for a while until I restarted Reloaded.
I shall try this build once installation completed.

@nukieberry
Copy link

nukieberry commented Jun 13, 2024

gbfrelink.utility.manager.zip @nukieberry
I built a copy with some more print statements myself. Curious what it prints.

I didn't manually modify any files in Reloaded or game folder. But hold on, relevant or not, I did drag a newer version of a mod into Reloaded. Two entries with same name appeared in the mod list for a while until I restarted Reloaded. I shall try this build once installation completed.

image

Clean reinstallation of game and Reloaded. Added back the mods. Click Launch to get the mod manager. Replaced files in Mods/gbfrelink.utility.manager/. Launch Application clicked again. This is what I get at this point.

Update: It does not change after putting these two back.

image

@Sewer56
Copy link
Member

Sewer56 commented Jun 13, 2024

By all accounts it's probably softlocking trying to read config file. Wow, I've never really seen that before.

I'm probably gonna fall asleep by the time I next touch my PC, so I'll ping @Nenkai in case they feel like debugging.

If not, I'll try debugging this with you hopefully when I wake up.

@Sewer56
Copy link
Member

Sewer56 commented Jun 13, 2024

@nukieberry

Here, see what this logs.
gbfrelink.utility.manager.zip

(I couldn't sleep 😅)

@nukieberry
Copy link

image

@Sewer56
Copy link
Member

Sewer56 commented Jun 13, 2024

gbfrelink.utility.manager.zip

@nukieberry I wonder if it's getting stuck reading config somehow.
Here, try this one; I put log statements pretty much everywhere else at this point.

@nukieberry
Copy link

nukieberry commented Jun 13, 2024

image
BTW there's no config.json in the folder.

@Sewer56
Copy link
Member

Sewer56 commented Jun 13, 2024

If I disable config live update, does it then work?

gbfrelink.utility.manager.zip

Normally this shouldn't lock up, I'm not sure why it gets deadlocked, as I've never seen that happen before.

According to log, no other code is running in the background; unless you have some ASI Loader plugin sitting in your game folder unaccounted for.

@nukieberry
Copy link

image

@Sewer56
Copy link
Member

Sewer56 commented Jun 14, 2024

I somehow get the feeling that yours is being prevented from reading any files whatsoever.
I'm not really sure what to say about that, other than maybe trying to run as Admin and checking antivirus logs out of curiosity.

None of this seems to be making much sense, it just locks up trying to access any file on disk seemingly. And it's not in the mod's code, but in runtime or OS.

@nukieberry
Copy link

image
I've double checked it is running as admin. However this message pops up on the first run after a reboot. But it doesn't seem to block anything. The folder itself is not read-only either. Weird.

@Sewer56
Copy link
Member

Sewer56 commented Jun 14, 2024

I've got no idea myself honestly, it's just strange.
It's not even to do with being read-only. It's even being prevented from reading in the first place.

As if blocked by some kernel module, like an anticheat, an antivirus, or something of the kind.

@nukieberry
Copy link

If I'm not confused, it can at lease read AppConfig.json, otherwise the mod list should be empty. But not for files in Mods folder. Can you test what specific file, or all files, it cannot access?

@Sewer56
Copy link
Member

Sewer56 commented Jun 14, 2024

The weird part is the mod started loading, so the loader itself can access files just fine. After all, it needs to load and parse all of the ModConfig.json files.

But the moment Relink Mod Manager tries to touch any file, everything stalls.

I'd be curious to see what happens if you load another completely unrelated mod though, something non-game specific, for example Reloaded File Monitor.

@nukieberry
Copy link

Adding an exclusion in Windows Security didn't help. Can I have a link for this unrelated mod? Should I just put it in GBFR and disable all other mods?

@Sewer56
Copy link
Member

Sewer56 commented Jun 14, 2024

You can find it via search inside the launcher. Should be pretty easy. No links needed.

@nukieberry
Copy link

image
:(

@Sewer56
Copy link
Member

Sewer56 commented Jun 14, 2024

Huh, Redirector somehow loaded just fine on the other hand. But monitor, a mod that only prints events from redirector locked up? That really does not make any sense, wow.

Does this happen with all games? If you add something like notepad, and use monitor in it, does that work?

@nukieberry
Copy link

image
For some reason there are two entries. Clicking any of them will result in the lower one highlighted.
image
Notepad launched just fine. Does it mean the problem is in the game executable?

@Sewer56
Copy link
Member

Sewer56 commented Jun 14, 2024

It's something weird going on specifically with the game most likely, but I don't really have an idea what.

I'd consider running things as minimal as possible, disable all overlays, etc. reset game folder to clean, and see if that fixes it. Then if that works, you could start re-enabling things again and seeing where it goes.

For a quick game folder reset, I'd probably just delete all files that aren't the main data archive, and then verify files in Steam to get the others back.

@nukieberry
Copy link

image
A clean game client still stuck. But as a workaround, setting up ASI Loader worked.
image

@Sewer56
Copy link
Member

Sewer56 commented Jun 14, 2024

That's kinda interesting.

I've been getting strange reports of DLL Injection causing unexpected issues lately, I wonder what's up with that.

But hey, if it works, it works!

@nukieberry
Copy link

Thanks for all contributions and support. Good luck on future fixes. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged No decision has been made by the developers.
Projects
None yet
Development

No branches or pull requests

8 participants