Skip to main content

[JAVA2D] getDefaultColor exception on microsoft windows

3 replies [Last post]
Anonymous

Howdy, our application is shutting down periodically, seldom in the same
place. The shutdown produces a log like this.

Does anyone have suggestions on how to debug this?

I've seen a few things on the forums suggesting memory exhaustion or
unsafe access to swing components from off the event thread but the log
does not tell me very much in terms of where to look.

Any help appreciated.

Bill York

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at
PC=0x7830528C
Function=Java_sun_awt_windows_WColor_getDefaultColor+0x5CCA
Library=L:\build\matlab\sys\java\jre\win32\jre1.4.2\bin\awt.dll

Current Java thread:
at sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Dynamic libraries:
0x00400000 - 0x004D8000 L:\build\matlab\bin\win32\MATLAB.exe
0x77F80000 - 0x77FFB000 C:\WINNT\system32\ntdll.dll
0x787E0000 - 0x787E9000 L:\build\matlab\bin\win32\libmat.dll
0x78700000 - 0x78788000 L:\build\matlab\bin\win32\libut.dll
0x77920000 - 0x77943000 C:\WINNT\system32\imagehlp.dll
0x78000000 - 0x78045000 C:\WINNT\system32\MSVCRT.DLL
0x7C570000 - 0x7C623000 C:\WINNT\system32\KERNEL32.dll
0x78500000 - 0x78576000 L:\build\matlab\bin\win32\icuuc24.dll
0x78430000 - 0x78435000 L:\build\matlab\bin\win32\icudt24l.dll
0x7C340000 - 0x7C396000 L:\build\matlab\bin\win32\MSVCR71.dll
0x78440000 - 0x784C2000 L:\build\matlab\bin\win32\icuin24.dll
0x784D0000 - 0x784DD000 L:\build\matlab\bin\win32\icuio24.dll
0x7C3A0000 - 0x7C41B000 L:\build\matlab\bin\win32\MSVCP71.dll
0x7C2D0000 - 0x7C332000 C:\WINNT\system32\ADVAPI32.dll
0x77D30000 - 0x77DA1000 C:\WINNT\system32\RPCRT4.DLL
0x77A50000 - 0x77B3F000 C:\WINNT\system32\ole32.dll
0x77F40000 - 0x77F79000 C:\WINNT\system32\GDI32.dll
0x77E10000 - 0x77E6F000 C:\WINNT\system32\USER32.dll
0x779B0000 - 0x77A4B000 C:\WINNT\system32\OLEAUT32.dll
0x78790000 - 0x787C5000 L:\build\matlab\bin\win32\libmx.dll
0x786E0000 - 0x786F2000 L:\build\matlab\bin\win32\libz.dll
0x78F70000 - 0x78FD4000
L:\build\matlab\bin\win32\libmwservices.dll
0x78800000 - 0x78815000 L:\build\matlab\bin\win32\mpath.dll
0x787F0000 - 0x787FE000 L:\build\matlab\bin\win32\mvalue.dll
0x787D0000 - 0x787DE000 L:\build\matlab\bin\win32\libmex.dll
0x78930000 - 0x78992000
L:\build\matlab\bin\win32\m_dispatcher.dll
0x78580000 - 0x786D6000
L:\build\matlab\bin\win32\xerces-c_2_1_0.dll
0x78F50000 - 0x78F61000 L:\build\matlab\bin\win32\datasvcs.dll
0x792F0000 - 0x7938D000 L:\build\matlab\bin\win32\mcr.dll
0x76B30000 - 0x76B6E000 C:\WINNT\system32\comdlg32.dll
0x70A70000 - 0x70AD5000 C:\WINNT\system32\SHLWAPI.DLL
0x71710000 - 0x71794000 C:\WINNT\system32\COMCTL32.DLL
0x00DE0000 - 0x01028000 C:\WINNT\system32\SHELL32.DLL
0x79020000 - 0x7909B000 L:\build\matlab\bin\win32\uiw.dll
0x79B40000 - 0x79B6B000 L:\build\matlab\bin\win32\jmi.dll
0x789A0000 - 0x78C27000
L:\build\matlab\bin\win32\m_interpreter.dll
0x78C30000 - 0x78E28000 L:\build\matlab\bin\win32\m_parser.dll
0x78E30000 - 0x78E87000 L:\build\matlab\bin\win32\m_ir.dll
0x78ED0000 - 0x78F43000 L:\build\matlab\bin\win32\mlib.dll
0x78EC0000 - 0x78ECA000 L:\build\matlab\bin\win32\ir_xfmr.dll
0x78820000 - 0x788A5000 L:\build\matlab\bin\win32\mcos.dll
0x78EB0000 - 0x78EBF000 L:\build\matlab\bin\win32\m_pcodeio.dll
0x78E90000 - 0x78EA1000 L:\build\matlab\bin\win32\m_pcodegen.dll
0x79C10000 - 0x79D38000 L:\build\matlab\bin\win32\bridge.dll
0x77820000 - 0x77827000 C:\WINNT\system32\VERSION.dll
0x759B0000 - 0x759B6000 C:\WINNT\system32\LZ32.DLL
0x788B0000 - 0x7892D000 L:\build\matlab\bin\win32\udd.dll
0x79150000 - 0x79291000 L:\build\matlab\bin\win32\hg.dll
0x79390000 - 0x794AF000 L:\build\matlab\bin\win32\numerics.dll
0x794F0000 - 0x79576000 L:\build\matlab\bin\win32\libfftw3.dll
0x79580000 - 0x79601000 L:\build\matlab\bin\win32\libfftw3f.dll
0x794B0000 - 0x794CC000
L:\build\matlab\bin\win32\libmwlapack.dll
0x79A80000 - 0x79AB2000
L:\build\matlab\bin\win32\libmwumfpack.dll
0x790D0000 - 0x79145000 L:\build\matlab\bin\win32\libmwgui.dll
0x790A0000 - 0x790BA000 L:\build\matlab\bin\win32\libuij.dll
0x792C0000 - 0x792EA000
L:\build\matlab\bin\win32\libmwhardcopy.dll
0x7C140000 - 0x7C243000 L:\build\matlab\bin\win32\MFC71.DLL
0x77800000 - 0x7781E000 C:\WINNT\system32\WINSPOOL.DRV
0x76620000 - 0x76631000 C:\WINNT\system32\MPR.DLL
0x79AE0000 - 0x79B31000 L:\build\matlab\bin\win32\udd_mi.dll
0x75170000 - 0x751BF000 C:\WINNT\system32\NETAPI32.dll
0x01030000 - 0x0103F000 C:\WINNT\system32\SECUR32.DLL
0x751C0000 - 0x751C6000 C:\WINNT\system32\NETRAP.DLL
0x75150000 - 0x7515F000 C:\WINNT\system32\SAMLIB.DLL
0x75030000 - 0x75044000 C:\WINNT\system32\WS2_32.DLL
0x75020000 - 0x75028000 C:\WINNT\system32\WS2HELP.DLL
0x77950000 - 0x7797A000 C:\WINNT\system32\WLDAP32.DLL
0x77980000 - 0x779A4000 C:\WINNT\system32\DNSAPI.DLL
0x75050000 - 0x75058000 C:\WINNT\system32\WSOCK32.DLL
0x790C0000 - 0x790C5000 L:\build\matlab\bin\win32\uinone.dll
0x79BD0000 - 0x79BD9000
L:\build\matlab\bin\win32\mlautoregister.dll
0x79AC0000 - 0x79AD1000 L:\build\matlab\bin\win32\mwoles05.dll
0x79B70000 - 0x79BA5000 L:\build\matlab\bin\win32\comcli.dll
0x7A7B0000 - 0x7AA53000
L:\build\matlab\bin\win32\atlas_Athlon.dll
0x79610000 - 0x79A64000 L:\build\matlab\bin\win32\lapack.dll
0x7C040000 - 0x7C0B5000 L:\build\matlab\bin\win32\DFORRT.dll
0x02660000 - 0x0266E000 L:\build\matlab\bin\win32\MFC71ENU.DLL
0x033B0000 - 0x033F4000 C:\WINNT\system32\DDRAW.dll
0x728A0000 - 0x728A6000 C:\WINNT\system32\DCIMAN32.dll
0x05410000 - 0x054FB000 C:\WINNT\system32\G400Icd.dll
0x78100000 - 0x78236000
L:\build\matlab\sys\java\jre\win32\jre1.4.2\bin\client\jvm.dll
0x77570000 - 0x775A0000 C:\WINNT\system32\WINMM.dll
0x78240000 - 0x78247000
L:\build\matlab\sys\java\jre\win32\jre1.4.2\bin\hpi.dll
0x78250000 - 0x7825E000
L:\build\matlab\sys\java\jre\win32\jre1.4.2\bin\verify.dll
0x78260000 - 0x78278000
L:\build\matlab\sys\java\jre\win32\jre1.4.2\bin\java.dll
0x78280000 - 0x7828D000
L:\build\matlab\sys\java\jre\win32\jre1.4.2\bin\zip.dll
0x79D40000 - 0x79D52000 L:\build\matlab\bin\win32\jmi_mi.dll
0x78290000 - 0x7839A000
L:\build\matlab\sys\java\jre\win32\jre1.4.2\bin\awt.dll
0x75E60000 - 0x75E7A000 C:\WINNT\system32\IMM32.dll
0x783E0000 - 0x78430000
L:\build\matlab\sys\java\jre\win32\jre1.4.2\bin\fontmanager.dll
0x7A780000 - 0x7A78A000 L:\build\matlab\bin\win32\nativejava.dll
0x7A790000 - 0x7A797000 L:\build\matlab\bin\win32\nativelex.dll
0x792A0000 - 0x792BD000 L:\build\matlab\bin\win32\glren.dll
0x1B620000 - 0x1B6E7000 C:\WINNT\system32\OPENGL32.dll
0x1B6F0000 - 0x1B70F000 C:\WINNT\system32\GLU32.dll
0x78FE0000 - 0x7901D000
L:\build\matlab\bin\win32\libmwbuiltins.dll
0x1FFC0000 - 0x1FFC5000
L:\build\matlab\toolbox\matlab\datatypes\cellfun.dll
0x207D0000 - 0x207D5000
L:\build\matlab\toolbox\matlab\datafun\sortrowsc.dll
0x207E0000 - 0x207E5000
L:\build\matlab\toolbox\matlab\ops\ismembc.dll
0x79E70000 - 0x7A49D000 L:\build\matlab\bin\win32\simulink.dll
0x7A4A0000 - 0x7A4E0000 L:\build\matlab\bin\win32\sl_solver.dll
0x7A4E0000 - 0x7A50E000
L:\build\matlab\bin\win32\libfixedpoint.dll
0x7A6A0000 - 0x7A771000 L:\build\matlab\bin\win32\cg_ir.dll
0x7A5C0000 - 0x7A69B000 L:\build\matlab\bin\win32\glee.dll
0x7B540000 - 0x7B95C000 L:\build\matlab\bin\win32\qt-mt312.dll
0x20FF0000 - 0x21025000
L:\build\matlab\bin\win32\qaxcontainer.dll
0x7A510000 - 0x7A5BC000 L:\build\matlab\bin\win32\fitools.dll
0x6E600000 - 0x6E645000 L:\build\matlab\bin\win32\gmp.dll
0x79D60000 - 0x79E6B000 L:\build\matlab\bin\win32\dastudio.dll
0x210F0000 - 0x210F5000
L:\build\matlab\toolbox\matlab\timefun\datenummx.dll
0x21100000 - 0x21105000
L:\build\matlab\toolbox\matlab\timefun\datevecmx.dll
0x7A7A0000 - 0x7A7A5000 L:\build\matlab\bin\win32\nativehg.dll
0x783A0000 - 0x783A5000
L:\build\matlab\sys\java\jre\win32\jre1.4.2\bin\jawt.dll
0x26680000 - 0x26688000
L:\build\matlab\toolbox\matlab\graph2d\private\lineseriesmex.dll
0x26690000 - 0x266AE000
L:\build\matlab\toolbox\matlab\specfun\besselmx.dll
0x7C0C0000 - 0x7C13E000 L:\build\matlab\bin\win32\DFORMD.dll
0x1A0A0000 - 0x1A0A5000
L:\build\matlab\toolbox\images\images\private\iptregistry.dll
0x1A0B0000 - 0x1A0BA000
L:\build\matlab\toolbox\matlab\iofun\dataread.dll
0x1A8C0000 - 0x1A8C5000
L:\build\matlab\toolbox\matlab\datafun\sortcellchar.dll
0x1A8D0000 - 0x1A8D5000
L:\build\matlab\toolbox\matlab\graphics\private\loadfonts.dll
0x1A8E0000 - 0x1A98C000
L:\build\matlab\toolbox\matlab\graphics\private\texmex.dll
0x268E0000 - 0x268FB000
L:\build\matlab\toolbox\matlab\imagesci\private\png.dll
0x26B90000 - 0x26B96000
L:\build\matlab\toolbox\matlab\timefun\private\dtstr2dtnummx.dll
0x26BA0000 - 0x26BA5000
L:\build\matlab\toolbox\matlab\timefun\private\getampmtokensmx.dll
0x26BB0000 - 0x26BB5000
L:\build\matlab\toolbox\matlab\timefun\private\getmonthnamesmx.dll
0x76B20000 - 0x76B25000 C:\WINNT\system32\riched32.dll
0x772B0000 - 0x7731C000 C:\WINNT\system32\RICHED20.dll
0x293A0000 - 0x293A9000
L:\build\matlab\toolbox\simulink\fixedandfloat\sfix_tsampmath.dll
0x293B0000 - 0x293B9000
L:\build\matlab\toolbox\simulink\blocks\sfun_nddirectlook.dll
0x293C0000 - 0x293CA000
L:\build\matlab\toolbox\simulink\blocks\sfun_kflookupnd.dll
0x293D0000 - 0x293DB000
L:\build\matlab\toolbox\simulink\blocks\sfun_lookupnd.dll
0x293E0000 - 0x293E8000
L:\build\matlab\toolbox\simulink\fixedandfloat\sfix_bitop.dll
0x293F0000 - 0x293F8000
L:\build\matlab\toolbox\simulink\fixedandfloat\sfix_dot.dll
0x29400000 - 0x29406000
L:\build\matlab\toolbox\simulink\blocks\sfun_manswitch.dll
0x29410000 - 0x29417000
L:\build\matlab\toolbox\simulink\blocks\smatrxcat.dll
0x29420000 - 0x29426000
L:\build\matlab\toolbox\simulink\blocks\sreshape.dll
0x2F470000 - 0x2F475000
L:\build\matlab\toolbox\matlab\ops\ismembc2.dll
0x2F490000 - 0x2F4C3000
L:\build\matlab\toolbox\matlab\imagesci\private\rtifc.dll
0x2F8A0000 - 0x2F8A5000
L:\build\matlab\toolbox\images\images\private\grayto8.dll
0x2F8B0000 - 0x2F8B6000
L:\build\matlab\toolbox\images\images\private\ditherc.dll
0x30460000 - 0x30466000
L:\build\matlab\toolbox\mbc\mbcguitools\@xregGui\@clickedit\doBtnsImageV
.dll
0x30470000 - 0x30475000
L:\build\matlab\toolbox\mbc\mbcguitools\@xregGui\@clickedit\mouseButtonS
tate.dll
0x30480000 - 0x30489000
L:\build\matlab\toolbox\mbc\mbcguitools\@xregGui\@clickedit\mbchook.dll
0x30750000 - 0x3076D000
L:\build\matlab\toolbox\matlab\imagesci\private\wjpg8c.dll
0x30A00000 - 0x30A31000
L:\build\matlab\toolbox\matlab\imagesci\private\wtifc.dll
0x72A00000 - 0x72A2D000 C:\WINNT\system32\DBGHELP.dll
0x690A0000 - 0x690AB000 C:\WINNT\system32\PSAPI.DLL

Heap at VM Abort:
Heap
def new generation total 4992K, used 3739K [0x07f60000, 0x084c0000,
0x08880000)
eden space 4480K, 72% used [0x07f60000, 0x08286cd0, 0x083c0000)
from space 512K, 100% used [0x08440000, 0x084c0000, 0x084c0000)
to space 512K, 0% used [0x083c0000, 0x083c0000, 0x08440000)
tenured generation total 32488K, used 23331K [0x08880000, 0x0a83a000,
0x0bf60000)
the space 32488K, 71% used [0x08880000, 0x09f48ee8, 0x09f49000,
0x0a83a000)
compacting perm gen total 16128K, used 16126K [0x0bf60000, 0x0cf20000,
0x0ff60000)
the space 16128K, 99% used [0x0bf60000, 0x0cf1fba8, 0x0cf1fc00,
0x0cf20000)

Local Time = Mon Apr 26 13:58:31 2004
Elapsed Time = 540
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)
#
# An error report file has been saved as hs_err_pid1504.log.
# Please refer to the file for further information.
#
Stack Trace:
[0] jmi.dll:_mwJavaAbort@0(1, 0x149ff760, 0x139e2c50, 0xc0000005) + 21
bytes
[1] jvm.dll:0x781a9078(0x139e2c50, 0xc0000005, 0x7830528c, 0x149ff760)
[2] jvm.dll:0x781aab29

------------------------------------------------------------------------
Fatal Java Exception detected at Mon Apr 26 13:58:31 2004
------------------------------------------------------------------------

Configuration:
MATLAB Version: 7.0.0.9396 (R14)
Operating System: Microsoft Windows 2000
Window System: Version 5.0 (Build 2195: Service Pack 4)
Processor ID: x86 Family 6 Model 6 Stepping 2, AuthenticAMD
Virtual Machine: Java 1.4.2 with Sun Microsystems Inc. Java
HotSpot(TM) Client VM
(mixed mode)
Default Charset: ibm-5348_P100-1997

Java 1.4.2 with Sun Microsystems Inc. Java HotSpot(TM) Client VM
(mixed mode)

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
boten
Offline
Joined: 2006-02-17

Hi,
I have the same probelm - did you get any solution ?
Dotan

Clifford Lyon

Question for the list - what's the fastest way to change all the pixel
values of an image, and redraw the screen?

Currently, I'm using a BufferedImage, with a handle to the pixels using a
DataBuffer. After rewriting the the pixel array, I call paintImmediately on
the JComponent container for the image. (It a JApplet)

Any out there been down the pixel shader road, and found anything faster?

Thanks.

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".

Michele Puccini

Hello,

looks like no one is talking about the new and promising jdk1.5 Window
OpenGL pipeline for Java2D.

After some nice talks with Chris Campbell about that topic I didn't hear
from him anymore. I can only imagine he's deeply behind his creature..

Cheers,

Mik
============================================================================
> ClassX Development Italy Via Francesca, 368/I I-56030 S.M. a Monte (PI) <
> Tel.(+39)-0587-705153 Fax.(+39)-0587-705153 WEB: http://www.classx.it <
============================================================================

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".