Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (769)
Games in Android Showcase (230)
games submitted by our members
Games in WIP (856)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  JVM crash while running JOGL program  (Read 2227 times)
0 Members and 1 Guest are viewing this topic.
Offline vinodpatel

Senior Newbie





« Posted 2007-04-21 10:30:17 »

Dear All,

           I am working in JOGL 3D Application. Application runs successful. I run same code repeatedly to run animation. Code work successfully for some number of iteration. But after many iteration i get critical error. The error is not like exception but creates a file representing memeory addresses. Here i paste that generated file.

******************************************************************************************************************

#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0559ed43, pid=2504, tid=3672
#
# Java VM: Java HotSpot(TM) Client VM (1.5.0_11-b03 mixed mode, sharing)
# Problematic frame:
# C  0x0559ed43
#

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

Current thread (0x05042fd8):  JavaThread "AWT-EventQueue-1" [_thread_in_native, id=3672]

siginfo: ExceptionCode=0xc0000005, reading address 0x05278000

Registers:
EAX=0x05278000, EBX=0x00000000, ECX=0x055bb0b0, EDX=0x05279000
ESP=0x054cf2a8, EBP=0x00000001, ESI=0x0527a000, EDI=0x055c0020
EIP=0x0559ed43, EFLAGS=0x00010202

Top of Stack: (sp=0x054cf2a8)
0x054cf2a8:   05279000 0527a000 055c0020 00000001
0x054cf2b8:   054cf2fc 000d0488 00000000 00000000
0x054cf2c8:   000d0488 690dd40f 00000000 00000001
0x054cf2d8:   0563be68 000d0488 690dcfce 00000000
0x054cf2e8:   00000001 000000d0 000d0488 000000c0
0x054cf2f8:   00000000 054cf348 690df29a 00000000
0x054cf308:   000000c0 0563be68 0000030c 0563be68
0x054cf318:   000d0488 000d0488 00000000 00000000

Instructions: (pc=0x0559ed43)
0x0559ed33:   79 30 8b 6c 24 1c 55 57 56 52 8b 05 ac b0 57 05
0x0559ed43:   8b 18 89 5f 70 8b 58 04 89 5f 74 c7 47 78 00 00


Stack: [0x05490000,0x054d0000),  sp=0x054cf2a8,  free space=252k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x0559ed43

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

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J  com.sun.opengl.impl.GLImpl.glDrawElements0(IIILjava/lang/Object;I)V
J  com.sun.opengl.impl.GLImpl.glDrawElements(IIILjava/nio/Buffer;)V
..............other stack trace
---------------  P R O C E S S  ---------------

Java Threads: ( => current thread )
  0x0534c100 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=1020]
  0x04f98048 JavaThread "Thread-4" [_thread_blocked, id=4068]
=>0x05042fd8 JavaThread "AWT-EventQueue-1" [_thread_in_native, id=3672]
  0x02e46710 JavaThread "TimerQueue" daemon [_thread_blocked, id=1152]
  0x003566e0 JavaThread "DestroyJavaVM" [_thread_blocked, id=3844]
  0x05020cd8 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2184]
  0x04f984f8 JavaThread "thread applet-com.qedsoft.player.impl.CRealStreamPlayer.class" [_thread_blocked, id=508]
  0x02c82180 JavaThread "AWT-Windows" daemon [_thread_in_native, id=2396]
  0x02c81d60 JavaThread "AWT-Shutdown" [_thread_blocked, id=2792]
  0x02c80cb8 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=2132]
  0x00a11bb0 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=3988]
  0x00a10790 JavaThread "CompilerThread0" daemon [_thread_blocked, id=3524]
  0x00a0fb08 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=3264]
  0x009e2b20 JavaThread "Finalizer" daemon [_thread_blocked, id=2968]
  0x0035fb30 JavaThread "Reference Handler" daemon [_thread_blocked, id=2608]

Other Threads:
  0x009e0cb0 VMThread [id=1612]
  0x00a12e08 WatcherThread [id=1628]

VM state:not at safepoint (normal execution)

VM Mutex/Monitor currently owned by a thread: None

Heap
 def new generation   total 576K, used 10K [0x22a70000, 0x22b10000, 0x22f50000)
  eden space 512K,   2% used [0x22a70000, 0x22a72b30, 0x22af0000)
  from space 64K,   0% used [0x22b00000, 0x22b00000, 0x22b10000)
  to   space 64K,   0% used [0x22af0000, 0x22af0000, 0x22b00000)
 tenured generation   total 5408K, used 3108K [0x22f50000, 0x23498000, 0x26a70000)
   the space 5408K,  57% used [0x22f50000, 0x23259118, 0x23259200, 0x23498000)
 compacting perm gen  total 8192K, used 3760K [0x26a70000, 0x27270000, 0x2aa70000)
   the space 8192K,  45% used [0x26a70000, 0x26e1c2b0, 0x26e1c400, 0x27270000)
    ro space 8192K,  63% used [0x2aa70000, 0x2af7f230, 0x2af7f400, 0x2b270000)
    rw space 12288K,  46% used [0x2b270000, 0x2b811670, 0x2b811800, 0x2be70000)

Dynamic libraries:
0x00400000 - 0x0040d000    C:\Program Files\Java\jre1.5.0_11\bin\javaw.exe
0x7c900000 - 0x7c9b0000    C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000    C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000    C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000    C:\WINDOWS\system32\RPCRT4.dll
0x7e410000 - 0x7e4a0000    C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f57000    C:\WINDOWS\system32\GDI32.dll
0x77c10000 - 0x77c68000    C:\WINDOWS\system32\MSVCRT.dll
0x76390000 - 0x763ad000    C:\WINDOWS\system32\IMM32.DLL
0x6d640000 - 0x6d7dd000    C:\Program Files\Java\jre1.5.0_11\bin\client\jvm.dll
0x76b40000 - 0x76b6d000    C:\WINDOWS\system32\WINMM.dll
0x6d290000 - 0x6d298000    C:\Program Files\Java\jre1.5.0_11\bin\hpi.dll
0x76bf0000 - 0x76bfb000    C:\WINDOWS\system32\PSAPI.DLL
0x6d610000 - 0x6d61c000    C:\Program Files\Java\jre1.5.0_11\bin\verify.dll
0x6d310000 - 0x6d32d000    C:\Program Files\Java\jre1.5.0_11\bin\java.dll
0x6d630000 - 0x6d63f000    C:\Program Files\Java\jre1.5.0_11\bin\zip.dll
0x6d000000 - 0x6d16a000    C:\Program Files\Java\jre1.5.0_11\bin\awt.dll
0x73000000 - 0x73026000    C:\WINDOWS\system32\WINSPOOL.DRV
0x774e0000 - 0x7761d000    C:\WINDOWS\system32\ole32.dll
0x73760000 - 0x737a9000    C:\WINDOWS\system32\ddraw.dll
0x73bc0000 - 0x73bc6000    C:\WINDOWS\system32\DCIMAN32.dll
0x6d240000 - 0x6d290000    C:\Program Files\Java\jre1.5.0_11\bin\fontmanager.dll
0x74720000 - 0x7476b000    C:\WINDOWS\system32\MSCTF.dll
0x755c0000 - 0x755ee000    C:\WINDOWS\system32\msctfime.ime
0x6d4d0000 - 0x6d4e3000    C:\Program Files\Java\jre1.5.0_11\bin\net.dll
0x71ab0000 - 0x71ac7000    C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000    C:\WINDOWS\system32\WS2HELP.dll
0x6d4f0000 - 0x6d4f9000    C:\Program Files\Java\jre1.5.0_11\bin\nio.dll
0x7c9c0000 - 0x7d1d5000    C:\WINDOWS\system32\shell32.dll
0x77f60000 - 0x77fd6000    C:\WINDOWS\system32\SHLWAPI.dll
0x773d0000 - 0x774d3000    C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll
0x5d090000 - 0x5d12a000    C:\WINDOWS\system32\comctl32.dll
0x10000000 - 0x1004d000    C:\Program Files\Java\jre1.5.0_11\bin\jogl.dll
0x5ed00000 - 0x5edcc000    C:\WINDOWS\system32\OPENGL32.dll
0x68b20000 - 0x68b40000    C:\WINDOWS\system32\GLU32.dll
0x6d370000 - 0x6d376000    C:\Program Files\Java\jre1.5.0_11\bin\jawt.dll
0x05380000 - 0x05385000    C:\Program Files\Java\jre1.5.0_11\bin\jogl_awt.dll
0x69000000 - 0x692e9000    C:\WINDOWS\system32\vticd.dll
0x71a50000 - 0x71a8f000    C:\WINDOWS\System32\mswsock.dll
0x76f20000 - 0x76f47000    C:\WINDOWS\system32\DNSAPI.dll
0x76fb0000 - 0x76fb8000    C:\WINDOWS\System32\winrnr.dll
0x76f60000 - 0x76f8c000    C:\WINDOWS\system32\WLDAP32.dll
0x76fc0000 - 0x76fc6000    C:\WINDOWS\system32\rasadhlp.dll
0x662b0000 - 0x66308000    C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000    C:\WINDOWS\System32\wshtcpip.dll
0x6d190000 - 0x6d1bf000    C:\Program Files\Java\jre1.5.0_11\bin\cmm.dll
0x6d3d0000 - 0x6d3ef000    C:\Program Files\Java\jre1.5.0_11\bin\jpeg.dll
0x4b080000 - 0x4b08d000    C:\PROGRA~1\1-CLIC~1\agthook.dll
0x4b280000 - 0x4b302000    C:\PROGRA~1\1-CLIC~1\agtctrl.dll
0x4ba80000 - 0x4ba87000    C:\PROGRA~1\1-CLIC~1\agtthook.dll
0x4b480000 - 0x4b584000    C:\PROGRA~1\1-CLIC~1\agtpchnt.dll
0x4b680000 - 0x4b687000    C:\PROGRA~1\1-CLIC~1\agtcmpnt.dll
0x4b880000 - 0x4b888000    C:\PROGRA~1\1-CLIC~1\agtproc.dll

VM Arguments:
jvm_args: -Djava.security.policy=java.policy.applet
java_command: sun.applet.AppletViewer com.qedsoft.player.impl.CRealStreamPlayer1177150881486.html
Launcher Type: SUN_STANDARD

Environment Variables:
JAVA_HOME=C:\Program Files\Java\jdk1.5.0_11
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files\backburner 2\;C:\Program Files\Autodesk\Backburner\;C:\Program Files\jEdit;C:\PROGRA~1\ULTRAE~1;C:\Program Files\Java\jdk1.5.0_11\bin;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;C:\apache-ant-1.6.1\bin
USERNAME=vinod
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 15 Model 4 Stepping 1, GenuineIntel



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

OS: Windows XP Build 2600 Service Pack 2

CPU:total 1 (cores per cpu 1, threads per core 1) family 15 model 4 stepping 1, cmov, cx8, fxsr, mmx, sse, sse2, sse3

Memory: 4k page, physical 507184k(101684k free), swap 2471952k(1958240k free)

vm_info: Java HotSpot(TM) Client VM (1.5.0_11-b03) for windows-x86, built on Dec 15 2006 01:16:12 by "java_re" with MS VC++ 6.0





**************************************************************************************************************

I don't understand actual problem.
If any one know the problem and solution please suggest me the way.
Small help will be appreciated for me.

Thanks In Advance
Patel Vinod
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #1 - Posted 2007-04-21 18:46:28 »

It's probably a bug in your program where you specified an index that went outside the vertex array, normal array, texture coordinate array, etc. Try simplifying your program to narrow down the problem.
Offline mabraham

Junior Devvie





« Reply #2 - Posted 2007-04-21 20:39:07 »

Do you rewind the buffer before passing it into glDrawElements?
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline vinodpatel

Senior Newbie





« Reply #3 - Posted 2007-04-23 03:35:47 »

Yes, i am rewinding the buffer before passing it to the method.
Offline lhkbob

JGO Knight


Medals: 32



« Reply #4 - Posted 2007-04-23 23:36:59 »

Also, make sure that you don't have anything enabled in your GL context that would try to access something that you haven't set yet by the time you draw.  For example, gl.glEnableClientState(GL.GL_VERTEX_ARRAY), or similar. 

Offline vinodpatel

Senior Newbie





« Reply #5 - Posted 2007-04-26 10:46:28 »

But program run for some times then it generates errors so i think that it should not be a problem.
Pages: [1]
  ignore  |  Print  
 
 

 
EgonOlsen (1669 views)
2018-06-10 19:43:48

EgonOlsen (1706 views)
2018-06-10 19:43:44

EgonOlsen (1158 views)
2018-06-10 19:43:20

DesertCoockie (1585 views)
2018-05-13 18:23:11

nelsongames (1185 views)
2018-04-24 18:15:36

nelsongames (1709 views)
2018-04-24 18:14:32

ivj94 (2533 views)
2018-03-24 14:47:39

ivj94 (1758 views)
2018-03-24 14:46:31

ivj94 (2835 views)
2018-03-24 14:43:53

Solater (971 views)
2018-03-17 05:04:08
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!