Login  Register

Off screen Canvas3D crushes when graphics mode of the display changes

Posted by Alexei A. Morozov on Jun 28, 2017; 6:38pm
URL: https://forum.jogamp.org/Off-screen-Canvas3D-crushes-when-graphics-mode-of-the-display-changes-tp4038041.html

Dear colleagues,

I have discovered a strange behavior of Java3D in the Off Screen mode. I have created a program that renders a 3D scene and creates instances of the BufferedImage class in a loop. Thus, this program can be considered as a way to convert a dynamic 3D scene to the sequence of 2D images.

Here is the text of the program:
OffScreenTest5.java

Here is a screenshot of working program:
This program can be considered as a way to convert a dynamic 3D scene to the sequence of 2D images.

The program works well, but under special conditions it does things that can never happen. If I switch display to the text mode, it crushes in different ways. In detail, one can implement the following steps to reproduce the error:
1. I have started the Far manager in the text mode. I work under Windows XP SP3 that supports the text mode of the display still.
I have started the Far manager in the text mode. I work under Windows XP SP3 that supports the text mode of the display still.
2. I have started a command window.
3. I have started the test program in the command window.
4. I have switched the focus of the graphic user interface to the Far manager using the Alt-Tab key.
5. The test program has crushed.

I repeated the exercise several times. The program crushes in different ways (it outputs different error messages; sometimes even JVM crushes).

Here is a screenshot:
The test program has crushed.

Theoretically speaking, the Off Screen mode should not depend on the current graphic mode of the display. Thus, I consider this behavior as ``impossible’’. Please help me to discover the reason of this strange behavior of Java3D.

Here are examples of crush reports created by the program:
log01.txt
log03.txt
log06.txt

Thank you,

Alexei A. Morozov

http://www.fullvision.ru