Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (515)
Games in Android Showcase (122)
games submitted by our members
Games in WIP (577)
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 2279 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 »

Supplement:

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 »

Hello,

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

steps:
  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.

Thanks
  Marek
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 http://bugs.sun.com/ .
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (31 views)
2014-10-27 03:28:38

TehJavaDev (26 views)
2014-10-27 03:27:51

DarkCart (40 views)
2014-10-26 19:37:11

Luminem (21 views)
2014-10-26 10:17:50

Luminem (25 views)
2014-10-26 10:14:04

theagentd (31 views)
2014-10-25 15:46:29

Longarmx (61 views)
2014-10-17 03:59:02

Norakomi (57 views)
2014-10-16 15:22:06

Norakomi (46 views)
2014-10-16 15:20:20

lcass (43 views)
2014-10-15 16:18:58
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org 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‑gaming.org
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!