Søk i denne bloggen

fredag 9. september 2011

Debugging threaded event handlers from gui components make the X system hang

When event handlers from i.e. a combobox are triggered in a debug session, the java 1.6 doesnt play well together with Gnome X system. The grabbing feature of java causes the whole system to hang. To prevent this, the grabbing must be disabled. In a maven project, this can be done by adding the sun.awt.disablegrab=true as run time parameter. in netbeans the prefix -J-D must precede, so the parameter is -J-Dsun.awt.disablegrab=true. In maven this can be applied to the <netbeans.run.params.ide> in nbatctions.xml. Note that to escape from the hang, a TTY (ctrl+alt+f1) with a ps -A | grep java and kill psid and back with Altf7 is needed

Ingen kommentarer:

Legg inn en kommentar