OSM2World icon indicating copy to clipboard operation
OSM2World copied to clipboard

latest release crashed on startup

Open zweutisiouz opened this issue 6 years ago • 3 comments

The Program did not start with the gui in the latest release

I tryed :
user@machine:~/Downloads/osm$ ./osm2world.sh --gui    

but it gives this output:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3 (file:/home/jan/Downloads/osm/lib/jogl/gluegen-rt.jar) to method java.lang.ClassLoader.findLibrary(java.lang.String)
WARNING: Please consider reporting this to the maintainers of com.jogamp.common.os.NativeLibrary$3
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Inconsistency detected by ld.so: dl-lookup.c: 111: check_match: Assertion `version->filename == NULL || ! _dl_name_match_p (version->filename, map)' failed!

My java version is :

user@machine:~/Downloads/osm$ java --version
openjdk 11.0.3 2019-04-16
OpenJDK Runtime Environment (build 11.0.3+7-Ubuntu-1ubuntu218.04.1)
OpenJDK 64-Bit Server VM (build 11.0.3+7-Ubuntu-1ubuntu218.04.1, mixed mode, sharing)

It did work on 0.1.9

I compiled directly from github and it did not work ether.

zweutisiouz avatar Jun 22 '19 16:06 zweutisiouz

This issue seems to occur on newer versions of Java. I may be related to JOGL or its dependencies as similar errors have been reported against other 3D-related Java software. OSM2World currently uses a really ancient version of that library, I'll investigate.

If you need an urgent workaround, try using OSM2World on Java 8 for now.

tordanik avatar Jun 24 '19 19:06 tordanik

It still doesn't work :(

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by jogamp.opengl.awt.Java2D$2 (file:/Users/xxxxxxxxxx/Downloads/binary/OSM2World-latest-bin/lib/jogl/jogl-all.jar) to field sun.java2d.opengl.OGLUtilities.UNDEFINED WARNING: Please consider reporting this to the maintainers of jogamp.opengl.awt.Java2D$2 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2020-05-27 20:35:55.937 java[30131:1742891] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'

My Java version is: java 14.0.1 2020-04-14 Java(TM) SE Runtime Environment (build 14.0.1+7) Java HotSpot(TM) 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing)

OS: macOS Catalina

Quick update. It works but without GUI. I've managed to convert from OSM to OBJ without GUI.

Syntax example: ./osm2world.sh -i filename.osm -o filename.obj

dawidry avatar May 27 '20 19:05 dawidry

Hello, I also faced the problem and had a work-around. Here : https://github.com/tordanik/OSM2World/issues/139#issuecomment-818447361

maifeeulasad avatar Apr 13 '21 05:04 maifeeulasad