JDK-4523926 : Random crashs while loading html-renderer classes
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2001-11-07
  • Updated: 2001-11-08
  • Resolved: 2001-11-08
Related Reports
Duplicate :  
Description
Name: ddT132432			Date: 11/06/2001


Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.4.0-beta2-b77, mixed mode)

Random crashes while running our (big) application under JDK1.4Beta2. It seems
that the crash happens when the html-renderer is used the first-time and the
corresponding classes are loaded and initialized. If this first hurdle is taken
(ca. 50% chance), the applications runs more or less stable.
Following log-file is generated:


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D1B34F5
Function=[Unknown.]
Library=C:\w32apps\jdk1.4\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 <06CA7938> (a java.lang.Class)
	at sun.java2d.SunGraphicsEnvironment.addPathFonts
(SunGraphicsEnvironment.java:582)
	at sun.java2d.SunGraphicsEnvironment.registerFonts
(SunGraphicsEnvironment.java:487)
	at sun.java2d.SunGraphicsEnvironment.access$100
(SunGraphicsEnvironment.java:59)
	at sun.java2d.SunGraphicsEnvironment$2.run
(SunGraphicsEnvironment.java:153)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.java2d.SunGraphicsEnvironment.loadFonts
(SunGraphicsEnvironment.java:132)
	- locked <02E0AF18> (a sun.awt.Win32GraphicsEnvironment)
	at sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames
(SunGraphicsEnvironment.java:255)
	at sun.java2d.SunGraphicsEnvironment.getAvailableFontFamilyNames
(SunGraphicsEnvironment.java:302)
	at javax.swing.text.html.CSS.getValidFontNameMapping(CSS.java:913)
	- locked <02B7E348> (a java.lang.Object)
	at javax.swing.text.html.CSS$FontFamily.parseCssValue(CSS.java:1861)
	at javax.swing.text.html.CSS.getInternalCSSValue(CSS.java:532)
	at javax.swing.text.html.CSS.addInternalCSSValue(CSS.java:517)
	at javax.swing.text.html.StyleSheet.addCSSAttribute(StyleSheet.java:467)
	at javax.swing.text.html.StyleSheet$CssParser.handleValue
(StyleSheet.java:3086)
	at javax.swing.text.html.CSSParser.parseDeclaration(CSSParser.java:344)
	at javax.swing.text.html.CSSParser.parseDeclarationBlock
(CSSParser.java:311)
	at javax.swing.text.html.CSSParser.parseRuleSet(CSSParser.java:258)
	at javax.swing.text.html.CSSParser.getNextStatement(CSSParser.java:164)
	at javax.swing.text.html.CSSParser.parse(CSSParser.java:139)
	at javax.swing.text.html.StyleSheet$CssParser.parse
(StyleSheet.java:3008)
	at javax.swing.text.html.StyleSheet.loadRules(StyleSheet.java:306)
	at javax.swing.text.html.HTMLEditorKit.getStyleSheet
(HTMLEditorKit.java:361)
	at javax.swing.plaf.basic.BasicHTML$BasicEditorKit.getStyleSheet
(BasicHTML.java:162)
	at javax.swing.plaf.basic.BasicHTML$BasicEditorKit.createDefaultDocument
(BasicHTML.java:173)
	at javax.swing.plaf.basic.BasicHTML.createHTMLView(BasicHTML.java:37)
	at javax.swing.plaf.basic.BasicHTML.updateRenderer(BasicHTML.java:83)
	at
javax.swing.plaf.basic.BasicToolTipUI$PropertyChangeHandler.propertyChange
(BasicToolTipUI.java:229)
	at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange
(SwingPropertyChangeSupport.java:267)
	at javax.swing.event.SwingPropertyChangeSupport.firePropertyChange
(SwingPropertyChangeSupport.java:235)
	at javax.swing.JComponent.firePropertyChange(JComponent.java:3810)
	at javax.swing.JToolTip.setTipText(JToolTip.java:114)
	at javax.swing.ToolTipManager.showTipWindow(ToolTipManager.java:261)
	at javax.swing.ToolTipManager$insideTimerAction.actionPerformed
(ToolTipManager.java:676)
	at javax.swing.Timer.fireActionPerformed(Timer.java:274)
	at javax.swing.Timer$DoPostEvent.run(Timer.java:204)
	at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:176)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:446)
	at amos.client.system.EventDispatcher.dispatchEvent
(EventDispatcher.java:28)
	at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:193)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:147)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:141)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:133)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:101)

Dynamic libraries:
0x00400000 - 0x00406000 	C:\w32apps\jdk1.4\bin\java.exe
0x77F60000 - 0x77FBC000 	C:\WINNT\System32\ntdll.dll
0x77DC0000 - 0x77DFF000 	C:\WINNT\system32\ADVAPI32.dll
0x77F00000 - 0x77F5E000 	C:\WINNT\system32\KERNEL32.dll
0x77E70000 - 0x77EC4000 	C:\WINNT\system32\USER32.dll
0x77ED0000 - 0x77EFC000 	C:\WINNT\system32\GDI32.dll
0x77E10000 - 0x77E67000 	C:\WINNT\system32\RPCRT4.dll
0x78000000 - 0x78040000 	C:\WINNT\system32\MSVCRT.dll
0x6D330000 - 0x6D446000 	C:\w32apps\jdk1.4\jre\bin\client\jvm.dll
0x77FD0000 - 0x77FFA000 	C:\WINNT\System32\WINMM.dll
0x4FA00000 - 0x4FA77000 	C:\WINNT\System32\cwcmmsys.dll
0x6BD00000 - 0x6BD0A000 	C:\WINNT\System32\cwcfm3.dll
0x6D1D0000 - 0x6D1D7000 	C:\w32apps\jdk1.4\jre\bin\hpi.dll
0x6D300000 - 0x6D30D000 	C:\w32apps\jdk1.4\jre\bin\verify.dll
0x6D210000 - 0x6D227000 	C:\w32apps\jdk1.4\jre\bin\java.dll
0x6D320000 - 0x6D32D000 	C:\w32apps\jdk1.4\jre\bin\zip.dll
0x6D000000 - 0x6D0F1000 	C:\w32apps\jdk1.4\jre\bin\awt.dll
0x77C00000 - 0x77C18000 	C:\WINNT\System32\WINSPOOL.DRV
0x76AB0000 - 0x76AB5000 	C:\WINNT\System32\IMM32.dll
0x77B20000 - 0x77BD5000 	C:\WINNT\system32\ole32.dll
0x10000000 - 0x10009000 	C:\WINNT\System32\PGPhk.dll
0x6D180000 - 0x6D1D0000 	C:\w32apps\jdk1.4\jre\bin\fontmanager.dll
0x6D2E0000 - 0x6D2E7000 	C:\w32apps\jdk1.4\jre\bin\nio.dll
0x776B0000 - 0x776C4000 	C:\WINNT\System32\WS2_32.dll
0x776A0000 - 0x776A7000 	C:\WINNT\System32\WS2HELP.dll
0x6D2D0000 - 0x6D2DE000 	C:\w32apps\jdk1.4\jre\bin\net.dll
0x776D0000 - 0x776D8000 	C:\WINNT\System32\WSOCK32.dll
0x77130000 - 0x77156000 	C:\WINNT\System32\ddraw.dll
0x6D280000 - 0x6D29E000 	C:\w32apps\jdk1.4\jre\bin\jpeg.dll
0x74FF0000 - 0x74FFD000 	C:\WINNT\System32\rnr20.dll
0x66210000 - 0x66219000 	C:\WINNT\system32\netware\NWWS2NDS.DLL
0x50D50000 - 0x50D92000 	C:\WINNT\System32\NETWIN32.DLL
0x50D00000 - 0x50D15000 	C:\WINNT\System32\CLNWIN32.DLL
0x50DF0000 - 0x50E10000 	C:\WINNT\System32\LOCWIN32.DLL
0x50DB0000 - 0x50DD9000 	C:\WINNT\System32\NCPWIN32.dll
0x66220000 - 0x6622C000 	C:\WINNT\system32\netware\NWWS2SLP.DLL
0x1C000000 - 0x1C006000 	C:\WINNT\System32\NWSRVLOC.dll
0x77660000 - 0x7766F000 	C:\WINNT\system32\msafd.dll
0x77690000 - 0x77699000 	C:\WINNT\System32\wshtcpip.dll
0x77BF0000 - 0x77BF7000 	C:\WINNT\System32\rpcltc1.dll
0x0B3F0000 - 0x0B41C000 	D:\babylon\CAPTLIB.DLL
0x76AC0000 - 0x76ADD000 	C:\WINNT\System32\imagehlp.dll
0x73A10000 - 0x73A22000 	C:\WINNT\System32\PSAPI.DLL

Local Time = Wed Aug 29 14:39:29 2001
Elapsed Time = 34
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-beta2-b77 mixed mode)
#
(Review ID: 131009) 
======================================================================

Comments
EVALUATION Please update to JDK 1.4 beta3, I beleive this issue will go away. Let us know how it goes for you. If this is broken in lateest JDK 1.4 beta 3 b84 or greater then please provide a testcase to re-produce this bug. Also, please run with -Xcheck:jni as a java arg. This will give us more details on what might be happening with native code. ###@###.### 2001-11-08 ================================= I'm not so confident the issue will go away on beta 3. This is a duplicate of 4482430 but we've never been able to reproduce it in house. Some apps will see beta 3 fix it because changes in that beta avoid the code path that crashes, but this particular one explicitly takes that path by loading the swing html component which in turn loads all the fonts. ###@###.### 2001-11-08 ==============================
08-11-2001