Jump to content

Solved: Crash when launching Forge


Lolohn

Recommended Posts

UPDATE:

Forge 1.12.2 requires Java 8.  

I was using OpenJDK 11.  Now I'm using OpenJDK 8 and everything is gravy.  :D 

 

Original Post:

 

When I launch Forge from the launcher, it crashes instantly.

Using Linux (Mint 19, Mate desktop)

 

What I've tried:

1) deleted everything in /.minecraft 

 

2) let the launcher download and launch Minecraft, 
1.12.2.jar
start launcher,launch game, start new map, all works fine, quit game


3) download and install Forge "Recommended" Installer for 1.12.2,
forge-1.12.2-14.23.5.2768-installer.jar
start launcher, select forge, Game Crash - doesn't even try to launch, the launcher just says "GAME CRASH An unexpected error occurred..."

There is no mods folder.  I made an empty mods folder in /.minecraft   Repeat step 3 above, same results. Put a mod (compatable with 1.12.2) into the mods folder, same results.  

I've since re-deleted the mods folder.

 

Any suggestions?

 

Here is my output log:

Spoiler

 

Clear all
Filter text
1 fatal27 warnings7 infos4157 debugs
15:42:30
launcher
main
info
Preparing to launch minecraft client for 1.12.2-forge1.12.2-14.23.5.2768
15:42:31
launcher
main
warn
Couldn't get hash for net/minecraftforge/forge/1.12.2-14.23.5.2768/forge-1.12.2-14.23.5.2768.jar from http://files.minecraftforge.net/maven/net/minecraftforge/forge/1.12.2-14.23.5.2768/forge-1.12.2-14.23.5.2768.jar.sha1: HTTP 404: Not Found
15:42:31
launcher
main
warn
Have local file /home/laura/.minecraft/libraries/net/minecraftforge/forge/1.12.2-14.23.5.2768/forge-1.12.2-14.23.5.2768.jar but don't know what size or hash it should be. Have to assume it's good.
15:42:31
launcher
main
warn
Couldn't get hash for com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.jar from http://files.minecraftforge.net/maven/com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.jar.sha1: HTTP 404: Not Found
15:42:31
launcher
main
warn
Have local file /home/laura/.minecraft/libraries/com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.jar but don't know what size or hash it should be. Have to assume it's good.
15:42:31
launcher
main
warn
Couldn't get hash for com/typesafe/config/1.2.1/config-1.2.1.jar from http://files.minecraftforge.net/maven/com/typesafe/config/1.2.1/config-1.2.1.jar.sha1: HTTP 404: Not Found
15:42:31
launcher
main
warn
Have local file /home/laura/.minecraft/libraries/com/typesafe/config/1.2.1/config-1.2.1.jar but don't know what size or hash it should be. Have to assume it's good.
15:42:31
launcher
main
warn
Couldn't get hash for org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.jar from http://files.minecraftforge.net/maven/org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.jar.sha1: HTTP 404: Not Found
15:42:31
launcher
main
warn
Have local file /home/laura/.minecraft/libraries/org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.jar but don't know what size or hash it should be. Have to assume it's good.
15:42:31
launcher
main
warn
Couldn't get hash for org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.jar from http://files.minecraftforge.net/maven/org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.jar.sha1: HTTP 404: Not Found
15:42:31
launcher
main
warn
Have local file /home/laura/.minecraft/libraries/org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.jar but don't know what size or hash it should be. Have to assume it's good.
15:42:31
launcher
main
warn
Couldn't get hash for org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar from http://files.minecraftforge.net/maven/org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar.sha1: HTTP 404: Not Found
15:42:31
launcher
main
warn
Have local file /home/laura/.minecraft/libraries/org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar but don't know what size or hash it should be. Have to assume it's good.
15:42:31
launcher
main
warn
Couldn't get hash for org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar from http://files.minecraftforge.net/maven/org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar.sha1: HTTP 404: Not Found
15:42:31
launcher
main
warn
Have local file /home/laura/.minecraft/libraries/org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar but don't know what size or hash it should be. Have to assume it's good.
15:42:31
launcher
main
warn
Couldn't get hash for org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar from http://files.minecraftforge.net/maven/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar.sha1: HTTP 404: Not Found
15:42:31
launcher
main
warn
Have local file /home/laura/.minecraft/libraries/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar but don't know what size or hash it should be. Have to assume it's good.
15:42:31
launcher
main
warn
Couldn't get hash for org/scala-lang/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar from http://files.minecraftforge.net/maven/org/scala-lang/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar.sha1: HTTP 404: Not Found
15:42:31
launcher
main
warn
Have local file /home/laura/.minecraft/libraries/org/scala-lang/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar but don't know what size or hash it should be. Have to assume it's good.

 

 

 


Here is my java version info, if helpful:  It's all OpenJDK which has been running vanilla Minecraft just fine.

Spoiler

java --version
openjdk 10.0.2 2018-07-17
OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK 64-Bit Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

 

Thanks for any help!

 

Edit: here is launcher_log.txt 

Spoiler

 

[0406/155337:INFO:LauncherAppBrowser.cpp(73)] Work dir is /home/laura/.minecraft

[0406/155337:INFO:ClientHandler.cpp(280)] Creating launcher window.

[0406/155337:ERROR:nss_util.cc(809)] After loading Root Certs, loaded==false: NSS error code: -8018
[0406/155337:WARNING:mainLinux.cpp(27)] X error received: type 0, serial 330, error_code 8, request_code 42, minor_code 0

[0406/155337:INFO:LauncherAppRenderer.cpp(115)] Javascript bridge extended.

[0406/155337:INFO:ClientHandler.cpp(1049)] Preferences / startup: Read preferences

[0406/155337:INFO:ClientHandler.cpp(1049)] Loading fallback language en-us...

[0406/155337:INFO:ClientHandler.cpp(1049)] Will not load en-us as a main language...

[0406/155337:INFO:ClientHandler.cpp(1049)] Preferences: Wrote preferences

[0406/155337:INFO:ClientHandler.cpp(1049)] Configurations: Loading profiles

[0406/155337:INFO:ClientHandler.cpp(1049)] Configuration a0085b83867dda0852fc8305902c0040: Wed Dec 31 1969 18:00:00 GMT-0600 (CST) < 1970-01-01T00:00:00.001Z

[0406/155337:INFO:ClientHandler.cpp(1049)] Configuration d0a9e90e31f0e595875ea791cdc6a056: Wed Dec 31 1969 18:00:00 GMT-0600 (CST) < 1970-01-01T00:00:00.000Z

[0406/155337:INFO:ClientHandler.cpp(1049)] Configuration 8b7af1a8ffd04139db44074b773c64b6: Wed Dec 31 1969 18:00:00 GMT-0600 (CST) < 2019-04-06T20:16:23.625Z

[0406/155337:INFO:ClientHandler.cpp(1049)] Configuration forge: Sat Apr 06 2019 15:16:23 GMT-0500 (CDT) < 2019-04-06T20:53:27.392Z

[0406/155337:INFO:ClientHandler.cpp(1049)] Configurations: Loading settings

[0406/155337:INFO:ClientHandler.cpp(1049)] Session: Read authDB

[0406/155338:INFO:LocalVersionProvider.cpp(85)] Looking for installed versions in /home/laura/.minecraft/versions

[0406/155338:ERROR:LocalVersionProvider.cpp(140)] Version  doesn't have a json file.

[0406/155338:INFO:ClientHandler.cpp(1049)] Updating server status

[0406/155338:INFO:ClientHandler.cpp(930)] Checking for launcher updates.

[0406/155338:INFO:GameController.cpp(243)] Reinstancing game callbacks...

[0406/155338:INFO:ClientHandler.cpp(1049)] Preferences: Wrote preferences

[0406/155338:INFO:ClientHandler.cpp(1049)] GameStarter: Previous instance(s) found

[0406/155338:INFO:ClientHandler.cpp(1049)] Session: Validated token

[0406/155338:INFO:ClientHandler.cpp(1049)] Preferences: Wrote preferences

[0406/155338:INFO:ClientHandler.cpp(1049)] Session: Wrote authDB

[0406/155338:INFO:ClientHandler.cpp(1049)] Changing view to: main.news

[0406/155339:WARNING:x11_util.cc(1404)] X error received: serial 176, error_code 182 (GLXBadWindow), request_code 155, minor_code 26 (X_GLXMakeContextCurrent)
[0406/155339:INFO:ClientHandler.cpp(247)] Shutting down!

[0406/155339:WARNING:x11_util.cc(1404)] X error received: serial 192, error_code 3 (BadWindow (invalid Window parameter)), request_code 4, minor_code 0 (X_DestroyWindow)

 

 

Edited by Lolohn
added launcher_log.txt
Link to comment
Share on other sites

Just an aside:
Last night I set this version and two mods (Erebus and Twilight Forest) up for my nine-year old son's Linux PC, AND my 13-year old son's Windows 7 PC.  
So this is super driving me crazy - last night it was smooth like butter, for two totally different computers and operating systems.  But today?  AGHGHGHG!

Link to comment
Share on other sites

2 hours ago, Lolohn said:

[0406/155338:INFO:ClientHandler.cpp(1049)] GameStarter: Previous instance(s) found

Have you tried restarting your computer and/or killing everything Java related?

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Link to comment
Share on other sites

2 hours ago, Cadiboo said:

Have you tried restarting your computer and/or killing everything Java related?

Thanks for the reply. 
So I hadn't restarted, but I have now... no change.

Also,
I've since installed Forge 1.13
forge-1.13.2-25.0.110-installer.jar
(I don't remember if it was "latest" or "recommended") and it runs fine... but the mods I want to use require 1.12.2

Link to comment
Share on other sites

Can you provide a debug.log? More info in the "Logs" section of my Forum signature below.

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

Spoiler

Logs (Most issues require logs to diagnose):

Spoiler

Please post logs using one of the following sites (Thank you Lumber Wizard for the list):

https://gist.github.com/100MB Requires member (Free)

https://pastebin.com/: 512KB as guest, 10MB as Pro ($$$)

https://hastebin.com/: 400KB

Do NOT use sites like Mediafire, Dropbox, OneDrive, Google Drive, or a site that has a countdown before offering downloads.

 

What to provide:

...for Crashes and Runtime issues:

Minecraft 1.14.4 and newer:

Post debug.log

Older versions:

Please update...

 

...for Installer Issues:

Post your installer log, found in the same place you ran the installer

This log will be called either installer.log or named the same as the installer but with .log on the end

Note for Windows users:

Windows hides file extensions by default so the installer may appear without the .jar extension then when the .log is added the log will appear with the .jar extension

 

Where to get it:

Mojang Launcher: When using the Mojang launcher debug.log is found in .minecraft\logs.

 

Curse/Overwolf: If you are using the Curse Launcher, their configurations break Forge's log settings, fortunately there is an easier workaround than I originally thought, this works even with Curse's installation of the Minecraft launcher as long as it is not launched THROUGH Twitch:

Spoiler
  1. Make sure you have the correct version of Forge installed (some packs are heavily dependent on one specific build of Forge)
  2. Make a launcher profile targeting this version of Forge.
  3. Set the launcher profile's GameDir property to the pack's instance folder (not the instances folder, the folder that has the pack's name on it).
  4. Now launch the pack through that profile and follow the "Mojang Launcher" instructions above.

Video:

Spoiler

 

 

 

or alternately, 

 

Fallback ("No logs are generated"):

If you don't see logs generated in the usual place, provide the launcher_log.txt from .minecraft

 

Server Not Starting:

Spoiler

If your server does not start or a command window appears and immediately goes away, run the jar manually and provide the output.

 

Reporting Illegal/Inappropriate Adfocus Ads:

Spoiler

Get a screenshot of the URL bar or copy/paste the whole URL into a thread on the General Discussion board with a description of the Ad.

Lex will need the Ad ID contained in that URL to report it to Adfocus' support team.

 

Posting your mod as a GitHub Repo:

Spoiler

When you have an issue with your mod the most helpful thing you can do when asking for help is to provide your code to those helping you. The most convenient way to do this is via GitHub or another source control hub.

When setting up a GitHub Repo it might seem easy to just upload everything, however this method has the potential for mistakes that could lead to trouble later on, it is recommended to use a Git client or to get comfortable with the Git command line. The following instructions will use the Git Command Line and as such they assume you already have it installed and that you have created a repository.

 

  1. Open a command prompt (CMD, Powershell, Terminal, etc).
  2. Navigate to the folder you extracted Forge’s MDK to (the one that had all the licenses in).
  3. Run the following commands:
    1. git init
    2. git remote add origin [Your Repository's URL]
      • In the case of GitHub it should look like: https://GitHub.com/[Your Username]/[Repo Name].git
    3. git fetch
    4. git checkout --track origin/master
    5. git stage *
    6. git commit -m "[Your commit message]"
    7. git push
  4. Navigate to GitHub and you should now see most of the files.
    • note that it is intentional that some are not synced with GitHub and this is done with the (hidden) .gitignore file that Forge’s MDK has provided (hence the strictness on which folder git init is run from)
  5. Now you can share your GitHub link with those who you are asking for help.

[Workaround line, please ignore]

 

Link to comment
Share on other sites

31 minutes ago, DaemonUmbra said:

Can you provide a debug.log? More info in the "Logs" section of my Forum signature below.

Thanks for your time!

 

I can't find a debug.log  - is it supposed to be in /.minecraft/logs or elswhere?  That folder is empty.

 

Here is  launcher_log.txt   (a fresh one after launching the crashing Forge 1.12.2)

 

launcher_log.txt

Link to comment
Share on other sites

Quote

Exception in thread "main" java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader

Bingo, Forge for 1.12.2 only works with Java 8 due to a fundamental change in Java that occurred in Java 9 (Forge for 1.13 works in Java 8 or 10).

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

Spoiler

Logs (Most issues require logs to diagnose):

Spoiler

Please post logs using one of the following sites (Thank you Lumber Wizard for the list):

https://gist.github.com/100MB Requires member (Free)

https://pastebin.com/: 512KB as guest, 10MB as Pro ($$$)

https://hastebin.com/: 400KB

Do NOT use sites like Mediafire, Dropbox, OneDrive, Google Drive, or a site that has a countdown before offering downloads.

 

What to provide:

...for Crashes and Runtime issues:

Minecraft 1.14.4 and newer:

Post debug.log

Older versions:

Please update...

 

...for Installer Issues:

Post your installer log, found in the same place you ran the installer

This log will be called either installer.log or named the same as the installer but with .log on the end

Note for Windows users:

Windows hides file extensions by default so the installer may appear without the .jar extension then when the .log is added the log will appear with the .jar extension

 

Where to get it:

Mojang Launcher: When using the Mojang launcher debug.log is found in .minecraft\logs.

 

Curse/Overwolf: If you are using the Curse Launcher, their configurations break Forge's log settings, fortunately there is an easier workaround than I originally thought, this works even with Curse's installation of the Minecraft launcher as long as it is not launched THROUGH Twitch:

Spoiler
  1. Make sure you have the correct version of Forge installed (some packs are heavily dependent on one specific build of Forge)
  2. Make a launcher profile targeting this version of Forge.
  3. Set the launcher profile's GameDir property to the pack's instance folder (not the instances folder, the folder that has the pack's name on it).
  4. Now launch the pack through that profile and follow the "Mojang Launcher" instructions above.

Video:

Spoiler

 

 

 

or alternately, 

 

Fallback ("No logs are generated"):

If you don't see logs generated in the usual place, provide the launcher_log.txt from .minecraft

 

Server Not Starting:

Spoiler

If your server does not start or a command window appears and immediately goes away, run the jar manually and provide the output.

 

Reporting Illegal/Inappropriate Adfocus Ads:

Spoiler

Get a screenshot of the URL bar or copy/paste the whole URL into a thread on the General Discussion board with a description of the Ad.

Lex will need the Ad ID contained in that URL to report it to Adfocus' support team.

 

Posting your mod as a GitHub Repo:

Spoiler

When you have an issue with your mod the most helpful thing you can do when asking for help is to provide your code to those helping you. The most convenient way to do this is via GitHub or another source control hub.

When setting up a GitHub Repo it might seem easy to just upload everything, however this method has the potential for mistakes that could lead to trouble later on, it is recommended to use a Git client or to get comfortable with the Git command line. The following instructions will use the Git Command Line and as such they assume you already have it installed and that you have created a repository.

 

  1. Open a command prompt (CMD, Powershell, Terminal, etc).
  2. Navigate to the folder you extracted Forge’s MDK to (the one that had all the licenses in).
  3. Run the following commands:
    1. git init
    2. git remote add origin [Your Repository's URL]
      • In the case of GitHub it should look like: https://GitHub.com/[Your Username]/[Repo Name].git
    3. git fetch
    4. git checkout --track origin/master
    5. git stage *
    6. git commit -m "[Your commit message]"
    7. git push
  4. Navigate to GitHub and you should now see most of the files.
    • note that it is intentional that some are not synced with GitHub and this is done with the (hidden) .gitignore file that Forge’s MDK has provided (hence the strictness on which folder git init is run from)
  5. Now you can share your GitHub link with those who you are asking for help.

[Workaround line, please ignore]

 

Link to comment
Share on other sites

2 minutes ago, DaemonUmbra said:

Bingo, Forge for 1.12.2 only works with Java 8 due to a fundamental change in Java that occurred in Java 9 (Forge for 1.13 works in Java 8 or 10).

Oooooh I'll try - well I don't know what I'll try yet.  But I'll report back once I get going or hit a bump. 

Thank you so much!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.