File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Applets and the fly likes Applet crashing abruptly Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet crashing abruptly" Watch "Applet crashing abruptly" New topic
Author

Applet crashing abruptly

Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
I am using applet in my application. Now I am noticing that randomly applet is getting crashed. There is no specific point where it crashes, or specific operation after which it crashed.
After crash it generates an hs_err_pid..log file at the desktop. It mentions the following stuff :
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x80750C5
Function=[Unknown.]
Library=C:\PROGRA~1\Java\J2RE14~1.2_0\bin\client\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 sun.awt.windows.WToolkit.eventLoop(Native Method)
at sun.awt.windows.WToolkit.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Heap at VM Abort:
Heap
def new generation total 896K, used 627K [0x10020000, 0x10110000, 0x10500000)
eden space 832K, 72% used [0x10020000, 0x100b60d8, 0x100f0000)
from space 64K, 41% used [0x100f0000, 0x100f6b80, 0x10100000)
to space 64K, 0% used [0x10100000, 0x10100000, 0x10110000)
tenured generation total 9868K, used 6605K [0x10500000, 0x10ea3000, 0x14020000)
the space 9868K, 66% used [0x10500000, 0x10b734d8, 0x10b73600, 0x10ea3000)
compacting perm gen total 9984K, used 9918K [0x14020000, 0x149e0000, 0x18020000)
the space 9984K, 99% used [0x14020000, 0x149cfb38, 0x149cfc00, 0x149e0000)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Now one common thing I have noticed during all crashes is that perm gen is 99% or 98% at the time of crash (see the last line in above log).
Does that mean the perm gen is less or some other problem is there? And if memory at all is the reason, why am I getting EXCEPTION_ACCESS_VIOLATION and not some error of type OUT_OF_MEMORY_EXCEPTION ?

Thanks in anticipation
[ May 16, 2006: Message edited by: Varun Khanna ]

- Varun
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet crashing abruptly