This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 37476 - RobotDriver.initRobot() hangs on Linux
Summary: RobotDriver.initRobot() hangs on Linux
Status: CLOSED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: issues@qa
URL:
Keywords:
Depends on:
Blocks: 37455
  Show dependency tree
 
Reported: 2003-11-25 12:09 UTC by Jiri Skrivanek
Modified: 2011-02-17 09:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread dump (9.46 KB, text/plain)
2003-11-25 12:09 UTC, Jiri Skrivanek
Details
Test case (523 bytes, text/plain)
2003-11-25 12:11 UTC, Jiri Skrivanek
Details
RobotDriver patch (1.21 KB, text/plain)
2003-11-25 12:19 UTC, Jiri Skrivanek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2003-11-25 12:09:29 UTC
If you try to push a shortcut key sequence in
NetBeans IDE, it hangs in initialization of
java.awt.Robot (see thread dump). I tried to
re-plane its initialization in RobotDriver.init()
into dispatch thread and it works well. So, I am
proposing use the patch to RobotDriver (see
attached). Shura could you look at it whether it
will not break anything else?

To reproduce failure:

- run IDE
- mount jemmy, jellytools
- by internal execution run TestShortcut class
- test hangs (IDE not) and if you generate thread
dump, it is waiting in Robot initialization. If
not hangs for the first time, execute the class
once more.

Tested on Linux 2.4.18-27.8.0, JDK1.4.2_01-b06,
build 20031124-2041.
Comment 1 Jiri Skrivanek 2003-11-25 12:09:56 UTC
Created attachment 12283 [details]
Thread dump
Comment 2 Jiri Skrivanek 2003-11-25 12:11:35 UTC
Created attachment 12284 [details]
Test case
Comment 3 Jiri Skrivanek 2003-11-25 12:19:00 UTC
Created attachment 12285 [details]
RobotDriver patch
Comment 4 Alexandre Iline 2003-11-25 17:34:23 UTC
Looks ok to me. 
Jirka, could you integrate the change, please? 
 
Comment 5 Jiri Skrivanek 2003-11-26 09:14:29 UTC
Integrated and version increased to 2.2.4.6.
Comment 6 Jiri Skrivanek 2003-11-26 09:15:28 UTC
Verified on the same environment.