Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4482430
Votes 198
Synopsis Unexpected exception from NativeFontWrapper.registerFonts(Native Method)
Category java:classes_2d
Reported Against 1.4 , 1.4.1 , hopper-rc , hopper-beta , merlin-beta , merlin-beta2 , merlin-beta3
Release Fixed 1.5(tiger)
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs 4500800 , 4514102 , 4514994 , 4523926 , 4599491 , 4670227 , 4715278 , 4755210 , 4755211 , 4755212 , 4772892 , 4755476 , 4762039
Submit Date 20-JUL-2001
Description



description : java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)


I am pasting the log file created by the HotSpot VM in here:

// ------------------------------------------------------------

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D1E2AFB
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name  customer  for the error
      just occurred. Please refer to release documentation for possible
      reason and solutions.


Current Java thread:
	at sun.awt.font.NativeFontWrapper.registerFonts(Native Method)
	- locked <0698FDC8> (a java.lang.Class)
	at sun.java2d.SunGraphicsEnvironment.addPathFonts
(SunGraphicsEnvironment.java:575)
	at sun.java2d.SunGraphicsEnvironment.registerFonts
(SunGraphicsEnvironment.java:480)
	at sun.java2d.SunGraphicsEnvironment.access$100
(SunGraphicsEnvironment.java:54)
	at sun.java2d.SunGraphicsEnvironment$2.run
(SunGraphicsEnvironment.java:157)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.java2d.SunGraphicsEnvironment.loadFonts
(SunGraphicsEnvironment.java:136)
	- locked <02AE3ED8> (a sun.awt.Win32GraphicsEnvironment)
	at sun.java2d.SunGraphicsEnvironment.mapFamilyName
(SunGraphicsEnvironment.java:326)
	at java.awt.Font.initializeFont(Font.java:278)
	at java.awt.Font.<init>(Font.java:310)
	at sun.awt.windows.WDesktopProperties.setFontProperty
(WDesktopProperties.java:151)
	- locked <02828510> (a sun.awt.windows.WDesktopProperties)
	at sun.awt.windows.WDesktopProperties.getWindowsParameters(Native
Method)
	at sun.awt.windows.WDesktopProperties.<init>(WDesktopProperties.java:59)
	at sun.awt.windows.WToolkit.initializeDesktopProperties
(WToolkit.java:832)
	at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1531)
	- locked <02AE2938> (a sun.awt.windows.WToolkit)
	at javax.swing.plaf.basic.BasicDropTargetListener.<init>
(BasicDropTargetListener.java:60)
	at javax.swing.plaf.basic.BasicTableUI$TableDropTargetListener.<init>
(BasicTableUI.java:1117)
	at javax.swing.plaf.basic.BasicTableUI.installDefaults
(BasicTableUI.java:658)
	at javax.swing.plaf.basic.BasicTableUI.installUI(BasicTableUI.java:609)
	at javax.swing.JComponent.setUI(JComponent.java:405)
	at javax.swing.JTable.setUI(JTable.java:2565)
	at javax.swing.JTable.updateUI(JTable.java:2616)
	at javax.swing.JTable.<init>(JTable.java:361)
	at javax.swing.JTable.<init>(JTable.java:298)
	at siph.setupGUI(siph.java:55)
	at siph.<init>(siph.java:26)
	at siph.main(siph.java:90)

Dynamic libraries:
0x7D750000 - 0x7D76D000 	C:\WINDOWS\SYSTEM\IMAGEHLP.DLL

Local Time = Wed Jul 18 20:24:45 2001
Elapsed Time = 3
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-beta-b65 mixed mode)
#

// ------------------------------------------------------------

The following code seems to produce the problem every once in awhile (not
consistently reproducible).  The code consists of five main classes (3 files):
siph.java, IrcUser.java, SiphUser.java.  The main class is siph which has the
main method.  The exception is being thrown during the siph.setupGUI() method.
I do not believe the other files are causing any problems as they are just data
structures.

I am using Windows 98 Second Edition.  I am using the -hotspot option on the
Java executable.  I have not seen this problem with JDK 1.3.1.  However,
occasionally I was seeing the application crash the entire Windows operating
system (app freezes with no GUI updates, have to manually kill the Java.exe
task, causing blue screens of death and forcing a reboot of the system).  I do
not know if this was "fixed" in the JVM and the above problem is something new,
or if the JVM is now more robust and is catching these native exceptions...

siph.java:
// --------------------------------------------------------------

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.util.*;

public class siph extends JFrame
{
  // This SIPH User
  SiphUser User = null;

  // ---------------------------------------------------------------------//
  // GUI components                                                       //
  // ---------------------------------------------------------------------//
  JLabel label1 = new JLabel("Test Label");
  javax.swing.JTable table = null;
  SIPHTableModel model = null;
  JScrollPane TableScroll = null;
  // ---------------------------------------------------------------------//

  public siph(String Title)
  {
    super(Title);

    User = new SiphUser(null, "Unknown", "", false, "Unknown");

    setupGUI();

    // -------------------------------------------------------------------//
    // call closeWindow() upon getting a window close event
    // -------------------------------------------------------------------//
    this.addWindowListener(new WindowAdapter()
      {
        public void windowClosing(WindowEvent e)
        {
          closeWindow();
        }
      });
    // -------------------------------------------------------------------//

    this.show();
  }

  /**
   * This method sets up the GUI (menus, table, scroll pane)
   */
  void setupGUI()
  {

    // -------------------------------------------------------------------//
    // set up table model, table and the scroll pane
    // -------------------------------------------------------------------//
    model = new SIPHTableModel(User, new Vector());
    table = new javax.swing.JTable(model);
    table.setAutoResizeMode(javax.swing.JTable.AUTO_RESIZE_ALL_COLUMNS);
    for(int loop = 0; loop < table.getColumnCount(); loop++)
    {
      table.setDefaultRenderer(table.getColumnClass(loop),
        new SIPHTableRenderer());
    }

    TableScroll = new javax.swing.JScrollPane(table);
    // -------------------------------------------------------------------//

    // -------------------------------------------------------------------//
    // main window and content pane setting up
    // -------------------------------------------------------------------//

    this.setSize(250, 200);

    this.getContentPane().setLayout(new java.awt.BorderLayout());

    this.getContentPane().add(label1, BorderLayout.NORTH);
    this.getContentPane().add(TableScroll, java.awt.BorderLayout.CENTER);
    // -------------------------------------------------------------------//
  }

  public void closeWindow()
  {
    this.dispose();
    System.exit(0);
  }

  // ---------------------------------------------------------------------//
  // the main method                                                      //
  // ---------------------------------------------------------------------//
  public static void main(String[] args)
  {
    siph app = new siph("JDK 1.4 Bugs");
  }
  // ---------------------------------------------------------------------//

  // ---------------------------------------------------------------------//
  // Class SIPHTableModel                                                 //
  // ---------------------------------------------------------------------//
  class SIPHTableModel extends javax.swing.table.AbstractTableModel
  {
    SiphUser[] People = new SiphUser[0];

    public int getRowCount() {return People.length;}
    public int getColumnCount() {return 2;}

    public SIPHTableModel(SiphUser user, java.util.Vector BuddyList)
    {
      updateBuddyList(user, BuddyList);
    }

    public void updateBuddyList(SiphUser user, java.util.Vector BuddyList)
    {
      People = new SiphUser[BuddyList.size() + 1];
      People[0] = user;
      for(int loop = 0; loop < BuddyList.size(); loop++)
        People[loop+1] = (SiphUser)BuddyList.get(loop);
    }

    public String getColumnName(int column)
    {
      switch(column)
      {
        case 0:
          return "Col 1";
        case 1:
          return "Col 2";
        default:
          return "Error!  Unknown column!";
      }
    }

    public Object getValueAt(int row, int column)
    {
      switch(column)
      {
        case 0:
          if(row == 0)
            return People[0].SNN;
          else
            return People[row].SNN;
        case 1:
          if(People[row].IPString != null)
            return People[row].IPString;
          else
            return "Unknown";
        default:
          return null;
      } // switch(column)
    }

  }
  // ---------------------------------------------------------------------//
  // End of Class SIPHTableModel                                          //
  // ---------------------------------------------------------------------//


  // ---------------------------------------------------------------------//
  // Class SIPHTableRenderer                                              //
  // ---------------------------------------------------------------------//
  class SIPHTableRenderer extends javax.swing.table.DefaultTableCellRenderer
  {
    private java.awt.Font PLAINFONT = new java.awt.Font("Arial",
        java.awt.Font.PLAIN, 12);
    private java.awt.Font BOLDFONT = new java.awt.Font("Arial",
        java.awt.Font.BOLD, 12);
    private java.awt.Font ITALICFONT = new java.awt.Font("Arial",
        java.awt.Font.ITALIC, 12);

    public SIPHTableRenderer()
    {
    }

    public java.awt.Component getTableCellRendererComponent(
                                  javax.swing.JTable table,
                                  Object value,
                                  boolean isSelected,
                                  boolean hasFocus,
                                  int row,
                                  int column)
    {
      String val = value.toString();

      this.setValue(val);

      if (isSelected)
      {
        this.setBackground(table.getSelectionBackground());
      }
      else
      {
        this.setBackground(table.getBackground());
      }

      this.setForeground(java.awt.Color.black);
      this.setFont(BOLDFONT);

      return this;
    }

  }
  // ---------------------------------------------------------------------//
  // End of Class SIPHTableRenderer                                       //
  // ---------------------------------------------------------------------//

}
// --------------------------------------------------------------


IrcUser.java:
// --------------------------------------------------------------

public class IrcUser
{
  public String Password = "";
  public String Nickname = "";
  public String Username = "";
  public String Domainname = "";
  public String Fullname = "";

  public IrcUser()
  {
  }

  public IrcUser(String password, String nickname, String username,
      String domainname, String fullname)
  {
    Password = password;
    Nickname = nickname;
    Username = username;
    Domainname = domainname;
    Fullname = fullname;
  }
}
// --------------------------------------------------------------

SiphUser.java:
// --------------------------------------------------------------

class SiphUser extends IrcUser
{
  public String SNN = ""; // 8-20 character string (SIPH NickName)
  public String SLC = ""; // 64 character string (SIPH Long Code)
  public boolean OP = false; // flag for determining OP
  public String IPString = null; // IP address string

  public SiphUser(String password, String nickname, String username,
    String domainname, String fullname, String snn, String slc, boolean op,
    String ipstring)
  {
    super(password, nickname, username, domainname, fullname);

    SNN = snn;
    SLC = slc;
    OP = op;
    IPString = ipstring;
    if(IPString == null)
    {
      IPString = "Unknown";
    }
  }

  public SiphUser(String nickname, String snn, String slc,
      boolean op, String ipstring)
  {
    Password = "SIPHPASSWORD";

    Nickname = nickname;

    Username = "SIPHUSER";
    Domainname = "";
    Fullname = "Sy Phillis";

    SNN = snn;
    SLC = slc;
    OP = op;
    IPString = ipstring;
    if(IPString == null)
    {
      IPString = "UNKNOWN";
    }
  }
}
// --------------------------------------------------------------


Jeff Schiller
jeff_schiller@hotmail.com
(Review ID: 128386) 
======================================================================




C:\JAVA\j2eetutorial\examples\src\ejb\converter>java -version
java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)

I tried running the client of the Converter EJB demo from the J2EE tutorial.

The command-line I used is:

C:\JAVA\j2eetutorial\examples\src\ejb\converter>runclient -client ConverterApp.e
ar -name ConverterClient

EARs, JAR, WARs etc built according to tutorial.

This crashed the JVM, although on a 2nd try it was successful in opening the
loginwindow, so the problem is not 100% reproducible.

The text from the crashlog-file:

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D1E2AFB
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name  customer  for the error
      just occurred. Please refer to release documentation for possible
      reason and solutions.

Current Java thread:
	at sun.awt.font.NativeFontWrapper.registerFonts(Native Method)
	- locked <0AE10AA0> (a java.lang.Class)
	at
sun.java2d.SunGraphicsEnvironment.addPathFonts(SunGraphicsEnvironment.java:575)
	at
sun.java2d.SunGraphicsEnvironment.registerFonts(SunGraphicsEnvironment.java:480)
	at
sun.java2d.SunGraphicsEnvironment.access$100(SunGraphicsEnvironment.java:54)
	at
sun.java2d.SunGraphicsEnvironment$2.run(SunGraphicsEnvironment.java:157)
	at java.security.AccessController.doPrivileged(Native Method)
	at
sun.java2d.SunGraphicsEnvironment.loadFonts(SunGraphicsEnvironment.java:136)
	- locked <02B526A0> (a sun.awt.Win32GraphicsEnvironment)
	at
sun.java2d.SunGraphicsEnvironment.mapFamilyName(SunGraphicsEnvironment.java:326)
	at java.awt.Font.initializeFont(Font.java:278)
	at java.awt.Font.<init>(Font.java:310)
	at
sun.awt.windows.WDesktopProperties.setFontProperty(WDesktopProperties.java:151)
	- locked <0284B140> (a sun.awt.windows.WDesktopProperties)
	at sun.awt.windows.WDesktopProperties.getWindowsParameters(Native
Method)
	at sun.awt.windows.WDesktopProperties.<init>(WDesktopProperties.java:59)
	at
sun.awt.windows.WToolkit.initializeDesktopProperties(WToolkit.java:832)
	at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1531)
	- locked <02B67A70> (a sun.awt.windows.WToolkit)
	at
javax.swing.plaf.basic.BasicDropTargetListener.<init>(BasicDropTargetListener.ja
va:60)
	at
javax.swing.plaf.basic.BasicTextUI$TextDropTargetListener.<init>(BasicTextUI.jav
a:1902)
	at
javax.swing.plaf.basic.BasicTextUI.installDefaults(BasicTextUI.java:286)
	at javax.swing.plaf.basic.BasicTextUI
.installUI(BasicTextUI.java:593)
	at
javax.swing.plaf.basic.BasicTextFieldUI.installUI(BasicTextFieldUI.java:58)
	at javax.swing.JComponent.setUI(JComponent.java:405)
	at javax.swing.text.JTextComponent.setUI(JTextComponent.java:268)
	at javax.swing.text.JTextComponent.updateUI(JTextComponent.java:278)
	at javax.swing.text.JTextComponent.<init>(JTextComponent.java:252)
	at javax.swing.JTextField.<init>(JTextField.java:214)
	at javax.swing.JPasswordField.<init>(JPasswordField.java:115)
	at javax.swing.JPasswordField.<init>(JPasswordField.java:85)
	at
com.sun.enterprise.security.PassphraseDialog.initbox(GUILoginDialog.java:162)
	at
com.sun.enterprise.security.PassphraseDialog.<init>(GUILoginDialog.java:151)
	at
com.sun.enterprise.security.GUILoginDialog.<init>(GUILoginDialog.java:50)
	at
com.sun.enterprise.security.auth.login.LoginCallbackHandler.handle(LoginCallback
Handler.java:49)
	at javax.security.auth.login.LoginContext$5.run(LoginContext.java:801)
	at java.security.AccessController.doPrivileged(Native Method)
	at
javax.security.auth.login.LoginContext$SecureCallbackHandler.handle(LoginContext
.java:797)
	at
com.sun.enterprise.security.auth.login.SharedPasswordLoginModule.login(SharedPas
swordLoginModule.java:111)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:30)
	at
sun.reflect.InflatableMethodAccessorImpl.invoke(InflatableMethodAccessorImpl.jav
a:48)
	at java.lang.reflect.Method.invoke(Method.java:306)
	at javax.security.auth.login.LoginContext.invoke(LoginContext.java:664)
	at
javax.security.auth.login.LoginContext.access$000(LoginContext.java:129)
	at javax.security.auth.login.LoginContext$4.run(LoginContext.java:599)
	at java.security.AccessController.doPrivileged(Native Method)
	at
javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:596)
	at javax.security.auth.login.LoginContext.login(LoginContext.java:523)
	at
com.sun.enterprise.appclient.AppContainer.preInvoke(AppContainer.java:94)
	at com.sun.enterprise.appclient.Main.main(Main.java:144)

Dynamic libraries:
0x76AC0000 - 0x76ADD000 	C:\WINDOWS\SYSTEM\IMAGEHLP.DLL

Local Time = Tue Aug 14 10:41:37 2001
Elapsed Time = 90
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-beta-b65 mixed mode)
#
(Review ID: 129964)
======================================================================




java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)

Following code compiled without problem, but crashes completely in execution:

code:

import java.awt.*;
import javax.swing.*;
import java.text.*;

class ComponentenVoorbeeld extends JFrame {

  JLabel lblTitel = new JLabel("Vaste tekst");

   JFormattedTextField tf = new JFormattedTextField("(###) ###-####");

  ComponentenVoorbeeld() {
    super("Enkele Swingcomponenten");
    Container c = getContentPane();
    c.setLayout(new FlowLayout());
    c.add(lblTitel);
    tf.setColumns(25);
    c.add(tf);

    setSize(300, 200);
    show();
  }

  public static void main(String[] args) {
    new ComponentenVoorbeeld();
  }
}



Errorlog:


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D1E2AFB
Function=[Unknown.]
Library=C:\Program Files\JavaSoft\JRE\1.4\bin\fontmanager.dll

NOTE: We are unable to locate the function name symbol for the error
      just occurred. Please refer to release documentation for possible
      reason and solutions.


Current Java thread:
	at sun.awt.font.NativeFontWrapper.registerFonts(Native Method)
	- locked <06C984A0> (a java.lang.Class)
	at sun.java2d.SunGraphicsEnvironment.addPathFonts(Unknown Source)
	at sun.java2d.SunGraphicsEnvironment.registerFonts(Unknown Source)
	at sun.java2d.SunGraphicsEnvironment.access$100(Unknown Source)
	at sun.java2d.SunGraphicsEnvironment$2.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.java2d.SunGraphicsEnvironment.loadFonts(Unknown Source)
	- locked <02E1BD20> (a sun.awt.Win32GraphicsEnvironment)
	at sun.java2d.SunGraphicsEnvironment.mapFamilyName(Unknown Source)
	at java.awt.Font.initializeFont(Unknown Source)
	at java.awt.Font.<init>(Unknown Source)
	at sun.awt.windows.WDesktopProperties.setFontProperty(Unknown Source)
	- locked <02B88AD8> (a sun.awt.windows.WDesktopProperties)
	at sun.awt.windows.WDesktopProperties.getWindowsParameters(Native
Method)
	at sun.awt.windows.WDesktopProperties.<init>(Unknown Source)
	at sun.awt.windows.WToolkit.initializeDesktopProperties(Unknown Source)
	at java.awt.Toolkit.getDesktopProperty(Unknown Source)
	- locked <02E1AA88> (a sun.awt.windows.WToolkit)
	at javax.swing.plaf.basic.BasicDropTargetListener.<init>(Unknown Source)
	at javax.swing.plaf.basic.BasicTextUI$TextDropTargetListener.<init>
(Unknown Source)
	at javax.swing.plaf.basic.BasicTextUI.installDefaults(Unknown Source)
	at javax.swing.plaf.basic.BasicTextUI.installUI(Unknown Source)
	at javax.swing.plaf.basic.BasicTextFieldUI.installUI(Unknown Source)
	at javax.swing.JComponent.setUI(Unknown Source)
	at javax.swing.text.JTextComponent.setUI(Unknown Source)
	at javax.swing.text.JTextComponent.updateUI(Unknown Source)
	at javax.swing.text.JTextComponent.<init>(Unknown Source)
	at javax.swing.JTextField.<init>(Unknown Source)
	at javax.swing.JTextField.<init>(Unknown Source)
	at javax.swing.JFormattedTextField.<init>(Unknown Source)
	at javax.swing.JFormattedTextField.<init>(Unknown Source)
	at ComponentenVoorbeeld.<init>(ComponentenVoorbeeld.java:9)
	at ComponentenVoorbeeld.main(ComponentenVoorbeeld.java:24)

Dynamic libraries:
0x00400000 - 0x00405000 	C:\WINNT\system32\java.exe
0x77F60000 - 0x77FBE000 	C:\WINNT\System32\ntdll.dll
0x77DC0000 - 0x77DFF000 	C:\WINNT\system32\ADVAPI32.dll
0x77F00000 - 0x77F5E000 	C:\WINNT\system32\KERNEL32.dll
0x77E70000 - 0x77EC5000 	C:\WINNT\system32\USER32.dll
0x77ED0000 - 0x77EFC000 	C:\WINNT\system32\GDI32.dll
0x77E10000 - 0x77E67000 	C:\WINNT\system32\RPCRT4.dll
0x78000000 - 0x78046000 	C:\WINNT\system32\MSVCRT.dll
0x6D400000 - 0x6D503000 	C:\Program Files\JavaSoft\JRE\1.4
\bin\hotspot\jvm.dll
0x77FD0000 - 0x77FFA000 	C:\WINNT\system32\WINMM.dll
0x6BD00000 - 0x6BD0D000 	C:\WINNT\system32\sbpcint4.dll
0x77A90000 - 0x77A9B000 	C:\WINNT\system32\VERSION.dll
0x77C40000 - 0x77D7C000 	C:\WINNT\system32\SHELL32.dll
0x71700000 - 0x7178A000 	C:\WINNT\system32\COMCTL32.dll
0x779C0000 - 0x779C8000 	C:\WINNT\system32\LZ32.dll
0x10000000 - 0x10005000 	C:\WINNT\system32\sbENG32.dll
0x6D200000 - 0x6D207000 	C:\Program Files\JavaSoft\JRE\1.4\bin\hpi.dll
0x6D3D0000 - 0x6D3DD000 	C:\Program Files\JavaSoft\JRE\1.4\bin\verify.dll
0x6D240000 - 0x6D255000 	C:\Program Files\JavaSoft\JRE\1.4\bin\java.dll
0x6D3F0000 - 0x6D3FD000 	C:\Program Files\JavaSoft\JRE\1.4\bin\zip.dll
0x6D010000 - 0x6D0FB000 	C:\Program Files\JavaSoft\JRE\1.4\bin\awt.dll
0x77C00000 - 0x77C18000 	C:\WINNT\system32\WINSPOOL.DRV
0x76AB0000 - 0x76AB5000 	C:\WINNT\system32\IMM32.dll
0x77B20000 - 0x77BD7000 	C:\WINNT\system32\ole32.dll
0x6D1B0000 - 0x6D1FF000 	C:\Program Files\JavaSoft\JRE\1.4
\bin\fontmanager.dll
0x6D350000 - 0x6D357000 	C:\Program Files\JavaSoft\JRE\1.4\bin\nio.dll
0x776B0000 - 0x776C4000 	C:\WINNT\system32\WS2_32.dll
0x776A0000 - 0x776A7000 	C:\WINNT\system32\WS2HELP.dll
0x6D340000 - 0x6D34E000 	C:\Program Files\JavaSoft\JRE\1.4\bin\net.dll
0x776D0000 - 0x776D8000 	C:\WINNT\system32\WSOCK32.dll
0x74FF0000 - 0x74FFE000 	C:\WINNT\System32\rnr20.dll
0x76AC0000 - 0x76ADD000 	C:\WINNT\system32\imagehlp.dll
0x73A10000 - 0x73A22000 	C:\WINNT\system32\PSAPI.DLL

Local Time = Thu Aug 16 08:56:23 2001
Elapsed Time = 0
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-beta-b65 mixed mode)
#



1)Exact steps to reproduce the problem.

It happens when running the application. even before anything appears on the
screen.

2)System Configuration on which the problem is reproducible.

BOOKSHELF=C:\SQLLIB\BOOK
classpath=C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;
ComSpec=C:\WINNT\system32\cmd.exe
Include=C:\IBMCON~1\CICS\Include;C:\IBMCON~1\CICS\Samples\Include;C:\SQLLIBINCL
UDE
Lib=C:\IBMCON~1\CICS\Lib;C:\SQLLIB\LIB
NLSPATH=C:\IBM Connectors\Encina\%L\%N
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\WINNT\system32\os2\dll;
Path=C:\WINNT\MS\SMS\CORE\BIN;C:\WINNT\MS\SMS\CORE\BIN;C:\IBM
Connectors\Encinabin;;C:\IBMCON~1\CICS\BIN;C:\Program
Files\Reflection;C:\PROGRA~1\REFLEC~1;C:\Pr
ogram
Files\Reflection;C:\WINNT\system32;C:\WINNT;C:\ZZORANT\BIN;C:\ORANT\BIN;;C
:\WIN32APP\TOOLKIT;C:\SQLLIB\BIN;C:\SQLLIB\FUNCTION;C:\WINNT\System32\WBEM;C
:\IM
Nnq_NT
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0806
PROMPT=$P$G
SMS_LOCAL_DIR=C:\WINNT
SystemDrive=C:
SystemRoot=C:\WINNT
TEMP=C:\TEMP
TMP=C:\TEMP
windir=C:\WINNT

windows = NT 4.0 Service Pack 6



3)Any other additonal information that will aid us in reproducing the
problem.

I got the error some times again today. Hereby I include all the error logs
and the .java that caused the 2 last crashes.
ps: sometimes even the Java2D demo gives sometimes the same kind of error
(hs_err_pid240.log), other times this demo works perfectly.

IBM VisualAge is also installed on the machine.
(Review ID: 130117)
======================================================================




java version "1.4.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta3-b84)
Java HotSpot(TM) Client VM (build 1.4.0-beta3-b84, mixed mode)

VM crashed when I closed an IE 6.0 window having shown the java.sun.com site. It seems that this is very similar to the situation I encountered when trying to run SwingSet2 in the previous releases of J2SE 1.4 beta. At that time, I used Windows 2000 and upgraded to Windows XP recently.

I can't reproduce this problem. But some pecuriarity in my system is that I
have some Korean TTFs installed in my system.


(Review ID: 135535)
======================================================================

I have attached further evidence from a pogo.com user.

  xxxxx@xxxxx   2001-12-20
======================================================================





FULL OPERATING SYSTEM VERSION :
Microsoft Windows XP [Version 5.1.2600]

EXTRA RELEVANT SYSTEM CONFIGURATION :
- AMD Duron 1300
- ASUS A7V133C
- 512 MB SDRAM
- Realtek RTL8139 Ethernet Adapter

A DESCRIPTION OF THE PROBLEM :
Compiling and running the example code crashes the VM.

If the line marked with <--#### is commented out, no
crash occurs.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Compile and run sent application

---------- BEGIN SOURCE ----------

import java.awt.*;
import java.io.*;
import javax.swing.*;
import javax.swing.text.*;

public class JEditorPaneHTMLTest extends JFrame {

  public JEditorPaneHTMLTest(){
    super( "JEditorPaneHTML" );

    JEditorPane editorPane;

    try {
      editorPane = new JEditorPane( "http://www.amazon.de" );
    }
    catch( IOException ex ) {
      editorPane = new JEditorPane( "text/html","<html><body><h1>IO-Error</h1></body></html>" );
    }
    JScrollPane scroller = new JScrollPane( editorPane );
    getContentPane().add( scroller );

    getContentPane().add( new JButton( "Ok" ), BorderLayout.SOUTH ); // <--####
    setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
    pack();
  }

  public static void main(String args[]) {
    JEditorPaneHTMLTest frame = new JEditorPaneHTMLTest();
    frame.setVisible( true );
  }
}

---------- END SOURCE ----------

(Review ID: 143641)
======================================================================
Posted Date : 2005-07-22 03:26:23.0
Work Around


Re-run the application and cross your fingers.
======================================================================
Evaluation
Transferring over to 2D team (NativeFontWrapper).
  xxxxx@xxxxx   2001-07-20

==============================

This is not a single bug. JDK 1.4.2 will plug a number of holes, but
undoubtedly not all, so we will hold this bug open until we are satisfied
that enough of the cases are fixed that the remainder can be addressed
under specific bug ids.
Anyone seeing a bug like this is encouraged to update this bug on the JDC with
contact information so that we can see if it is a new case.

The following specific bugs will be addressed in 1.4.2:
4514102: Installing certain fonts with bad data, will crash VM.
4599491: Assertion failed: pos <= t->maxPos in sun/awt/font/t2k/t2kstrm.c
4755210: RFE: JRE win32 install time support for identifying bad fonts.
4755211: Java2D font scaler has memory alignment bug in TrueType hinting code.
4755212: Java2D rasteriser has problems with some TT fonts.
4762039: EXCEPTION_ACCESS_VIOLATION in Fontmanager.dll
4772892: Java2D: bad TrueType font data can crash Java font scaler.

4755210 is new win32 install time functionality which will identify some of the
problem fonts up-front. It is not yet certain to make it into the 1.4.2 release.

  xxxxx@xxxxx   2002-09-29
=============================

4670227: headline/noWarningApps test cause jvm to crash
is a bug that is fixed in JDK 1.4.1. It addresses one specific hole where
a bad cmap in the font could cause us to crash in some circumstances.

  xxxxx@xxxxx   2002-10-03
============================

4593165: Assertion failed message when corrupt font file encountered
isn't expected to be fixed in 1.4.2 (it was not assigned to the right group
until too late in the release).

However all the other problems known as of 1st November 2002 should be
fixed in 1.4.2 beta.

  xxxxx@xxxxx   2002-11-01
============================

As noted, this bug is many bugs. 1.4.2 has fixed all but a single known case.
1.5 has eliminated that last remaining known vulnerability of 4593165 when
simply opening a font to get its name etc. As such I am marking 4482430
fixed in 1.5. (And probably should also mark it fixed in 1.4.2 also).
All new reports of similar bugs need to be verified first against 1.4.2
and then if still reproducible and different than 4593165, should
be submitted as a new bug report together with a reproducible test case,
or contact information.

  xxxxx@xxxxx   2003-04-28
============================

Removing "comimt to fix" for this bug against  1.4.2_06 as various bugs
mentioned here are fixed in 1.4.2_05 or it's predecessors. Please track status on individual bug basis, rather than collectively here against this bug 4482430

  xxxxx@xxxxx   2004-07-01
Comments
  
  Include a link with my name & email   

Submitted On 24-JUL-2001
snations
I have the same problem only it is not intermittent.
Everything crashes with this bug using 1.4.0-beta.
I can supply plenty of .log files.  Here is a bit of
one which may help:

  An unexpected exception has been detected in native code 
outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at 
PC=0x6D244F24
Function=JNU_GetEnv+0xC
Library=C:\Program Files\JavaSoft\JRE\1.4\bin\java.dll

Current Java thread:
  at sun.awt.font.NativeFontWrapper.registerFonts(Native 
Method)
  - locked <0AB61880> (a java.lang.Class)
  at sun.java2d.SunGraphicsEnvironment.registerFontFile
(Unknown Source)


Submitted On 25-JUL-2001
philr
Can you provide  more information about your
particular set up? windows version etc, and what happens
if you run 1.3.1?
This is quite possibly something in a particular font file
that's causing the crash.
Is there an email address JavaSoft can contact you at?


Submitted On 25-JUL-2001
snations
Sure: snations@lgc.com

I left the "Include a link with my name & email" box 
checked but...?

> This is quite possibly something in a particular font
> file that's causing the crash.

I concur.  Another possibility is that my environment 
(CLASSPATH, etc.) may not be just right.

As another bit of information, all of the .log files I've 
examined had the "Function=" and "Library=" lines as in my 
previous post.

I have been experiencing the problem on two machines which 
are at two different locations.  The windows version on 
machine A is MS Windows 2000 5.00.2195 Service Pack 1.  
Machine B is also a W2K box.  I can send you the specific 
info from it later this evening or tomorrow.

We were previously using JDK 1.3.0_01 on both machines.  I
installed 1.4.0-beta on A and encountered this problem.  
Same thing on machine B.  Later I realized that I'd 
neglected to unistall 1.3.0_01 on machine A.  So I 
uninstalled the old version and now everything seems to 
work on box A.

On machine B, however, I had uninstalled the old version
prior to installing the new one so this magic fix isn't an 
available option.

I'm a little constrained by the fact that these machines 
are in different physical locations, but I'll do whatever I 
can to help run this problem down.  The cycle time between 
trials may just be a little long.


Submitted On 25-JUL-2001
schillj
I'm not sure how I see uninstalling JDK 1.3.x would change 
anything.  I have both JDK 1.3.x and 1.4 installed on my 
box.  JDK 1.3.x occasionally has horrible OS crashes 
(causing reboot), while JDK 1.4 has "intermittent" annoying 
JVM crashes.


Submitted On 26-JUL-2001
snations
I agree that uninstalling JDK 1.3.x shouldn't fix anything, 
but this is my experience.  That is why I think maybe my 
environment variables are at fault.

Machine B also has MS Windows 2000 5.00.2195 Service Pack 1.

In the "Dynamic libraries:" section of the .log files in 
noticed this:

  0x6D260000 - 0x6D265000   c:\jdk1.4\jre\bin\jawt.dll
  0x108E0000 - 0x109CB000   C:\Program 
Files\JavaSoft\JRE\1.4\bin\awt.dll

These two dll's are identical, so beyond the resource 
inefficency it shouldn't matter as long as there is no 
static data in the dll.

I could uninstall all JDKs from machine B and repeat the 
install sequence that worked this machine.  If this works, 
however, we may have lost our only chance to reliable 
produce the bug.

Suggestions?


Submitted On 26-JUL-2001
snations
I added "c:/jdk1.4/bin;c:/jdk1.4/jre/bin;" to my PATH as 
part of both 1.4 installation.  Changing this 
to "c:/jdk1.4/bin;c:/Program Files/JavaSoft/JRE/1.4/bin;" 
resulted in this different error:

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at 
PC=0x6D407BB2
Function=[Unknown.]
Library=C:\Program Files\JavaSoft\JRE\1.4
\bin\hotspot\jvm.dll

NOTE: We are unable to locate the function name symbol for 
the error just occurred. Please refer to release 
documentation for possible reason and solutions.

Current Java thread:
        at javax.swing.JComponent.getDefaultLocale(Unknown 
Source)
        at javax.swing.JComponent.<init>(Unknown Source)
        at javax.swing.JRootPane.<init>(Unknown Source)
        at javax.swing.JFrame.createRootPane(Unknown Source)
        at javax.swing.JFrame.frameInit(Unknown Source)
        at javax.swing.JFrame.<init>(Unknown Source)
        at com.lgc.sc3.extratest.StandardCanvas.<init>
(StandardCanvas.java:28)
        at com.lgc.sc3.extratest.StandardCanvas.<init>
(StandardCanvas.java:43)
        at com.lgc.sc3.extratest.TestBase.GetContext
(TestBase.java:206)
        at com.lgc.sc3.extratest.TestBase.theRealMain
(TestBase.java:41)
        at com.lgc.sc3.extratest.Shm_RandomMesh.main
(Shm_RandomMesh.java:31)

Also, the duplicate versions of awt.dll are now eliminated. 
(Above I indicated a problem with jawt.dll and awt.dll 
being in memory at the same time.  This should have been 
awt.dll in both cases.  Oops.)


Submitted On 26-JUL-2001
schillj
Can you provide full code that produces the problem to 
Sun?  My code above only produces the problem 
intermittently.  I have sent font files to the Sun 
developer to have him see if there's anything wrong from 
that end.


Submitted On 26-JUL-2001
snations
Sorry, but no.  I don't have a small stand-alone piece of 
code that exhibits the problem.  Instead it's a rather 
large rendering library for our applications.  Most of the 
library is legacy C & C++ code on top of which we've added 
Java shims.  We have a collection of Java test classes that 
worked under 1.3.x but don't under the 1.4 beta.  In my 
case they all crash right as they try to come alive.  
Unfortunately, I really can't give you any useful code 
without giving you the entire ball of wax, and I'm sure 
they'd frown on that in the front office.

I'm going to play with my PATH & CLASSPATH variables since 
I suspect this is where the problem lies.


Submitted On 02-AUG-2001
mwstein
Guys.  I've seen the same issue as you have.  In my case, 
after first boot up, PC's running Win98 crash a couple 
times when running my application, then are fine after 1 or 
2 restarts.  HOWEVER, PC's running Win2000 have NOT ONCE 
crashed!  All PC's have the same JVM (Sun's).  I think we 
have a definite JVM-OS compatability issue.  And I sure as 
hell don't know how to fix it.


Submitted On 31-AUG-2001
snations
JDK 1.4 Beta 2 seems to have solved this problem.  I've 
installed it on both of my machines and since then have not 
had a recurrance.  Granted, having an intermittent bug like 
this one disappear for a short while is not definitive, but 
until I see it again I'm going to assume it is fixed.


Submitted On 06-SEP-2001
schillj
I have downloaded Beta 2 and the problem did not occur the 
couple times I tried my app.  However, I will try and 
stress it out tonight and see if I can reproduce the 
problem.


Submitted On 07-SEP-2001
schillj
Nope, the error still occurs.  I had it happen last night 
several times, same problem.


Submitted On 25-SEP-2001
UniversalOne
As a posible workaround, just what are the default fonts 
the vm loads (so the vm doesn't have to search through the 
entire collection of fonts and get the corrupt ones)? I too 
experience this problem (Windows98se), mainly when i try to 
create a new Font based upon something like Arial, of when 
i call a pack() on a JFrames container (possibly font sizes 
are retrieved and preffered sizes are in some way 
calculated from this, and the retrieved font's geometric 
info is corrupt? this was suggested in another bug report 
about the same problem)


Submitted On 26-SEP-2001
philr
The fonts that are loaded by default are those in the
font.properties file. Note that there are multiple font
properties files so the one you get depends on your locale
and your O/S.
If you ask for a font by name like Arial JRE unfortunately
will not realise it already loaded that font and goes
searching .. that should be fixed in 1.4 beta3. In itself
that may solve this problem for a lot of users who I would
care to bet are asking for Arial and triggering a search of
all the fonts, and then encountering one that causes the
crash.
BTW this bug is really hard to track down. There's another
bug 4500800 which reports the same problem where we were
able to identify the exact font causing the crash - except
it only happens on that user's system - it doesn't crash JDK
on other systems. Also even for him it only happens *SOME*
of the time. 


Submitted On 15-OCT-2001
acallegari
FIX:

I just had this problem last week and found that it is
caused by picking up java.exe from c:\winnt\system32\.

If I remove java.exe from system32 so that the executable
will be picked up from the Java installation, then
everything will work fine.

Anohter work around is to specify the full path
of the java.exe for the installation. .i.e.

   c:/j2sdk_forte/jdk1.4.0/bin/java.exe  (etc)

If you use the full path so that it will pick the
installation exe instead of the one in system32
then everything works fine, too..

Hope this helps anyone...

                           Andres Callegari


Submitted On 24-OCT-2001
schillj
No, this doesn't work for me.  I am already calling a 
specific JDK installation (not the one in my Windows path) 
in my batch file:

d:\jdk1.4_beta\jre\java.exe ....


Submitted On 22-DEC-2001
thadguidry
I also get the fontmanager.dll / NativeFontWrapper problem. 
This happens on www.pogo.com when trying to enter a game 
room for Chess, intermittently.  I also have several Chess 
programs (Junior7, Chessmaster 7000, K-Chess Elite) Maybe 
this is a font issue for these custom fonts that look like 
Chess Pieces ?  Anyone else that has this problem, have 
some Chess Specific Fonts installed ?  I'm Running WinXP Pro


Submitted On 27-DEC-2001
thadguidry
I found the workaround for this.  It seems that there were 
some Windows Shortcut files in my Fonts folder which looked 
like fonts for a chess program called Chess Assistant.  I 
had previously Uninstalled Chess Assistant, but these 
shortcuts were still in my Fonts folder.  I deleted these 
from the folder and then the problem has disappeared 
completely for me.  The names began with a CA__.... 
something.  


Submitted On 24-JAN-2002
wagi
The bug is still there in JDK1.4.0 RC!


Submitted On 15-FEB-2002
drohm
I permanently get this Error when running the following class 
(Win98 German, jre 1.4.0-b92), but it never occurs if I call it with a useless
Parameter (like >java crash.Crash x).
I also con avoid the crash by commenting the "print" statements.

package crash;
import java.awt.*;
import java.awt.font.*;
public class Crash extends Frame{
    public Crash(){
      GraphicsEnvironment envy=GraphicsEnvironment.getLocalGraphicsEnvironment();

      String[] names=envy.getAvailableFontFamilyNames();
      String[] localeNames=envy.getAvailableFontFamilyNames(getLocale());

      print(names);
      System.out.println("----");
      System.out.println(getLocale());
      print(localeNames);

      setLayout(new GridLayout(0,1));
      Font[] fonts=envy.getAllFonts();
      int len=fonts.length;
      for (int i=0; i<len; i++){
      Label label=new Label("blah");
      label.setFont(fonts[i]);
      add(label);
    }
    pack();
    setVisible(true);
  }

  public void print(String[] names){
    for (int i=0; i<names.length; i++){
      System.out.println(names[i]);
    }
  }
  public static void main(String[] args){
    new Crash();
  }
}


Submitted On 17-FEB-2002
philr
It remains the case up until 1.4 FCS that the Java 2D
team has not been able to reproduce this problem.
There's no question it happens but without being able
to reproduce it, its hard to fix. Still trying tho'
Its not clear if drohm's "Crash" program is quite the
same problem. His example trying to use (display) all fonts
on the system. Previous reports of this problem do not
do that. JDK crashes on start-up just because they are
there. When JDK displays a font its needs to use it to
a much greater extent and its some other bug, possibly
related to some kind of corruption or oddity in one
of the fonts on his system.
His program does much less than the Font2DTest demo which
is run very regularly by the 2D team without problems.

The best bet to avoid this is to avoid JDK looking at
any fonts other than the ones in font.properties.
Running the Windows Look & Feel for Swing might provoke
this for example. So do things like the Swing HTML text
component which explicitly search all the fonts.
That makes it hard to avoid for some people, but maybe
it'll help others. Still looking for a solid reproducible
test case .. 


Submitted On 11-MAR-2002
mihmax
All the same for me with Netbeans 3.3.1 using 1.4 final on 
NT4 SP6 with 128Mb.

Below some lines of hs_err_pid156.log, if wanted more, I 
can supply. I also must say that it's not reconstructable 
error, as for me, it happens about twice a week.

An unexpected exception has been detected in native code 
outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at 
PC=0x6D1B3B4C
Function=[Unknown.]
Library=Y:\jdk\jre\bin\fontmanager.dll

NOTE: We are unable to locate the function name symbol for 
the error
      just occurred. Please refer to release documentation 
for possible
      reason and solutions.


Current Java thread:
        at sun.awt.font.NativeFontWrapper.registerFonts
(Native Method)
        - locked <04E5D5F8> (a java.lang.Class)
        at sun.java2d.SunGraphicsEnvironment.addPathFonts
(SunGraphicsEnvironment.java:709)
        at sun.java2d.SunGraphicsEnvironment.registerFonts
(SunGraphicsEnvironment.java:560)



Submitted On 11-MAR-2002
mihmax
I also checked "Include a link...@, but
my e-mail is mihmax@yahoo.com


Submitted On 12-MAR-2002
jano26
try this: 
set JAVA_FONTS=F:\jdk\jre\lib\fonts


Submitted On 18-MAR-2002
clattmann
I have had the same problem, but I could solve it by
deleting half of the fonts installed on my computer (200 out
of 400, mainly older fonts). Since then, the problem hasn't
occured any more.


Submitted On 18-MAR-2002
mihmax
The workaround would be to include more well-looking fonts 
with the jre in lib/fonts.
Or to test with JAVA_FONTS set to a user directory with 
only a small subsets of fonts in it (for ex., arial & 
courier only).

mihmax at yahoo dot com


Submitted On 09-APR-2002
botisdale
I get this error OFTEN -- as recently as when loading the 
applet on java.sun.com.

An unexpected exception has been detected in native code 
outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at 
PC=0x6D1B3B21
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for 
the error
      just occurred. Please refer to release documentation 
for possible
      reason and solutions.


Current Java thread:
	at sun.awt.font.NativeFontWrapper.registerFonts
(Native Method)
	- locked <0B4CC880> (a java.lang.Class)
	at sun.java2d.SunGraphicsEnvironment.addPathFonts
(SunGraphicsEnvironment.java:709)
	at sun.java2d.SunGraphicsEnvironment.registerFonts
(SunGraphicsEnvironment.java:560)
	at sun.java2d.SunGraphicsEnvironment.access$000
(SunGraphicsEnvironment.java:57)
	at sun.java2d.SunGraphicsEnvironment$2.run
(SunGraphicsEnvironment.java:210)
	at java.security.AccessController.doPrivileged
(Native Method)
	at sun.java2d.SunGraphicsEnvironment.loadFonts
(SunGraphicsEnvironment.java:204)
	- locked <05AA0708> (a 
sun.awt.Win32GraphicsEnvironment)
	at sun.java2d.SunGraphicsEnvironment.mapFamilyName
(SunGraphicsEnvironment.java:402)
	at java.awt.Font.initializeFont(Font.java:314)
	at java.awt.Font.<init>(Font.java:346)
	at Util.readData(Util.java:69)
	at News.createFeeds(News.java:84)
	at News.init(News.java:68)
	at sun.applet.AppletPanel.run(AppletPanel.java:341)
	at java.lang.Thread.run(Thread.java:536)

Dynamic libraries:
0x7D750000 - 0x7D76D000 
	C:\WINDOWS\SYSTEM\IMAGEHLP.DLL

Local Time = Tue Apr 09 17:00:55 2002
Elapsed Time = 46
#
# The exception above was detected in native code outside 
the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
#


Submitted On 10-APR-2002
botisdale
Don't know if this helps, but here's a screenshot of the 
error I get from Windows: http://tisdale.org/javaerror.html.

Line 498 is always referenced in (what I think is) 
fontmanager.dll: Expression: errno == 0 && count == 
(size_t) size


Submitted On 12-APR-2002
DSchiller
I'm currently reading the 5th Edition of "Just Java" by 
Peter van der Linden.  I tried running a 40 line sample 
program called myclass from chapter 1 right after 
installing SDK 1.4.0 and immediately encountered this bug - 
the program died every time I tried it on a Windows 98SE 
PC.  The same program works well with 1.3.1_03 on the same 
PC.  It also works well on a Windows NT 4.0 with both 1.4.0 
and 1.3.1_03.   


Submitted On 22-APR-2002
simtec
I have the same problem. I tried to delete fonts. Nothing 
helps, nothing runs. I can't even load http://java.sun.com 
with 1.4.0 installed. No font and other demos are working 
any more. Forte quits with the same exception. With version 
1.3.1_01 it's better, but Java-Help quits with the same 
exception. I am using W2000 SP2.


Submitted On 11-MAY-2002
biggiemajik
Same problem and error message here. I don't get why the 
Sun guys keep calling it "difficult to reproduce" -- I get 
this error *every time* I try to use Forte, JBuilder or 
anything involving the Swing HTML component! Nothing 
intermittent about this sucker. I'm running J2SE1.4 on 
Win98. I really hope some attention is being payed to this 
bug, as it literally makes 1.4 useless to many Windows 
users.


Submitted On 19-MAY-2002
simtec
See my comments earlier. A couple of days ago I installed 
Microsoft Office 2000 and OpenOffice 1.0. Now everything 
works fine!


Submitted On 20-MAY-2002
bml4
For me, It seems that deleting some fonts solves the 
problem. There is a system property 'sun.java2d.debugfonts' 
that when set to 'true' will show the font names as they 
are loaded. When the error occurs, deleting the last font 
that was last attempted to be loaded seems to solve the 
problem. 


Submitted On 24-MAY-2002
daveliana
Hey bml4 (or anyone else that would know how to do this)
how do you set sun.java2d.debugfonts to true?
Dave


Submitted On 27-MAY-2002
mcw
I have released the latest version of my Java application (
<A
HREF=http://www.readerware.com>http://www.readerware.com</A>
) with Java 1.4 and have about half a dozen reports of this
problem. And who knows how many people are just walking away
from an application that crashes on startup. I would:-(

I can give you any number of traces, but there really is
nothing new in them. I am thinking of going back to 1.3.1, I
just don't see how a developer can distribute their app with
1.4. This bug is a showstopper for widespread 1.4 deployment
of Java apps.



Submitted On 10-JUN-2002
daveliana
I have fixed this problem on my computer.  Uninstall all the uneeded language display support from your 
system.


Submitted On 07-JUL-2002
k_kane
I also have this problem when using HTML bold fonts on a 
JLabel.  When I try to use non-HTML text it works OK but 
otherwise my large application crashes around 30% of the 
time on startup.  It creates the following log file:-

An unexpected exception has been detected in native code 
outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at 
PC=0x6D1B3B4C
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for 
the error
      just occurred. Please refer to release documentation 
for possible
      reason and solutions.


Current Java thread:
	at sun.awt.font.NativeFontWrapper.registerFonts
(Native Method)
	- locked <06E1CEB0> (a java.lang.Class)
	at sun.java2d.SunGraphicsEnvironment.addPathFonts
(Unknown Source)
	at sun.java2d.SunGraphicsEnvironment.registerFonts
(Unknown Source)
	at sun.java2d.SunGraphicsEnvironment.access$000
(Unknown Source)
	at sun.java2d.SunGraphicsEnvironment$2.run(Unknown 
Source)
	at java.security.AccessController.doPrivileged
(Native Method)
	at sun.java2d.SunGraphicsEnvironment.loadFonts
(Unknown Source)
	- locked <0317F780> (a 
sun.awt.Win32GraphicsEnvironment)
	at 
sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyName
s(Unknown Source)
	at 
sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyName
s(Unknown Source)
	at javax.swing.text.html.CSS.getValidFontNameMapping
(Unknown Source)
	- locked <02CB3E50> (a java.lang.Object)
	at 
javax.swing.text.html.CSS$FontFamily.parseCssValue(Unknown 
Source)
	at javax.swing.text.html.CSS.getInternalCSSValue
(Unknown Source)
	at javax.swing.text.html.CSS.addInternalCSSValue
(Unknown Source)
	at javax.swing.text.html.StyleSheet.addCSSAttribute
(Unknown Source)
	at 
javax.swing.text.html.StyleSheet$CssParser.handleValue
(Unknown Source)
	at javax.swing.text.html.CSSParser.parseDeclaration
(Unknown Source)
	at 
javax.swing.text.html.CSSParser.parseDeclarationBlock
(Unknown Source)
	at javax.swing.text.html.CSSParser.parseRuleSet
(Unknown Source)
	at javax.swing.text.html.CSSParser.getNextStatement
(Unknown Source)
	at javax.swing.text.html.CSSParser.parse(Unknown 
Source)
	at javax.swing.text.html.StyleSheet$CssParser.parse
(Unknown Source)
	at javax.swing.text.html.StyleSheet.loadRules
(Unknown Source)
	at javax.swing.text.html.HTMLEditorKit.getStyleSheet
(Unknown Source)
	at 
javax.swing.plaf.basic.BasicHTML$BasicEditorKit.getStyleShee
t(Unknown Source)
	at 
javax.swing.plaf.basic.BasicHTML$BasicEditorKit.createDefaul
tDocument(Unknown Source)
	at javax.swing.plaf.basic.BasicHTML.createHTMLView
(Unknown Source)
	at javax.swing.plaf.basic.BasicHTML.updateRenderer
(Unknown Source)
	at 
javax.swing.plaf.basic.BasicLabelUI.propertyChange(Unknown 
Source)
	at 
javax.swing.event.SwingPropertyChangeSupport.firePropertyCha
nge(Unknown Source)
	at 
javax.swing.event.SwingPropertyChangeSupport.firePropertyCha
nge(Unknown Source)
	at javax.swing.JComponent.firePropertyChange
(Unknown Source)
	at javax.swing.JLabel.setText(Unknown Source)
	at fastreport.Frame1.setUpFlowDialog
(Frame1.java:3389)
	at fastreport.Frame1.jbInit(Frame1.java:404)
	at fastreport.Frame1.<init>(Frame1.java:361)
	at fastreport.Application1.<init>
(Application1.java:11)
	at fastreport.Application1.main
(Application1.java:41)

Dynamic libraries:
0x7CC00000 - 0x7CC1D000 
	C:\WINDOWS\SYSTEM\IMAGEHLP.DLL

Local Time = Mon Jul 01 10:43:32 2002
Elapsed Time = 13
#
# The exception above was detected in native code outside 
the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed mode)
#
It's reassuring to see other people with this problem and I 
would be grateful to be kept updated on any progress with 
this problem.


Submitted On 15-JUL-2002
k_kane
I have just spent some time trying to work out what is 
going on with this problem...and I have to admit it looks 
very strange.  I am running windows 98 with 1.4.0.  My 
application is fairly complex, with a number of dialog 
boxes.  This specific problem seems to be because I use 
HTML labels on the dialog boxes.  I tried an experiment - 
just to open and close my application without doing 
anything else to see if I could work out what was causing 
the error.  First of all, I did my open and close procedure 
with my normal set of applications (internet explorer, 
windows explorer, outlook express, MS Word) also open.  I 
did the procedure 63 times (!!!).  I got this error 9 times 
which gives an error rate of 14% (totally unacceptable!).  
The strange thing is that the pattern seems to be 
completely random - the errors occurred on trials 10, 13, 
21, 26, 37, 44, 45, 61,and 62.  I then gradually closed all 
applications but I have just completed the last procedure 
where there were no other programs or processes running and 
the error still occurred randomly.  I will be getting 
desperate if this can't be resolved pretty soon as I am 
hoping to release my application soon.  Can anyone help?  I 
also read about an option that gives information about the 
fonts as they are read in.  Can someone tell me (in an easy 
way!) how I can turn this option on?  I can be contacted at 
k_kane@msn.com.


Submitted On 18-JUL-2002
PeterSchaefer
I had a similar problem with JDK 1.4.0_01 on Windows ME

it appears only with certain TT fonts but it is not always 
reproducible.
it does not appear with JDK 1.3.1, nor does it with 1.4.0 on 
Windows 2000.

the most likely candidate for a crash is this font: 
http://www.chessvariants.com/d.font/lucen.zip




Submitted On 02-AUG-2002
svdelst
To me it seemes that a specific data file that I use 
(targets.xml) caused the problem. I checked the targets.xml 
file for wellformed-ness and validated it in my XML editor. The 
application then started without a problem. I am using the 
Java2SDK, version 1.4.0-b92.


Saskia

Error report:
An unexpected exception has been detected in native code 
outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION 
occurred at PC=0x6D1B3B4C
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for 
the error
      just occurred. Please refer to release documentation for 
possible
      reason and solutions.


Current Java thread:
	at sun.awt.font.NativeFontWrapper.registerFonts
(Native Method)
	- locked <06E7BC90> (a java.lang.Class)
	at sun.java2d.SunGraphicsEnvironment.addPathFonts
(SunGraphicsEnvironment.java:709)
	at sun.java2d.SunGraphicsEnvironment.registerFonts
(SunGraphicsEnvironment.java:560)
	at sun.java2d.SunGraphicsEnvironment.access$000
(SunGraphicsEnvironment.java:57)
	at sun.java2d.SunGraphicsEnvironment$2.run
(SunGraphicsEnvironment.java:210)
	at java.security.AccessController.doPrivileged(Native 
Method)
	at sun.java2d.SunGraphicsEnvironment.loadFonts
(SunGraphicsEnvironment.java:204)
	- locked <02D6AB58> (a 
sun.awt.Win32GraphicsEnvironment)
	at 
sun.java2d.SunGraphicsEnvironment.mapFamilyName
(SunGraphicsEnvironment.java:402)
	at java.awt.Font.initializeFont(Font.java:314)
	at java.awt.Font.<init>(Font.java:346)
	at 
org.alicebot.server.core.targeting.gui.TargetPanel$PatternsPan
el.<init>(Unknown Source)
	at 
org.alicebot.server.core.targeting.gui.TargetPanel.<init>
(Unknown Source)
	at 
org.alicebot.server.core.targeting.gui.TargetingGUI.<init>
(Unknown Source)
	at 
org.alicebot.server.core.targeting.TargetingTool.<init>
(Unknown Source)
	at 
org.alicebot.server.core.targeting.TargetingTool.main
(Unknown Source)

Dynamic libraries:
0x7D750000 - 0x7D76D000 
	C:\WINDOWS\SYSTEM\IMAGEHLP.DLL

Local Time = Thu Aug 01 07:50:38 2002
Elapsed Time = 20
#
# The exception above was detected in native code outside 
the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed 
mode)
#


Submitted On 04-AUG-2002
d_mitton
I get this problem intermittently while just browsing.
I installed j2 SE SDK 1.4.0 (on Win Me) for a Jini class, but 
never experience the problem while running my code.


Submitted On 16-AUG-2002
OrionPax
We are getting this bug with our enterprise application, where 
the clients are distributed via WebStart. Our solution is going 
to be to use 1.3 for the clients and 1.4 for our server.

One of the three test installs has had this issue, and it occurs 
when viewing any java, including web pages, everytime.


Submitted On 18-AUG-2002
yoseph_phillips
The following code has reproduced the problem each time it
has been tried with a bad font in c:/temp/fonts.  
It would appear that the more fonts in the folder the more
frequently the problem reproduces itself.  With more than
300 fonts the highest test number it got up to was 24.

package test;

import java.io.*;
import java.util.*;
import sun.awt.font.*;

public class FontTester {
  static Vector vector2 = new Vector();
  static {
    vector2.add(new Vector());
  }

  private static void addPathFonts(String s, FilenameFilter
filenamefilter, int i) {
    File file = new File(s);
    String as[] = file.list(filenamefilter);
    if (as == null) {
      return;
    }
    for (int j = 0; j < as.length; j++) {
      File file1 = new File(file, as[j]);
      String s1 = null;
      try {
        s1 = file1.getCanonicalPath();
      }
      catch(IOException ex) {
        s1 = file1.getAbsolutePath();
      }
      Vector vector = new Vector(1);
      vector.addElement(s1);
      System.out.println("Registering (" + i + ") " + s1);
      NativeFontWrapper.registerFonts(vector, 1, vector2, i,
false);
    }
  }

  public static void main(String[] args) {
    System.out.println("Starting...");
    String directory = "c:/temp/fonts";
    for (int i = 0; i < 10000; i++) {
      System.out.println("Test Number: " + i);
      addPathFonts(directory,
                   new FilenameFilter() {
                     public boolean accept(File file, String
s) {
                       return s.endsWith(".ttf") ||
s.endsWith(".TTF") || s.endsWith(".ttc") || s.endsWith(".TTC");
                     }
                   },
                   0);
      addPathFonts(directory,
                   new FilenameFilter() {
                     public boolean accept(File file, String
s) {
                       return s.endsWith(".ps") ||
s.endsWith(".PS") || s.endsWith(".pfb") ||
s.endsWith(".PFB") || s.endsWith(".pfa") || s.endsWith(".PFA");
                     }
                   },
                   1);
      addPathFonts(directory,
                   new FilenameFilter() {
                     public boolean accept(File file, String
s) {
                       return s.endsWith(".t2k") ||
s.endsWith(".T2K");
                     }
                   },
                   2);
    }
    System.out.println("Done...");
  }
}

Running on Windows2000, Java(TM) 2 Runtime Environment,
Standard Edition (build 1.4.1-beta-b14)
Java HotSpot(TM) Client VM (build 1.4.1-beta-b14, mixed
mode) --> MG______.TTF caused the problem every single time.
 Removing this font file meant the program could complete
with the other more than 300 font files never causing a problem.


Submitted On 19-AUG-2002
turingcomplete
This has been a complete showstopper.  Not discovered till 
the test installation at the client location--a week before 
we're supposed to go to production.
Personnaly I don't think 1.4 should have been released with 
this bug; I don't know how a project can seriously consider 
using it.


Submitted On 20-AUG-2002
OrionPax
We were able to do a workaround on the one user's 
computer. I did a search for corrupt fonts using font 
management software. I then deleted the corrupt fonts that 
it found, and then JAVA 1.4 would run again.

If this hadn't worked we would have had to go through all our 
code and remove anything specific to 1.4.

I don't suggest that anyone use 1.4 for large projects, until 
they fix this bug. Even if it only occurs to some users, it really 
defeats the point of using JAVA at all...

Compile once, run sometimes..


Submitted On 22-AUG-2002
kyanosko
I installed JDK 1.4 and Forte for Java onto my Windows 98 
machine, and got the "NativeFontWrapper" error every time I 
tried to start Forte. Then I uninstalled Chessmaster 5.0 and 
its fonts (one called "chessmaster" and all those beginning 
with cm*) and now Forte runs every time.


Submitted On 29-AUG-2002
kyanosko
Oops.  My fix was short-lived (See Aug 22 comments). I 
recently installed Maple version 8 (I am a mathematician by 
trade) and then Forte again stopped loading with the same 
NativeFontWrapper error. I tried temporarily deleting the 
Maple fonts (I identified 13 of them) but Forte is still dead. 
Same story on my office NT4 machine. 
I guess I will go back to programming in C.


Submitted On 02-SEP-2002
stcinifeic
C'mon sun!!  There are enough people out there who have 
problems with this to warrent a fix.  A customer of ours has 
just found it the day we burned it onto CD!!  


Submitted On 04-SEP-2002
tempero
I can reliably recreate this problem, but it requires a
somewhat complicated
setup.

prompt> java -version
java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.4.0-rc-b91)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)

(installed from the linus rpm)


I'm running following java code via JSP, specifically on a
tomcat
server (jakarta-tomcat-3.2.4).

--------- Bug.java ------
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;

public class Bug {
    public static void die() {
        BufferedImage bi = new BufferedImage(500,500,
BufferedImage.TYPE_INT_RG\B);
        Graphics2D g2d;
        g2d = bi.createGraphics();
    }
}

--------- bug.jsp -------
<%
    Bug.die();
%>
--------------------------

The tomcat server is running under redhat 7.2.

prompt> uname -a
Linux ewan 2.4.7-10 #1 Thu Sep 6 17:27:27 EDT 2001 i686
unknown

Because I'm trying to avoid using the X server for the
graphics.
I've installed PJA (http://www.eteks.com/pja/en/). (I don't
have
a problem when I do use the X server).

I set the following environment variable before starting
tomcat:

TOMCAT_OPTS=-Xbootclasspath:/usr/java/j2sdk1.4.0/jre/lib/rt.jar:lib/pja.jar
-Da\wt.toolkit=com.eteks.awt.PJAToolkit
-Djava.awt.graphicsenv=com.eteks.java2d.PJA\GraphicsEnvironment
-Djava.awt.fonts=/usr/java/j2sdk1.4.0/jre/lib/fonts/

When I load the bug.jsp page above, I get the message
everyone else
has reported.

--------------------------

I followed the suggestion of bml4 (MON MAY 20 06:31 A.M.
2002) of setting
sun.java2d.debugfonts, and then deleting the last font
reported. In fact, I
deleted all the fonts in the same directory, which was
/usr/share/fonts/ja/,
and everything seems to work (thanks for the suggestion!)

I hope this information helps track down the fault.


Submitted On 11-SEP-2002
kkolinko
I observe this bug in JDK 1.4.0_01 on a Windows 2000 PC.

Microsoft Windows 2000 [Version 5.00.2195]
Java VM: Java HotSpot(TM) Client VM (1.4.0_01-b03 mixed 
mode)

The following helped for me:
I opened the Control Panel and installed all the fonts found in 
the ...\jdk1.4.0_01\jre\lib\fonts\ folder.

It helped. The bug disappeared.

See also
http://forum.java.sun.com/thread.jsp?
forum=37&thread=219754


Submitted On 15-SEP-2002
pcdennison
I have encountered this problem several times in the past and 
have consequently removed all html components &/or text 
from my applications.

I would, however, like to use JavaHelp as the help system for 
an application. Can anybody either confirm or deny that this 
bug (or any others, for that matter) will affect JavaHelp in 
any way?


Submitted On 16-SEP-2002
philr
I expect it will affect JavaHelp, because JavaHelp uses the
Swing HTML component, and internally the Swing HTML code
calls a public Java API
 GraphicsEnvironment.getAvailableFontFamilyNames()
This is therefore an explicit request to search for all the
fonts on the system. Some bad fonts may then cause a crash.
-Phil.


Submitted On 16-SEP-2002
klaushammer
I encounter the problem intermittently under Windows 2000 
when calling new Font(fontName, style, size). It happens ind 
1.4.0 as well as in 1.4.1 Release Canddate. At a second effort 
the application normally works. Up to now, I never 
encountered the problem under Windows NT.

The following is from my log file:

An unexpected exception has been detected in native code 
outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION 
occurred at PC=0x6D1B3B4C
Function=[Unknown.]
Library=D:\Programme\Java\j2re1.4.0\bin\fontmanager.dll

NOTE: We are unable to locate the function name symbol for 
the error
      just occurred. Please refer to release documentation for 
possible
      reason and solutions.


Current Java thread:
	at sun.awt.font.NativeFontWrapper.registerFonts
(Native Method)
	- locked <06C6A690> (a java.lang.Class)
	at sun.java2d.SunGraphicsEnvironment.addPathFonts
(Unknown Source)
	at sun.java2d.SunGraphicsEnvironment.registerFonts
(Unknown Source)
	at sun.java2d.SunGraphicsEnvironment.access$000
(Unknown Source)
	at sun.java2d.SunGraphicsEnvironment$2.run
(Unknown Source)
	at java.security.AccessController.doPrivileged(Native 
Method)
	at sun.java2d.SunGraphicsEnvironment.loadFonts
(Unknown Source)
	- locked <02F70FC8> (a 
sun.awt.Win32GraphicsEnvironment)
	at 
sun.java2d.SunGraphicsEnvironment.mapFamilyName(Unknown 
Source)
	at java.awt.Font.initializeFont(Unknown Source)
	at java.awt.Font.<init>(Unknown Source)

#
# The exception above was detected in native code outside 
the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-b92 mixed 
mode)
#


Submitted On 17-SEP-2002
yoseph_phillips
I have just re-run my FontTester (code is listed above) on
1.4.1 (final) and the problem still exists.  It still
happens everytime on the MG______.TTF
It seems that the Java2D team is having great difficulty
with this bug.  I had suggested to them that they at least
give us a workaround: 'include a property which takes a list
of font names to skip. Developers can then set this property
at the start of their applications etc.  A list of corrupt
fonts can be maintained on the Bug Report so that as people
find new corrupt bugs they can be added to the list.', but I
didn't get a response from them, and now that 1.4.1 is out I
guess we will just have to make do.  I haven't been notified
about changes in this bug report for more than a month now,
so I am unsure if anyone from the Java2D team is even
reading these comments.


Submitted On 19-SEP-2002
gehnen
The problem is not only related to a HTML component or a
font tester. On two machines with Windows 2000 (german) I
have the same problem with a quite normal swing-app by
opening the standard file selector dialog box the first time
in the app. But... the problem occurs only seldom - approx.
one time in twenty tries or something like that. So it can't
be a dedicated bad font - maybe it's some kind of race
condition.


Submitted On 20-SEP-2002
mgreim
I have the same problem. On my machine there are several
installations of j2sdk. In some it works if I set JAVA_FONTS
to the directory where the respective fonts are. On some
this causes this bug to happen! I have to unset JAVA_FONTS.
(I installed the fonts in the system font folder on WinNt 4)
Anyway an application does not find any of the system
fonts. GraphicsEnvironment...  lists Lucida et. al.,
so I can't get a monospaced font at all!


Submitted On 03-OCT-2002
dagleger
I was recently able to reproduce and debug an occurrence of 
this problem (EXCEPTION_ACCESS_VIOLATION occurred at 
PC=0x6D1B3B4C). 
The error occurs when reading certain TrueType font files 
which seem to have inconsistent length entries in their 
internal tables. As these data are not checked for 
consistency by Sun's code, they sometimes cause memory 
reads outside allocated buffers - a type of programming error 
that will typically go unnoticed in many cases but may 
randomly generate access violation errors.

Of the font files I have installed on my machine, I have found 
the following - all from Digital typeface Corp. and dated 
19950914 - to contain this type of error:

ameb____.TTF
bdbi____.TTF
bdb_____.TTF
bdri____.TTF
bd______.TTF
bl______.TTF
cpb_____.TTF
dc______.TTF
dinen___.TTF
eubex___.TTF
euex____.TTF
ftbi____.TTF
ftb_____.TTF
ftli____.TTF
ftl_____.TTF
gmmi____.TTF
gmm_____.TTF
gmri____.TTF
gmr_____.TTF
lw______.TTF
mg______.TTF
mh______.TTF
opbo____.TTF
opb_____.TTF
opo_____.TTF
op______.TTF


If it's of any use to Sun's development team, I can easily 
provide detailed documentation on how and under what 
circumstances their code fails in this particular case.


Submitted On 16-OCT-2002
joe_aeo
I join the club of victims of this bug:

An unexpected exception has been detected in native code 
outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION 
occurred at PC=0x6D1B03E7
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for 
the error
      just occurred. Please refer to release documentation for 
possible
      reason and solutions.


Current Java thread:
    at sun.awt.font.NativeFontWrapper.getFontMetrics(Native 
Method)
        ...
Dynamic libraries:
0x7CC00000 - 0x7CC1D000     
C:\WINDOWS\SYSTEM\IMAGEHLP.DLL

Local Time = Wed Oct 16 15:20:46 2002
Elapsed Time = 239
#
# The exception above was detected in native code outside 
the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1-b21 mixed 
mode)
#

On Win98se. Crashes occur frequently but on a random basis


Submitted On 22-OCT-2002
sergio_d_ascia
I had got a similar problem, too.
Here the exception log file


An unexpected exception has been detected in native code 
outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION 
occurred at PC=0xB00C6C6F
Function=[Unknown.]
Library=(N/A)

NOTE: We are unable to locate the function name symbol for 
the error
      just occurred. Please refer to release documentation for 
possible
      reason and solutions.


Current Java thread:
	at 
sun.awt.windows.Win32OffScreenSurfaceData.initDDraw
(Native Method)
	at 
sun.awt.windows.Win32OffScreenSurfaceData.<clinit>
(Unknown Source)
	at sun.awt.Win32GraphicsDevice.<clinit>(Unknown 
Source)
	at 
sun.awt.Win32GraphicsEnvironment.makeScreenDevice
(Unknown Source)
	at 
sun.java2d.SunGraphicsEnvironment.getScreenDevices
(Unknown Source)
	- locked <02C5BD38> (a 
sun.awt.Win32GraphicsEnvironment)
	at 
sun.awt.Win32GraphicsEnvironment.getDefaultScreenDevice
(Unknown Source)
	at java.awt.Window.init(Unknown Source)
	at java.awt.Window.<init>(Unknown Source)
	at java.awt.Frame.<init>(Unknown Source)
	at java.awt.Frame.<init>(Unknown Source)
	at javax.swing.JFrame.<init>(Unknown Source)
	at frmMain.<init>(frmMain.java:21)
	at frmMain.main(frmMain.java:171)

Dynamic libraries:
0x7CD70000 - 0x7CD8D000 
	C:\WINDOWS\SYSTEM\IMAGEHLP.DLL

Local Time = Tue Oct 22 10:55:36 2002
Elapsed Time = 3
#
# The exception above was detected in native code outside 
the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.1_01-b01 mixed 
mode)
#


Submitted On 25-NOV-2002
turingcomplete
Is this the same bug that makes IE close instantly whenever
any java is loaded?
We have many users over here who after installing
webstart/jre 1.4+ cannot view any page with java in it.  I'd
say 30% of the users that we know of encounter this problem.  
The work around is to unselect Tools->Internet
Options->Advanced->Java (Sun)->[x] Use Java 2 v.1.4.1 for
<applet>

And people complain about M$...


Submitted On 20-DEC-2002
asjf
please some fix!


Submitted On 09-JAN-2003
ncr101
And another painful experience ... but with a successful 
outcome (so far).

Sittuation: Windows 98 SE, j2sdk1.4.1_01, and just installed 
NetBeans IDE 3.4 for the first time.  But NetBeans would 
never successfully start.  Not once. Same type of error as 
everyone else. 

The reference to a chess room at www.pogo.com helped 
confirm the nature of my error -- another inexplicable crash. 

What didn't work: I looked at all my fonts (about 500) and 
removed ones which seemed doubtful. Tried again and still a 
problem.

What worked: I set the JAVA FONT environment variable to 
under j2sdk1.4.1_01 (more fonts there than under 
j2re1.4.1_01 alone) and viola!  NetBeans ran for the first time 
ever.   I am very, very grateful to all the trials of those who 
have gone before me.   And I agree -- this bug is a show-
stopper that needs to be fixed.


Submitted On 01-FEB-2003
skowie
My $.2 worth:
Uninstalled close to 150mb of extra fonts (all but my TTFs)
and the fontmanager.dll crash went away. I'm not sure if
it's an issue of memory limits for the fontmanager or what,
but maybe some of you could check the size of the fonts dir.
I'm just glad to have working browsers now. I'll post more
as I go adding my fonts back.


Submitted On 03-FEB-2003
philr
A number of people "turingcomplete", "ncr101", "skowie"
report seeing one of these problems. But knowing you have
this problem isn't enough: we need to be able to reproduce it.
But none of you left contact addresses so we can't help you.
Contact java2d-comments@sun.com if you can identify 
specific fonts that cause the crash. 
JAVA2D_DEBUGFONTS=1

and then running your app is usually sufficient to identify
the font that will cause a crash, ie its usually the last font
you see opened in the debug output.


Submitted On 10-FEB-2003
skowie
Oh ... I checked to show my email and I guess that's not
working ... if you'd like more info you can email me at:

xilord[at]yahoo.com


Submitted On 10-FEB-2003
skowie
philr:

In reviewing the debug output I noticed that the crash
didn't occur on just one font. I noticed it was crashing on
Arial sometimes, other times on other fonts. I ran a
simultaneous registry trace routines while opening any java
applet in both Mozialla and IE and same things were
happening, crash after loading a certain number of fonts
(not sure to be honest as I didn't really take the time to
count them all.)

So the issue of tracing down one font that was causing the
problem didn't seem to help. In removing the unused fonts
(over 300) the problem went away.


Submitted On 10-MAR-2003
brepm5
Hello, I use Win98. I found one font to be ill. When I have it 
installed I got the error, when I remove it, the error is gone.
It's Timmons with the files timr____.ttf, timi____.ttf, 
timb____.ttf and timbi___.ttf. The microsoft program tells me, 
the Font Vendor Macromedia and the Copyright 1999 Sun 
Microsystems Inc.
I hope this can help you.


Submitted On 26-MAR-2003
klaushammer
Under Windows 2000, the problem seems to occur more 
frequently with an Athlon processor (more exactly, Athlon XP 
2000+) than with a Pentium. See also my comment from MON 
SEP 16 05:28 A.M. 2002. This applies to 1.4.1_01-b01.


Submitted On 26-APR-2003
d_mitton
I used the java FontTester program provided by 
yoseph_phillips to locate the troublesome fonts on my 
system.  I discovered the similar situation that "dagleger
 - THU OCT 03 03:27 A.M. 2002 " did, in that all the problem 
fonts were old, dated 10/31/1992, in my case.  I had 32 
fonts with mostly the same names as he lists.  When I 
removed them from the font directory, the problem went 
away.  

My system has been upgraded over the years from Windows 
95 via Windows for Workgroups.  It's possible that these 
fonts are no longer in new systems, or were installed by an 
older application version.  Perhaps that is why "newer" 
systems don't see/have them.


Submitted On 17-JUN-2003
zzgmg103
Suddenly this bug has appeared when I try and start the 
Motorola j2me sdk on a win98 pc running 1.4.1. I have been 
using that sdk for months without problems so its a mystery 
why it would appear.


Submitted On 18-JUL-2003
carfield
Still have this problem with 1.4.2, before this I get a
warning: 
Warning: Cannot convert string "-arphic technology co.-ar pl
mingti2l big5-medium-r-normal--*-140-*-*-c-*-iso10646-1" to
type FontStruct


An unexpected exception has been detected in native code
outside the VM.
Unexpected Signal : 11 occurred at PC=0x4D2F522E
Function=(null)+0x4D2F522E
Library=/opt/sunjdk/jre/lib/i386/libfontmanager.so

NOTE: We are unable to locate the function name symbol for
the error
      just occurred. Please refer to release documentation
for possible
      reason and solutions.


Current Java thread:
	at sun.awt.font.NativeFontWrapper.registerFonts(Native Method)
	- locked <0x489e6f30> (a java.lang.Class)
	at
sun.java2d.SunGraphicsEnvironment.addPathFonts(SunGraphicsEnvironment.java:797)
	at
sun.java2d.SunGraphicsEnvironment.registerFonts(SunGraphicsEnvironment.java:640)
	at
sun.java2d.SunGraphicsEnvironment.access$200(SunGraphicsEnvironment.java:53)
	at
sun.java2d.SunGraphicsEnvironment$2.run(SunGraphicsEnvironment.java:262)
	at java.security.AccessController.doPrivileged(Native Method)
	at
sun.java2d.SunGraphicsEnvironment.loadFonts(SunGraphicsEnvironment.java:256)
	- locked <0x44c5d8b0> (a sun.awt.X11GraphicsEnvironment)
..........................


Submitted On 10-AUG-2003
b.lecomte
I used an applet dealing with fontmanager in my webpage.
It worked untill I installed Project2000. I'm looking for
one (or more) of the 10 fonts that is (are) corrupted. 
(see also 4471357)


Submitted On 12-AUG-2003
b.lecomte
thanks to
"MON FEB 03 02:45 P.M. 2003
philr"
I deleted 
on windows2000 SP3/4
SIMSUN.TTF (was unable to display itself using font
manager+dblclik)
PMINGLIU.TTF (wasn't display at all : had to do a cmd and go
to c:\winnt\fonts to del-ete it)

and was able to run netbeans again (and my applet !)


Submitted On 25-AUG-2004
jddonohoe
Here is the stack trace when used with font LSANSI.TTF

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x3012382
Function=Java_sun_awt_font_GlyphList_discardData+0x63F2
Library=C:\java\j2sdk1.4.2_05\jre\bin\fontmanager.dll

Current Java thread:
        at sun.awt.font.NativeFontWrapper.registerFonts(Native Method)
        - locked <0x14219bb8> (a java.lang.Class)
        at sun.java2d.SunGraphicsEnvironment.addPathFonts(SunGraphicsEnvironment.java:800)
        at sun.java2d.SunGraphicsEnvironment.registerFonts(SunGraphicsEnvironment.java:643)
        at sun.java2d.SunGraphicsEnvironment.access$200(SunGraphicsEnvironment.java:53)
        at sun.java2d.SunGraphicsEnvironment$2.run(SunGraphicsEnvironment.java:265)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.java2d.SunGraphicsEnvironment.loadFonts(SunGraphicsEnvironment.java:259)
        - locked <0x100a2260> (a sun.awt.Win32GraphicsEnvironment)
        at sun.java2d.SunGraphicsEnvironment.mapFontName(SunGraphicsEnvironment.java:507)
        at java.awt.Font.initializeFont(Font.java:312)
        at java.awt.Font.<init>(Font.java:344)
        at sun.awt.windows.WDesktopProperties.setFontProperty(WDesktopProperties.java:157)
        - locked <0x1002aa98> (a sun.awt.windows.WDesktopProperties)
        at sun.awt.windows.WDesktopProperties.getWindowsParameters(Native Method)
        at sun.awt.windows.WDesktopProperties.<init>(WDesktopProperties.java:56)
        at sun.awt.windows.WToolkit.initializeDesktopProperties(WToolkit.java:876)
        at java.awt.Toolkit.getDesktopProperty(Toolkit.java:1569)
        - locked <0x10013d08> (a sun.awt.windows.WToolkit)
        at com.sun.java.swing.plaf.windows.XPStyle.getXP(XPStyle.java:75)
        - locked <0x142aad80> (a java.lang.Class)
        at com.sun.java.swing.plaf.windows.WindowsTreeUI$ExpandedIcon.<init>(WindowsTreeUI.java:123)
        at com.sun.java.swing.plaf.windows.WindowsTreeUI$ExpandedIcon.createExpandedIcon(WindowsTreeUI.java:127)
        at com.sun.java.swing.plaf.windows.WindowsLookAndFeel.initComponentDefaults(WindowsLookAndFeel.java:309)
        at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:81)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:394)
        at javax.swing.UIManager.setLookAndFeel(UIManager.java:424)
        at FontTest.<init>(FontTest.java:44)
        at FontTest.main(FontTest.java:24)


Submitted On 25-AUG-2004
jddonohoe
I can reproduce this every time with 1.4.2_05, so I would hesitate to say it is fixed.  I have a font which causes the problem everytime.  Email badfont@donohoe.info to get it.

Would like to see this fixed in 1.4.2_06 as there seem to be a non-small number of regular joe users out there that run into this when trying to run our java-based games (including DD Tournament Poker).


Submitted On 16-SEP-2004
SlayerBBBB@@
I solved it.
I created a file named badfonts.txt in JRE_HOME/lib/fonts.

It includes the Windows Fonts lists.
the format like following
C:\WINDOWS\Fonts\ARIALNBI.TTF
....
....

But I cannot confirm it would supported futher JRE.

I tested it Windows 2000, Windows XP KOREAN
JRE 1.4.2_04 plug-in with Internet Explorer.





PLEASE NOTE: JDK6 is formerly known as Project Mustang