VirtualBox

Opened 6 months ago

Last modified 5 months 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 6 months ago.
screenshot with garbled fonts
without_3d_rocky9-2024-05-17-11-35-42 (201.5 KB ) - added by teskor 6 months ago.
without 3d support it looks fine
with_3d_VirtualBox_rocky9_17_05_2024_11_30_27.png (117.5 KB ) - added by teskor 6 months 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 6 months ago.
now really: without 3d support it looks fine

Download all attachments as: .zip

Change History (7)

by teskor, 6 months ago

screenshot with garbled fonts

by teskor, 6 months ago

without 3d support it looks fine

comment:1 by teskor, 6 months ago

Description: modified (diff)

by teskor, 6 months ago

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

by teskor, 6 months ago

now really: without 3d support it looks fine

comment:2 by teskor, 6 months 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.

comment:3 by boxer01, 5 months ago

This is not so new; you can see a similar trouble with JMeter here, and it was reported about 8 months ago. As you can see from the ticket and the list of similar tickets in this ticket, graphic and 3D acceleration aren't much of priority here. So it takes some time to fix the issues. You need some passion here.

Last edited 5 months ago by boxer01 (previous) (diff)
Note: See TracTickets for help on using tickets.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette