key press not received in swt designer code

SWT Designer allows you to create the views, editors, perspectives, pref pages, composites, etc. that comprise Eclipse SWT & RCP applications and plug-ins.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

key press not received in swt designer code

Postby pintikirpi » Sun Aug 17, 2008 11:01 am

Hi,
With the latest release of swt designer, under Ubuntu 8.04 and Eclipse 3.4 classic, SWT designer has a problem with receiving key presses. This is how it happens:
I create a swt dialog, I add a button to the form, so the form gets modified, then without saving the form, I double click on the button to go to its event handler code.
At this point no keyboard events are received in Eclipse. I can not save via ctrl+s or click on the code with mouse and type. Keypresses are simply ignored.
I am using Gnome which is the default for Ubuntu 8.04 . I am also using Sun's 1.6 jdk. The same situation occurs in eclipse 3.3 too. If I alt+tab and get back to eclipse again, keypress works. If I double click on a button in an "unmodified" form, and click on the code with mouse then it works again.
Is this a known issue?
pintikirpi
 
Posts: 6
Joined: Sun Aug 17, 2008 10:51 am

Re: key press not received in swt designer code

Postby Eric Clayberg » Mon Aug 18, 2008 6:12 am

Give this a try with the latest SWT Designer build.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: key press not received in swt designer code

Postby pintikirpi » Wed Aug 20, 2008 11:04 am

Unfortunately, still not working.
I've extracted a new directory for eclipse 3.4 classic.
Downloaded the zip version for windowbuilder pro.
Copied plugin and feature directories to fresh eclipse directory.

Created a SWT application window, dropped a few buttons, adjusted location with mouse, and double clicked on one of the buttons. I am taken to code, where I can see the cursor blinking, but keyboard has no effect at this point. I can click with mouse to every location in text, and the cursor is placed there, but keyboard simply does not work.
I do alt-tab to another window, and alt tab again, and it works.
I've also installed kubuntu related packages to test it in KDE, and things are even more interesting there. Every single update in designer results with minimization of Eclipse window. Move a button a little bit, it is okey when you are dragging the button of form, and at the moment you drop it, wham, eclipse is minimized.
I'd love to see this resolved.

Kind regards
pintikirpi
 
Posts: 6
Joined: Sun Aug 17, 2008 10:51 am

Re: key press not received in swt designer code

Postby Eric Clayberg » Wed Aug 20, 2008 11:21 am

We can't reproduce this.

Do you happen to have the Eclipse 3.4 editor breadcrumbs turned on? What happens if you turn them off?

Please send us a acreen shot of your main Designer preference page and your Eclipse Configuration Details from the Eclipse About dialog.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: key press not received in swt designer code

Postby pintikirpi » Wed Aug 20, 2008 11:00 pm

Ok, I guess I have taken this personal. I've formatted the partition, I've setup ubuntu hardy (8.04) from scratch and installed sun java. After that I've installed eclipse 3.4, and it did not even start up. It just gave me a blank message box just when it should display eclipse window.
I've updated all software via update manager, clicked on eclipse again, and this time it worked. I've started it with ./eclipse -logtoConsole, and I did not receive any errors till I see the eclipse window.
I extracted the zip file for the latest build of window builder pro, copied features and plugins over to eclipse directory, and started eclipse again, with same console command.
I created a swt/jface java project, and I added a swt application window. At the moment the editor appeared in code edit mode, I've received the following on console:

------------------------------------------------------------------------------------------------------------------------------
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7671767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0x31) [0xb76718b1]
#2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb792f1bd]
#3 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so [0xabbfedce]
#4 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so [0xabbe8d77]
#5 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so [0xabbe8ef3]
#6 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x26) [0xabbe9136]
#7 [0xb1a90bfa]
#8 [0xb1a8ab3b]
#9 [0xb1a8ab3b]
#10 [0xb1a88219]
#11 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/bin/../lib/i386/client/libjvm.so [0xb6bec2bc]
#12 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/bin/../lib/i386/client/libjvm.so [0xb6d00ed8]
#13 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/bin/../lib/i386/client/libjvm.so [0xb6bec0ef]
#14 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/bin/../lib/i386/client/libjvm.so(JVM_DoPrivileged+0x32d) [0xb6c49b9d]
#15 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb6a3c30d]
#16 [0xb1a904ab]
#17 [0xb1a8aa64]
#18 [0xb1a88219]
#19 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/bin/../lib/i386/client/libjvm.so [0xb6bec2bc]
Locking assertion failure. Backtrace:
#0 /usr/lib/libxcb-xlib.so.0 [0xb7671767]
#1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_lock+0x2e) [0xb767181e]
#2 /usr/lib/libX11.so.6 [0xb792e518]
#3 /usr/lib/libX11.so.6(XGetVisualInfo+0x26) [0xb79250a6]
#4 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so [0xabbe80b9]
#5 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so [0xabbe8303]
#6 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so [0xabbe8fa1]
#7 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/xawt/libmawt.so(Java_sun_awt_X11GraphicsEnvironment_initDisplay+0x26) [0xabbe9136]
#8 [0xb1a90bfa]
#9 [0xb1a8ab3b]
#10 [0xb1a8ab3b]
#11 [0xb1a88219]
#12 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/bin/../lib/i386/client/libjvm.so [0xb6bec2bc]
#13 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/bin/../lib/i386/client/libjvm.so [0xb6d00ed8]
#14 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/bin/../lib/i386/client/libjvm.so [0xb6bec0ef]
#15 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/bin/../lib/i386/client/libjvm.so(JVM_DoPrivileged+0x32d) [0xb6c49b9d]
#16 /usr/lib/jvm/java-1.5.0-sun-1.5.0.15/jre/lib/i386/libjava.so(Java_java_security_AccessController_doPrivileged__Ljava_security_PrivilegedAction_2+0x3d) [0xb6a3c30d]
#17 [0xb1a904ab]
#18 [0xb1a8aa64]
#19 [0xb1a88219]

-------------------------------------------------------------------------------------------------------------------------------

I switched to design mode, placed a button on form, and double clicked it; and the problems remains the same. This is a clean Ubuntu install. No other software, no unusual updates, everything is as usual as it can be. But I still have this problem. Breadcrumbs are off. A copy of my configuration taken from the about item in help menu is attached.

Cheers
Attachments
eclipseConfig.tar.gz
(13.86 KiB) Downloaded 79 times
pintikirpi
 
Posts: 6
Joined: Sun Aug 17, 2008 10:51 am

Re: key press not received in swt designer code

Postby Eric Clayberg » Thu Aug 21, 2008 12:27 pm

Very strange. We are also using Ubuntu 8.04 and can't reproduce this.

We have made some speculative changes in the latest build that might help. Give it a try.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: key press not received in swt designer code

Postby pintikirpi » Thu Aug 21, 2008 11:42 pm

Ok, I give up. The latest build did the same, so I downloaded installer instead of archive, and no luck in that too. I've downloaded eclipse 3.3, and tried the installer, and again the same thing. I have a problem in this machine, and who knows what it is. I'll have to give up for now. Thanks for your kind response.
pintikirpi
 
Posts: 6
Joined: Sun Aug 17, 2008 10:51 am

Re: key press not received in swt designer code

Postby Eric Clayberg » Fri Aug 22, 2008 5:44 am

pintikirpi wrote:I have a problem in this machine, and who knows what it is. I'll have to give up for now.

Does the same thing happen on other machines? The problem you are describing sounds like an Eclipse-level issue of some sort.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: key press not received in swt designer code

Postby pintikirpi » Fri Aug 22, 2008 6:05 am

I do not have access to any other computers around to test this. I might consider downgrading to previous release of Ubuntu. I'll update the topic in case I succeed.

Kind regards
pintikirpi
 
Posts: 6
Joined: Sun Aug 17, 2008 10:51 am

Re: key press not received in swt designer code

Postby Eric Clayberg » Fri Aug 22, 2008 9:35 am

pintikirpi wrote:I might consider downgrading to previous release of Ubuntu.

I doubt that would do any good as we are using Ubuntu 8.04 as well.

Probably half our Linux users are also on that version, and we have had no reports of similar issues.

BTW, are you using 32-bit or 64-bit Ubuntu?
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA

Re: key press not received in swt designer code

Postby pintikirpi » Sat Aug 23, 2008 8:24 am

Ok,
I've set up Ubuntu 7.1, and guess what? The problem (mostly) disappeared. After a clean install of the previous version of Ubuntu, without no updates at all, I've installed java 5 jdk, and eclipse 3.3 and installer for linux for window builder worked just one.
One thing I've immediately noticed is that, the lovely(!) flashing window returned into swt designer. Only when I saw that it flashes in every update to gui designer I remembered that it was gone in ubuntu 8.04.
However, while playing with the swt designer, at some point the problem hit me once again. The flashing window disappeared, and key presses again did not work. However, it happened only once, and I could not reproduce the problem.
The other thing I've noticed is, the same configuration (eclipse + wb. pro) was performing significantly better in ubuntu 8.04. The performance is noticeably slower now.
I'll perform all the updates ubuntu allows, and see if things change. this is a 32 bit machine by the way.
pintikirpi
 
Posts: 6
Joined: Sun Aug 17, 2008 10:51 am

Re: key press not received in swt designer code

Postby Eric Clayberg » Fri Aug 29, 2008 10:01 am

Give this a try using the latest build.

There appear to be some focus processing bugs in the Linux version of Eclipse.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to SWT Designer

Who is online

Users browsing this forum: No registered users and 2 guests