Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Catastrophic crash using new Print()
Catastrophic crash using new Print() [message #668018] Tue, 03 May 2011 12:15 Go to next message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
Registered: September 2009
Senior Member
This is a multi-part message in MIME format.
--------------050806020802000301070905
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: 7bit

I experience a catastrophic crash at startup of a relatively simple SWT program.

The error is:

#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x18f9de5a, pid=4896, tid=1268
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode windows-x86 )
# Problematic frame:
# C
#
# An error report file with more information is saved as:
# C:\Users\Mauro\Documents\WriterWS\pdfprint\hs_err_pid4896.lo g
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

I attach the above file in hope it's useful.

When I will have some free time I will try to reduce my program to a minimal snippet exposing the bug.
The error is absolutely repeatable.

Any hint?

TiA
Mauro

--------------050806020802000301070905
Content-Type: text/plain;
name="hs_err_pid4896.log"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename="hs_err_pid4896.log"

#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x18f9de5a, pid=4896, tid=1268
#
# JRE version: 6.0_24-b07
# Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode windows-x86 )
# Problematic frame:
# C
#
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

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

Current thread (0x026d9800): JavaThread "main"

siginfo: ExceptionCode=0xc0000005, reading address 0x00000000

Registers:
EAX=0x000000dc, EBX=0x026d9918, ECX=0x00000037, EDX=0x00000000
ESP=0x0057f9e0, EBP=0x0057f9e8, ESI=0x00000000, EDI=0x0057fa08
EIP=0x18f9de5a, EFLAGS=0x00010212

Register to memory mapping:

EAX=0x000000dc
0x000000dc is pointing to unknown location

EBX=0x026d9918
0x026d9918 is pointing to unknown location

ECX=0x00000037
0x00000037 is pointing to unknown location

EDX=0x00000000
0x00000000 is pointing to unknown location

ESP=0x0057f9e0
0x0057f9e0 is pointing into the stack for thread: 0x026d9800
"main" prio=6 tid=0x026d9800 nid=0x4f4 runnable
java.lang.Thread.State: RUNNABLE

EBP=0x0057f9e8
0x0057f9e8 is pointing into the stack for thread: 0x026d9800
"main" prio=6 tid=0x026d9800 nid=0x4f4 runnable
java.lang.Thread.State: RUNNABLE

ESI=0x00000000
0x00000000 is pointing to unknown location

EDI=0x0057fa08
0x0057fa08 is pointing into the stack for thread: 0x026d9800
"main" prio=6 tid=0x026d9800 nid=0x4f4 runnable
java.lang.Thread.State: RUNNABLE


Top of Stack: (sp=0x0057f9e0)
0x0057f9e0: 0057fb3c 0057fa08 0057fae8 18f7a8d7
0x0057f9f0: 0057fa08 00000000 000000dc 026d9800
0x0057fa00: 14aec4b8 14aec4b8 00000063 00000100
0x0057fa10: 0057fa00 0000000b 00000050 77a0f9c9
0x0057fa20: 767a014d 00000078 00000000 0057fa44
0x0057fa30: 6d9d46f2 00000078 6d7f2a4e 00000000
0x0057fa40: 026d6818 0057fa58 6d7f2c68 19121860
0x0057fa50: 026d9cc0 00000000 0057fa8c 6d7f2ce8

Instructions: (pc=0x18f9de5a)
0x18f9de4a: 00 00 00 75 15 c1 e9 02 83 e2 03 83 f9 08 72 2a
0x18f9de5a: f3 a5 ff 24 95 74 df f9 18 90 8b c7 ba 03 00 00


Stack: , sp=0x0057f9e0, free space=318k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C
C
j org.eclipse.swt.internal.win32.OS.MoveMemory(Lorg/eclipse/sw t/internal/win32/DEVMODEW;II)V+0
j org.eclipse.swt.internal.win32.OS.MoveMemory(Lorg/eclipse/sw t/internal/win32/DEVMODE;II)V+12
j org.eclipse.swt.printing.Printer.create(Lorg/eclipse/swt/gra phics/DeviceData;)V+239
j org.eclipse.swt.graphics.Device.<init>(Lorg/eclipse/swt/graphics/DeviceData;)V+125
j org.eclipse.swt.printing.Printer.<init>(Lorg/eclipse/swt/printing/PrinterData;)V+5
j org.eclipse.swt.printing.Printer.<init>()V+2
j it.condarelli.pdfprint.PDFPrint.getPrinters()V+100
j it.condarelli.pdfprint.PDFPrint.open([Ljava/lang/String;)V+9
j it.condarelli.pdfprint.PDFPrint.main([Ljava/lang/String;)V+1 0
v ~StubRoutines::call_stub
V
V
V
V
V
C
C
C
C
C

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j org.eclipse.swt.internal.win32.OS.MoveMemory(Lorg/eclipse/sw t/internal/win32/DEVMODEW;II)V+0
j org.eclipse.swt.internal.win32.OS.MoveMemory(Lorg/eclipse/sw t/internal/win32/DEVMODE;II)V+12
j org.eclipse.swt.printing.Printer.create(Lorg/eclipse/swt/gra phics/DeviceData;)V+239
j org.eclipse.swt.graphics.Device.<init>(Lorg/eclipse/swt/graphics/DeviceData;)V+125
j org.eclipse.swt.printing.Printer.<init>(Lorg/eclipse/swt/printing/PrinterData;)V+5
j org.eclipse.swt.printing.Printer.<init>()V+2
j it.condarelli.pdfprint.PDFPrint.getPrinters()V+100
j it.condarelli.pdfprint.PDFPrint.open(
0x1918f400 JavaThread "AWT-Windows" daemon
0x19153000 JavaThread "AWT-Shutdown"
0x19152c00 JavaThread "Java2D Disposer" daemon
0x01d9f800 JavaThread "Low Memory Detector" daemon
0x01d91400 JavaThread "CompilerThread0" daemon
0x01d7e400 JavaThread "JDWP Command Reader" daemon
0x01d7d000 JavaThread "JDWP Event Helper Thread" daemon
0x01d78800 JavaThread "JDWP Transport Listener: dt_socket" daemon
0x01d6cc00 JavaThread "Attach Listener" daemon
0x01d69c00 JavaThread "Signal Dispatcher" daemon
0x01d3cc00 JavaThread "Finalizer" daemon
0x01d3b400 JavaThread "Reference Handler" daemon
=>0x026d9800 JavaThread "main"

Other Threads:
0x01d37400 VMThread
0x01da0800 WatcherThread [id=4448]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
def new generation total 4928K, used 3929K [0x046e0000, 0x04c30000, 0x09c30000)
eden space 4416K, 86% used [0x046e0000, 0x04a996e0, 0x04b30000)
from space 512K, 22% used [0x04b30000, 0x04b4d090, 0x04bb0000)
to space 512K, 0% used [0x04bb0000, 0x04bb0000, 0x04c30000)
tenured generation total 10944K, used 781K [0x09c30000, 0x0a6e0000, 0x146e0000)
the space 10944K, 7% used [0x09c30000, 0x09cf35c8, 0x09cf3600, 0x0a6e0000)
compacting perm gen total 12288K, used 7790K [0x146e0000, 0x152e0000, 0x186e0000)
the space 12288K, 63% used [0x146e0000, 0x14e7b938, 0x14e7ba00, 0x152e0000)
No shared spaces configured.

Dynamic libraries:
0x00400000 - 0x00424000 C:\Program Files (x86)\Java\jre6\bin\javaw.exe
0x779f0000 - 0x77b70000 C:\Windows\SysWOW64\ntdll.dll
0x767e0000 - 0x768f0000 C:\Windows\syswow64\kernel32.dll
0x76790000 - 0x767d6000 C:\Windows\syswow64\KERNELBASE.dll
0x76f40000 - 0x76fe0000 C:\Windows\syswow64\ADVAPI32.dll
0x755b0000 - 0x7565c000 C:\Windows\syswow64\msvcrt.dll
0x75930000 - 0x75949000 C:\Windows\SysWOW64\sechost.dll
0x75140000 - 0x75230000 C:\Windows\syswow64\RPCRT4.dll
0x750e0000 - 0x75140000 C:\Windows\syswow64\SspiCli.dll
0x750d0000 - 0x750dc000 C:\Windows\syswow64\CRYPTBASE.dll
0x756e0000 - 0x757e0000 C:\Windows\syswow64\USER32.dll
0x770a0000 - 0x77130000 C:\Windows\syswow64\GDI32.dll
0x76c50000 - 0x76c5a000 C:\Windows\syswow64\LPK.dll
0x76d60000 - 0x76dfd000 C:\Windows\syswow64\USP10.dll
0x766d0000 - 0x76730000 C:\Windows\system32\IMM32.DLL
0x75240000 - 0x7530c000 C:\Windows\syswow64\MSCTF.dll
0x7c340000 - 0x7c396000 C:\Program Files (x86)\Java\jre6\bin\msvcr71.dll
0x6d7f0000 - 0x6da96000 C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
0x71b90000 - 0x71bc2000 C:\Windows\system32\WINMM.dll
0x72930000 - 0x7297c000 C:\Windows\system32\apphelp.dll
0x6d7a0000 - 0x6d7ac000 C:\Program Files (x86)\Java\jre6\bin\verify.dll
0x6d320000 - 0x6d33f000 C:\Program Files (x86)\Java\jre6\bin\java.dll
0x6d280000 - 0x6d288000 C:\Program Files (x86)\Java\jre6\bin\hpi.dll
0x779c0000 - 0x779c5000 C:\Windows\syswow64\PSAPI.DLL
0x6d370000 - 0x6d399000 C:\Program Files (x86)\Java\jre6\bin\jdwp.dll
0x6d690000 - 0x6d696000 C:\Program Files (x86)\Java\jre6\bin\npt.dll
0x6d7e0000 - 0x6d7ef000 C:\Program Files (x86)\Java\jre6\bin\zip.dll
0x6d200000 - 0x6d207000 C:\Program Files (x86)\Java\jre6\bin\dt_socket.dll
0x76d20000 - 0x76d55000 C:\Windows\syswow64\WS2_32.dll
0x75230000 - 0x75236000 C:\Windows\syswow64\NSI.dll
0x74a90000 - 0x74aa0000 C:\Windows\system32\NLAapi.dll
0x74c60000 - 0x74c70000 C:\Windows\system32\napinsp.dll
0x746f0000 - 0x74702000 C:\Windows\system32\pnrpnsp.dll
0x747d0000 - 0x747dd000 C:\Windows\system32\wshbth.dll
0x746a0000 - 0x746c7000 C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL
0x76730000 - 0x76787000 C:\Windows\syswow64\SHLWAPI.dll
0x734a0000 - 0x734dc000 C:\Windows\System32\mswsock.dll
0x73f10000 - 0x73f54000 C:\Windows\system32\DNSAPI.dll
0x74690000 - 0x74698000 C:\Windows\System32\winrnr.dll
0x732e0000 - 0x732fc000 C:\Windows\system32\IPHLPAPI.DLL
0x732d0000 - 0x732d7000 C:\Windows\system32\WINNSI.DLL
0x73d90000 - 0x73dc8000 C:\Windows\System32\fwpuclnt.dll
0x74680000 - 0x74686000 C:\Windows\system32\rasadhlp.dll
0x74c70000 - 0x74c75000 C:\Windows\System32\wshtcpip.dll
0x18f70000 - 0x18fd3000 C:\Users\Mauro\AppData\Local\Temp\swtlib-32\swt-win32-3659.d ll
0x75420000 - 0x7557c000 C:\Windows\syswow64\ole32.dll
0x76c60000 - 0x76cef000 C:\Windows\syswow64\OLEAUT32.dll
0x75660000 - 0x756db000 C:\Windows\syswow64\comdlg32.dll
0x72b60000 - 0x72cfe000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595 b64144ccf1df_6.0.7601.17514_none_41e6975e2bd6f2b2\COMCTL32.d ll
0x75a80000 - 0x766ca000 C:\Windows\syswow64\SHELL32.dll
0x75960000 - 0x75a7a000 C:\Windows\syswow64\WININET.dll
0x75920000 - 0x75923000 C:\Windows\syswow64\Normaliz.dll
0x76a90000 - 0x76c46000 C:\Windows\syswow64\iertutil.dll
0x75310000 - 0x75420000 C:\Windows\syswow64\urlmon.dll
0x72d30000 - 0x72db0000 C:\Windows\system32\uxtheme.dll
0x74e40000 - 0x74e98000 C:\Program Files (x86)\Common Files\microsoft shared\ink\tiptsf.dll
0x74cf0000 - 0x74cf9000 C:\Windows\system32\version.dll
0x72d10000 - 0x72d23000 C:\Windows\system32\dwmapi.dll
0x6d000000 - 0x6d14a000 C:\Program Files (x86)\Java\jre6\bin\awt.dll
0x735b0000 - 0x73601000 C:\Windows\system32\WINSPOOL.DRV
0x6d230000 - 0x6d27f000 C:\Program Files (x86)\Java\jre6\bin\fontmanager.dll

VM Arguments:
jvm_args: -agentlib:jdwp=transport=dt_socket,suspend=y,address=localho st:49358 -Dfile.encoding=Cp1252
java_command: it.condarelli.pdfprint.PDFPrint
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=C:\Program Files (x86)\Novosoft\C2J\Bin\c2jruntime.zip;
PATH=C:/Program Files (x86)/Java/jre6/bin/client;C:/Program Files (x86)/Java/jre6/bin;C:/Program Files (x86)/Java/jre6/lib/i386;C:\opt\Ruby192\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\msys\1.0\bin;C:\mingw\bin;C:\Program Files (x86)\MiKTeX 2.8\miktex\bin;C:\Windows\system32;C:\Windows;C:\Windows\Sys tem32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Pr ogram Files\Java\jre6\bin;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Graphviz2.26.3\bin;C:\Program Files (x86)\Ruby192\bin;C:\Program Files (x86)\Novosoft\C2J\Bin;;C:\Program Files (x86)\OpenVPN\bin;C:\opt\eclipse;
USERNAME=Mauro
OS=Windows_NT
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 23 Stepping 10, GenuineIntel



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

OS: Windows 7 Build 7601 Service Pack 1

CPU:total 2 (2 cores per cpu, 1 threads per core) family 6 model 23 stepping 10, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3

Memory: 4k page, physical 4094884k(2306356k free), swap 8187924k(6328336k free)

vm_info: Java HotSpot(TM) Client VM (19.1-b02) for windows-x86 JRE (1.6.0_24-b07), built on Feb 2 2011 17:44:41 by "java_re" with MS VC++ 7.1 (VS2003)

time: Tue May 03 14:00:29 2011
elapsed time: 49 seconds


--------------050806020802000301070905--
Re: Catastrophic crash using new Print() [message #668068 is a reply to message #668018] Tue, 03 May 2011 14:53 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
I've logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=344591 .

Grant


"Mauro Condarelli" <mc5686@mclink.it> wrote in message
news:ipor58$ncd$1@news.eclipse.org...
>I experience a catastrophic crash at startup of a relatively simple SWT
>program.
>
> The error is:
>
> #
> # A fatal error has been detected by the Java Runtime Environment:
> #
> # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x18f9de5a, pid=4896,
> tid=1268
> #
> # JRE version: 6.0_24-b07
> # Java VM: Java HotSpot(TM) Client VM (19.1-b02 mixed mode windows-x86 )
> # Problematic frame:
> # C [swt-win32-3659.dll+0x2de5a]
> #
> # An error report file with more information is saved as:
> # C:\Users\Mauro\Documents\WriterWS\pdfprint\hs_err_pid4896.lo g
> #
> # If you would like to submit a bug report, please visit:
> # http://java.sun.com/webapps/bugreport/crash.jsp
> # The crash happened outside the Java Virtual Machine in native code.
> # See problematic frame for where to report the bug.
> #
>
> I attach the above file in hope it's useful.
>
> When I will have some free time I will try to reduce my program to a
> minimal snippet exposing the bug.
> The error is absolutely repeatable.
>
> Any hint?
>
> TiA
> Mauro
>
Re: Catastrophic crash using new Print() [message #668078 is a reply to message #668018] Tue, 03 May 2011 16:11 Go to previous message
Carolyn MacLeod is currently offline Carolyn MacLeodFriend
Messages: 149
Registered: July 2009
Senior Member
Hi Mauro.

A couple of questions for you:
1) Do you have any printers installed?
2) Do you have a default printer specified?
3) How did you create your Printer? Did you use:
a) new Printer()
or b) new Printer(printerData)
4) If you said 3b, then how did you create your PrinterData?

Thanks!
Carolyn
Previous Topic:PDF printing
Next Topic:OleClientSite with Excel to edit CSV files
Goto Forum:
  


Current Time: Sat Feb 22 10:35:39 GMT 2020

Powered by FUDForum. Page generated in 0.02675 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top