Bug 1044 - Offscreen drawable AWT/ImageIO results in black image on OSX/[Java7-Java8]
Summary: Offscreen drawable AWT/ImageIO results in black image on OSX/[Java7-Java8]
Status: RESOLVED INVALID
Alias: None
Product: Jogl
Classification: JogAmp
Component: opengl (show other bugs)
Version: 2
Hardware: pc_x86_64 macosx
: --- normal
Assignee: Sven Gothel
URL:
Depends on:
Blocks:
 
Reported: 2014-08-12 10:26 CEST by Mario Pascucci
Modified: 2014-09-23 13:24 CEST (History)
1 user (show)

See Also:
Type: ---
SCM Refs:
70641322fc8e52417f934b452b573c9b39a734e9
Workaround: ---


Attachments
Stand-alone test to create an image using off-screen buffer (1.68 KB, text/x-java)
2014-08-12 10:26 CEST, Mario Pascucci
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mario Pascucci 2014-08-12 10:26:10 CEST
Created attachment 620 [details]
Stand-alone test to create an image using off-screen buffer

Overview
A short code to generate a small PNG image using an off-screen buffer created with GLOffscreenAutoDrawable works perfectly on Windows, Linux, Mac OSX 10.6.8. In OSX 10.9.4 (Mevaricks) produces an empty image, not even background color.

Steps to Reproduce
Compile the code attached and run on a Mac with OSX 10.9.4 Mavericks

Actual Results
A file named test.png 100x100 pixel fully transparent, empty.

Expected Results
PNG file contains solid light pink background.

Build Date & Platform
August 8, 2014 
JOGL 2.2.0
OpenJDK 1.7 update 65, Linux Fedora 20 32 bit
Java 1.6 update 31, Windows 7
Java 1.6 update 65, Mac OSX 10.9.4 64 bit
Comment 1 Mario Pascucci 2014-08-12 17:08:26 CEST
Tested against JVM 1.7u67 from Oracle on Mac OSX 10.9.4.
Issue still persist.
Comment 2 Sven Gothel 2014-09-02 05:40:14 CEST
70641322fc8e52417f934b452b573c9b39a734e9

Offscreen drawable AWT/ImageIO results in black image on OSX/[Java7-Java8]

 - Using our PNGJ writer results in proper images (RGB and RGBA) on all platforms
 - Seems to be a bug w/ AWT/ImageIO

See added unit test in named commit.

Hence -> Invalid.
Comment 3 Mario Pascucci 2014-09-02 10:40:22 CEST
(In reply to comment #2)
> 70641322fc8e52417f934b452b573c9b39a734e9
> 
> Offscreen drawable AWT/ImageIO results in black image on OSX/[Java7-Java8]
> 
>  - Using our PNGJ writer results in proper images (RGB and RGBA) on all
> platforms
>  - Seems to be a bug w/ AWT/ImageIO
> 
> See added unit test in named commit.
> 
> Hence -> Invalid.

Thank you, Sven.

Seem I "barking up the wrong tree" (cit.) :D