Re: fltk / gl rendering problem

2013-06-16 Thread marco atzeri

Il 6/16/2013 4:51 PM, marco atzeri ha scritto:



Hi,
testing a octave/fltk graphics issue, I noticed that also the
demo of fltk with GL interface has a similar issue.

On http://matzeri.altervista.org/works/fltk_gl/
I uploaded the before and after apperance of "gl_overlay" demo.

It is enough to move the window to loose the geometrical
image while the bars are correctly re-drawn.

Running Xwin with -wgl does not show such defect, but it is
terribly slow. So I assume it is not a fltk defect but of
GL or XServer.

A copy of gl_overlay from fltk-1.3.1.9857-1 build is also uploaded.


Regards
Marco



further experiment showed that the defect is present when the integrate
windows manager is used. With external window manager (fvwm, openbox,.. 
) that defect does not apper.


With external window manager another defect appears, the upper
bar effect is not shown at all; while it is present on the integrated
window manager.

Regards
Marco


--
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: Cygwin/X crashes when combined with ssh/nx tunneling and -multiwindow

2013-06-16 Thread Matt D.

  > I've applied a fix to address the immediate problem of not checking
  > for the failure, and I've uploaded a snapshot at [1]. Perhaps you
  > could try that and see if it fixes the issue for you?

Yes, this solves the crash problem (thank you!).

  > I would also be interested to know how the icon for the window which
  > was causing this issue appears.

I've attached some screenshots of the taskbar and titlebar icons for 
Eclipse 4.2 using your XWin.exe build running with an without nx.


The titlebar icon does NOT appear when running Eclipse with vanilla X. 
The taskbar icon also uses full colors; I do not know if it's a 
different icon or if nx is using some kind of compression.


The second set of images (eclipse-4_2-nx_2 and eclipse-4_2-nonx_2) 
indicate the time of crash. When Eclipse starts up is displays a splash 
image which initially does not have an icon in its titlebar. Notably, a 
window border only appears when running Eclipse with nx. Despite not 
having a border, the icon is still relevant because it is the same one 
used to display in the taskbar.


The crash occurs when the icon is being loaded onto the splash window. 
To reiterate, the window is NOT created with this icon. It is loaded 
sometime later while Eclipse is initializing.


  > Hmm... this seems to indicate that icon was of size -1x-1, which
  > doesn't seem right...

Perhaps it has to do with the icon being applied after the window has 
already been created?


  > From the backtrace, it looks like the crash is occurring due to a
  > failure when converting the X11 icon to a Windows icon, and then not
  > checking properly for that failure.

It looked to me like the crash was occurring at line 264 of 
icon_convert.c; a memcpy to DIB_pixels which I believe was 
uninitialized. Regardless, the memcpy is one without verifying 
DIB_pixels or checking the return value of CreateBitmap.


This is what I has planned to look into.. if I ever get XWin.exe to compile.


(I can't seem to send images to the mailing list, so here they are)

These images illustrate the small titlebar icon and its accompanying 
taskbar icon:

http://codespunk.com/files/upload/eclipse-4_2-nonx.png
http://codespunk.com/files/upload/eclipse-4_2-nx.png

These images show the splash image and the visible border when using nx:
http://codespunk.com/files/upload/eclipse-4_2-nonx_2.png
http://codespunk.com/files/upload/eclipse-4_2-nx_2.png


On 2:59 PM, Jon TURNEY wrote:

On 15/06/2013 13:06, Matt D. wrote:

"Caught signal 11 (Segmentation fault). Server aborting"

So far I've only been able to duplicate this when tunneling Eclipse. I
tried writing a simple java program that creates a JFrame window but could
not replicate the crash with anything smaller (sorry!). The problem exists
in the two versions I tried: Eclipse 3.6 and 4.2.


I'm afraid your diagnosis is a bit speculative.


From the backtrace, it looks like the crash is occurring due to a failure when

converting the X11 icon to a Windows icon, and then not checking properly for
that failure.

I've applied a fix to address the immediate problem of not checking for the
failure, and I've uploaded a snapshot at [1]. Perhaps you could try that and
see if it fixes the issue for you?  If it does, I would also be interested to
know how the icon for the window which was causing this issue appears.

[1] ftp://cygwin.com/pub/cygwinx/XWin.20130615-git-9a3cc6b8d6f94f74.exe.bz2


Although the error message pops up, Cygwin/X doesn't actually terminate
until the error window that reports the segfault is closed. X continues to
work if I ignore it, however all of the newly created windows do not have
any titlebars or frame borders.


This is because the crash is occurring in the window manager thread, not the
server thread.


This problem does NOT occur when running with either a root window or with the 
'-rootless' option.

I've attached the XWin backtrace.


Thank you, this was very useful.


#27 0x0042c0fd in NetWMToWinIconAlpha (icon=0xff8d0030)
 at /usr/src/debug/xorg-server-1.14.1-1/hw/xwin/wmutil/icon_convert.c:264
 hdc =
 ii = {fIcon = 1, xHotspot = 0, yHotspot = 0, hbmMask = 0x0,
   hbmColor = 0x0}
 bmh = {bV4Size = 108, bV4Width = -1, bV4Height = 1, bV4Planes = 1,
   bV4BitCount = 32, bV4V4Compression = 3, bV4SizeImage = 0,
   bV4XPelsPerMeter = 0, bV4YPelsPerMeter = 0, bV4ClrUsed = 0,
   bV4ClrImportant = 0, bV4RedMask = 16711680, bV4GreenMask = 65280,
   bV4BlueMask = 255, bV4AlphaMask = 4278190080, bV4CSType = 0,
   bV4Endpoints = {ciexyzRed = {ciexyzX = 0, ciexyzY = 0,
   ciexyzZ = 0}, ciexyzGreen = {ciexyzX = 0, ciexyzY = 0,
   ciexyzZ = 0}, ciexyzBlue = {ciexyzX = 0, ciexyzY = 0,
   ciexyzZ = 0}}, bV4GammaRed = 0, bV4GammaGreen = 0,
   bV4GammaBlue = 0}
 width =
 height = 0
 pixels = 0xff8d0038
 result =
 DIB_pixels = 0x0


Hmm... this seems to indica

fltk / gl rendering problem

2013-06-16 Thread marco atzeri



Hi,
testing a octave/fltk graphics issue, I noticed that also the
demo of fltk with GL interface has a similar issue.

On http://matzeri.altervista.org/works/fltk_gl/
I uploaded the before and after apperance of "gl_overlay" demo.

It is enough to move the window to loose the geometrical
image while the bars are correctly re-drawn.

Running Xwin with -wgl does not show such defect, but it is
terribly slow. So I assume it is not a fltk defect but of
GL or XServer.

A copy of gl_overlay from fltk-1.3.1.9857-1 build is also uploaded.


Regards
Marco





--
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: Make error when compiling xserver-cygwin-1.14.1-1

2013-06-16 Thread Jon TURNEY
On 16/06/2013 13:37, Matt D. wrote:
> It seemed I had everything but flex. I downloaded that and double-checked all
> of the dependencies. Everything compiles now but I'm getting a linking error.

> Prepping, generating, and configuring:
> 
> cygport xorg-server.cygport prep
> autogen.sh -V
> configure
> 
> And on make I get the attached linker error. I've tried cleaning and
> redownloading twice now.

Ah.  I think that page is in need of an update.

It probably would be better if it told you to use 'cygport xorg-server.cygport
compile' to configure and build, as then the configuration would match the one
used to build packages, which is known to work.

> /usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/glx/dispatch.h:5827:
>  undefined reference to `__glapi_tls_Dispatch'

The undefined references to `__glapi_tls_Dispatch' should be fixed by
configuring with --disable-glx-tls [1]

> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: warning: 
> cannot find entry symbol rrwarn=E_BAD_PTR_INT_COMBINATION; defaulting to 
> 00401000

No idea about this.  You should probably be using gcc4, though.

> /usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:467:
>  undefined reference to `_wglSwapIntervalEXTWrapper'

These undefined references are a bit mysterious. These wgl*Wrapper functions
should by defined in the generated_wgl_wrappers.c generated file.

>> I think now might be an appropriate time to ask if you have all the
>> prerequisites listed in [1]?
> 
> Yes, I do. On that note, the prerequisites are missing:
> 
> libpixman1-devel
> libx11-devel
> libgl-devel
> libxkbfile-devel
> libxcb-image-devel
> lib-icccm-devel
> 
> (detected during configure)
> 
> and
> 
> glapi-devel
> 
> (detected at compile-time)

Thanks for the list. I'll update the documentation appropriately.

> There is also no sanity check for flex, although it is listed as a 
> prerequisite.

Ok.  I guess I need to add one then :-)

[1] http://cygwin.com/ml/cygwin-xfree/2011-10/msg00065.html

-- 
Jon TURNEY
Volunteer Cygwin/X X Server maintainer

--
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: Re: Make error when compiling xserver-cygwin-1.14.1-1

2013-06-16 Thread Matt D.
It seemed I had everything but flex. I downloaded that and 
double-checked all of the dependencies. Everything compiles now but I'm 
getting a linking error.


I am using a CLEAN install of cygwin with the following packages:

setup -P 
cygwin,autoconf,automake,binutils,bison,bzip2,cygport,diffutils,fileutils,findutils,flex,gawk,gcc,git,libtool,make,patch,pkg-config,sed,tar,w32api,dri-drivers,libbz2_1,libfontenc1,libfreetype6,libgcc1,libGL1,libpixman1_0,libX11_6,libXau6,libXdmcp6,libXext6,xauth,xcursor-themes,xkbcomp,xkeyboard-config,zlib0,libdmx1,libXaw7,libXfixes3,libXi6,libXmu6,libXmuu1,libXrender1,libXt6,bigreqsproto,compositeproto,damageproto,dmxproto,fixesproto,font-util,fontsproto,glproto,inputproto,kbproto,libXfont-devel,randrproto,recordproto,renderproto,resourceproto,scrnsaverproto,windowswmproto,xcmiscproto,xextproto,xf86bigfontproto,xineramaproto,xorg-util-macros,xproto,xtrans,khronos-opengl-registry,libpixman1-devel,libx11-devel,libgl-devel,libxkbfile-devel,libxcb-image-devel,lib-icccm-devel,glapi-devel


Prepping, generating, and configuring:

cygport xorg-server.cygport prep
autogen.sh -V
configure

And on make I get the attached linker error. I've tried cleaning and 
redownloading twice now.


> I think now might be an appropriate time to ask if you have all the
> prerequisites listed in [1]?

Yes, I do. On that note, the prerequisites are missing:

libpixman1-devel
libx11-devel
libgl-devel
libxkbfile-devel
libxcb-image-devel
lib-icccm-devel

(detected during configure)

and

glapi-devel

(detected at compile-time)

There is also no sanity check for flex, although it is listed as a 
prerequisite.


/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld: warning: 
cannot find entry symbol rrwarn=E_BAD_PTR_
INT_COMBINATION; defaulting to 00401000
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function 
`glxWinScreenSwapInterval':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:467:
 undefined reference to `_wglSwapIn
tervalEXTWrapper'
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function 
`glxWinDrawableDestroy':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:932:
 undefined reference to `_wglDestro
yPbufferARBWrapper'
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function `glxWinReleaseDC':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:1242:
 undefined reference to `_wglRelea
sePbufferDCARBWrapper'
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function 
`glxWinCreateContext':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:1624:
 undefined reference to `_glWinSet
upDispatchTable'
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function 
`fbConfigToPixelFormatIndex':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:1803:
 undefined reference to `_wglChoos
ePixelFormatARBWrapper'
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function `glxWinMakeDC':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:1204:
 undefined reference to `_wglGetPb
ufferDCARBWrapper'
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function 
`glxWinContextMakeCurrent':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:1497:
 undefined reference to `_wglMakeC
ontextCurrentARBWrapper'
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:1328:
 undefined reference to `_wglCreat
ePbufferARBWrapper'
../../hw/xwin/glx/.libs/libXwinGLX.a(indirect.o): In function 
`glxWinScreenProbe':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:596:
 undefined reference to `_wglResolv
eExtensionProcs'
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:603:
 undefined reference to `_wglGetExt
ensionsStringARBWrapper'
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:2087:
 undefined reference to `_wglGetPi
xelFormatAttribivARBWrapper'
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/hw/xwin/glx/indirect.c:2171:
 undefined reference to `_wglGetPi
xelFormatAttribivARBWrapper'
../../glx/.libs/libglx.a(glxcmds.o): In function `FlushContext':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/glx/dispatch.h:5827: 
undefined reference to `__glapi_tls_Dispa
tch'
../../glx/.libs/libglx.a(glxcmds.o): In function `DoMakeCurrent':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/glx/dispatch.h:5827: 
undefined reference to `__glapi_tls_Dispa
tch'
../../glx/.libs/libglx.a(glxcmds.o): In function `__glXDisp_WaitGL':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/glx/dispatch.h:5811: 
undefined reference to `__glapi_tls_Dispa
tch'
../../glx/.libs/libglx.a(glxcmds.o): In function `__glXDisp_CopyContext':
/usr/src/xorg-server-1.14.1-1/src/xserver-cygwin-1.14.1-1/glx/dispatch.h:5811: 
undefined reference to `__glapi_tls_Di