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

[crash] error: could not create java virtual machine #5771

Closed
pesegolsson opened this issue Jun 11, 2021 · 4 comments
Closed

[crash] error: could not create java virtual machine #5771

pesegolsson opened this issue Jun 11, 2021 · 4 comments

Comments

@pesegolsson
Copy link

Description of Issue

optifine g9 pre18 wont start, getting
error: could not create java virtual machine
error: a fatal exeption has occurred, program will exit.

and then minecraft gives a kod :0

have tried installing java 16, and pointed optifine at it and same issue.

never had this issue with any other version of optifine so i'm at a loss what might cause this.

Steps to Reproduce

  1. installed optifine and tried to launch it
  2. i have no idea, but it happens every time for me?

OptiFine Version

optifine_hd_u_g9_pre18

Installation Method

stand alone and in mod folder, same result on both

Fabric/Forge Version

tried the latest fabric

OptiFabric Version

1.11.1

Other Installed Mods

Log Files/Crash Reports

as it never launches there are no log files

F3 Debug Screenshot

Prior Testing

Additional Information

@KaiAF
Copy link
Collaborator

KaiAF commented Jun 11, 2021

Go to the installation settings and make sure that the java version is set to 16

@pesegolsson
Copy link
Author

done that, same issue. i even uninstalled java 8 to make sure that it wouldn't interfere. the only .log file that gets updated when i try to run optifine is the launcher_cef_log.txt and it contains these lines:

[0611/155736.150:INFO:main_context.cpp(136)] CEF initialized successfully.
[0611/155736.150:INFO:main_context.cpp(138)] CEF version: 85.3.13+gcd6cbe0+chromium-85.0.4183.121
[0611/155741.026:WARNING:angle_platform_impl.cc(48)] compileToBinary(257):
C:\fakepath(107,1-13): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll
C:\fakepath(102,1-13): warning X3557: loop only executes for 1 iteration(s), forcing loop to unroll

and not all the time, just sometimes which i also find wierd! not sure if that is helpful though?

@Team-Nemezis
Copy link

same issue

@pesegolsson
Copy link
Author

finally got it running, i was playing around with the jvm arguments and the G1HeapRegionSize was set to 64M and that was a no go, changed it to G1HeapRegionSize=32M and it started just fine even using the bundled runtime.

hopefully this might help someone else as well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants