Modify

Opened 7 weeks ago

Last modified 13 days ago

#21278 new defect

JOSM.exe runs upscaled

Reported by: anonymous Owned by: team
Priority: major Milestone: 21.10
Component: Core Version:
Keywords: template_report jpackage windows hidpi scaling usablity Cc: Klerik7, matheusgomesms

Description

What steps will reproduce the problem?

  1. When I run latest Windows 18191 JOSM.exe JOSM is upscaled, when I run .jar using command prompt "java -jar josm-custom.jar" everything is ok.

https://i.imgur.com/GlJxC6t.png
https://i.imgur.com/4s5n8FX.png

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

Revision:18191
Build-Date:2021-09-01 22:57:30

Identification: JOSM/1.5 (18191 en) Windows 10 64-Bit
OS Build number: Windows 10 Enterprise 2009 (19042)
Memory Usage: 376 MB / 10184 MB (193 MB allocated, but free)
Java version: 16.0.2+7, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.25×1.25)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1257
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18191, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\JOSM.exe]

Plugins:
+ EasyPresets (1623509627)
+ apache-commons (35524)
+ ejml (35458)
+ geotools (35458)
+ jaxb (35543)
+ jts (35458)
+ opendata (35803)
+ reltoolbox (35640)
+ utilsplugin2 (35792)

Tagging presets:
+ <josm.pref>/EasyPresets.xml

Last errors/warnings:
- 00000.521 W: extended font config - overriding 'filename.Myanmar_Text=mmrtext.ttf' with 'MMRTEXT.TTF'
- 00000.524 W: extended font config - overriding 'filename.Mongolian_Baiti=monbaiti.ttf' with 'MONBAITI.TTF'
- 00003.271 E: java.security.KeyStoreException: Windows-ROOT not found. Cause: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available
- 00009.824 W: Cannot lock cache directory. Will not use disk cache

Attachments (0)

Change History (12)

comment:1 Changed 7 weeks ago by Don-vip

Keywords: jpackage windows added

comment:2 Changed 7 weeks ago by gaben

Spotted the issue: Java version: 16.0.2+7 + scaling 1.25×1.25.

Java 8+ fractional scaling on Windows is weird. See my comment here. I guess when you run it with jar, you actually run it with Java 8 where everything* looks good. The whole issue originates around JDK-8055212.

*everything: nearly, but sadly no, see eg. #20850

Last edited 7 weeks ago by gaben (previous) (diff)

comment:3 Changed 7 weeks ago by skyper

Ticket #21283 has been marked as a duplicate of this ticket.

comment:4 in reply to:  2 Changed 7 weeks ago by skyper

Cc: Klerik7 added

Replying to gaben:

Spotted the issue: Java version: 16.0.2+7 + scaling 1.25×1.25.

Java 8+ fractional scaling on Windows is weird. See my comment here. I guess when you run it with jar, you actually run it with Java 8 where everything* looks good. The whole issue originates around JDK-8055212.

*everything: nearly, but sadly no, see eg. #20850

HiDpi support was added in java 9. Please, take a look at the status report when running the .jar file. It should tell you which java version is used.

comment:5 Changed 7 weeks ago by skyper

Ticket #21297 has been marked as a duplicate of this ticket.

comment:6 Changed 7 weeks ago by skyper

Cc: matheusgomesms added

comment:7 Changed 7 weeks ago by gaben

Keywords: hidpi scaling usablity added
Priority: normalmajor

I think it's fair to assume it is a major usability issue. Users just started using the new exe and already having issues.

comment:8 Changed 7 weeks ago by InsertUser

I am also getting a comically enlarged version of JOSM after the latest update to 18193. The file menu now scrolls because it won't fit on the screen. Map tiles also appear to be rendering too small. Unfortunately the 18118 version left behind by the new installer now complains about plugins that it is too old for.

Is there a way to fix this?

comment:9 Changed 6 weeks ago by skyper

Is this a problem with the windows installer or a general issue with hiDPI + Windows + java16?

comment:10 Changed 6 weeks ago by Don-vip

Customized scaling issue, behaviour changed for users who went straight from Java 8 to Java 16 with the new installer:
#21278: 1920×1080 (scaling 1.25×1.25)
#21283: 1920×1080 (scaling 1.25×1.25)
#21297: 3200×1800 (scaling 2.00×2.00)

comment:11 Changed 6 weeks ago by Don-vip

Milestone: 21.09

comment:12 Changed 13 days ago by Don-vip

Milestone: 21.0921.10

Milestone renamed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set.
to The owner will be changed from team to the specified user.
The owner will change to anonymous
as duplicate The resolution will be set to duplicate.The specified ticket will be cross-referenced with this ticket
The owner will be changed from team to anonymous.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.