Modify

Opened 14 months ago

Closed 13 months ago

Last modified 13 months ago

#23215 closed defect (othersoftware)

UI glitch in debug mode

Reported by: gaben Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report debug UI wayland linux vm virtual acceleration Cc:

Description (last modified by gaben)

What steps will reproduce the problem?

  1. Prepare JOSM in IntelliJ
  2. Debug the JAR file

What is the expected result?

JOSM UI works as usual.

What happens instead?

Weird UI glitches everywhere. See the similar repetitive icons and mixed translations.





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

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2023-08-29 13:38:40 +0200 (Tue, 29 Aug 2023)
Revision:18822
Build-Date:2023-08-30 01:30:57
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18822 hu) Linux Ubuntu 22.04.3 LTS
Memory Usage: 848 MB / 2476 MB (425 MB allocated, but free)
Java version: 17.0.8.1+1-Ubuntu-0ubuntu122.04, Private Build, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1912×1016 (scaling 1.00×1.00)
Maximum Screen Size: 1912×1016
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: hu_HU.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: hu_HU
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: ubuntu:GNOME
Java package: openjdk-17-jre:amd64-17.0.8.1+1~us1-0ubuntu1~22.04
Java ATK Wrapper package: libatk-wrapper-java:all-0.38.0-5build1
fonts-noto: fonts-noto:-
VM arguments: [-Djosm.cache=<josm.cache>, -Djosm.pref=<josm.pref>, -Djosm.userdata=<josm.userdata>, -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=127.0.0.1:37241, -Dfile.encoding=UTF-8, -Duser.country=HU, -Duser.language=hu, -Duser.variant]
Program arguments: [--debug, --load-preferences=file:<josm.pref>erences-init.xml]
Dataset consistency test: No problems found

Plugins:
+ libphonenumber (8.13.22)
+ phonenumber (1.0.4)

Attachments (4)

UI_1.png (113.5 KB ) - added by gaben 14 months ago.
UI_2.png (92.1 KB ) - added by gaben 14 months ago.
UI_3.png (13.4 KB ) - added by gaben 14 months ago.
UI_4.png (1.8 MB ) - added by gaben 14 months ago.

Download all attachments as: .zip

Change History (13)

by gaben, 14 months ago

Attachment: UI_1.png added

by gaben, 14 months ago

Attachment: UI_2.png added

by gaben, 14 months ago

Attachment: UI_3.png added

comment:1 by gaben, 14 months ago

Description: modified (diff)

comment:2 by taylor.smock, 14 months ago

Java version: 17.0.8.1+1-Ubuntu-0ubuntu122.04, Private Build, OpenJDK 64-Bit Server VM
VM arguments: [-Djosm.cache=<josm.cache>, -Djosm.pref=<josm.pref>, -Djosm.userdata=<josm.userdata>, -agentlib:jdwp=transport=dt_socket,server=n,suspend=y,address=127.0.0.1:37241, -Dfile.encoding=UTF-8, -Duser.country=HU, -Duser.language=hu, -Duser.variant]

You have some missing VM arguments. I don't think they should affect anything, but it is a possibility.

It is working for me when I start JOSM from the command line with java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=\*:5005 -jar dist/josm-custom.jar. Note that I'm on macos, not Ubuntu though.

comment:3 by gaben, 14 months ago

Thanks, I'll check it. I'm using VMware Workstation if it's making a difference, probably shouldn't.

comment:4 by taylor.smock, 14 months ago

I have no clue. I would assume it is better than Virtualbox, but IDK.

I have seen graphical issues in Virtualbox before, so that might be the problem. But I don't know why it would make a difference. It seems like it is reading the same image file for all three buttons, and I don't know how or why that would happen.

by gaben, 14 months ago

Attachment: UI_4.png added

comment:5 by gaben, 14 months ago

Description: modified (diff)

Not just the icons, but the slippy map is affected as well. Maybe it's some caching issue?

comment:6 by taylor.smock, 14 months ago

Maybe, but I doubt it; the slippy map and icons use two separate paths, and both use different keys for caching. The icons use the icon path ("images/image.svg") while the slippy map uses the tile ("z/x/y"). I'd try a different renderer, but I think Java only has an OpenGL backend for linux.

My best guess is there is some kind of issue with BufferedImage with the driver that the VM uses.

If you have another (spare) machine, I'd try on that machine.

comment:7 by gaben, 14 months ago

Good idea, thanks for the suggestion. I have multiple VMs and a physically dual bootable system, so technically I can test anything. The rest is just time and experience which I both lack for proper debugging.

comment:8 by gaben, 13 months ago

Keywords: wayland linux vm virtual acceleration added
Resolution: othersoftware
Status: newclosed

Backstory: I develop in a VM and have never run a JOSM development instance on a bare OS.

Solution: disable 3D acceleration for the VM, as suggested in https://youtrack.jetbrains.com/issue/JBR-4507/After-upgrading-Ubuntu-to-22.04-LTS-some-GUI-elements-are-not-displayed#focus=Comments-27-6793613.0-0

Probably, some software parts are still missing for Wayland (Ubuntu switched from X.org to W in 21.04).

comment:9 by taylor.smock, 13 months ago

Java still doesn't support Wayland (see Project Wakefield). I'm hoping that desktop portals are in scope for it, but I wouldn't hold my breath on that.

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.