Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (568)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / JOGL Development / Re: intermittent crashes with JOGL on: 2012-04-25 08:43:27
I downloaded a swt.jar and added it to the project and those warnings went away, but the problem didn't Sad
Now all I get are some android.xyz.abs warnings, been ignoring them for now.
2  Java Game APIs & Engines / JOGL Development / Re: intermittent crashes with JOGL on: 2012-04-24 04:14:40
Thanks,

Now I am basically back to where I was in the OP except with the latest (04/22/2012) JOGL build. (still works, but not every time and gives the same error).
I am currently getting the following blocks of warnings in case this sheds some light on this issue:

Warning: com.jogamp.nativewindow.swt.SWTAccessor cannot access org.eclipse.swt.graphics.GCData
Warning: com.jogamp.nativewindow.swt.SWTAccessor cannot access org.eclipse.swt.widgets.Control
Warning: com.jogamp.nativewindow.swt.SWTAccessor$1 cannot access org.eclipse.swt.widgets.Control
Warning: com.jogamp.nativewindow.swt.SWTAccessor$2 cannot access org.eclipse.swt.graphics.GCData
Warning: com.jogamp.nativewindow.swt.SWTAccessor$2 cannot access org.eclipse.swt.widgets.Control
Warning: com.jogamp.nativewindow.swt.SWTAccessor$3 cannot access org.eclipse.swt.graphics.GCData
Warning: com.jogamp.nativewindow.swt.SWTAccessor$3 cannot access org.eclipse.swt.widgets.Control
Warning: com.jogamp.opengl.swt.GLCanvas cannot access org.eclipse.swt.events.ControlListener
Warning: com.jogamp.opengl.swt.GLCanvas cannot access org.eclipse.swt.events.PaintListener

and also:

Warning: 1.0.com.sun.codemodel.JArrayClass cannot access com.sun.codemodel.JArrayClass$1
Warning: 1.0.com.sun.codemodel.JArrayClass$1 cannot access com.sun.codemodel.JArrayClass$1
Warning: 1.0.com.sun.codemodel.JCodeModel$1 cannot access com.sun.codemodel.JCodeModel$1
Warning: 1.0.com.sun.codemodel.JCodeModel$JReferencedClass cannot access com.sun.codemodel.JCodeModel$1
Warning: 1.0.com.sun.codemodel.JDefinedClass cannot access com.sun.codemodel.JNestedClass
Warning: 1.0.com.sun.codemodel.JExpr cannot access com.sun.codemodel.JExpr$3
Warning: 1.0.com.sun.codemodel.JExpr$3 cannot access com.sun.codemodel.JExpr$3
Warning: 1.0.com.sun.codemodel.JNestedClass cannot access com.sun.codemodel.JNestedClass
Warning: 1.0.com.sun.codemodel.JNullType cannot access com.sun.codemodel.JNullType$1
Warning: 1.0.com.sun.codemodel.JNullType$1 cannot access com.sun.codemodel.JNullType$1

but I was reading that the 2nd block's warnings are not significant.

Any thoughts?
3  Java Game APIs & Engines / JOGL Development / Re: intermittent crashes with JOGL on: 2012-04-23 08:35:21
Guys,
Can you please tell me why newt.all and nativewindow.all are missing in all post Sept/Oct 2011 builds?
Should I use newt.core or any other newt.xyz and nativewindow.xyz in atomic folder to replace them if I want to use latest stuff?

Most JOGL tutorials require using 4 files: jogl.all, gluren-rt, newt.all and nativewindow.all. Last 2 are missing in newer builds.

4  Java Game APIs & Engines / JOGL Development / Re: intermittent crashes with JOGL on: 2012-04-19 16:35:03
I'd like to exhaust other solutions before jumping into editing code I didn't write especially given the size of this project.
You mention the reason this code might be working in Windows but works only part of the time in Linux is because of the way
drivers (assume graphics card drivers?) interact with VBOs. Could it be possible I am not using the proper/best
drivers?

5  Java Game APIs & Engines / JOGL Development / Re: intermittent crashes with JOGL on: 2012-04-19 08:42:10
Also in case it is relevant, I get the following warning right before the crash message in the OP:

WARNING [org.openide.filesystems.Ordering]: Found same position 100 for both Toolbars/File/PolygonAction.shadow and Toolbars/File/RectangleAction.shadow

This warning persists though even during the 20-30% of the cases when the program works.
6  Java Game APIs & Engines / JOGL Development / Re: intermittent crashes with JOGL on: 2012-04-19 08:32:04
How would I go about checking this? Sorry I am new to JOGL. I found instances of the method you were refering to:

protected void drawSideInteriors(DrawContext dc, ShapeData shapeData)
    {
        super.prepareToDrawInterior(dc, this.getActiveSideAttributes(), defaultSideAttributes);

        GL gl = dc.getGL();

        for (ExtrudedBoundaryInfo boundary : shapeData)
        {
            if (!dc.isPickingMode() && this.mustApplyLighting(dc, this.getActiveSideAttributes()))
                gl.getGL2().glNormalPointer(GL.GL_FLOAT, 0, boundary.sideNormalBuffer.rewind());

            if (!dc.isPickingMode() && boundary.sideTextureCoords != null)
            {
                gl.getGL2().glEnable(GL2.GL_TEXTURE_2D);
                gl.getGL2().glEnableClientState(GL2.GL_TEXTURE_COORD_ARRAY);
                gl.getGL2().getGL2().glTexCoordPointer(2, GL.GL_FLOAT, 0, boundary.sideTextureCoords.rewind());
            }
            else
            {
                gl.glDisable(GL2.GL_TEXTURE_2D);
                gl.getGL2().glDisableClientState(GL2.GL_TEXTURE_COORD_ARRAY);
            }

            gl.getGL2().getGL2().getGL2().glVertexPointer(3, GL.GL_FLOAT, 0, boundary.sideVertexBuffer.rewind());

            boundary.sideIndices.rewind();
            for (int j = 0; j < boundary.faceCount; j++)
            {
                if (!dc.isPickingMode() && boundary.sideTextureCoords != null)
                {
                    if (!boundary.sideTextures.get(j).bind(dc))
                        continue;

                    boundary.sideTextures.get(j).applyInternalTransform(dc);
                }

                boundary.sideIndices.position(4 * j);
                boundary.sideIndices.limit(4 * (j + 1));
                gl.glDrawElements(GL.GL_TRIANGLE_STRIP, 4, GL.GL_UNSIGNED_INT, boundary.sideIndices);
            }
        }
    }

Does anything here look suspect? How do you go about checking what you mentioned?
7  Java Game APIs & Engines / JOGL Development / Re: intermittent crashes with JOGL on: 2012-04-19 04:57:14
This same code runs just fine on Windows 32.
Given your description this problem would persist across platforms if it was what you think it is wouldn't it?
8  Java Game APIs & Engines / JOGL Development / intermittent crashes with JOGL on: 2012-04-18 11:18:05
Linux 32bit
JOGL 2.0 (using incremental build from 07/17/2011)
Netbeans 7.1.1
NVIDIA drivers = "version current" that came with Linux.

Program seams to work fine 20-30% of the time. Other times it crashes and I get this:

Info: XInitThreads() called for concurrent Thread support
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb7730f2d, pid=12378, tid=2362850160
#
# JRE version: 6.0_31-b04
# Java VM: Java HotSpot(TM) Server VM (20.6-b01 mixed mode linux-x86 )
# Problematic frame:
# C  [libpthread.so.0+0x7f2d]  pthread_mutex_lock+0x1d
#
# An error report file with more information is saved as:
# /usr/local/vcat/hs_err_pid12378.log
#
# 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.
#
Result: 134
BUILD SUCCESSFUL (total time: 1 minute 46 seconds)

Any ideas what's going on?
Thanks in advance.
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Pippogeek (40 views)
2014-09-24 16:13:29

Pippogeek (31 views)
2014-09-24 16:12:22

Pippogeek (21 views)
2014-09-24 16:12:06

Grunnt (47 views)
2014-09-23 14:38:19

radar3301 (29 views)
2014-09-21 23:33:17

BurntPizza (65 views)
2014-09-21 02:42:18

BurntPizza (37 views)
2014-09-21 01:30:30

moogie (44 views)
2014-09-21 00:26:15

UprightPath (53 views)
2014-09-20 20:14:06

BurntPizza (55 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!