Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (589)
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  
  JOGL2 and core dumps  (Read 616 times)
0 Members and 1 Guest are viewing this topic.
Offline monty_hall

Senior Newbie





« Posted 2009-10-08 03:04:36 »

NetBeans 6.5
Java 1.6.0.0_16-b01
JOGL via NetBeans JOGL2 Module
Ubuntu 9.04
GeForce6800

 I'm writing a GPGPU application and it runs fine w/ JOGL 1 w/ the Netbeans JOGL 1 module.  However, when I switched to JOGL2 via JOGL2 Netbeans modules I've been get core dumps.  Seems like there is an interaction between pbo's and framebuffers thats causing the problem.  Not sure if this is JOGL problem, NetBeans JOGL Binaries, or I'm not using JOGL2 properly (I'm presuming GL -> GL2 & use GLProfile.getDefault()).

I removed all code in init/display, and incrementally started adding it back.  It appears as soon as the frame buffer is bound is when the crashing starts.  The crash doesn't occur when executing glBindBuffer, but much later when when the program completes and terminates.  The minimal code below will produce the following dump.


Monty
=============
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
MyConstructor() {
        pbo = GLDrawableFactory.getFactory(GLProfile.getDefault()).createGLPbuffer(
                new GLCapabilities(GLProfile.getDefault()),
                new DefaultGLCapabilitiesChooser(),
                1,
                1,
                null);
        pbo.addGLEventListener(this);
}
public void init(GLAutoDrawable arg0) {
        GL2 gl = arg0.getGL().getGL2();
        gl.glGenFramebuffers(1, fboID, 0);
        gl.glBindFramebuffer(GL_FRAMEBUFFER, fboID[0]);
}


error:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xab22bf75, pid=9940, tid=3085211856
#
# JRE version: 6.0_16-b01
# Java VM: Java HotSpot(TM) Server VM (14.2-b01 mixed mode linux-x86 )
# Problematic frame:
# C  [libGLcore.so.1+0x6aef75]
#
# If you would like to submit a bug report, please visit:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
Java Result: 134
BUILD SUCCESSFUL (total time: 24 seconds)
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

xFryIx (62 views)
2014-11-13 12:34:49

digdugdiggy (41 views)
2014-11-12 21:11:50

digdugdiggy (36 views)
2014-11-12 21:10:15

digdugdiggy (30 views)
2014-11-12 21:09:33

kovacsa (53 views)
2014-11-07 19:57:14

TehJavaDev (56 views)
2014-11-03 22:04:50

BurntPizza (55 views)
2014-11-03 18:54:52

moogie (70 views)
2014-11-03 06:22:04

CopyableCougar4 (71 views)
2014-11-01 23:36:41

DarkCart (156 views)
2014-11-01 14:51:03
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!