Greetings !!
I use NetBeans 7.0.1 and there is a bug that make the X-Windows system to hang when using the debugger in some Swing/AWT objects event handlers.
The workaround we have is to set up a ServerFlags Section in the xorg.conf file.
Problem is I never found the xorg.conf file but xorg.conf.d directory with some files in it.
I instinctly created a new file called 91-ServerFlags.conf in the xorg.conf.d with the following code in it:
Section "ServerFlags"Option "AllowDeactivateGrabs" "yes"
EndSection
But I really don’t know when restarted the server that all was done in order to avoid the NetBeans debugger to freeze when hitting the breakpoint located in a event handler of a AWT/Swing object (like a combobox)
I also put the Section in xorg.conf.install in which I saw several other Sections in it.
I don’t know if I make it redundant or not…
I looked in /var/log/Xorg.0.log if something went wrong, I also looked in /var/log/messages but I’m not sure where xorg would put messages if something went wrong…
To be clear, my questions are:
Did I right to act the way described below concerning the addition of the section called “ServerFlags” ?
How can I verify if the new section has been correctly added ?
What is the role of xorg.cong.install file ?
Thank you in advance !
Though not needed in most cases you can still use an xorg.conf file
Did you eliminate the problem NetBeans? if do all is good.
Unfortunately I didn’t fixed it, but as I said in my message (I may be not very clear in my props because English is not my native tongue) I never found xorg.conf file…
I’m not sure that the things I did were efficient for the effect wanted: add the “ServerFlags” section when xorg is launched…
Regarding the NetBeans related bug report, there is still no fix, but no particular virulent comments stating this workaround won’t work ^^
I stay in touch…
On 11/05/2011 03:24 AM, soundlord wrote:
>
> I never found xorg.conf file…
xorg.conf was depreciated in 11.3 (or maybe earlier…i don’t remember
exactly) so, unless you have generated one there will not be one…but,
if there is one the system will read it (in 11.4, i don’t know about
12.1)…
this may not solve the netbeans problem, but i can’t imagine how it
could hurt:
-
read my sig’s caveat
-
undo the changes you made to create or edit 91-ServerFlags.conf and
xorg.conf.instal
-
create a new file (as root, you can use a root powered kwrite, for
example, or mc, or vim or or or) /etc/X11/xorg.conf and (assuming you
got this ‘fix’ from a reliable source and it is the correct fix for your
symptoms–none of which i have tried to verify) type into the new file:
#/.../
# /etc/X11/xorg.conf file generated to solve netbeans problem
# Created by: [soundlord]
# Created on: 2011-11-xx
Section "ServerFlags"
Option "AllowDeactivateGrabs" "yes"
EndSection
# end file
save it, shutdown X (just right click on desktop and log out of the
session) then log back in (which will start a new X) and then give your
netbean a whirl…
let us know how you get on…
–
DD
http://tinyurl.com/DD-Caveat
openSUSE®, the “German Automobiles” of operating systems
On 2011-11-05 07:50, DenverD wrote:
> - undo the changes you made to create or edit 91-ServerFlags.conf and
> xorg.conf.instal
xorg.conf.instal should not be changed. It is the configuration used during
the installation.
–
Cheers / Saludos,
Carlos E. R.
(from 11.4 x86_64 “Celadon” at Telcontar)
assuming you
got this ‘fix’ from a reliable source and it is the correct fix for your
symptoms
I refer to the http://wiki.netbeans.org/FaqDebuggingAWTXWindows
xorg.conf.instal should not be changed. It is the configuration used during
the installation.
Hopefully when I edit or add stuff in config files I always did backups and joe mirrors the edited files.
I’ll try the different tracks and go back if this is now possible to put breakpoints on JComboBox, or JListBox event handlers…
Thanks a lot robin_listas and DenverD ^^