Modify

Opened 4 years ago

Closed 4 years ago

#20934 closed defect (othersoftware)

JOSM display is just a mess

Reported by: ggranvik@… Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report Cc:

Description (last modified by skyper)

What steps will reproduce the problem?

  1. Selecting a menu, or opening a popup box.

What is the expected result?

What happens instead?

Screen, menus and popup boxes are just a mess. I have a screen shot I wanted to attach, but where do I put this??.

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

Have to shut down JOSM and restart. Sometimes it will work fine for a while, at other times everything is messed up as soon as I try to select something in a menu or open a data entering box. How can I attach a screen shot??

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-04-27 20:35:33 +0200 (Tue, 27 Apr 2021)
Build-Date:2021-04-27 21:58:39
Revision:17833
Relative:URL: ^/trunk

Identification: JOSM/1.5 (17833 en) Windows 10 64-Bit
OS Build number: Windows 10 Pro 2009 (19042)
Memory Usage: 870 MB / 1820 MB (384 MB allocated, but free)
Java version: 1.8.0_291-b10, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 2560×1440 (scaling 1.00×1.00)
Maximum Screen Size: 2560×1440
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: en_NO
Numbers with default locale: 1234567890 -> 1234567890
Dataset consistency test: No problems found

Plugins:
+ imagery_offset_db (35640)
+ turnrestrictions (35640)

Attachments (2)

JOSM-mess.tif (10.2 MB ) - added by ggranvik@… 4 years ago.
Screen shot of JOSM when the display is completely messed up.
JOSM-mess.jpg (380.7 KB ) - added by simon04 4 years ago.

Change History (17)

by ggranvik@…, 4 years ago

Attachment: JOSM-mess.tif added

Screen shot of JOSM when the display is completely messed up.

comment:1 by ggranvik@…, 4 years ago

Forgot to mention, but I have used JOSM for quite a long time - the problems appeared after recent updates (JOSM / Java).

comment:2 by stoecker, 4 years ago

That's very likely not a JOSM problem. Recommendation would be to switch to a recent Java version, e.g. 16 or 11 (LTS).

comment:3 by skyper, 4 years ago

Description: modified (diff)

comment:4 by skyper, 4 years ago

Description: modified (diff)

Sorry, the screenshot is not displayed in trac

in reply to:  1 comment:5 by skyper, 4 years ago

Mmh, I have faced problems on startup with the window geometry which I am able to solve by switching into fullscreen (F11) and back to windowed mode (F11)

Replying to ggranvik@…:

Forgot to mention, but I have used JOSM for quite a long time - the problems appeared after recent updates (JOSM / Java).

Sounds more like a memory issue with not enough memory or using swap/virtual memory. Note, JOSM needs more memory for imagery caching lately.
I get all kinds of artifacts when running out of physical memory.

by simon04, 4 years ago

Attachment: JOSM-mess.jpg added

comment:6 by anonymous, 4 years ago

Thanks for the answers!

  • I have updated Java a couple of times since encountering the problem, but that hasn't changed anything.
  • I use a desktop PC with 32 GB RAM, so there should be plenty of memory...
  • I'll try the F11 trick!

in reply to:  6 ; comment:7 by skyper, 4 years ago

Replying to ggranvik@…:

Memory Usage: 870 MB / 1820 MB (384 MB allocated, but free)
Java version: 1.8.0_291-b10, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Screen: \Display0 2560×1440 (scaling 1.00×1.00)

Replying to anonymous:

  • I have updated Java a couple of times since encountering the problem, but that hasn't changed anything.
  • I use a desktop PC with 32 GB RAM, so there should be plenty of memory...

You need to upgrade to java version 11 or 16. A simple update will not work. HiDpi is only support from java version 9 on. Additionally, it might give JOSM more memory automatically as it should be 25% of your physical memory by default.

in reply to:  7 comment:8 by ggranvik@…, 4 years ago

Replying to skyper:

You need to upgrade to java version 11 or 16. A simple update will not work. HiDpi is only support from java version 9 on. Additionally, it might give JOSM more memory automatically as it should be 25% of your physical memory by default.

Ok, thanks. I have been using Oracle's Java, which seems to be in version 8. But after Googling "Java ver 16" I found something called OpenJDK. Is that the one I have to use?

in reply to:  7 comment:9 by anonymous, 4 years ago

Replying to skyper:

You need to upgrade to java version 11 or 16. A simple update will not work. HiDpi is only support from java version 9 on. Additionally, it might give JOSM more memory automatically as it should be 25% of your physical memory by default.

Ok, I tried to find Java 11 or 16 Run Time Environment (JRE), but only found SDK (System Developer Kit) - but I'm not programming in Java, so I guess I don't need that. If I start JOSM without Java installed, it points me to Oracle's JRE download page, which only offers version 8 as far as I can see.

If Java 8 doesn't support my high resolution display, it explains the problem, because I did actually upgade to a hi res display recently! I'll try to search again on the net for JRE 11 or 16, but so far I'm stuck...

comment:10 by stoecker, 4 years ago

It seems since Java 10 JDK and JRE are no longer separate:

OpenJDK:

Oracle Download Version:

I'd recommend switching to the OpenJDK variant. It should essentially be the same (some proprietary stuff which nobody uses is missing, but step by step that's also dropped by Oracle).

If you have questions or use the Webstart technology instead of the installed Windows exe, have a look here: https://adoptopenjdk.net/migration.html

in reply to:  10 comment:11 by simon04, 4 years ago

Replying to stoecker:

It seems since Java 10 JDK and JRE are no longer separate:

This only applies for the releases on jdk.java.net

AdoptOpenJDK, Oracle, etc. still provide separate downloads for JDK and JRE.

in reply to:  10 comment:12 by ggranvik@…, 4 years ago

Replying to stoecker:

It seems since Java 10 JDK and JRE are no longer separate:

OpenJDK:

Oracle Download Version:

I'd recommend switching to the OpenJDK variant. It should essentially be the same (some proprietary stuff which nobody uses is missing, but step by step that's also dropped by Oracle).

If you have questions or use the Webstart technology instead of the installed Windows exe, have a look here: https://adoptopenjdk.net/migration.html

Ok, thanks, I'll check out the webstart option. I did try to download the whole Java 16 package, but didn't find any install program among the zillion files and folders in the zip file. Tried to follow instructions from a web site and copied the whole folder structure to c:\Java, then setting the path in Windows' environment settings, but JOSM reported no Java JRE found on the computer. Seems there are no JRE to be found anywhere newer than version 8.

comment:13 by mdk, 4 years ago

Go to https://adoptopenjdk.net/releases.html
Select version (Hot Spot is ok), Operating system and architecture.
Download JRE or JDK as .msi installer (not .zip). Both, JRE and JDK will work.
Install.
Hope this will help you.

Direct link to OpenJDK 16 for 64 bit windows:
https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16.0.1%2B9/OpenJDK16U-jre_x64_windows_hotspot_16.0.1_9.msi

Last edited 4 years ago by mdk (previous) (diff)

in reply to:  13 ; comment:14 by ggranvik@…, 4 years ago

Replying to mdk:

Go to https://adoptopenjdk.net/releases.html
Select version (Hot Spot is ok), Operating system and architecture.
Download JRE or JDK as .msi installer (not .zip). Both, JRE and JDK will work.
Install.
Hope this will help you.

Direct link to OpenJDK 16 for 64 bit windows:
https://github.com/AdoptOpenJDK/openjdk16-binaries/releases/download/jdk-16.0.1%2B9/OpenJDK16U-jre_x64_windows_hotspot_16.0.1_9.msi

Thanks a lot - a newer JRE without all the Java programming tools was what I had been looking for! I have removed all the other Java stuff and installed the AdoptOpenJDK runtime now, and it seems to work ok with JOSM! :-)

in reply to:  14 comment:15 by skyper, 4 years ago

Resolution: othersoftware
Status: newclosed

Replying to ggranvik@…:

Thanks a lot - a newer JRE without all the Java programming tools was what I had been looking for! I have removed all the other Java stuff and installed the AdoptOpenJDK runtime now, and it seems to work ok with JOSM! :-)

Ok, I close this ticket then. Please, reopen if you face the problem again.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.