Modify

Opened 5 years ago

Closed 5 years ago

#19309 closed defect (othersoftware)

Mac OS X 10.15.5 with AdoptOpenJDK 11.0.7 has black table headers

Reported by: taylor.smock Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report, mac, java11, AdoptOpenJDK Cc:

Description (last modified by taylor.smock)

What steps will reproduce the problem?

  1. java -jar ${PATH TO JOSM JAR}
  2. Open Imagery Preferences
  3. See black bars

What is the expected result?

Table headers are standard greyish colour

What happens instead?

Table headers are black


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

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2020-05-27 21:23:59 +0200 (Wed, 27 May 2020)
Revision:16511
Build-Date:2020-05-28 01:30:47
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (16511 en) Mac OS X 10.15.5
OS Build number: Mac OS X 10.15.5 (19F96)
Memory Usage: 370 MB / 4096 MB (115 MB allocated, but free)
Java version: 11.0.7+10, AdoptOpenJDK, OpenJDK 64-Bit Server VM
Screen: Display 69734272 1280x800, Display 188945226 1920x1080, Display 188945225 1920x1080
Maximum Screen Size: 1920x1080

Last errors/warnings:
- E: Region [TMS_BLOCK_v2] : Problem loading keys for file TMS_BLOCK_v2

Notes: Only reproducible with Java 11 on Mac. Java 8/14 both work properly.

Attachments (1)

Screen Shot 2020-05-28 at 3.42.31 PM.png (289.7 KB ) - added by taylor.smock 5 years ago.

Download all attachments as: .zip

Change History (9)

by taylor.smock, 5 years ago

comment:1 by taylor.smock, 5 years ago

Keywords: java11 added; os x java 11 removed

comment:2 by taylor.smock, 5 years ago

Summary: Mac OS X 10.15.5 with AdoptOpenJDK 11Mac OS X 10.15.5 with AdoptOpenJDK 11 has black table headers

comment:3 by simon04, 5 years ago

Description: modified (diff)

comment:4 by taylor.smock, 5 years ago

Description: modified (diff)

comment:5 by skyper, 5 years ago

Does this always happen? With only one screen attached?

Sometimes, I have a similar issues on Linux if the system is slow/heavy loaded but these are more artifacts which disappear. Did not figure out the real reason as it could be many (old hardware, wayland, gnome3, gnome3-plugins, openjdk or JOSM) or even a certain combination.

comment:6 by taylor.smock, 5 years ago

Summary: Mac OS X 10.15.5 with AdoptOpenJDK 11 has black table headersMac OS X 10.15.5 with AdoptOpenJDK 11.0.7 has black table headers

This seems to always happen. I'm inclined to file it as a Java bug, and specifically an AdoptOpenJDK bug. It only occurs with Java 11 with AdoptOpenJDK. It does not occur with Azul Java 11. It does not occur with AdoptOpenJDK 10 or 12. It also does not occur with AdoptOpenJDK 11.0.6. So this seems to be more of a regression on their end.

comment:8 by simon04, 5 years ago

Keywords: AdoptOpenJDK added
Resolution: othersoftware
Status: newclosed

Will be fixed in 11.0.8 –

https://github.com/AdoptOpenJDK/openjdk-support/issues/120#issuecomment-640045603

I tested on a nightly build of 11.0.8 and there the problem is fixed. As with 14.0.1, Swing does not try to adapt to Dark Mode. Instead, everything stays in light mode:

https://user-images.githubusercontent.com/198908/83943315-59983a80-a7fb-11ea-94dc-86da6636833b.png

Dark Mode is unsupported. The problem is indeed the 10.14 SDK (that Azul does not use yet) which automatically opts into Dark Mode support: https://bugs.openjdk.java.net/browse/JDK-8241135. The umbrella issue to opt out is https://bugs.openjdk.java.net/browse/JDK-8231438.

For reference, how to reproduce (enable Dark Mode):

$ wget https://docs.oracle.com/javase/tutorial/uiswing/examples/components/SimpleTableDemoProject/src/components/SimpleTableDemo.java
$ javac -d . SimpleTableDemo.java
$ java components.SimpleTableDemo

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.