Re: X, backingstore and opengl
Angelo Graziosi wrote: Jon TURNEY wrote so perhaps you could try ftp://cygwin.com/pub/cygwinx/XWin.20081204180806.exe.bz2 and see if that one fails for you Now it fails! For the sake of completeness, attached the stackdump files and the GDB infos as requested here [1], cygcheck.out in [2]. Great, thanks very much. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
Jon TURNEY wrote so perhaps you could try ftp://cygwin.com/pub/cygwinx/XWin.20081204180806.exe.bz2 and see if that one fails for you Now it fails! For the sake of completeness, attached the stackdump files and the GDB infos as requested here [1], cygcheck.out in [2]. Cheers, Angelo. --- [1] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00395.html [2] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00332/cygcheck-XWin_log.tar.bz2 XWin_failure_with_bs.tar.bz2 Description: Binary data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
Angelo Grandiosity wrote: Jon TURNEY wrote: glxgears, glxinfo are GL demo programs which come with mesa (the OpenGL library) It would be useful if you could install the mesa package and check if glxinfo, glxgears work for you. You have ignored my cygchec.out here [1]. I have those packages installed and glxgears, glxinfo seem to work (see opengl.txt below). Thanks. The output of glxgears and glxinfo all looks as expected. Irrespective of if I use +bs or not, with 1.5.3-4, simple.C runs ok, geom/shapes.C causes ROOT to segfault unless XLIB_SKIP_ARGB_VISUALS is used. You should raise the ROOT segfault as an issue with the ROOT developers. They will be far more qualified to diagnose the issue than me. The fact that also XWin segfaults, means it isn't a problem only for ROOT developers... I'm not saying it's a problem only for them, I'm saying they know far more about the internals of ROOT than me. Please try to look at this from my perspective: For all I know, you may have 2 separate problems. For me geom/Shapes.C always segfaults ROOT unless I have XLIB_SKIP_ARGB_VISUALS set. This is suggestive that ROOT can't handle ARGB visuals. ROOT is the only OpenGL application that Cygwin/X has reported problems with at the moment. If you wouldn't mind trying again, I've built a slightly different debug version, which you can get from: ftp://cygwin.com/pub/cygwinx/XWin.20081203132739.exe.bz2 Just for completeness, I have tried and IT WORKS JUST FINE and without XLIB_SKIP_ARGB_VISUALS! Respect to the previous testing-XWin you have proposed, with XWin.20081203132739 also the keyboard works just fine!!! So, I doubt we are referring to the same failing XWin which one finds on the mirrors... I know you must be finding this frustrating, I know I am. But I am not lying to you when I say that I am using Xwin.exe from 1.5.3-4 and it doesn't fail for me when I run ROOT simple.C, irrespective of if I have +bs selected or not. I don't have some secret Cyginw/X goodness which I'm not putting into the X server which gets uploaded to the mirrors for some bizarre motive. :-) Ok. I've spent a bit more time to carefully build an image which should be identical to the 1.5.3-4 one except for the addition of debug symbols, so perhaps you could try ftp://cygwin.com/pub/cygwinx/XWin.20081204180806.exe.bz2 and see if that one fails for you. Failing that, can you post the XWin.exe.stackdump file which is generated when the 1.5.3-4 X server segfaults for you, and I'll see if I can extract some useful information from that. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
Angelo Graziosi wrote: Jon TURNEY wrote: I'm sorry, your our previous mail hadn't really made it clear to me that there was problem with glxgears etc. Just for my comprehension, can you explain again what happens if you run glxinfo and glxgears on 1.5.3-4. Really, in my posts, I never cited 'glxgears', 'glxinfo' etc. Sincerely, I do not know what they are... Ah, I'm sorry. By OpenGL demos you mean the ones which come with ROOT. glxgears, glxinfo are GL demo programs which come with mesa (the OpenGL library) It would be useful if you could install the mesa package and check if glxinfo, glxgears work for you. I have written: 1. Adding +bs at command line which starts XWin (in startxwin.bat) and then trying to run some ROOT macro (hsimple.C etc.) both ROOT and XWin-1.5.3-4 (from [1]) segfault. Using YOUR XWin with debug info etc., ROOT, hsimple.C etc. work fine, i.e. NO segfault etc. 2. Adding +bs at command line which starts XWin (in startxwin.bat) and then trying to run some ROOT OPENGL macro (geom/shapes.C, for example see [2]) then the macro fails to be excuted (see [2]), but it works if I omit '+bs' OR if I use the workaround described here [3] OR if I use YOUR debug XWin.exe! MAY YOU try [1] with the steps described in [2] and confir/or not the segfaults? Yes, I have tried running the ROOT application, but I am afraid I cannot reproduce your problem. Irrespective of if I use +bs or not, with 1.5.3-4, simple.C runs ok, geom/shapes.C causes ROOT to segfault unless XLIB_SKIP_ARGB_VISUALS is used. You should raise the ROOT segfault as an issue with the ROOT developers. They will be far more qualified to diagnose the issue than me. If you wouldn't mind trying again, I've built a slightly different debug version, which you can get from: ftp://cygwin.com/pub/cygwinx/XWin.20081203132739.exe.bz2 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
Jon TURNEY wrote: glxgears, glxinfo are GL demo programs which come with mesa (the OpenGL library) It would be useful if you could install the mesa package and check if glxinfo, glxgears work for you. You have ignored my cygchec.out here [1]. I have those packages installed and glxgears, glxinfo seem to work (see opengl.txt below). Irrespective of if I use +bs or not, with 1.5.3-4, simple.C runs ok, geom/shapes.C causes ROOT to segfault unless XLIB_SKIP_ARGB_VISUALS is used. You should raise the ROOT segfault as an issue with the ROOT developers. They will be far more qualified to diagnose the issue than me. The fact that also XWin segfaults, means it isn't a problem only for ROOT developers... If you wouldn't mind trying again, I've built a slightly different debug version, which you can get from: ftp://cygwin.com/pub/cygwinx/XWin.20081203132739.exe.bz2 Just for completeness, I have tried and IT WORKS JUST FINE and without XLIB_SKIP_ARGB_VISUALS! Respect to the previous testing-XWin you have proposed, with XWin.20081203132739 also the keyboard works just fine!!! So, I doubt we are referring to the same failing XWin which one finds on the mirrors... Cheers, Angelo. --- [1] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00332.html opengl.txt.bz2 Description: Binary data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
Angelo Graziosi wrote: Jon TURNEY wrote: Ok, I've tried this and a few other things an I can't reproduce this, so I'd like your help to get a backtrace if you are willing: 1. Download http://www.dronecode.org.uk/cygwin/XWin.exe.bz2 (this is a build of XWin with debugging symbols) 2. bunzip2.exe XWin.exe.bz2 3. export CYGWIN=$CYGWIN error_start=gdb -nw %1 %2 4. ./XWin.exe -multiwindow -clipboard +bs 5. Do what ever you do to reproduce the problem 6. When a gdb window pops up, wait for the (gdb) prompt, then thread apply all bt full 7. Mail me the output I have done the above, but the 'XWin.exe' you propose DOES NOT segfault! Well, this is very confusing. However I note: 1. it has the icon of X11R6.99, not that of X11R7.4 2. with it, I have the keyboard layout problem described here [1], and rebasing does not solve 3. with it not only ROOT, hsimple.C etc. work but the OpenGL demos work without the workaround described here [2] (remember the OpenGL problems here [3]). I'm sorry, your our previous mail hadn't really made it clear to me that there was problem with glxgears etc. Just for my comprehension, can you explain again what happens if you run glxinfo and glxgears on 1.5.3-4. 4. When I R-click on systray icon, mine 'XWin.exe', which comes from [*], has a context menu with five items: Don't worry about differences 1), 2) and 4), they are just artefacts of the quick way I made the test build. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
Jon TURNEY wrote: I'm sorry, your our previous mail hadn't really made it clear to me that there was problem with glxgears etc. Just for my comprehension, can you explain again what happens if you run glxinfo and glxgears on 1.5.3-4. Really, in my posts, I never cited 'glxgears', 'glxinfo' etc. Sincerely, I do not know what they are... I have written: 1. Adding +bs at command line which starts XWin (in startxwin.bat) and then trying to run some ROOT macro (hsimple.C etc.) both ROOT and XWin-1.5.3-4 (from [1]) segfault. Using YOUR XWin with debug info etc., ROOT, hsimple.C etc. work fine, i.e. NO segfault etc. 2. Adding +bs at command line which starts XWin (in startxwin.bat) and then trying to run some ROOT OPENGL macro (geom/shapes.C, for example see [2]) then the macro fails to be excuted (see [2]), but it works if I omit '+bs' OR if I use the workaround described here [3] OR if I use YOUR debug XWin.exe! MAY YOU try [1] with the steps described in [2] and confir/or not the segfaults? Cheers, Angelo. --- [1] ftp://mirrors.kernel.org/sourceware/cygwin/release/X.Org/xorg-server/xorg-server-1.5.3-4.tar.bz2 [2] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00332.html [3] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00017.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
Angelo Graziosi ha scritto: Jon TURNEY wrote: Ok, I've tried this and a few other things an I can't reproduce this, so I'd like your help to get a backtrace if you are willing: 1. Download http://www.dronecode.org.uk/cygwin/XWin.exe.bz2 (this is a build of XWin with debugging symbols) 2. bunzip2.exe XWin.exe.bz2 3. export CYGWIN=$CYGWIN error_start=gdb -nw %1 %2 4. ./XWin.exe -multiwindow -clipboard +bs 5. Do what ever you do to reproduce the problem 6. When a gdb window pops up, wait for the (gdb) prompt, then thread apply all bt full 7. Mail me the output I have done the above, but the 'XWin.exe' you propose DOES NOT segfault! However I note: 1. it has the icon of X11R6.99, not that of X11R7.4 2. with it, I have the keyboard layout problem described here [1], and rebasing does not solve 3. with it not only ROOT, hsimple.C etc. work but the OpenGL demos work without the workaround described here [2] (remember the OpenGL problems here [3]). 4. When I R-click on systray icon, mine 'XWin.exe', which comes from [*], has a context menu with five items: Reload .XWinrc Applications Hide Root Window About... Exit... YOUR 'XWin.exe' has only three items: Hide Root Window About... Exit... may you try [*]? Thanks, Angelo. --- [*] ftp://mirrors.kernel.org/sourceware/cygwin/release/X.Org/xorg-server/xorg-server-1.5.3-4.tar.bz2 Apart from 2., with your XWin.exe, ROOT works just as with the old X11R6... Cheers, Angelo. --- [1] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00045.html [2] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00017.html [3] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00332.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
Angelo Graziosi wrote: I agree with all BUT NOT with THIS: 1.5.3-4 +bsok (redrawing of area under menus is messed up) In my case (hsimple.C test) 1.5.3-4 +bsGIVES server segfault Are you sure you have started 1.5.3-4 with '+bs'? Indeed I have verified that '1.5.3-4 +bs' works fine in redrawing the overlapped area (I have done this with another application, PAW from CERNLIB). Perhaps you have just started 1.5.3-4 thinking you have added +bs, but really omitting it. May you retry? Ok, I've tried this and a few other things an I can't reproduce this, so I'd like your help to get a backtrace if you are willing: 1. Download http://www.dronecode.org.uk/cygwin/XWin.exe.bz2 (this is a build of XWin with debugging symbols) 2. bunzip2.exe XWin.exe.bz2 3. export CYGWIN=$CYGWIN error_start=gdb -nw %1 %2 4. ./XWin.exe -multiwindow -clipboard +bs 5. Do what ever you do to reproduce the problem 6. When a gdb window pops up, wait for the (gdb) prompt, then thread apply all bt full 7. Mail me the output -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
Jon TURNEY wrote: Ok, I've tried this and a few other things an I can't reproduce this, so I'd like your help to get a backtrace if you are willing: 1. Download http://www.dronecode.org.uk/cygwin/XWin.exe.bz2 (this is a build of XWin with debugging symbols) 2. bunzip2.exe XWin.exe.bz2 3. export CYGWIN=$CYGWIN error_start=gdb -nw %1 %2 4. ./XWin.exe -multiwindow -clipboard +bs 5. Do what ever you do to reproduce the problem 6. When a gdb window pops up, wait for the (gdb) prompt, then thread apply all bt full 7. Mail me the output I have done the above, but the 'XWin.exe' you propose DOES NOT segfault! However I note: 1. it has the icon of X11R6.99, not that of X11R7.4 2. with it, I have the keyboard layout problem described here [1], and rebasing does not solve 3. with it not only ROOT, hsimple.C etc. work but the OpenGL demos work without the workaround described here [2] (remember the OpenGL problems here [3]). Apart from 2., with your XWin.exe, ROOT works just as with the old X11R6... Cheers, Angelo. --- [1] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00045.html [2] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00017.html [3] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00332.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
Angelo Graziosi wrote: Regarding the problems I have flagged in [1], the first (related to the option +bs of XWin, i.e. the backing store) is still there, also with the recent xorg-server-1.5.3-4. I'm a little bit confused what problems remain, so I'll tell you my results and you can tell me if you agree hsimple.C test 1.5.3-3 +bsserver segfault 1.5.3-4 +bsok (redrawing of area under menus is messed up) 1.5.3-4ok geom/shapes.C test 1.5.3-3 +bsroot segfault 1.5.3-4 +bsroot segfault 1.5.3-4root segfault fixed by adding XLIB_SKIP_ARGB_VISUALS For the second (that related to OpenGL applications), I have found the workaround described here [2]. Now, if nedit needs rebuilding with a patch to work around an issue in lesstif with the latest X server. how can I do the same for ROOT? Which is that patch? or what else? If you follow the chain of emails back, they lead to http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/app-editors/nedit/files/nedit-5.5-argbvisuals.patch I'm not 100% convinced this is the core issue there, you might like to ask the ROOT developers if it can handle the server reporting visuals with alpha -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
Jon TURNEY wrote: tell me if you agree I agree with all BUT NOT with THIS: 1.5.3-4 +bsok (redrawing of area under menus is messed up) In my case (hsimple.C test) 1.5.3-4 +bsGIVES server segfault Are you sure you have started 1.5.3-4 with '+bs'? Indeed I have verified that '1.5.3-4 +bs' works fine in redrawing the overlapped area (I have done this with another application, PAW from CERNLIB). Perhaps you have just started 1.5.3-4 thinking you have added +bs, but really omitting it. May you retry? Thanks, Angelo. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
This seem to be the same problem than me : http://www.mail-archive.com/cygwin-xfree@cygwin.com/msg18009.html 2008/11/24 Angelo Graziosi [EMAIL PROTECTED]: I want to flag the following problems I have met with X11R7.4 and the application ROOT [1]. To reproduce them, you should not need to rebuild ROOT under X11R7.4 but it is sufficient to install pre-built binaries, even if they result from a build under the previous X11R6.99: the 'effects' are the same. To install pre-built binaries, you have to do the following: wget ftp://root.cern.ch/root/root_v5.21.04.win32gcc-gcc-3.4.tar.gz tar -xzf root_v5.21.04.win32gcc-gcc-3.4.tar.gz -C /usr/local/ cd /usr/local export ROOTSYS=/usr/local/root export PATH=${PATH}:/usr/local/root/bin export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/root/lib cd root/tutorials/ Now the problems. I have always started the X server with the option '+bs', i.e. XWin -multiwindow -clipboard -silent-dup-error +bs (for example with a startxwin-2.bat which differs from the default only by '+bs') It enables the 'backingstore' which enable the 're-display' when two X windows are overlapped (otherwise they appear corrupted). With X11R7.4 here is what happens: -- $ root [...] root [0] .x hsimple.C -- At ROOT prompt (root [0]), you have to type '.x hsimple.C', which means run (.x) the macro hsimple.C; hsimple.C is a block of C/C++ code which ROOT executes as an interpreter. Well, after this, not only ROOT segfaults, but also the X server segfaults! If, instead, I DO NOT start X with +bs, i.e. if I use: XWin -multiwindow -clipboard -silent-dup-error (for example with the default startxwin.bat), the above example and others work fine, but... Many ROOT tutorials/examples are OpenGL applications, for example 'geom/shapes.C'. In this case, only ROOT segfaults as follows: --- $ root [...] root [0] .x ./geom/shapes.C root [1] Error in RootX11ErrorHandler: BadMatch (invalid parameter attributes) (XID: 14680185, XREQ: 62) assertion !c-xlib.lock failed: file /usr/src/ports/xorg/libxcb/libxcb-1.1-2/src/libxcb-1.1/src/xcb_xlib.c, line 73 Obviously, under X11R6.99 all the above works just fine. cygcheck.out and XWin.0.log attached. Cheers, Angelo. --- [1] http://root.cern.ch -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/ -- Florent Fievez [EMAIL PROTECTED] -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
X, backingstore and opengl
I want to flag the following problems I have met with X11R7.4 and the application ROOT [1]. To reproduce them, you should not need to rebuild ROOT under X11R7.4 but it is sufficient to install pre-built binaries, even if they result from a build under the previous X11R6.99: the 'effects' are the same. To install pre-built binaries, you have to do the following: wget ftp://root.cern.ch/root/root_v5.21.04.win32gcc-gcc-3.4.tar.gz tar -xzf root_v5.21.04.win32gcc-gcc-3.4.tar.gz -C /usr/local/ cd /usr/local export ROOTSYS=/usr/local/root export PATH=${PATH}:/usr/local/root/bin export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/root/lib cd root/tutorials/ Now the problems. I have always started the X server with the option '+bs', i.e. XWin -multiwindow -clipboard -silent-dup-error +bs (for example with a startxwin-2.bat which differs from the default only by '+bs') It enables the 'backingstore' which enable the 're-display' when two X windows are overlapped (otherwise they appear corrupted). With X11R7.4 here is what happens: -- $ root [...] root [0] .x hsimple.C -- At ROOT prompt (root [0]), you have to type '.x hsimple.C', which means run (.x) the macro hsimple.C; hsimple.C is a block of C/C++ code which ROOT executes as an interpreter. Well, after this, not only ROOT segfaults, but also the X server segfaults! If, instead, I DO NOT start X with +bs, i.e. if I use: XWin -multiwindow -clipboard -silent-dup-error (for example with the default startxwin.bat), the above example and others work fine, but... Many ROOT tutorials/examples are OpenGL applications, for example 'geom/shapes.C'. In this case, only ROOT segfaults as follows: --- $ root [...] root [0] .x ./geom/shapes.C root [1] Error in RootX11ErrorHandler: BadMatch (invalid parameter attributes) (XID: 14680185, XREQ: 62) assertion !c-xlib.lock failed: file /usr/src/ports/xorg/libxcb/libxcb-1.1-2/src/libxcb-1.1/src/xcb_xlib.c, line 73 Obviously, under X11R6.99 all the above works just fine. cygcheck.out and XWin.0.log attached. Cheers, Angelo. --- [1] http://root.cern.ch cygcheck-XWin_log.tar.bz2 Description: Binary data -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/
Re: X, backingstore and opengl
Regarding the problems I have flagged in [1], the first (related to the option +bs of XWin, i.e. the backing store) is still there, also with the recent xorg-server-1.5.3-4. For the second (that related to OpenGL applications), I have found the workaround described here [2]. Now, if nedit needs rebuilding with a patch to work around an issue in lesstif with the latest X server. how can I do the same for ROOT? Which is that patch? or what else? Thanks, Angelo. --- [1] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00332.html [2] http://cygwin.com/ml/cygwin-xfree/2008-11/msg00017.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://x.cygwin.com/docs/ FAQ: http://x.cygwin.com/docs/faq/