Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (778)
Games in Android Showcase (231)
games submitted by our members
Games in WIP (856)
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  
  [urgent] Is it a bug?  (Read 3813 times)
0 Members and 1 Guest are viewing this topic.
Offline k7sem

Senior Newbie

« Posted 2008-06-13 07:40:20 »

hi everyone:

Does anyone already used the "GLJPanel" component for mix rendering 2D & 3D. Here I encounter a weird problem, When I add the a GLJPanel to a JFrame,  then I press keyboard with "ctrl + space"(i wanna to invoke Chinese input method).  then application will no responding.  Regardless how I drag the title bar or hit any key. it still no responding. and the application can only be destroyed by Windows task manager.(javaw.exe maybe cannot be died). But if I only type English characters(it means I dont press any key combination) it will be works fine.
I tried many ways, including reinstall other JRE version, and this problem aways happens.   If I dont use GLJPanle,  just normally Swing component, Input Chinese characters is Ok.

I have no idea about that.  please help me.

thanks in advance.
Offline k7sem

Senior Newbie

« Reply #1 - Posted 2008-06-13 07:42:42 »


Of course, I have added the JTextArea to Input words.  Even no JTextArea,  this issue still occur.
Offline Ken Russell

JGO Coder

Java games rock!

« Reply #2 - Posted 2008-06-13 18:26:27 »

Please use the jstack tool that ships with the JDK to capture a stack trace from the JVM when it locks up like this and post the result.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline k7sem

Senior Newbie

« Reply #3 - Posted 2008-06-16 04:40:22 »

Thank you Ken Russell.

I will try.
Offline maf

Junior Newbie

« Reply #4 - Posted 2008-11-20 16:35:23 »


I have exactly the same problem. My app has JCanvas. When I change keyboard language then the app hangs.
I reproduced this error with vanilla jogl-demos with jogl 1.1.1

  Windows XP SP2 and/or 3
  Java JRE 6 (u0 ... u10)
  java -classpath Jogl-Demos.jar;jogl.jar;gluegen-rt.jar  demos.jrefract.JRefract
  open menu, run Gears.
  switch language keyboard input via keyboard shortcut.
  app hangs

in my case I change the keyboard via Alt+Shift. I can always reproduce it. It is not random.

If the java app has no jogl then it is OK.

I have found (in MS Spy++) that Windows sends WM_INPUTLANGUAGECHANGE message to OpenGL JoGL canvas window.

The jstack does not reveal any problems. The stack is little bit different each time the app hangs.
See attachment for jstack output

I can try a lot if someone gives me some clue. I can both C++ debugger or/and Java debugger.

Offline Ken Russell

JGO Coder

Java games rock!

« Reply #5 - Posted 2008-11-24 03:16:00 »

Are you specifying -Dsun.java2d.noddraw=true on the command line? This is required for correct operation of JOGL apps on Windows.
Offline maf

Junior Newbie

« Reply #6 - Posted 2008-11-24 09:18:19 »

Yes I do.
Setting sun.java2d.noddraw to true has no effect on this.

the funny think is that not all computer exhibits this problem. I've tried to reproduce it on 6 computers.
2 of them are OK, on 4 the app hangs. Plus one computer is dual boot. In MS Vista it is OK, in XP SP3 it hangs.

Offline Ken Russell

JGO Coder

Java games rock!

« Reply #7 - Posted 2008-11-26 00:04:24 »

Given that the DirectDraw / Direct3D code in Java 2D is disabled, it's hard to guess how JOGL could be causing this hang. Your thread dumps all look OK so the hang is probably in the AWT toolkit thread, on which user code is not allowed to run, so maybe there is interference between the AWT native interface and the work being done on the AWT toolkit thread. If you have a test case it would be good if you could file a bug against the AWT on .
Pages: [1]
  ignore  |  Print  

hadezbladez (360 views)
2018-11-16 13:46:03

hadezbladez (194 views)
2018-11-16 13:41:33

hadezbladez (363 views)
2018-11-16 13:35:35

hadezbladez (91 views)
2018-11-16 13:32:03

EgonOlsen (2193 views)
2018-06-10 19:43:48

EgonOlsen (2228 views)
2018-06-10 19:43:44

EgonOlsen (1385 views)
2018-06-10 19:43:20

DesertCoockie (2023 views)
2018-05-13 18:23:11

nelsongames (1677 views)
2018-04-24 18:15:36

nelsongames (2313 views)
2018-04-24 18:14:32
Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04:08

Deployment and Packaging
by gouessej
2018-08-22 08:03:45

Deployment and Packaging
by philfrei
2018-08-20 02:33:38

Deployment and Packaging
by philfrei
2018-08-20 02:29:55

Deployment and Packaging
by philfrei
2018-08-19 23:56:20

Deployment and Packaging
by philfrei
2018-08-19 23:54:46 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‑
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!