Bug 442 - GLJPanel resize error.
Summary: GLJPanel resize error.
Status: VERIFIED DUPLICATE of bug 427
Alias: None
Product: Jogl
Classification: JogAmp
Component: opengl (show other bugs)
Version: 2
Hardware: pc_x86_64 linux
: --- major
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2010-12-08 06:48 CET by Barcsik Attila
Modified: 2010-12-12 01:52 CET (History)
0 users

See Also:
Type: DEFECT
SCM Refs:
Workaround: ---


Attachments
Source from a NetBeans project. (4.18 KB, application/zip)
2010-12-08 06:51 CET, Barcsik Attila
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Barcsik Attila 2010-12-08 06:48:23 CET
I'm using JOGL 2.0 RC1, openSUSE 11.3 amd64.

I've noticed that in GLJPanel the display(..) and reshape(...) methods are alternating all the time, even where there's no window resize event - i use an Animator not FPSAnimator.

At window resize, when the new size is about twice as big than the original - not previous size, it calls reshape(..) and throws an javax.media.opengl.GLException in thread "AWT-EventQueue-0" and the resulting OpenGL rendering will be corrupted. Corruption is something like incorrect culling setup.

After closing the application sometimes i get errors from the JRE:

# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007fedd20501bb, pid=16641, tid=140659252926224
...

Note: I get libEGL warning: No supported client API about 20 times at startup.
Note: I cannot enable Java2D OpenGL pipeline, because application won't render anything.

I've attached the complete NetBeans project which will demonstrate this bug.
Sorry if Eclipse is preffered.
Comment 1 Barcsik Attila 2010-12-08 06:51:17 CET
Created attachment 193 [details]
Source from a NetBeans project.

I've tried to upload the whole project, but upload failed.
This is just the source code.
Comment 2 Sven Gothel 2010-12-12 01:52:00 CET
fixed .. see #427

*** This bug has been marked as a duplicate of bug 427 ***