This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

unexpected exception has been detected in native code outside the VM  RSS feed

Darrell Morello
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This error comes up when trying to get the program to take up the system look and feel.

Heres the code I used

And heres the error log

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x2E22487

Current Java thread:
at sun.awt.font.NativeFontWrapper.registerFonts(Native Method)
- locked <0x141ae190> (a java.lang.Class)
at sun.java2d.SunGraphicsEnvironment.addPathFonts(
at sun.java2d.SunGraphicsEnvironment.registerFonts(
at sun.java2d.SunGraphicsEnvironment.access$200(
at sun.java2d.SunGraphicsEnvironment$
at Method)
at sun.java2d.SunGraphicsEnvironment.loadFonts(
- locked <0x1050d140> (a sun.awt.Win32GraphicsEnvironment)
at sun.java2d.SunGraphicsEnvironment.mapFontName(
at java.awt.Font.initializeFont(
at java.awt.Font.<init>(
- locked <0x10090038> (a
at Method)
at java.awt.Toolkit.getDesktopProperty(
- locked <0x10090000> (a
- locked <0x142b15f0> (a java.lang.Class)
at javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(
at javax.swing.UIManager.setLookAndFeel(
at javax.swing.UIManager.setLookAndFeel(
at FindTheWord.main(

Dynamic libraries:
0x00400000 - 0x0040B000 C:\j2sdk1.4.207\bin\java.exe
0x77F50000 - 0x77FF7000 C:\WINDOWS\System32\ntdll.dll
0x77E60000 - 0x77F46000 C:\WINDOWS\system32\kernel32.dll
0x77DD0000 - 0x77E5D000 C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78087000 C:\WINDOWS\system32\RPCRT4.dll
0x77C10000 - 0x77C63000 C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08138000 C:\j2sdk1.4.207\jre\bin\client\jvm.dll
0x77D40000 - 0x77DCD000 C:\WINDOWS\system32\USER32.dll
0x7F000000 - 0x7F041000 C:\WINDOWS\system32\GDI32.dll
0x76B40000 - 0x76B6C000 C:\WINDOWS\System32\WINMM.dll
0x76390000 - 0x763AC000 C:\WINDOWS\System32\IMM32.DLL
0x629C0000 - 0x629C8000 C:\WINDOWS\System32\LPK.DLL
0x72FA0000 - 0x72FFA000 C:\WINDOWS\System32\USP10.dll
0x10000000 - 0x10007000 C:\j2sdk1.4.207\jre\bin\hpi.dll
0x003A0000 - 0x003AE000 C:\j2sdk1.4.207\jre\bin\verify.dll
0x003B0000 - 0x003C9000 C:\j2sdk1.4.207\jre\bin\java.dll
0x003D0000 - 0x003DD000 C:\j2sdk1.4.207\jre\bin\zip.dll
0x02C70000 - 0x02D82000 C:\j2sdk1.4.207\jre\bin\awt.dll
0x73000000 - 0x73023000 C:\WINDOWS\System32\WINSPOOL.DRV
0x4FEC0000 - 0x4FFF6000 C:\WINDOWS\system32\ole32.dll
0x5AD70000 - 0x5ADA4000 C:\WINDOWS\System32\uxtheme.dll
0x02DF0000 - 0x02E41000 C:\j2sdk1.4.207\jre\bin\fontmanager.dll
0x73760000 - 0x737A4000 C:\WINDOWS\System32\ddraw.dll
0x73BC0000 - 0x73BC6000 C:\WINDOWS\System32\DCIMAN32.dll
0x73940000 - 0x73A07000 C:\WINDOWS\System32\D3DIM700.DLL
0x74720000 - 0x74764000 C:\WINDOWS\System32\MSCTF.dll
0x07310000 - 0x0733B000 C:\WINDOWS\System32\msctfime.ime
0x76C90000 - 0x76CB2000 C:\WINDOWS\system32\imagehlp.dll
0x6D510000 - 0x6D58D000 C:\WINDOWS\system32\DBGHELP.dll
0x77C00000 - 0x77C07000 C:\WINDOWS\system32\VERSION.dll
0x76BF0000 - 0x76BFB000 C:\WINDOWS\System32\PSAPI.DLL

Heap at VM Abort:
def new generation total 576K, used 327K [0x10010000, 0x100b0000, 0x104f0000)
eden space 512K, 51% used [0x10010000, 0x10051ee8, 0x10090000)
from space 64K, 100% used [0x10090000, 0x100a0000, 0x100a0000)
to space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
tenured generation total 1408K, used 324K [0x104f0000, 0x10650000, 0x14010000)
the space 1408K, 23% used [0x104f0000, 0x105411f0, 0x10541200, 0x10650000)
compacting perm gen total 4096K, used 2711K [0x14010000, 0x14410000, 0x18010000)
the space 4096K, 66% used [0x14010000, 0x142b5d38, 0x142b5e00, 0x14410000)

Local Time = Wed May 25 21:24:22 2005
Elapsed Time = 0
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.2_07-b05 mixed mode)


Ernest Friedman-Hill
author and iconoclast
Posts: 24215
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's a JVM crash; it's nothing to do with your program. The stackdump is blaming the problem on fontmanager.dll. I did a quick search for this DLL in the Bug Parade (, a good place to check for this kind of thing!) and there have been several bugs in Sun code here (all closed now as fixed) and also many comments to the effect that corrupted font files can cause this problem, and recommended fixed (uninstall all your fonts, and reinstall them? Sounds like a lot of work.)

So you can try upgrading to the very most recent JDK you can, and if the problem doesn't go away, then you might try finding a corrupted font on your system.
Darrell Morello
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm using j2sdk1.4.2_07

Anyway, I guess I better forget about it for now.

Thanks for the link
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!