Menu

#3340 Freecol process closes immediately after starting

Current
open-needs-info
None
5
2024-07-01
2023-08-14
Adrian
No

I'm on Windows 7 and am experiencing this problem with Freecol version 1.0 and 1.1. Whenever I install Freecol and then run the .exe file, it looks like no program is running on my screen. Using the Task Manager I see that two Freecol processes start immediately after I run the .exe, then close in less than a second. Because of this I have not been able to play the game.

Discussion

  • Stian Grenborgen

    A couple of questions:

    1. Did you install the game with the installer that includes Java ("freecol-1.1.0-with-java.exe (sourceforge.net)")?

    2. Could you attach the file "FreeCol.log" from the folder "Documents\freecol" to this bug report?

    Possible workaround
    My intial guess is that you are running on 32 bit (x86) since we have only tested FreeCol on 64 bit (x64) Windows 7. If that is the case, you can probably install Java manually and run FreeCol using "freecol.cmd".

    Java can be downloaded from: https://adoptium.net/temurin/

     
  • Stian Grenborgen

    • status: open --> open-needs-info
    • assigned_to: Stian Grenborgen
     
  • g504

    g504 - 2023-11-02

    I have the same experience. Two threads are left behind, one is 0% cpu and 0.7MB, the second is 0% cpu and 784MB.

    FreeCol v1.1.0 (installed from pack with Java)
    Windows 10 22H2 build 19045.3570
    Java SE Dev Kit 17.0.5 (64 bit)

    Installed from "freecol-1.1.0-with-java.exe" on to drive D:
    Launched to full screen from entry in start menu
    No log file in documents\freecol

     

    Last edit: g504 2023-11-02
  • g504

    g504 - 2023-11-02

    UPDATE: No log because of Windows protected location feature. Now here is the log after I allowed FreeCol to write to documents folder.

    FreeCol game version: 1.1.0 (Revision: e66700b)
    FreeCol protocol version: 0.1.6

    Java vendor: Eclipse Adoptium
    Java version: 19.0.2
    Java WM name: OpenJDK 64-Bit Server VM
    Java WM vendor: Eclipse Adoptium
    Java WM version: 19.0.2+7

    OS name: Windows 10
    OS architecture: amd64
    OS version: 10.0

    net.sf.freecol.common.util.LogBuilder log
    INFO: sun.java2d.pmoffscreen using client option: true, sun.java2d.opengl using client option: true
    Thu Nov 02 17:13:26 GMT 2023
    Thread: 1
    net.sf.freecol.FreeCol main
    INFO: Configuration:
    version 1.1.0 (Revision: e66700b)
    java: 19.0.2
    memory: 8573157376
    locale: en_GB
    data: data
    userConfig: D:\Users\tim\Documents\freecol
    userData: D:\Users\ooo\Documents\freecol
    autosave: D:\Users\ooo\Documents\freecol\save\autosave
    logFile: D:\Users\ooo\Documents\freecol\FreeCol.log
    options: D:\Users\ooo\Documents\freecol\freecol\options.xml
    save: D:\Users\ooo\Documents\freecol\save
    userMods: D:\Users\ooo\Documents\freecol\mods
    seed: 8105321648018202434
    debug:
    Thu Nov 02 17:13:26 GMT 2023
    Thread: 1
    net.sf.freecol.common.resources.FontResource <init>
    INFO: Loaded font: Dialog.plain from: urn:font:Dialog-PLAIN-12
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 29
    net.sf.freecol.common.resources.FontResource <init>
    INFO: Loaded font: ShadowedBlack from: file:/d:/Program%20Files/freecol/data/base/resources/fonts/ShadowedBlack.ttf
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 29
    net.sf.freecol.common.resources.FontResource <init>
    INFO: Loaded font: Serif.plain from: urn:font:Serif-PLAIN-12
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 29
    net.sf.freecol.client.FreeColClient loadClientOptions
    INFO: Load default client options.
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 29
    net.sf.freecol.common.option.OptionGroup load
    INFO: Load OptionGroup(clientOptions) from data\base\client-options.xml succeeded
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 29
    net.sf.freecol.client.FreeColClient loadClientOptions
    INFO: Load client options from the action manager.
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 29
    net.sf.freecol.client.FreeColClient loadClientOptions
    INFO: Merge client options from user options file: D:\Users\ooo\Documents\freecol\freecol\options.xml
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 29
    net.sf.freecol.common.option.OptionGroup load
    INFO: Load OptionGroup(clientOptions) from D:\Users\ooo\Documents\freecol\freecol\options.xml succeeded
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 29
    net.sf.freecol.client.gui.SwingGUI determineScaleFactorUsingClientOptions
    INFO: Automatic scale factor: 1.25 (reported DPI: 96, screen height: 1440)
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 29
    net.sf.freecol.client.gui.SwingGUI <init>
    INFO: GUI constructed using scale factor 1.25
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 29
    net.sf.freecol.client.gui.SwingGUI determineMainFontSizeUsingClientOptions
    INFO: Automatic font size: 16 (reported DPI: 96, screen height: 1440)
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 29
    net.sf.freecol.client.control.SoundController <init>
    INFO: Create sound player with [model.option.audioMixer PL3493WQ (NVIDIA High Definition Audio)/PL3493WQ (NVIDIA High Definition Audio), version Unknown Version]
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 29
    net.sf.freecol.common.sound.SoundPlayer setMixer
    INFO: Mixer PL3493WQ (NVIDIA High Definition Audio)/PL3493WQ (NVIDIA High Definition Audio), version Unknown Version selected
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 29
    net.sf.freecol.common.sound.SoundPlayer setMixer
    INFO: Mixer PL3493WQ (NVIDIA High Definition Audio)/PL3493WQ (NVIDIA High Definition Audio), version Unknown Version selected
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 29
    net.sf.freecol.common.resources.ResourceManager$1 run
    INFO: Preload thread started
    Thu Nov 02 17:13:27 GMT 2023
    Thread: 50
    net.sf.freecol.common.resources.ResourceManager$1 run
    INFO: Preload done, 1293 resources.
    Thu Nov 02 17:13:34 GMT 2023
    Thread: 50
    net.sf.freecol.client.FreeColClient lambda$overrideDefaultUncaughtExceptionHandler$8
    WARNING: Uncaught exception from thread: Thread[#29,AWT-EventQueue-0,6,main]
    Thu Nov 02 17:13:34 GMT 2023
    Thread: 29
    Stack trace:
    java.lang.RuntimeException: Missing option: model.option.mapControls
    at net.sf.freecol.common.option.OptionGroup.getOption(OptionGroup.java:406)
    at net.sf.freecol.common.option.OptionContainer.getString(OptionContainer.java:194)
    at net.sf.freecol.client.gui.panel.MapControls.newInstance(MapControls.java:207)
    at net.sf.freecol.client.gui.SwingGUI.startGUI(SwingGUI.java:798)
    at net.sf.freecol.client.FreeColClient.lambda$new$0(FreeColClient.java:279)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
    at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
    at java.base/java.security.AccessController.doPrivileged(Unknown Source)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
    at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)</init></init></init></init></init>


     
  • Stian Grenborgen

    @g504: I think this issue might have been fixed in the development version some time ago. Could you test that version and report back?

     
  • g504

    g504 - 2024-07-01

    @Stian
    I will try. I am away from the computer for 8 days.

     

Log in to post a comment.

MongoDB Logo MongoDB