VirtualBox

Opened 4 weeks ago

Last modified 4 weeks ago

#22075 new defect

java fonts are shown garbled with 3d support

Reported by: teskor Owned by:
Component: 3D support Version: VirtualBox-7.0.18
Keywords: fonts java garbled Cc: teskor
Guest type: Linux Host type: Windows

Description (last modified by teskor)

After updating from 6.1.50 to 7.0.18 java fonts and some window titles are not shown/garbled (see attached screenshots). Some window titles (e.g. from vlc) have the same problem while gtk windows seem to work fine. To exclude any problems with the guest I did a clean install of rocky linux 9 as guest, where I could see the same behaviour. I started the same vm on a different host (linux) where it worked fine, so I guess it must have something to do either with windows or my hardware (Dell Precision 5540 with an NVIDIA Quadro T2000).

This is the simple java program to reproduce:

TopLevelWindow.java:

import java.awt.*;
import javax.swing.*;
// Create a simple GUI window
public class TopLevelWindow {
        private static void createWindow() {
        JFrame frame = new JFrame("Simple GUI");
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        JLabel textLabel = new JLabel("I'm a label in the window",SwingConstants.CENTER);
        textLabel.setPreferredSize(new Dimension(300, 100));
        frame.getContentPane().add(textLabel, BorderLayout.CENTER);       //Display the window.
        frame.setLocationRelativeTo(null);
        frame.pack();
        frame.setVisible(true);
        }
        public static void main(String[] args) {
            createWindow();
        }
}

edit: unfortunately I labled the logs as screenshots, sorry I cannot change the description

Attachments (4)

3d_rocky9-2024-05-17-11-31-01 (218.5 KB ) - added by teskor 4 weeks ago.
screenshot with garbled fonts
without_3d_rocky9-2024-05-17-11-35-42 (201.5 KB ) - added by teskor 4 weeks ago.
without 3d support it looks fine
with_3d_VirtualBox_rocky9_17_05_2024_11_30_27.png (117.5 KB ) - added by teskor 4 weeks ago.
now really the screenshot with garbled fonts and 3d support on
without_3d_VirtualBox_rocky9_17_05_2024_11_35_09.png (78.6 KB ) - added by teskor 4 weeks ago.
now really: without 3d support it looks fine

Download all attachments as: .zip

Change History (6)

by teskor, 4 weeks ago

screenshot with garbled fonts

by teskor, 4 weeks ago

without 3d support it looks fine

comment:1 by teskor, 4 weeks ago

Description: modified (diff)

by teskor, 4 weeks ago

now really the screenshot with garbled fonts and 3d support on

by teskor, 4 weeks ago

now really: without 3d support it looks fine

comment:2 by teskor, 4 weeks ago

One observation, if I disable the NVIDIA Quadro T2000 in the device manager, so that my laptop only uses the Intel UHD Graphics 630, 3d support works fine. So I assume this problem is due to the double display adapter setup or an NVIDIA specific problem. The other host I tried where it worked, has only intel-graphics, too.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use