Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3D Map] Is not working with Java 17 - MT 21.12 #432

Closed
maclura opened this issue Dec 28, 2021 · 6 comments
Closed

[3D Map] Is not working with Java 17 - MT 21.12 #432

maclura opened this issue Dec 28, 2021 · 6 comments

Comments

@maclura
Copy link

maclura commented Dec 28, 2021

I installed a new copy of Win 11 on a brand new HD, and now I am no longer able to see the 3D map in MT 21.12.
In the past, I upgraded Win 10 to Win 11 on another PC and the 3D map was working very well on MT 21.9.

Here is the error:
"Failed to create the part's controls"
and attached the error details

This error happens with:
OpenJDK16U-jdk_x64_windows_hotspot_16.0.2_7.msi
OpenJDK17U-jdk_x64_windows_hotspot_17.0.1_12.msi
microsoft-jdk-17.0.1.12.1-windows-x64.msi

Instead with
OpenJDK11U-jdk_x64_windows_hotspot_11.0.9_11.msi
microsoft-jdk-11.0.13.8.1-windows-x64.msi

I don't see any error, but this is what I see
IMG_01 : my map conf + 3D map window
IMG_02: this is the max zoom I can reach, after that,
IMG_03: this is what I see with more zoom
IMG_04: randomly zooming and rotating, sometime I see these 2 tiles from Bing imaginary
MT-3Dmap-error-log_2021-12-27.log
IMG_01
IMG_02
IMG_03
IMG_04

@wolfgang-ch wolfgang-ch changed the title 3D Map not working on Win 11 [3D Map] Is not working with Java 17 Dec 29, 2021
@wolfgang-ch
Copy link
Collaborator

Win10 with OpenJDK17U-jdk_x64_windows_hotspot_17.0.1_12.msi

image

@wolfgang-ch wolfgang-ch changed the title [3D Map] Is not working with Java 17 [3D Map] Is not working with Java 17 - MT 21.12 Dec 29, 2021
@FJBDev
Copy link
Collaborator

FJBDev commented Jan 3, 2022

Maybe you could open a bug in JogAmp Bugzilla and add the stacktrace.

@wolfgang-ch
Copy link
Collaborator

You cannot register a new user account in bugzilla, so I created a forum entry

https://forum.jogamp.org/jogl-2-4-and-Java-17-Index-1-out-of-bounds-for-length-1-td4041575.html

@wolfgang-ch
Copy link
Collaborator

This problem can be fixed by adding these vm parameters

--add-exports java.base/java.lang=ALL-UNNAMED
--add-exports java.desktop/sun.awt=ALL-UNNAMED
--add-exports java.desktop/sun.java2d=ALL-UNNAMED

https://forum.jogamp.org/jogl-2-4-and-Java-17-Index-1-out-of-bounds-for-length-1-td4041575.html#d1641378052144-283

wolfgang-ch added a commit that referenced this issue Jan 6, 2022
This fix is documented in #432 (comment)

VERY IMPORTANT: This fix will only work, when there are NO ADDITIONAL -vmargs in the command line as they would overwrite the fixing arguments !!!
@wolfgang-ch wolfgang-ch added this to the 22.1 milestone Jan 6, 2022
@wolfgang-ch
Copy link
Collaborator

Fixed in efa56be

It took me several hours with testing to get it fixed in the product, see product and commit comments

@wolfgang-ch
Copy link
Collaborator

3D map would work only with this fix --add-exports java.desktop/sun.awt=ALL-UNNAMED but the others are now also set

@wolfgang-ch wolfgang-ch added Java 17 and removed Java labels Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants