JOGL crash after keyboard layout is change

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

JOGL crash after keyboard layout is change

kendzi
Hello
I have some strange error when keyboard layout is changed. My application hangs with out any error message. I tried to find out what is happening but with out any result. I don't have any idea how to solve that error. Please help or give any advice.

So I have application with two windows. Main windows is Jframe, it have button which open 3d preview (new window as Frame with GLCanvas and FPSAnimator). On most computers it is working ok. But on some when I change keyboard layout in window by pressing Shift+Alt key application froze. It seams that there is no dead locks and EvenQuery is working but application is frozen. It happen only when keyboard layout is changed and 3d preview is on. Some more details and are here:

https://github.com/kendzi/kendzi3d/issues/16
Reply | Threaded
Open this post in threaded view
|

Re: JOGL crash after keyboard layout is change

gouessej
Administrator
Hi

Is it reproducible without AWT?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL crash after keyboard layout is change

Sven Gothel
Administrator
On 11/05/2013 11:22 AM, gouessej [via jogamp] wrote:
> Hi
>
> Is it reproducible without AWT?

b/c if this is an AWT application using our AWT GLCanvas,
'I am afraid' this is not our bug ..

However .. a small test case to reproduce the issue and
a bug report may help to clarify the situation.

In general, keyboard changes w/ NEWT
_before_ application start is tested.

~Sven



signature.asc (911 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: JOGL crash after keyboard layout is change

kendzi
I tried to cut out some small part of my program but it seams even simple GlCanvas inside Frame is freezing after keyboard change. Here is example of Frame with GlCanvas:
https://github.com/kendzi/kendzi3d/blob/master/kendzi3d-jogl-example/src/main/java/kendzi/josm/kendzi3d/jogl/model/roof/mk/ui/StaticBaseJoglFrame.java

Simply run that class, application will start and show some content but after pressing Shift+Alt keys it freeze, with out any error message. Application will freeze even keyboard was changed from task bar menu near clock (not by using Shift+Alt). To be clear that error is hard to reproduce. I test it on several computers and only one of them behave in that way. All others are working ok.

Computer parameters:
Windows XP SP3  + Nvidia Gforce 7600GS + Java 1.6.0_22-b04
But someone reported that it can be reproduced it with Java 7 and Win7


How can I test it with out AWT?
Reply | Threaded
Open this post in threaded view
|

Re: JOGL crash after keyboard layout is change

gouessej
Administrator
kendzi wrote
How can I test it with out AWT?
Choose a computer on which this bug is reproducible, run an application based on JogAmp but that doesn't use AWT and use Shift-Alt. You can run the Angeles demo or the pre-beta version of TUER for example.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: JOGL crash after keyboard layout is change

kendzi
Bad news.
I run angle demo from site: http://jogamp.org/jogl-demos/src/demos/es1/angeles/

I can reproduce an error. So after application is run, when I press Shift+Alt application stop working correctly. It don't crash, don't freeze but stop receiving any events. So in short animation is still played but I can't move windows or I can't stop animation by double click.

To be clear my example was “crashing” in the same way. Something was draw but application stop receiving any events, and if second swing window was opened that window was freeze (become white).