Skip to content

OSM2World fails to start on Windows 10 – OpenGL error & missing configuration file #243

Open
@Passi27

Description

@Passi27

Description:
I am trying to run OSM2World on Windows 10 (64-bit) on a laptop with an AMD processor and GPU, but I keep encountering errors related to OpenGL and a missing configuration file.

If I try to open the JAR file directly by double-clicking it, nothing happens.

with cmd:

Microsoft Windows [Version 10.0.19045.5608]
(c) Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\passi>"C:\Program Files\Java\jdk-17\bin\java.exe" -Dsun.java2d.opengl=true -Dsun.java2d.opengl.fbobject=false -jar "C:\Users\passi\Documents\Cities 3D\OSM World\040\osm2world.jar"
No parameters, running graphical interface.
If you want to use the command line, use the --help parameter for a list of available parameters.
could not read config, ignoring it:
org.apache.commons.configuration.ConfigurationException: Unable to load the configuration from the URL file:/C:/Users/passi/%7B%7D
Exception in thread "main" com.jogamp.opengl.GLException: Unable to determine GraphicsConfiguration: WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, owner false, NullToolkitLock[obj 0x7df3e948]], idx 0], pfdID 20, ARB-Choosen true,
requested GLCaps[rgba 8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono , hw, GLProfile[GL2/GL4bc.hw], on-scr[.]],
chosen GLCaps[wgl vid 20 arb: rgba 8/8/8/8, opaque, accum-rgba 0/0/0/0, dp/st/ms 16/0/0, dbl, mono , hw, GLProfile[GL2/GL4bc.hw], on-scr[.]]]
at jogamp.opengl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(WindowsAWTWGLGraphicsConfigurationFactory.java:182)
at com.jogamp.nativewindow.GraphicsConfigurationFactory.chooseGraphicsConfiguration(GraphicsConfigurationFactory.java:424)
at com.jogamp.opengl.awt.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:1513)
at com.jogamp.opengl.awt.GLCanvas.addNotify(GLCanvas.java:609)
at java.desktop/java.awt.Container.addNotify(Container.java:2804)
at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4839)
at java.desktop/java.awt.Container.addNotify(Container.java:2804)
at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4839)
at java.desktop/java.awt.Container.addNotify(Container.java:2804)
at java.desktop/javax.swing.JComponent.addNotify(JComponent.java:4839)
at java.desktop/javax.swing.JRootPane.addNotify(JRootPane.java:729)
at java.desktop/java.awt.Container.addNotify(Container.java:2804)
at java.desktop/java.awt.Window.addNotify(Window.java:791)
at java.desktop/java.awt.Frame.addNotify(Frame.java:495)
at java.desktop/java.awt.Window.pack(Window.java:829)
at org.osm2world.viewer.view.ViewerFrame.(ViewerFrame.java:69)
at org.osm2world.console.OSM2World.executeArgumentsGroup(OSM2World.java:210)
at org.osm2world.console.OSM2World.main(OSM2World.java:151)

Expected Behavior:
The program should start normally and render the OSM data.

Actual Behavior:
The program fails to start, showing OpenGL-related errors and a missing configuration file.

System Information:
OS: Windows 10 (Version 10.0.19045.5608), 64-bit

Laptop: AMD processor & AMD GPU

Java Versions Tested:

OpenJDK 8 (64-bit & 32-bit)

OpenJDK 17 (64-bit & 32-bit)

OpenJDK 21 (64-bit & 32-bit)

Troubleshooting Already Done:
Tried different Java versions (8, 17, 21, both 32-bit and 64-bit) → No improvement.

Updated GPU drivers → No effect.

Set environment variables for OpenGL:

set _JAVA_OPTIONS="-Dsun.java2d.opengl=true -Dsun.java2d.opengl.fbobject=false -Dsun.java2d.d3d=false"
set MESA_GL_VERSION_OVERRIDE=2.1

→ No improvement.

Tried running in compatibility mode (Windows 7, 8, XP) → No effect.

Checked system logs & Java logs → The OpenGL-related error remains.

Possible Causes (Suspected):
OSM2World might have issues with AMD GPUs and OpenGL under Windows.

The missing configuration file might be preventing the application from starting.

The OpenGL version used by Java might not be fully compatible with my system.

Additional Notes:
I am happy to provide more logs or test additional solutions.

Let me know if there are specific debug options I can enable to gather more information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions