We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › PROBLEM WHITH JAVA 1.5
Page Index Toggle Pages: 1
PROBLEM WHITH JAVA 1.5 (Read 450 times)
PROBLEM WHITH JAVA 1.5
Jul 31st, 2006, 11:43pm
 
Hi,
I have developed an application with Java 1.4 but when I try to run it under 1.5 it finish suddendly generating an hs_err_pid file like this:

--------------------------------------------
--------------------------------------------
#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d236a0c, pid=160312, tid=156908
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C  [dcpr.dll+0x6a0c]
#

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

Current thread (0x0ad91590):  JavaThread "Thread-2" [_thread_in_native, id=156908]

siginfo: ExceptionCode=0xc0000005, reading address 0x00000007

Registers:
EAX=0x0acc384c, EBX=0x0ad91590, ECX=0x0acc383c, EDX=0x00000002
ESP=0x0b0df7d0, EBP=0x0b0df7e4, ESI=0x0ad23f04, EDI=0xffffffff
EIP=0x6d236a0c, EFLAGS=0x00010286

Top of Stack: (sp=0x0b0df7d0)
0x0b0df7d0:   0ad91650 0ad1d7d8 0ad91590 ffffffff
0x0b0df7e0:   6d24e948 0b0df810 6d23279e 0ad1d7d8
0x0b0df7f0:   0ad23f04 0000004c 036efef8 00bbbe40
0x0b0df800:   0ad91650 0b0df818 036efef8 0335e4d0
0x0b0df810:   0b0df8b8 00bb8210 036efaf0 00000020
0x0b0df820:   00000116 00000275 00000020 00000000
0x0b0df830:   036eff18 0335e4d0 02fcb3e8 00000009
0x0b0df840:   000002af 00000001 036eff18 00000020

Instructions: (pc=0x6d236a0c)
0x6d2369fc:   85 ff 89 7d f8 0f 84 16 01 00 00 eb 03 8b 7d f8
0x6d236a0c:   d9 47 08 d8 15 50 c0 23 6d 8b 47 04 d9 55 fc 89


Stack: [0x0b0a0000,0x0b0e0000),  sp=0x0b0df7d0,  free space=253k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [dcpr.dll+0x6a0c]
C  [dcpr.dll+0x279e]
J  sun.java2d.pipe.DuctusShapeRenderer.renderPath(Lsun/java2d/SunGraphics2D;Ljava/a
wt/Shape;Ljava/awt/BasicStroke;)V
J  sun.java2d.pipe.DuctusShapeRenderer.draw(Lsun/java2d/SunGraphics2D;Ljava/awt/Sha
pe;)V
J  sun.java2d.SunGraphics2D.draw(Ljava/awt/Shape;)V
J  processing.core.PGraphics2.line(FFFF)V
J  principal.TreevolutionApplet.dibujarNodos()V
J  principal.TreevolutionApplet.draw()V
J  processing.core.PApplet.handleDisplay()V
J  processing.core.PGraphics.requestDisplay(Lprocessing/core/PApplet;)V
v  ~RuntimeStub::alignment_frame_return Runtime1 stub
j  processing.core.PApplet.run()V+8
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub
V  [jvm.dll+0x845a9]
V  [jvm.dll+0xd9317]
V  [jvm.dll+0x8447a]
V  [jvm.dll+0x841d7]
V  [jvm.dll+0x9ed69]
V  [jvm.dll+0x109fe3]
V  [jvm.dll+0x109fb1]
C  [MSVCRT.dll+0x2b530]
C  [kernel32.dll+0x26063]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J  sun.dc.pr.PathFiller.nextTile()V
J  sun.java2d.pipe.DuctusShapeRenderer.renderPath(Lsun/java2d/SunGraphics2D;Ljava/a
wt/Shape;Ljava/awt/BasicStroke;)V
J  sun.java2d.pipe.DuctusShapeRenderer.draw(Lsun/java2d/SunGraphics2D;Ljava/awt/Sha
pe;)V
J  sun.java2d.SunGraphics2D.draw(Ljava/awt/Shape;)V
J  processing.core.PGraphics2.line(FFFF)V
J  principal.TreevolutionApplet.dibujarNodos()V
J  principal.TreevolutionApplet.draw()V
J  processing.core.PApplet.handleDisplay()V
J  processing.core.PGraphics.requestDisplay(Lprocessing/core/PApplet;)V
v  ~RuntimeStub::alignment_frame_return Runtime1 stub
j  processing.core.PApplet.run()V+8
j  java.lang.Thread.run()V+11
v  ~StubRoutines::call_stub

.
.
.



VM Arguments:
java_command: principal.TreevolutionApplet
Launcher Type: SUN_STANDARD

Environment Variables:
CLASSPATH=C:\Archivos de programa\Java\jre1.5.0_06\lib\ext\QTJava.zip;C:\apache-ant-1.6.5\lib
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Archivos de programa\MySQL\MySQL Server 4.1\bin;C:\Archivos de programa\Archivos comunes\GTK\2.0\bin;C:\Archivos de programa\QuickTime\QTSystem\
USERNAME=antonio
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 4, GenuineIntel



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

OS: Windows Server 2003 family Build 3790 Service Pack 1

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

Memory: 4k page, physical 1048012k(368832k free), swap 2532876k(1442292k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_06-b05) for windows-x86, built on Nov 10 2005 11:12:14 by "java_re" with MS VC++ 6.0


---------------------------------------------
--------------------------------------------


I've tried to recompile my clases whith Java 1.5 but it neither works well (for example, save() command creates the TIFF file but I can't open it because it's not well formed).
I think it could be repaired if I get a core.jar file compiled whith Java 1.5 version, or source files to recompile.

This problem is very bad for me because the number of computer whith the new Java 1.5 version is increasing each day, and I need my application to be portable.

Can somebody help me please!?

Thank you very much!!
Re: PROBLEM WHITH JAVA 1.5
Reply #1 - Aug 1st, 2006, 7:41pm
 
there's not a lot we can do about sun's bugs in java. it's why we have to recommend that people don't use 1.5:
http://processing.org/faq/platforms.html#java
Re: PROBLEM WHITH JAVA 1.5
Reply #2 - Aug 3rd, 2006, 12:20pm
 
thank you very much fry,
congratulations for Processing once again
I'll continue using 1.4 version
Page Index Toggle Pages: 1