FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    FAF Client crashes on launch / Startup error

    Scheduled Pinned Locked Moved I need help
    26 Posts 8 Posters 2.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A Offline
      Anybody00
      last edited by

      1 Reply Last reply Reply Quote 0
      • A Offline
        Anybody00
        last edited by

        Whats next to do?

        1 Reply Last reply Reply Quote 0
        • A Offline
          alien555cz
          last edited by alien555cz

          i only instaled driver graphic, restart pc its all. before instaled i searched all "forever" directory on "C" storage and delete

          1 Reply Last reply Reply Quote 0
          • MostLostNoobM Offline
            MostLostNoob
            last edited by

            @Anybody00 Can you please copy the text from the error message & save it in a text file, then post that file to this thread per the previous steps so those that can help have that to review?

            1 Reply Last reply Reply Quote 0
            • A Offline
              Anybody00
              last edited by

              The Error message
              java.lang.RuntimeException Exceptio.txt

              1 Reply Last reply Reply Quote 0
              • maggeM Offline
                magge Global Moderator
                last edited by

                Which OS and security solution do you use? @Anybody00
                Maybe it is related to user permission rights or security software is interfering.

                Want to become a Moderator? || Open volunteer positions
                1 Reply Last reply Reply Quote 0
                • A Offline
                  Anybody00
                  last edited by

                  My pc runs on windows, Edition Windows 11 Pro, Version: 21H2 and I'm using Avast Free Antivirus.
                  My pc is still at version 21H2 and when I check for updates there's nothing new shown. Last time I tried installing such an update it didn't work. Could that be a problem?

                  1 Reply Last reply Reply Quote 0
                  • maggeM Offline
                    magge Global Moderator
                    last edited by

                    I bet all my channel points from FAF Twitch, that Avast is causing issues. Try to whitelist/deactivate/uninstall for testing purpose and try again with FAF.

                    Want to become a Moderator? || Open volunteer positions
                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      Anybody00
                      last edited by

                      Still didn't work unfortunatly, I did remove Avast and I reinstalled FAF.

                      Here's the error message
                      java.lang.RuntimeException Exceptio.txt

                      AmygdalaA 1 Reply Last reply Reply Quote 0
                      • AmygdalaA Offline
                        Amygdala @Anybody00
                        last edited by

                        @anybody00 did you restart your PC? I remember that that fixed it for someone with with a similar issue as Avast was still lurking around after it got uninstalled

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          Anybody00
                          last edited by Anybody00

                          Yes, I did restart my pc. After that I looked for files named with avast and I removed them too.

                          1 Reply Last reply Reply Quote 0
                          • maggeM Offline
                            magge Global Moderator
                            last edited by

                            To be sure, remove those folders before you reinstall FAF:

                            
                            C:\ProgramData\FAForever
                            
                            %LOCALAPPDATA%\Gas Powered Games\Supreme Commander Forged Alliance\
                            

                            And double check after the installation that you have the necessary permissions to access and read the files/directory.

                            Your last log has the same error as your first one:

                            Caused by: java.nio.file.FileSystemException: C:\ProgramData\FAForever\cache\stylesheets: Die Datei oder das Verzeichnis ist beschädigt und nicht lesbar
                            

                            (ENG translation: The file or directory is corrupted and not readable)

                            Want to become a Moderator? || Open volunteer positions
                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              Anybody00
                              last edited by

                              Hi,
                              removing the two folders did help.
                              (Actually the FAF folder wasn't deletable in any way so I just renamed it)

                              I can now launch FAF normally.
                              Thank you for your support:) ❤

                              1 Reply Last reply Reply Quote 2
                              • deletethisD Offline
                                deletethis
                                last edited by

                                It is good that the main problem was fixed but it's concerning that you couldn't delete the folder: it's possible that you had some process still running or your disk might be damaged.

                                Consider a disk checker scan just to know if you need to replace your drive.

                                1 Reply Last reply Reply Quote 0
                                • E EpicJeans referenced this topic on
                                • N Offline
                                  Ne0G
                                  last edited by

                                  I have a similar problem. It starts with same header, but its about "preferenceService".

                                  "
                                  java.lang.RuntimeException: Exception in Application init method
                                  at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:888)
                                  at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:196)
                                  at java.base/java.lang.Thread.run(Thread.java:1583)
                                  Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'preferencesService' defined in URL [jar:file:/C:/Program%20Files/FAF%20Client/lib/faf-client-2024.6.2-plain.jar!/com/faforever/client/preferences/PreferencesService.class]: Unsatisfied dependency expressed through constructor parameter 1: Error creating bean with name 'preferencesConfig' defined in URL [jar:file:/C:/Program%20Files/FAF%20Client/lib/faf-client-2024.6.2-plain.jar!/com/faforever/client/config/PreferencesConfig.class]: Failed to instantiate [com.faforever.client.config.PreferencesConfig$$SpringCGLIB$$0]: Constructor threw exception
                                  at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:795)
                                  at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:237)
                                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1357)
                                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1194)
                                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)
                                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
                                  at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
                                  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
                                  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
                                  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
                                  at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:975)
                                  at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:962)
                                  at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:624)
                                  at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:754)
                                  at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:456)
                                  at org.springframework.boot.SpringApplication.run(SpringApplication.java:335)
                                  at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:149)
                                  at com.faforever.client.FafClientApplication.init(FafClientApplication.java:59)
                                  at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:817)
                                  ... 2 more
                                  Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'preferencesConfig' defined in URL [jar:file:/C:/Program%20Files/FAF%20Client/lib/faf-client-2024.6.2-plain.jar!/com/faforever/client/config/PreferencesConfig.class]: Failed to instantiate [com.faforever.client.config.PreferencesConfig$$SpringCGLIB$$0]: Constructor threw exception
                                  at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:318)
                                  at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:306)
                                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1357)
                                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1194)
                                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)
                                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
                                  at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
                                  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
                                  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
                                  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
                                  at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:409)
                                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1337)
                                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1167)
                                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)
                                  at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
                                  at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
                                  at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
                                  at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
                                  at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
                                  at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254)
                                  at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1443)
                                  at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1353)
                                  at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:904)
                                  at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:782)
                                  ... 20 more
                                  Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.faforever.client.config.PreferencesConfig$$SpringCGLIB$$0]: Constructor threw exception
                                  at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:221)
                                  at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:111)
                                  at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:315)
                                  ... 43 more
                                  Caused by: com.sun.jna.platform.win32.Win32Exception: The system cannot find the path specified.
                                  at com.sun.jna.platform.win32.Shell32Util.getFolderPath(Shell32Util.java:58)
                                  at com.sun.jna.platform.win32.Shell32Util.getFolderPath(Shell32Util.java:71)
                                  at com.faforever.client.os.OsWindows.getDefaultVaultDirectory(OsWindows.java:106)
                                  at com.faforever.client.config.PreferencesConfig.constructDefaultPrefernces(PreferencesConfig.java:241)
                                  at com.faforever.client.config.PreferencesConfig.readExistingPreferences(PreferencesConfig.java:207)
                                  at com.faforever.client.config.PreferencesConfig.<init>(PreferencesConfig.java:84)
                                  at com.faforever.client.config.PreferencesConfig$$SpringCGLIB$$0.<init>(<generated>)
                                  at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
                                  at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
                                  at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
                                  at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:208)
                                  ... 45 more
                                  "
                                  Comment that After having installed SupCom FA, i had issue with this:
                                  C:\ProgramData\FAForever

                                  %LOCALAPPDATA%\Gas Powered Games\Supreme Commander Forged Alliance\

                                  Because 1) a steam install lua asks for that gas powered folder and precents FA from launching. Editing that lua file and removing those 2 lines allows normal startup of FA from steam, but the FAF client kept crashing (I did delete it and re-install it).

                                  After reading this thread, i noticed that I had a previous installation of FAF in 2020 in a windows 7 era, so I deleted the program data folder, but the issue remains.

                                  Now I am here.

                                  1 Reply Last reply Reply Quote 0
                                  • N Offline
                                    Ne0G
                                    last edited by

                                    Seems like windows thinks i have a "Downlord's FAF Client 1.2.1" for which i already deleted all the files...

                                    1 Reply Last reply Reply Quote 0
                                    • S Offline
                                      Sheikah
                                      last edited by

                                      I suspect it is a permissions issue where FAF is trying to create or read a folder but doesn't have the permission to do so.

                                      1 Reply Last reply Reply Quote 0

                                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                      With your input, this post could be even better 💗

                                      Register Login
                                      • First post
                                        Last post