Welcome, Guest. Please login or register.

Login with username, password and session length

 
Advanced search

11991 Posts in 1587 Topics- by 3508 Members - Latest Member: NevilleKemp

26. May 2012, 05:38:38 pm
Xith3D CommunityGeneral CategorySupport (Moderator: Marvin Fröhlich)Taking screenshots
Pages: [1]
Print
Author Topic: Taking screenshots  (Read 369 times)
ChrisE
Becoming dependent
**
Offline Offline

Posts: 104


View Profile
« on: 09. June 2011, 10:16:43 pm »

Marvin,

So, I'm trying to take screenshots, and I hard crash out from native code. Relevant part of dump is:

Code:
Stack: [0x4c510000,0x4c560000],  sp=0x4c55dfe4,  free space=311k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  0x4f40fb95

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j  org.lwjgl.opengl.GL11.nglReadPixels(IIIIIILjava/nio/Buffer;IJ)V+0
j  org.lwjgl.opengl.GL11.glReadPixels(IIIIIILjava/nio/ByteBuffer;)V+56
j  org.xith3d.render.lwjgl.RenderPeerImpl.render(Ljava/lang/Object;Lorg/xith3d/scenegraph/View;Ljava/util/List;ZJJJLorg/xith3d/picking/PickRequest;)Ljava/lang/Object;+317
j  org.xith3d.render.lwjgl.CanvasPeerImplBase.doRender(Lorg/xith3d/scenegraph/View;Ljava/util/List;ZJJJLorg/xith3d/picking/PickRequest;)Ljava/lang/Object;+16
j  org.xith3d.render.lwjgl.CanvasPeerImplAWT$ContextGLCanvas.paintGL()V+137

Any idea of other reports of this? Any idea what might be causing it, or where to investigate further?

Am using LWJGL_AWT, with LWJGL version 2.7.1 .

As always, thanks for any help!

-Chris
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #1 on: 10. June 2011, 11:44:39 am »

I guess, it is a threading issue. AWT uses it's own render thread.

Could you try it using LWJGL (without AWT)? If that works, we might have to fix LWJGL_AWT threading.
Logged
ChrisE
Becoming dependent
**
Offline Offline

Posts: 104


View Profile
« Reply #2 on: 13. June 2011, 05:15:12 pm »

Mmmm... perhaps.

Will I still be able to embed it in my application if I don't use LWJGL_AWT?

-Chris
Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #3 on: 14. June 2011, 09:51:27 am »

Well, you could use JOGL_AWT or in worst case JOGL_SWING (though the last one is only meant for special cases and is slow). But without LWJGL_AWT or JOGL_AWT you cannot. I just wanted you to test this.
Logged
ChrisE
Becoming dependent
**
Offline Offline

Posts: 104


View Profile
« Reply #4 on: 17. June 2011, 07:30:45 pm »

So, along the lines of testing, I've also run into a weird issue on older (pre-GL 3.0) machines.

I have a Xith render loop up and running, and calls are executing, but the canvas is not updating (it just shows the previous screen contents in its buffer. This is after switching to LWJGL_AWT from JOGL_AWT. Is there a dependency for LWJGL to use newer versions of OpenGL?

So, I'm thinking that perhaps that has something to do with this. At the same time, despite importing the xith-tk project and xith3d projects into my Eclipse workspace, I can't get the blasted things to run. Compile, sure, but not run (though even that takes some tweaking--there are some weirdnesses in the OpenAL stuff).

So, I want to just test out the test suite for Xith. Is there any way to get just that, as a binary blob? I don't trust my development environment to do a compile from source, and just want to test switching from JOGL to LWJGL on the machines which show this issue.

Thanks, as always, for any aid.

-Chris

UPDATE: Checked the machines in question using www.lwjgl.org/applet . So, fails to draw giving a pixel format not supported error. So, I'm pretty sure I just need to go back to using JOGL and all will be well.
« Last Edit: 17. June 2011, 08:58:41 pm by ChrisE » Logged
Marvin Fröhlich
Xith Lord
Administrator
Guru
*****
Offline Offline

Posts: 4381


May the 4th, be with you...


View Profile
« Reply #5 on: 18. June 2011, 10:44:41 am »

http://xith.org/index.php?switch=download
Logged
Pages: [1]
Print
Jump to:  

Theme orange-lt created by panic