JDK-5084492 : EXCEPTION_ACCESS_VIOLATION in sun.awt.windows.WToolkit.eventLoop() via repaint
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-08-09
  • Updated: 2004-08-10
  • Resolved: 2004-08-10
Related Reports
Duplicate :  
Relates :  
Name: jl125535			Date: 08/09/2004

java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b51)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b51, mixed mode, sharing)

Microsoft Windows XP [Version 5.1.2600]

Seems to happen on only some PC's

JRE crashes during it's event loop processing.

It's intermittant but seems to happen most easily when resizing the browser window, when the web page contains an applet.

  To encourage it sometime you'll need to repeatedly resize the window (by dragging the window resize margin), making it smaller and larger, eventually it will crash.

As reported in bug 5018872 (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5018872), prior JRE versions used to crash in the getDefaultColor() native method while in the event loop, but 1.5.0 beta 2 seems to crash elsewhere (see stack trace).

It's intermittent but often and seems to happen most easily when resizing the browser window, when the web page contains an applet.

  To encourage it sometime you'll need to repeatedly resize the window (by dragging the window resize margin), making it smaller and larger, eventually it will crash.

Browser closes down automatically. get stack trace on desktop.
See stack trace (error messages).

# An unexpected error has been detected by HotSpot Virtual Machine:
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d0c2b9f, pid=728, tid=1628
# Java VM: Java HotSpot(TM) Client VM (1.5.0-beta2-b51 mixed mode, sharing)
# Problematic frame:
# C  [awt.dll+0xc2b9f]

---------------  T H R E A D  ---------------

Current thread (0x05ca59d0):  JavaThread "AWT-Windows" daemon [_thread_in_native, id=1628]

siginfo: ExceptionCode=0xc0000005, reading address 0x05cf7000

EAX=0x00020007, EBX=0x05cd4628, ECX=0x7477612f, EDX=0x000c1102
ESP=0x0619f96c, EBP=0x0000229b, ESI=0x05cf6ff8, EDI=0xfff3ef00
EIP=0x6d0c2b9f, EFLAGS=0x00010283

  Top of Stack: (sp=0x0619f96c)
0x0619f96c:   0000000f 0ec73858 77e7d142 00000000
0x0619f97c:   d8040b71 0ec73858 05cd4678 05cd4648
0x0619f98c:   6d0bda84 00000000 6d0c11bd 00000000
0x0619f99c:   0619fa78 000304be 0619fa04 00000000
0x0619f9ac:   00000001 00000000 05ca5a8c 05ca5a8c
0x0619f9bc:   05ca59d0 0619f9f8 77d7390a 77d99b08
0x0619f9cc:   0619f9f8 6d0f2a68 00000000 6d0c04b8
0x0619f9dc:   0000000f 00000000 00000000 0619fa78

Instructions: (pc=0x6d0c2b9f)
0x6d0c2b8f:   33 ed 03 f3 3b c5 89 6c 24 18 89 6c 24 1c 76 44
0x6d0c2b9f:   8b 46 08 8b 3e 8b 56 04 2b c7 8b 7e 0c 2b fa 85

Stack: [0x060a0000,0x061a0000),  sp=0x0619f96c,  free space=1022k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [awt.dll+0xc2b9f]

[error occurred during error reporting, step 120, id 0xc0000005]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  sun.awt.windows.WToolkit.eventLoop()V+0
j  sun.awt.windows.WToolkit.run()V+69
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x0ee68e88 JavaThread "Thread-18" [_thread_blocked, id=4080]
  0x0ec96cd0 JavaThread "Thread-17" [_thread_blocked, id=152]
  0x0ec964f0 JavaThread "Thread-16" [_thread_blocked, id=1972]
  0x0eca87d0 JavaThread "Thread-13" [_thread_blocked, id=1924]
  0x0ec7f8a0 JavaThread "Thread-12" [_thread_blocked, id=3536]
  0x0ec47d10 JavaThread "Thread-5" [_thread_blocked, id=956]
  0x05d31ce0 JavaThread "AWT-EventQueue-2" [_thread_in_native, id=1776]
  0x0eb9a188 JavaThread "thread applet-ji/applet/jiApplet.class" [_thread_blocked, id=2988]
  0x05d322e8 JavaThread "TimerQueue" daemon [_thread_blocked, id=1688]
  0x05d18dc0 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=1300]
  0x05d18680 JavaThread "ConsoleWriterThread" daemon [_thread_blocked, id=1256]
  0x05cb2d30 JavaThread "AWT-EventQueue-1" [_thread_blocked, id=1648]
  0x05cc3488 JavaThread "traceMsgQueueThread" [_thread_blocked, id=1280]
=>0x05ca59d0 JavaThread "AWT-Windows" daemon [_thread_in_native, id=1628]
  0x05ca55a8 JavaThread "AWT-Shutdown" [_thread_blocked, id=1232]
  0x05ca4160 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2532]
  0x0320fe80 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1692]
  0x0320eaf0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=2396]
  0x0320dd58 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3992]
  0x0320a758 JavaThread "Finalizer" daemon [_thread_blocked, id=348]
  0x03209bd0 JavaThread "Reference Handler" daemon [_thread_blocked, id=1564]
  0x03163e50 JavaThread "main" [_thread_in_native, id=1076]

Other Threads:
  0x03207330 VMThread [id=2300]
  0x032111c8 WatcherThread [id=1956]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

 def new generation   total 2240K, used 651K [0x20a70000, 0x20cd0000, 0x211d0000)
  eden space 2048K,  31% used [0x20a70000, 0x20b0f8c8, 0x20c70000)
  from space 192K,   6% used [0x20ca0000, 0x20ca3590, 0x20cd0000)
  to   space 192K,   0% used [0x20c70000, 0x20c70000, 0x20ca0000)
 tenured generation   total 27972K, used 19773K [0x211d0000, 0x22d21000, 0x26a70000)
   the space 27972K,  70% used [0x211d0000, 0x2251f740, 0x2251f800, 0x22d21000)
 compacting perm gen  total 8192K, used 5353K [0x26a70000, 0x27270000, 0x2aa70000)
   the space 8192K,  65% used [0x26a70000, 0x26faa618, 0x26faa800, 0x27270000)
    ro space 8192K,  62% used [0x2aa70000, 0x2af70348, 0x2af70400, 0x2b270000)
    rw space 12288K,  46% used [0x2b270000, 0x2b7fba58, 0x2b7fbc00, 0x2be70000)

Dynamic libraries:
0x00400000 - 0x00419000 	C:\Program Files\Internet Explorer\IEXPLORE.EXE
0x77f50000 - 0x77ff7000 	C:\WINDOWS\System32\ntdll.dll
0x77e60000 - 0x77f46000 	C:\WINDOWS\system32\kernel32.dll
0x77c10000 - 0x77c63000 	C:\WINDOWS\system32\msvcrt.dll
0x77d40000 - 0x77dcc000 	C:\WINDOWS\system32\USER32.dll
0x7e090000 - 0x7e0d1000 	C:\WINDOWS\system32\GDI32.dll
0x77dd0000 - 0x77e5d000 	C:\WINDOWS\system32\ADVAPI32.dll
0x78000000 - 0x78087000 	C:\WINDOWS\system32\RPCRT4.dll
0x70a70000 - 0x70ad5000 	C:\WINDOWS\system32\SHLWAPI.dll
0x71700000 - 0x71849000 	C:\WINDOWS\System32\SHDOCVW.dll
0x76390000 - 0x763ac000 	C:\WINDOWS\System32\IMM32.DLL
0x629c0000 - 0x629c8000 	C:\WINDOWS\System32\LPK.DLL
0x72fa0000 - 0x72ffa000 	C:\WINDOWS\System32\USP10.dll
0x71950000 - 0x71a34000 	C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.10.0_x-ww_f7fb5805\comctl32.dll
0x773d0000 - 0x77bc2000 	C:\WINDOWS\system32\SHELL32.dll
0x77340000 - 0x773cb000 	C:\WINDOWS\system32\comctl32.dll
0x771b0000 - 0x772d4000 	C:\WINDOWS\system32\ole32.dll
0x74720000 - 0x74764000 	C:\WINDOWS\System32\MSCTF.dll
0x71500000 - 0x715fd000 	C:\WINDOWS\System32\BROWSEUI.dll
0x72430000 - 0x72442000 	C:\WINDOWS\System32\browselc.dll
0x75f40000 - 0x75f5f000 	C:\WINDOWS\system32\appHelp.dll
0x7c890000 - 0x7c911000 	C:\WINDOWS\System32\CLBCATQ.DLL
0x77120000 - 0x771ab000 	C:\WINDOWS\system32\OLEAUT32.dll
0x77050000 - 0x77115000 	C:\WINDOWS\System32\COMRes.dll
0x77c00000 - 0x77c07000 	C:\WINDOWS\system32\VERSION.dll
0x00930000 - 0x0095b000 	C:\WINDOWS\System32\msctfime.ime
0x76f90000 - 0x76fa0000 	C:\WINDOWS\System32\Secur32.dll
0x605d0000 - 0x605d8000 	C:\WINDOWS\System32\mslbui.dll
0x5c2c0000 - 0x5c2fc000 	C:\WINDOWS\ime\sptip.dll
0x74c80000 - 0x74cac000 	C:\WINDOWS\System32\OLEACC.dll
0x55900000 - 0x55961000 	C:\WINDOWS\System32\MSVCP60.dll
0x10000000 - 0x10011000 	C:\WINDOWS\IME\SPGRMR.DLL
0x76400000 - 0x76601000 	C:\WINDOWS\System32\msi.dll
0x00a90000 - 0x00aeb000 	C:\Program Files\Common Files\Microsoft Shared\INK\SKCHUI.DLL
0x746f0000 - 0x74716000 	C:\WINDOWS\System32\Msimtf.dll
0x5ad70000 - 0x5ada4000 	C:\WINDOWS\System32\UxTheme.dll
0x63000000 - 0x63096000 	C:\WINDOWS\system32\WININET.dll
0x762c0000 - 0x76348000 	C:\WINDOWS\system32\CRYPT32.dll
0x762a0000 - 0x762b0000 	C:\WINDOWS\system32\MSASN1.dll
0x76620000 - 0x7666e000 	C:\WINDOWS\System32\cscui.dll
0x00c80000 - 0x00c9b000 	C:\WINDOWS\System32\CSCDLL.dll
0x76670000 - 0x76757000 	C:\WINDOWS\System32\SETUPAPI.dll
0x012a0000 - 0x01360000 	c:\windows\googletoolbar2.dll
0x1a400000 - 0x1a47a000 	C:\WINDOWS\system32\urlmon.dll
0x71ad0000 - 0x71ad8000 	C:\WINDOWS\System32\WSOCK32.dll
0x71ab0000 - 0x71ac5000 	C:\WINDOWS\System32\WS2_32.dll
0x71aa0000 - 0x71aa8000 	C:\WINDOWS\System32\WS2HELP.dll
0x76c30000 - 0x76c5b000 	C:\WINDOWS\System32\WINTRUST.dll
0x76c90000 - 0x76cb2000 	C:\WINDOWS\system32\IMAGEHLP.dll
0x76b40000 - 0x76b6c000 	C:\WINDOWS\System32\WINMM.dll
0x0ffd0000 - 0x0fff3000 	C:\WINDOWS\System32\rsaenh.dll
0x76ee0000 - 0x76f17000 	C:\WINDOWS\System32\RASAPI32.DLL
0x76e90000 - 0x76ea1000 	C:\WINDOWS\System32\rasman.dll
0x71c20000 - 0x71c6e000 	C:\WINDOWS\System32\NETAPI32.dll
0x76eb0000 - 0x76edb000 	C:\WINDOWS\System32\TAPI32.dll
0x76e80000 - 0x76e8d000 	C:\WINDOWS\System32\rtutils.dll
0x722b0000 - 0x722b5000 	C:\WINDOWS\System32\sensapi.dll
0x75a70000 - 0x75b15000 	C:\WINDOWS\system32\USERENV.dll
0x01530000 - 0x01538000 	C:\Program Files\Adobe\Acrobat 5.0\Reader\ActiveX\AcroIEHelper.ocx
0x75e90000 - 0x75f37000 	C:\WINDOWS\System32\SXS.DLL
0x76170000 - 0x761f8000 	C:\WINDOWS\System32\shdoclc.dll
0x74770000 - 0x747ff000 	C:\WINDOWS\System32\mlang.dll
0x71a50000 - 0x71a8b000 	C:\WINDOWS\system32\mswsock.dll
0x71a90000 - 0x71a98000 	C:\WINDOWS\System32\wshtcpip.dll
0x63580000 - 0x63830000 	C:\WINDOWS\System32\mshtml.dll
0x51660000 - 0x5168c000 	C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG\PDM.DLL
0x51580000 - 0x515ab000 	C:\Program Files\Common Files\Microsoft Shared\VS7DEBUG\MSDBG2.DLL
0x746c0000 - 0x746e7000 	C:\WINDOWS\System32\MSLS31.DLL
0x325c0000 - 0x325d2000 	C:\Program Files\Microsoft Office\OFFICE11\msohev.dll
0x74cb0000 - 0x74d1f000 	C:\WINDOWS\System32\mshtmled.dll
0x72d20000 - 0x72d29000 	C:\WINDOWS\System32\wdmaud.drv
0x72d10000 - 0x72d18000 	C:\WINDOWS\System32\msacm32.drv
0x77be0000 - 0x77bf4000 	C:\WINDOWS\System32\MSACM32.dll
0x77bd0000 - 0x77bd7000 	C:\WINDOWS\System32\midimap.dll
0x6b700000 - 0x6b790000 	c:\windows\system32\jscript.dll
0x6d580000 - 0x6d591000 	C:\Program Files\Java\jre1.5.0\bin\npjpi150.dll
0x5edd0000 - 0x5edea000 	C:\WINDOWS\System32\OLEPRO32.DLL
0x6d3f0000 - 0x6d407000 	C:\Program Files\Java\jre1.5.0\bin\jpiexp32.dll
0x76f20000 - 0x76f45000 	C:\WINDOWS\System32\DNSAPI.dll
0x76fb0000 - 0x76fb7000 	C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000 	C:\WINDOWS\system32\WLDAP32.dll
0x6d440000 - 0x6d458000 	C:\Program Files\Java\jre1.5.0\bin\jpishare.dll
0x6d630000 - 0x6d7b4000 	C:\PROGRA~1\Java\JRE15~1.0\bin\client\jvm.dll
0x6d280000 - 0x6d288000 	C:\PROGRA~1\Java\JRE15~1.0\bin\hpi.dll
0x76bf0000 - 0x76bfb000 	C:\WINDOWS\System32\PSAPI.DLL
0x6d600000 - 0x6d60c000 	C:\PROGRA~1\Java\JRE15~1.0\bin\verify.dll
0x6d2f0000 - 0x6d30d000 	C:\PROGRA~1\Java\JRE15~1.0\bin\java.dll
0x6d620000 - 0x6d62f000 	C:\PROGRA~1\Java\JRE15~1.0\bin\zip.dll
0x6d000000 - 0x6d166000 	C:\Program Files\Java\jre1.5.0\bin\awt.dll
0x73000000 - 0x73023000 	C:\WINDOWS\System32\WINSPOOL.DRV
0x73760000 - 0x737a4000 	C:\WINDOWS\System32\ddraw.dll
0x73bc0000 - 0x73bc6000 	C:\WINDOWS\System32\DCIMAN32.dll
0x73940000 - 0x73a07000 	C:\WINDOWS\System32\D3DIM700.DLL
0x6d240000 - 0x6d27e000 	C:\Program Files\Java\jre1.5.0\bin\fontmanager.dll
0x6d1f0000 - 0x6d202000 	C:\Program Files\Java\jre1.5.0\bin\deploy.dll
0x6d5c0000 - 0x6d5dc000 	C:\Program Files\Java\jre1.5.0\bin\RegUtils.dll
0x6d3d0000 - 0x6d3e4000 	C:\Program Files\Java\jre1.5.0\bin\jpicom32.dll
0x6d4b0000 - 0x6d4c3000 	C:\Program Files\Java\jre1.5.0\bin\net.dll
0x6d4d0000 - 0x6d4d9000 	C:\Program Files\Java\jre1.5.0\bin\nio.dll

VM Arguments:
jvm_args: -Xbootclasspath/a:C:\PROGRA~1\Java\JRE15~1.0\lib\deploy.jar;C:\PROGRA~1\Java\JRE15~1.0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.5.0 -Djavaplugin.nodotversion=150 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE15~1.0 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol -Djavaplugin.vm.options=-Djava.class.path=C:\PROGRA~1\Java\JRE15~1.0\classes -Xbootclasspath/a:C:\PROGRA~1\Java\JRE15~1.0\lib\deploy.jar;C:\PROGRA~1\Java\JRE15~1.0\lib\plugin.jar -Xmx96m -Djavaplugin.maxHeapSize=96m -Xverify:remote -Djavaplugin.version=1.5.0 -Djavaplugin.nodotversion=150 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~1\Java\JRE15~1.0 -Djava.protocol.handler.pkgs=sun.plugin.net.protocol  vfprintf
java_command: <unknown>

Environment Variables:
PATH=C:\PROGRA~1\Java\JRE15~1.0\bin;C:\PROGRA~1\FileNET\IDM;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBEM;C:\Program Files\Common Files\Adaptec Shared\System;C:\Program Files\Internet Explorer;;.
PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 7, GenuineIntel

---------------  S Y S T E M  ---------------

OS: Windows XP Build 2600 Service Pack 1

CPU:total 2 family 15, cmov, cx8, fxsr, mmx, sse, sse2, ht

Memory: 4k page, physical 523804k(221740k free), swap 1280464k(1025272k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0-beta2-b51) for windows-x86, built on May 13 2004 02:09:25 by "java_re" with MS VC++ 6.0

This bug can be reproduced often.

---------- BEGIN SOURCE ----------
Try our demo at http://www.daeja.com/pub/start/demos.html.
Select ViewONE Standard Demo (top one).
Then click "Follow this link ..."
Then select "ViewONE Document Demo".

Run through resize test described above.

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

No workaround found. Was hoping 1.5.0 beta 2 solved the problem
(Incident Review ID: 279770) 

EVALUATION Looks like a duplicate of 5069955 (JRE/Browser crash during repaint - IE/XP on MP or HT systems.) which is already fixed. ###@###.### 2004-08-09 I could not reproduce this bug after applying the fix for 5069955. ###@###.### 2004-08-10