goatcorp / Dalamud

FFXIV plugin framework and API
GNU Affero General Public License v3.0
1.17k stars 273 forks source link

dalamud err: could not get swapchain address #48

Closed MaxineMutini closed 3 years ago

MaxineMutini commented 4 years ago

game crashes on startup. ive dived through the logs and found that the game exits directly after [INF] Started dalamud!. so i dug around and found the dalamud log files and discovered the following error:

[ERR] Could not get SwapChain address via sig method, falling back to vtable...
System.Collections.Generic.KeyNotFoundException: Can't find a signature of 48 8B C4 55 41 54 41 55 41 56 41 57 48 8D 68 ?? 48 81 EC C0 00 00 00
   at Dalamud.Game.SigScanner.Scan(IntPtr baseAddress, Int32 size, String signature)
   at Dalamud.Game.SigScanner.ScanModule(String signature)
   at Dalamud.Game.Internal.DXGI.SwapChainSigResolver.Setup64Bit(SigScanner sig)
   at Dalamud.Game.Internal.BaseAddressResolver.Setup(SigScanner scanner)
   at Dalamud.Interface.InterfaceManager..ctor(Dalamud dalamud, SigScanner scanner)

this error was caused by simply logging in. the game window opens up, gets to the "Square Enix" logo, then immediately crashes.

Operating System: Win10x64 v1909 XIVLauncher version: xivlauncher-4.7.3.0-a55b6fb Launching as admin?: no, doing so gives different errors. if you want those, ill make a new report Using Steam?: no Addons/Plugins enabled: Rich Presence

Aida-Enna commented 4 years ago

Are you sure you're using the latest version of the game? Silly question, I know. Just gotta cover all the bases 😃

MaxineMutini commented 4 years ago

i should be, cuz the default launcher boots it with no issues

Aida-Enna commented 4 years ago

Can you post the error it gives you when you launch as admin? You can just post it here.

MaxineMutini commented 4 years ago

image image

MaxineMutini commented 4 years ago

image

Aida-Enna commented 4 years ago

Try this https://github.com/goaaats/FFXIVQuickLauncher/wiki/FAQ#q-im-getting-a-msvcp140dll-was-not-found-or-vcruntime140dll-was-not-found-issue-help

MaxineMutini commented 4 years ago

on it

MaxineMutini commented 4 years ago

there are no longer any errors in either log file, but it still crashes

Aida-Enna commented 4 years ago

To be clear, when running both as admin and not, the game crashes at the square enix logo with no popup error or anything in the logs?

MaxineMutini commented 4 years ago

correct

MaxineMutini commented 4 years ago

just tried again as default user and got this error in dalamud.txt

[FTL] Unhandled exception on AppDomain
System.NullReferenceException: Object reference not set to an instance of an object.
   at ImGuiScene.RawDX11Scene.Dispose(Boolean disposing) in C:\Users\jonas\Documents\repos\Dalamud\lib\ImGuiScene\ImGuiScene\RawDX11Scene.cs:line 262
   at ImGuiScene.RawDX11Scene.Finalize() in C:\Users\jonas\Documents\repos\Dalamud\lib\ImGuiScene\ImGuiScene\RawDX11Scene.cs:line 281
MaxineMutini commented 4 years ago

fiddled around with settings and discovered that disabling ingame feature fixes the issue at the cost of the obvious

ff-meli commented 4 years ago

A few questions:

If none of those seem promising, could you try this?

Thanks!

MaxineMutini commented 4 years ago

dalamud.txt no overlays or tuners that i can think of, i even turned off the windows game tuner thing with no luck. the files you mentioned dont exist. deleted the txt file, launched dx11 as normal user, and crashed. dalamud log is attached as requested

ff-meli commented 4 years ago

Thanks for trying all that.

The only other thing I could think of that is somewhat easy to test is to make sure your graphics drivers are up to date, but I would be surprised if that mattered.

That error is not something I would expect to see on windows, and it's actually more of a warning - things should usually still work anyway, just potentially with some artifacts if you were also using gshade or similar.

I'm not too sure what else I can have you try without a build that has more logging enabled or similar, but it's not easy to get those out to individual people for testing.

Could you find your C:\Windows\System32\dxgi.dll file and upload it here (in a zip etc is fine if it doesn't let you directly)? I can try testing with that locally to see if there's something different about it, but there really shouldn't be...

MaxineMutini commented 4 years ago

dxgi.zip

MaxineMutini commented 4 years ago

im kinda at a loss as well, sorry

ff-meli commented 4 years ago

It's ok, this stuff is always a bit weird. Your dll is identical to mine, so at least that isn't the problem!

I'll add a bunch of logging and see if we can't get you a build to test with to hopefully make it a bit more clear what exactly is breaking. I'm not sure when exactly that might be though.

ff-meli commented 4 years ago

OK - if you are not comfortable doing this for a test, that's perfectly all right, but we'll have to wait for goat to make a test build available in some fashion. If you don't mind a one-off build that I created for testing, try this:

Sorry for the headache! I can't really debug this one easily since I can't cause the problem to happen, so I'm hoping this will have some more info.

MaxineMutini commented 4 years ago

i have no idea what changed, but its working. im gonna relaunch with default hooks to see if thats it

MaxineMutini commented 4 years ago

default hooks crashed the game

MaxineMutini commented 4 years ago

theres no log file for the test build, and /xlhelp doesnt work, so im assuming it didnt even boot

ff-meli commented 4 years ago

Can you check the output log in %APPDATA%\XivLauncher and see if it has any messages about failing to load? There's no reason I can think of that it wouldn't load automatically if the normal one does.

mattavist commented 4 years ago

I’m seeing the exact behavior that MaxineMutini describes, down to in-game features not working with the debug hooks.

The output log does not contain and messages about loading failures.

Happy to help debug or provide other information here.

ff-meli commented 4 years ago

Can you look inside the unzipped Hooks folder and see if any or all of .exe files are set as blocked? (right click, properties, see if there is a message about downloaded things being blocked down near the bottom, along with an 'unblock' option)

I'm not sure why it would just fail to load, especially with no error, when I can dl and unzip that build and it just works... There are also only very minor changes in that test build, and nothing that is involved with how it is loaded.

mattavist commented 4 years ago

Yes that was the problem, had to check "Unblock" for all applications and dll files in Hooks. FFXIV crashed after loading, dalamud log attached.

dalamud.txt

ff-meli commented 4 years ago

Thanks, that should help with one problem, but maybe not with the crashes...

I made another build here that has some different logging and a fix for part of the signature error (maybe). Could you give that one a try when you get a chance? Same process as before, and you'll probably have to unblock things again.

Thanks!

mattavist commented 4 years ago

Another crash, another log!

dalamud.txt

ff-meli commented 4 years ago

Thanks! This helps narrow things down a bit, at least.

Test builds are going to be on hold a bit because of the patch, which I assume will derail dalamud in general for a day or two.

I'll make another after that, though it will probably just be adding logging to absolutely everything in the path that crashes, since it won't be nice and give us actual crash info (at least I know whereabout it is now though!)

ff-meli commented 4 years ago

Sorry for the delay on this! Client patches and such are always a bit of a headache.

If you're still able to test, I have a new version here (removed, see next comment)

This should still crash, but it logs just about everything possible, so it should hopefully pinpoint what the problem is, and then I can start trying to figure out why.

Steps to test are the same as before -

Thanks!

ff-meli commented 4 years ago

I won't be keeping the test builds up to date, since it's a bit of a chore to do.

If anyone is still having this issue and willing to test, comment here and I can see about making a new one.

daemitus commented 3 years ago

Please re-open a new issue if this issue persists.