![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Senior Member
Join Date: Apr 2006
Posts: 407
![]() |
I created a new project in Eclipse through the antfile (build.xml). Started playing with the the BasicDemo. The compass appears for about half a second, then disappears, and after a while (30 seconds - 1 minute) the program crashes with an Exception Access Violation.
Any ideas on what's gone wrong would be appreciated. Cheers.... Code:
# # An unexpected error has been detected by HotSpot Virtual Machine: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6968af0b, pid=3260, tid=3060 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode) # Problematic frame: # C [nvoglnt.dll+0x18af0b] # --------------- T H R E A D --------------- Current thread (0x272e1bf8): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=3060] siginfo: ExceptionCode=0xc0000005, reading address 0x00009070 Registers: EAX=0x00000000, EBX=0x00000008, ECX=0x27dbd200, EDX=0x27c4d280 ESP=0x27a3f6c4, EBP=0x27c4d188, ESI=0x27c4c940, EDI=0x00000000 EIP=0x6968af0b, EFLAGS=0x00010202 Top of Stack: (sp=0x27a3f6c4) 0x27a3f6c4: 27c4c940 27a3f714 697300a3 27c4c940 0x27a3f6d4: 69726382 27c4c940 00088730 272e1bf8 0x27a3f6e4: 00000000 5ed19926 00000001 00000000 0x27a3f6f4: 00000000 272e1bf8 5ed19bf9 00000000 0x27a3f704: 27a3f73c 0645f968 064a72e8 27a3f73c 0x27a3f714: 27a3f728 27921832 00000000 00000000 0x27a3f724: 06579500 27a3f750 00bebc94 272e1cb8 0x27a3f734: 27a3f74c 00000000 00000000 00000000 Instructions: (pc=0x6968af0b) 0x6968aefb: 70 90 00 00 f6 42 14 01 74 12 8b 86 c8 00 00 00 0x6968af0b: 8b 90 70 90 00 00 f6 42 16 02 74 0e f6 c1 01 75 Stack: [0x27a00000,0x27a40000), sp=0x27a3f6c4, free space=253k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C [nvoglnt.dll+0x18af0b] Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) J com.sun.opengl.impl.windows.WGL.wglMakeCurrent(JJ)Z J com.sun.opengl.impl.windows.WindowsGLContext.releaseImpl()V J com.sun.opengl.impl.windows.WindowsOnscreenGLContext.releaseImpl()V J com.sun.opengl.impl.GLContextImpl.release()V j com.sun.opengl.impl.GLDrawableHelper.invokeGL(Ljavax/media/opengl/GLDrawable;Ljavax/media/opengl/GLContext;Ljava/lang/Runnable;Ljava/lang/Runnable;)V+462 j javax.media.opengl.GLCanvas.maybeDoSingleThreadedWorkaround(Ljava/lang/Runnable;Ljava/lang/Runnable;)V+36 j javax.media.opengl.GLCanvas.display()V+9 j gov.nasa.worldwind.WorldWindowGLAutoDrawable.displayNow()V+4 j gov.nasa.worldwind.awt.WorldWindowGLCanvas.redrawNow()V+4 j gov.nasa.worldwind.awt.AWTInputHandler.mouseDragged(Ljava/awt/event/MouseEvent;)V+541 j java.awt.Component.processMouseMotionEvent(Ljava/awt/event/MouseEvent;)V+52 j java.awt.Component.processEvent(Ljava/awt/AWTEvent;)V+92 j java.awt.Component.dispatchEventImpl(Ljava/awt/AWTEvent;)V+477 J java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V J java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z v ~RuntimeStub::alignment_frame_return Runtime1 stub j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26 j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4 j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3 j java.awt.EventDispatchThread.run()V+9 v ~StubRoutines::call_stub --------------- P R O C E S S --------------- Java Threads: ( => current thread ) 0x274a2e98 JavaThread "Keep-Alive-Timer" daemon [_thread_blocked, id=676] 0x26f37228 JavaThread "Idle World Wind Task" daemon [_thread_blocked, id=2016] 0x274c6070 JavaThread "Idle World Wind Task" daemon [_thread_blocked, id=3020] 0x272ff438 JavaThread "Idle World Wind Task" daemon [_thread_blocked, id=2532] 0x27320bf0 JavaThread "Idle World Wind Task" daemon [_thread_blocked, id=332] 0x274c55f0 JavaThread "Running World Wind Retriever: http://worldwind25.arc.nasa.gov/lstile/lstile.aspx?T=esat_worlddds&L=2&X=319&Y=252" daemon [_thread_in_native, id=252] 0x2b2e4e70 JavaThread "Running World Wind Retriever: http://worldwind25.arc.nasa.gov/lstile/lstile.aspx?T=esat_worlddds&L=2&X=322&Y=251" daemon [_thread_in_native, id=2748] 0x2752b978 JavaThread "Running World Wind Retriever: http://worldwind25.arc.nasa.gov/lstile/lstile.aspx?T=esat_worlddds&L=2&X=317&Y=250" daemon [_thread_in_native, id=2640] 0x2b2f0658 JavaThread "Running World Wind Retriever: http://worldwind25.arc.nasa.gov/lstile/lstile.aspx?T=esat_worlddds&L=2&X=320&Y=250" daemon [_thread_in_native, id=2724] 0x2731e8f8 JavaThread "Running World Wind Retriever: http://worldwind25.arc.nasa.gov/lstile/lstile.aspx?T=esat_worlddds&L=2&X=319&Y=251" daemon [_thread_in_native, id=2280] 0x00356888 JavaThread "DestroyJavaVM" [_thread_blocked, id=3692] =>0x272e1bf8 JavaThread "AWT-EventQueue-0" [_thread_in_native, id=3060] 0x272d94a0 JavaThread "TimerQueue" daemon [_thread_blocked, id=1892] 0x272e17f0 JavaThread "Timer-0" [_thread_blocked, id=2632] 0x2726ce38 JavaThread "AWT-Windows" daemon [_thread_in_native, id=3140] 0x2726c7b0 JavaThread "AWT-Shutdown" [_thread_blocked, id=552] 0x2700e5f8 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=3744] 0x00a3bf30 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=1596] 0x00a3a868 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1680] 0x00a397b0 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1228] 0x00a37e60 JavaThread "JDWP Command Reader" daemon [_thread_in_native, id=1424] 0x00a36bd0 JavaThread "JDWP Event Helper Thread" daemon [_thread_blocked, id=3412] 0x003570e8 JavaThread "JDWP Transport Listener: dt_socket" daemon [_thread_blocked, id=2740] 0x00a26a98 JavaThread "Finalizer" daemon [_thread_blocked, id=2832] 0x00a25eb0 JavaThread "Reference Handler" daemon [_thread_blocked, id=3700] Other Threads: 0x00a23488 VMThread [id=3356] 0x00a3d690 WatcherThread [id=3612] VM state:not at safepoint (normal execution) VM Mutex/Monitor currently owned by a thread: None Heap def new generation total 4544K, used 608K [0x02a70000, 0x02f50000, 0x051d0000) eden space 4096K, 14% used [0x02a70000, 0x02b032a0, 0x02e70000) from space 448K, 4% used [0x02ee0000, 0x02ee5060, 0x02f50000) to space 448K, 0% used [0x02e70000, 0x02e70000, 0x02ee0000) tenured generation total 59428K, used 57927K [0x051d0000, 0x08bd9000, 0x22a70000) the space 59428K, 97% used [0x051d0000, 0x08a61f10, 0x08a62000, 0x08bd9000) compacting perm gen total 11520K, used 11456K [0x22a70000, 0x235b0000, 0x26a70000) the space 11520K, 99% used [0x22a70000, 0x235a02b8, 0x235a0400, 0x235b0000) No shared spaces configured. Dynamic libraries: 0x00400000 - 0x0040c000 C:\Program Files\Java\jdk1.5.0_06\bin\javaw.exe 0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll 0x7c800000 - 0x7c8f5000 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 0x6d6e0000 - 0x6d874000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\client\jvm.dll 0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll 0x6d2f0000 - 0x6d2f8000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\hpi.dll 0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL 0x6d3f0000 - 0x6d425000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\jdwp.dll 0x6d6b0000 - 0x6d6bc000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\verify.dll 0x6d370000 - 0x6d38d000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\java.dll 0x6d6d0000 - 0x6d6df000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\zip.dll 0x6d290000 - 0x6d297000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\dt_socket.dll 0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll 0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.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 0x6d070000 - 0x6d1d7000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\awt.dll 0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV 0x774e0000 - 0x7761d000 C:\WINDOWS\system32\ole32.dll 0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll 0x6d2b0000 - 0x6d2ed000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\fontmanager.dll 0x27640000 - 0x277af000 C:\WINDOWS\system32\nview.dll 0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll 0x7c9c0000 - 0x7d1d5000 C:\WINDOWS\system32\SHELL32.dll 0x77120000 - 0x771ab000 C:\WINDOWS\system32\OLEAUT32.dll 0x5d090000 - 0x5d12a000 C:\WINDOWS\system32\COMCTL32.dll 0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll 0x773d0000 - 0x774d3000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2982_x-ww_ac3f9c03\comctl32.dll 0x77690000 - 0x776b1000 C:\WINDOWS\system32\NTMARTA.DLL 0x71bf0000 - 0x71c03000 C:\WINDOWS\system32\SAMLIB.dll 0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll 0x27900000 - 0x27916000 C:\Program Files\Logitech\SetPoint\lgscroll.dll 0x755c0000 - 0x755ee000 C:\WINDOWS\system32\msctfime.ime 0x27920000 - 0x27967000 C:\Program Files\Java\jdk1.5.0_06\bin\jogl.dll 0x5ed00000 - 0x5edcc000 C:\WINDOWS\system32\OPENGL32.dll 0x68b20000 - 0x68b40000 C:\WINDOWS\system32\GLU32.dll 0x73760000 - 0x737a9000 C:\WINDOWS\system32\DDRAW.dll 0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll 0x27a40000 - 0x27a4f000 C:\Program Files\Logitech\SetPoint\HookDll.dll 0x6d530000 - 0x6d543000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\net.dll 0x6d550000 - 0x6d559000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\nio.dll 0x27a60000 - 0x27a75000 C:\WINDOWS\system32\nvwddi.dll 0x6d3d0000 - 0x6d3d6000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\jawt.dll 0x27aa0000 - 0x27aa5000 C:\Program Files\Java\jdk1.5.0_06\bin\jogl_awt.dll 0x605d0000 - 0x605d9000 C:\WINDOWS\system32\mslbui.dll 0x69500000 - 0x69a3b000 C:\WINDOWS\system32\nvoglnt.dll 0x6d200000 - 0x6d22f000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\cmm.dll 0x6d430000 - 0x6d44f000 C:\Program Files\Java\jdk1.5.0_06\jre\bin\jpeg.dll VM Arguments: jvm_args: -Xmx512m -Dsun.java2d.noddraw=true -agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:1377 java_command: worldwinddemo.BasicDemo Launcher Type: SUN_STANDARD Environment Variables: JAVA_HOME=C:\Program Files\Java\jdk1.5.0_06 PATH="C:\Program Files\Microsoft DirectX SDK (April 2006)\Utilities\Bin\x86";C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Bitvise Tunnelier;C:\Program Files\Java\midp2.0fcs\bin;C:\Program Files\Apache Group\apache-ant-1.6.5\bin;C:\php;C:\msys\local\bin;C:\Program Files\FWTools1.0.5\bin;C:\Python25 USERNAME=**** OS=Windows_NT PROCESSOR_IDENTIFIER=x86 Family 15 Model 43 Stepping 1, AuthenticAMD --------------- S Y S T E M --------------- OS: Windows XP Build 2600 Service Pack 2 CPU:total 2 family 47, cmov, cx8, fxsr, mmx, sse, sse2, ht Memory: 4k page, physical 2096484k(965948k free), swap 4034564k(3103176k 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
__________________
Machine. Unexpectedly, I’d invented a time - Alan Moore |
|
|
|
|
|
#2 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
Is this your first try at compiling and running wwj ?
Does the distribution worldwind.jar works ? |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Apr 2006
Posts: 407
![]() |
Yeah, pretty much my first.
zzz. I was just typing that worldwind.jar works fine... and it crashed, same way, same error.
__________________
Machine. Unexpectedly, I’d invented a time - Alan Moore |
|
|
|
|
|
#4 |
|
Senior Member
Join Date: Apr 2006
Posts: 407
![]() |
The joy of new drivers. I though mine were up-to-date. Obviously not.
Anyway, crashing solved, now for the lack of the compass showing. worldwind.jar shows the compass, but it disappears from my build within a second... Hmmm. Days later: jdk 1.6, and the latest jogl, would help...
__________________
Machine. Unexpectedly, I’d invented a time - Alan Moore Last edited by Chade; 08-20-2007 at 05:54 AM. |
|
|
|
|
|
#5 |
|
Worldwind Developer
Join Date: Jan 2006
Location: Hobart, Australia
Posts: 754
![]() |
Some sort of culling going on vs placenames, Patrick have you seen this before ?
__________________
Coding This and That in World Wind and helping new people out, as long as they don't pester too much. Currently blogging at: http://whatnicklife.blogspot.com Working at: Aerometrex - http://aerometrex.com.au/blog/ Impact so far: ![]() |
|
|
|
|
|
#6 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
... not sure i understand what is going on here...
Personaly, i havent seen the compass disapear. All 2D overlays (compass, scalebar, worldmap) are processed as OrderedRenderables with a fixed small 'distance from eye' so that they paint on top. Maybe there is a glitch in there ? |
|
|
|
|
|
#7 |
|
Senior Member
Join Date: Apr 2006
Posts: 407
![]() |
Yeah, never mind it, I just needed to update to jdk 1.6, and the latest jogl library. >.<
__________________
Machine. Unexpectedly, I’d invented a time - Alan Moore |
|
|
|
|
|
#8 |
|
Member
Join Date: Sep 2007
Posts: 32
![]() |
I am reviving this old thread because I have a problem in the same vein
Code:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x4c915ae3, pid=3616, tid=3284 # # Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode windows-x86) # Problematic frame: # C 0x4c915ae3 ........................................ Current thread (0x494e3400): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=3284, stack(0x4abc0000,0x4ac10000)] ........................................ Stack: [0x4abc0000,0x4ac10000], sp=0x4ac0f358, free space=316k Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code) C 0x4c915ae3 J com.sun.opengl.impl.GLImpl.glDrawArrays(III)V J gov.nasa.worldwind.render.Polyline.render(Lgov/nasa/worldwind/render/DrawContext;)V v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter J gov.nasa.worldwind.AbstractSceneController.draw(Lgov/nasa/worldwind/render/DrawContext;)V v ~BufferBlob::Interpreter v ~BufferBlob::Interpreter I am getting this Exception Access Violation on the Eventqueue thread like Chade was. I am running the latest Java and jogl, so the same fix doesn't work for me. My process: I am working on a team using WW, we are loading traffic data from a database. This data refers to flight paths, flights in the air, and roadway with cars on them. I have a thread that runs a loop gathering all the information for display and passing it into a drawing class. This drawing class talks to the required classes for worldwind to display polylines and paths and roadways. here is a look at the Flight Path code. This code is run to redraw the flightpaths each time. I am wiping the screen and repainting with the new paths and the old ones. Code:
rendering = true;
final ArrayList<LatLon> positions = new ArrayList<LatLon>();
qqLayer = getQQLayer();
Collection<Renderable> polyLines = qqLayer.getRenderables();
polyLines.removeAll(polyLines);
polyLines.clear();
for (int i = 0; i <= flightPth.size() - 1; i++) {
FlightPath path = flightPth.get(i);
qq.mob.cc.dao.LatLon pathLL = path.getThere();
LatLon there = new LatLon(Angle.fromDegrees(pathLL.getLatitude()),
Angle.fromDegrees(pathLL.getLongitude()));
LatLon here = new LatLon(Angle.fromDegrees(36.0814), Angle
.fromDegrees(-115.1549));
positions.add(there);
positions.add(here);
}
Color interiorColor = new Color(0f, 0f, 1f, 1f);
final Polyline polyline = new Polyline(positions, 5000);
polyline.setPathType(Polyline.LINEAR);
polyline.setColor(interiorColor);
polyline.setFollowTerrain(true);
polyline.setAntiAliasHint(GL.GL_NICEST);
qqLayer.addRenderable(polyline);
WorldView.wwd.repaint();
rendering = false;
It seems to me that the error is caused by two aspects of this process accessing the same piece in memory, causing the JVM to crash. This is a toughie and I would like some suggestions for moving forward. -Shaun |
|
|
|
|
|
#9 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
![]() |
Could you determine at which point in the code the conflit occurs? polyLines.removeAll(polyLines);? qqLayer.addRenderable(polyline);? How can it crash glDrawArrays()...
I see you have a rendering flag. How is it used in the rendering/updating process? This seems like a way to avoid rendering and modifications to the render list to clash... i guess not enough ![]() |
|
|
|
|
|
#10 |
|
Member
Join Date: Sep 2007
Posts: 32
![]() |
Here is a portion of code from the Loop processing Class.
Code:
List<FlightPosition> flightPosL = futureFlPos.get();
if (flightPosL == null) {
} else {
if (!wwDraw.rendering()) {
wwDraw.drawFlightPosIcons(flightPosL);
}
}
How would I go about determining which piece causes the crash? I am willing to look where I am told, I just don't see the direction to look yet. -Shaun |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| WWJ Early Access Release 0.2.0 now available | tag | WWJ Release Announcements | 48 | 09-19-2007 09:52 PM |
| type initializer for Utility.Log throw exception | prcooper | Install Support | 3 | 03-06-2007 04:58 PM |
| Optimizing Worldwind for No Internet Access? | Landmine_Mapper | WorldWind General | 5 | 09-16-2005 10:47 AM |
| Unhandled Exception | Gamefreak | Bug Reports | 6 | 10-05-2004 05:51 PM |
| Exception during initialization | Martijn | Bug Reports | 5 | 09-30-2004 07:37 AM |