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

Game crashes at startup with GetFileVersionInfoSizeW failed, error=127 #2550

Open
Prezriw opened this issue Jun 17, 2024 · 19 comments
Open

Game crashes at startup with GetFileVersionInfoSizeW failed, error=127 #2550

Prezriw opened this issue Jun 17, 2024 · 19 comments
Labels
A-drivers Area: Driver compatibility P-high Priority: High T-crash Type: Crash or hang
Milestone

Comments

@Prezriw
Copy link

Prezriw commented Jun 17, 2024

Bug Description

When I start minecraft, sodium crashes with the following error.

A mod crashed on startup!
net.fabricmc.loader.impl.FormattedException: java.lang.RuntimeException: Could not execute entrypoint stage 'preLaunch' due to errors, provided by 'sodium'!
at net.fabricmc.loader.impl.FormattedException.ofLocalized(FormattedException.java:63)
at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:162)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:68)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
Caused by: java.lang.RuntimeException: Could not execute entrypoint stage 'preLaunch' due to errors, provided by 'sodium'!
at net.fabricmc.loader.impl.FabricLoaderImpl.lambda$invokeEntrypoints$2(FabricLoaderImpl.java:388)
at net.fabricmc.loader.impl.util.ExceptionUtil.gatherExceptions(ExceptionUtil.java:33)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:386)
at net.fabricmc.loader.impl.launch.knot.Knot.init(Knot.java:160)
... 2 more
Caused by: java.lang.RuntimeException: GetFileVersionInfoSizeW failed, error=127
at me.jellysquid.mods.sodium.client.platform.windows.api.version.Version.getModuleFileVersion(Version.java:63)
at me.jellysquid.mods.sodium.client.platform.windows.api.d3dkmt.D3DKMT.queryDriverVersion(D3DKMT.java:127)
at me.jellysquid.mods.sodium.client.platform.windows.api.d3dkmt.D3DKMT.getAdapterInfo(D3DKMT.java:95)
at me.jellysquid.mods.sodium.client.platform.windows.api.d3dkmt.D3DKMT.queryAdapters(D3DKMT.java:58)
at me.jellysquid.mods.sodium.client.platform.windows.api.d3dkmt.D3DKMT.findGraphicsAdapters(D3DKMT.java:44)
at me.jellysquid.mods.sodium.client.compatibility.environment.probe.GraphicsAdapterProbe.findAdapters$Windows(GraphicsAdapterProbe.java:48)
at me.jellysquid.mods.sodium.client.compatibility.environment.probe.GraphicsAdapterProbe.findAdapters(GraphicsAdapterProbe.java:25)
at me.jellysquid.mods.sodium.client.SodiumPreLaunch.onPreLaunch(SodiumPreLaunch.java:11)
at net.fabricmc.loader.impl.FabricLoaderImpl.invokeEntrypoints(FabricLoaderImpl.java:384)
... 3 more

Reproduction Steps

I Start Mincraft through Modrinth App. with fabric loader 0.15.11, and only 2 mods, Fabric API 0.100.1+1.21 and Sodium MC1.21-0.5.7

Log File

latest.log

Crash Report

no crash report generated

@Prezriw Prezriw added the S-needs-triage Status: Needs triage label Jun 17, 2024
@jellysquid3
Copy link
Member

jellysquid3 commented Jun 17, 2024

Can you please provide information on what operating system and hardware/drivers you're using? There's nothing here to diagnose the issue. Error 127 is ERROR_PROC_NOT_FOUND which really shouldn't happen for the GetFileVersionInfoSizeW function, since that's available from Windows 2000 onward.

@jellysquid3 jellysquid3 changed the title Mod crash on startup - Sodium Game crashes at startup with GetFileVersionInfoSizeW failed, error=127 Jun 17, 2024
@Prezriw
Copy link
Author

Prezriw commented Jun 17, 2024

Hi Jelly,

I have windows 10 Pro 64 bit build 19045 on a Gigabyte P85-D3 Mainboard, i3-4160 CPU, 32GB Memory, Nvidia Geforce GTX 1650 with driver 555.99.

I hope this help

@jellysquid3
Copy link
Member

Can you see if this build fixes the problem? If not, please attach a new log file.

@kerrschtein

This comment was marked as off-topic.

@Prezriw
Copy link
Author

Prezriw commented Jun 17, 2024

[MODERATOR EDIT: Uploaded log file to GitHub Gist.]

Log file: https://gist.github.com/jellysquid3/e62befe7bfa471074294c18d7675f0f3

@jellysquid3
Copy link
Member

It seems to load the version information for the NVIDIA driver without issue, but the Intel driver (ig75icd64.dll) fails. What's more troubling is that we don't get a full path to the driver file, which is probably why querying the version information does not work.

So I guess we'd have to follow DLL search paths to see where the Intel driver is being loaded from...

@jellysquid3
Copy link
Member

@Prezriw I've written a workaround to deal with the Intel graphics drivers being weird. Please try this build and upload a log file if it does not work.

@jellysquid3 jellysquid3 added P-high Priority: High A-drivers Area: Driver compatibility and removed S-needs-triage Status: Needs triage labels Jun 17, 2024
@Prezriw
Copy link
Author

Prezriw commented Jun 18, 2024

latest.log

@jellysquid3
Copy link
Member

Not sure. Seems that it can't find the OpenGL ICD in %SYSTEMROOT%/System32 either, or my code is wrong. I'll need to look at it more closely once I have access to my regular computer again.

@Prezriw
Copy link
Author

Prezriw commented Jun 19, 2024

thank you very much

@jellysquid3 jellysquid3 added the T-crash Type: Crash or hang label Jun 20, 2024
@Strong03

This comment was marked as off-topic.

@blunderbust
Copy link

Ive also had this issue, using AMD 7900 xt gpu using latest amd drivers.

@chirrupted
Copy link

also having this issue. RTX 3050 Ti with latest drivers

@jellysquid3
Copy link
Member

Please, make absolute certain the exact error you're seeing is:

Caused by: java.lang.RuntimeException: GetFileVersionInfoSizeW failed, error=127

If you are getting this error, see this comment and run the build which is attached. Then, upload your log file (as an attachment) so that we can look into what's going on.

@blunderbust

This comment was marked as off-topic.

@jellysquid3

This comment was marked as off-topic.

@blunderbust

This comment was marked as off-topic.

@ZedDevStuff
Copy link

So i have no idea if it was related or not but i changed my LWJGL version to 3.3.3 and it started correctly. I noticed a message before the crash talking about an unsupported jni version saying it could cause crashes, so i updated LWJGL and it worked. I updated my instance from 1.20.1 so it might not be a problem to anyone else but if you can update LWJGL, try that

@Prezriw
Copy link
Author

Prezriw commented Jun 27, 2024

I have disabled my intel video card in my bios, and sodium is working with ver. mc1.21-059

so it seems that the problem might be with the Intel video.

Thank you Jelly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-drivers Area: Driver compatibility P-high Priority: High T-crash Type: Crash or hang
Projects
None yet
Development

No branches or pull requests

7 participants