Re: Cannot run Qt5 applications.

2015-02-13 Thread Jon TURNEY

On 05/02/2015 01:40, Jon TURNEY wrote:

On 04/02/2015 23:20, David Stacey wrote:

I'm having difficulty running any Qt5 application. These are the
commands I'm issuing:

 XWin -multiwindow &
 export DISPLAY=:0.0
 xclock &

and I see the clock, so X is up and running. Then:

 /usr/lib/qt5/examples/gui/analogclock/analogclock
 QXcbConnection: XCB error: 145 (Unknown), sequence: 162, resource
id: 0, major c
 ode: 140 (Unknown), minor code: 20
 Bad system call (core dumped)


Possibly you need to install and start cygserver (See [1])

If so, this is because Qt5 is assuming shared memory is available, which
could possibly be handled in a better way...

[1]  http://x.cygwin.com/docs/ug/using-shared-memory.html


Yaakov,

This looks like a portability problem in Qt5, where it only handles 
shmget() failing with a return value of -1, not with SIGSYS, to fallback 
to using an image in unshared memory.


Patch attached.

--
Jon TURNEY
Volunteer Cygwin/X X Server maintainer
--- 
origsrc/qtbase-opensource-src-5.3.2/src/plugins/platforms/xcb/qxcbbackingstore.cpp
  2014-09-11 11:48:06.0 +0100
+++ 
src/qtbase-opensource-src-5.3.2/src/plugins/platforms/xcb/qxcbbackingstore.cpp  
2015-02-13 17:30:11.410525500 +
@@ -75,6 +75,7 @@ public:
 
 private:
 void destroy();
+static bool isShmSupported();
 
 xcb_shm_segment_info_t m_shm_info;
 
@@ -88,6 +89,44 @@ private:
 QRegion m_dirty;
 };
 
+static bool shmNotSupported = false;
+
+static void
+SigSysHandler(int signo)
+{
+shmNotSupported = true;
+}
+
+bool
+QXcbShmImage::isShmSupported()
+{
+static bool checked = false;
+if (!checked)
+  {
+void (*oldHandler)(int);
+int shmid = -1;
+
+/* If no SHM support in the kernel, the bad syscall will generate 
SIGSYS */
+oldHandler = signal(SIGSYS, SigSysHandler);
+
+shmNotSupported = false;
+shmid = shmget(IPC_PRIVATE, 4096, IPC_CREAT);
+if (shmid != -1)
+  {
+/* Successful allocation - clean up */
+shmctl(shmid, IPC_RMID, NULL);
+  }
+else
+  {
+/* Allocation failed */
+shmNotSupported = true;
+  }
+signal(SIGSYS, oldHandler);
+checked = true;
+  }
+return (!shmNotSupported);
+}
+
 QXcbShmImage::QXcbShmImage(QXcbScreen *screen, const QSize &size, uint depth, 
QImage::Format format)
 : QXcbObject(screen->connection())
 , m_gc(0)
@@ -116,7 +155,9 @@ QXcbShmImage::QXcbShmImage(QXcbScreen *s
 if (!segmentSize)
 return;
 
-int id = shmget(IPC_PRIVATE, segmentSize, IPC_CREAT | 0600);
+int id = -1;
+if (isShmSupported())
+  id = shmget(IPC_PRIVATE, segmentSize, IPC_CREAT | 0600);
 if (id == -1)
 qWarning("QXcbShmImage: shmget() failed (%d) for size %d (%dx%d)",
  errno, segmentSize, size.width(), size.height());
@@ -130,7 +171,7 @@ QXcbShmImage::QXcbShmImage(QXcbScreen *s
 xcb_generic_error_t *error = NULL;
 if (shm_present)
 error = xcb_request_check(xcb_connection(), 
xcb_shm_attach_checked(xcb_connection(), m_shm_info.shmseg, m_shm_info.shmid, 
false));
-if (!shm_present || error) {
+if (!shm_present || error || (id == -1)) {
 free(error);
 
 shmdt(m_shm_info.shmaddr);
--
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/

[ANNOUNCEMENT] Updated: gnubg-1.04.000-1: A backgammon player and analysis tool.

2015-02-13 Thread Dr . Volker Zell
Hi

A new version of 'gnubg' has been uploaded to a server near you.

 o Build for cygwin 1.7.34 with gcc-4.9.2
 o Update to latest upstream
 o Build against libpng16, libgmp10


gnubg NEWS:
===
  
 o No real NEWS available


CYGWIN-ANNOUNCE UNSUBSCRIBE INFO



If you want to unsubscribe from the cygwin-announce mailing list, please
use the automated form at:


http://cygwin.com/lists.html#subscribe-unsubscribe

If this does not work, then look at the "List-Unsubscribe: " tag in the
email header of this message.  Send email to the address specified
there.  It will be in the format:


cygwin-announce-unsubscribe-you=yourdomain.com  cygwin.com

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

--
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/



[ANNOUNCEMENT] Updated: gnuplot-5.0.0-1: A command-line driven interactive function plotting utility

2015-02-13 Thread Dr . Volker Zell
Hi

A new version of 'gnuplot' has been uploaded to a server near you.

 o Update to latest upstream release.
 o Build for cygwin 1.7.34 with gcc-4.9.2
 o Build against libpng16, libgd3


gnuplot NEWS:
=
  
Changes in final release of 5.0
===
* CHANGE reorder PostScript dash types to match other terminals
* CHANGE disable the wxt toolbar when the plot is left in -persist mode
* FIX lt 0 rendering by libgd and qt terminals
* FIX paxis tic and range settings were not being saved
* FIX ignore unwanted delta_y so that it doesn't cause problems for logscale y
* FIX more complete tests for validity of linked axis inverse mapping function
* FIX cairo terminals dashed-line rendering in 3D plots
* FIX wxt terminal assert/segfault failures when linked against wxgtk3.0
* FIX 'set log x' should not affect the sampling variable in a sampled plot 
* FIX windows terminal font encoding issues
* FIX 'pause mouse' interactions for MSWin terminals

Changes in 5.0.rc3
=

* NEW new command set {xyz}tics {timedate|geographic|numeric} sets axis->tictype
* NEW add the tictype keywords to set format {axis} {time|geographic|numeric}
* NEW format modifier 't' in timedate mode indicates a time rather than a date
* NEW export-to-file toolbar widget for wxt terminal
* CHANGE separate input format (axis->datatype) and output format 
(axis->tictype)
* CHANGE report and save xyz position using time coordinates if appropriate
* CHANGE emulate v4 syntax for timecolumn()
* CHANGE revised v5 "fit" syntax does not match -rc1 and -rc2
* CHANGE auto-detect and accept v4 "fit" syntax
* CHANGE remove obsolete terminals aed and v384
* FIX "splot ... with dots" was not drawing the dots
* FIX revert arrowhead changes introduced in -rc1
* FIX lua terminal support for LT_NODRAW, RGBA linecolors
* FIX stats code was confusing x- and y- dimensions of matrix data
* FIX track :Italic and :Bold given in "set term" for cairo terminals
* FIX if $2 is NaN, plot FOO using 1:(oops=f($2)) should set oops to NaN

Changes in 5.0.rc2
==

* NEW grey out key entries when corresponding plot is toggled off
* NEW allow parenthesized expressions as call parameters
* NEW set margins , , , 
* NEW set trange [theta_min:theta_max] filters input data in polar plots
* NEW "set mouse zoomfactors ,"
* NEW New matrix keywords for text data: "columnheaders" and "rowheaders"
* CHANGE apply "set key {no}enhanced}" to the key title
* CHANGE scale dashlength with line width
* CHANGE respond to left mouse click on press rather than on release
* CHANGE remove bf_test dependence on all other gnuplot files and libraries
* CHANGE apply default rectangle style during "set obj" rather than when drawn
* FIX wxgtk3 requires initialization of Xthreads
* FIX width adjustment for long key title in multicolumn keys
* FIX treat data value read as "NaN" the same as we would "1/0"
* FIX handle pointtype PT_CHARACTER in 3D plots
* FIX do not store long strings (e.g. epslatex_header) in terminal options array
* FIX [maybe] extra resize of initial qt window may fix problems on OSX, Debian
* FIX handling of events triggered by closing the qt plot window
* FIX refresh of plot with log-scaled color box
* FIX MSWin pipe issues
* FIX if terminal is in "monochrome" mode, convert color requests to black
* FIX apply user-defined line colors to text color also
* FIX Fix y extent and clipping of rectangles with y<0 or inverted axes
* FIX dashtype bugs in rectangles, arrows, and probably other things


New features, changes and fixes in gnuplot version 5.0
==

* NEW The dashtype property on any line can be seperately controlled
* NEW custom dashtypes
* NEW LFS support for datafiles
* NEW timecolumn(col,"timeformat') now requires 2nd parameter, the format
* NEW 'set view map {scale}' allows resizing a 3D projection plot
* NEW 'nodraw' keyword to suppress lines (e.g. in style linespoints)
* NEW bold/italic text markup in enhanced text mode
* NEW bit-shifing binary operators << and >>
* NEW stat calculates skewness, kurtosis, and standard errors
* NEW function plugins, e.g. 'import f(x) from "plugins.so"'
* NEW option to tabulate all input columns "set table; plot ... with table" 
* NEW smoothing option "mcsplines" for piecewise monotonic cubic splines
* NEW 'history !N' reexecutes the command at history entry N.
* NEW 'set history {size } {quiet|numbers} {full|trim} {default}'
* NEW piecewise functions via separate sampling ranges for each plot element
* NEW function hsv2rgb(H,S,V) creates a 24-bit RGB value
* NEW plot title can be placed next to the plot line in the graph proper
* NEW inline data can be stored for reuse in named data blocks
* NEW 'set print|table $datablock' to redirect output to a named data block
* NEW hypertext labels can be displayed on mouse-over
* NEW geographic (Degrees Minutes Seconds) data axes
* NEW set arrow  from  length  angle 
* NEW arrow style keywords "nobor

[ANNOUNCEMENT] Updated: {XmHTML/libXmHTML0/XmHTML-devel}-1.1.7-13: A widget capable of displaying HTML 3.2 conforming text

2015-02-13 Thread Dr . Volker Zell
Hi

New versions of 'XmHTML/libXmHTML0/XmHTML-devel' have been uploaded to a server 
near you.

 o Build for cygwin 1.7.34 with gcc-4.9.2
 o Build against libpng16


CYGWIN-XFREE-ANNOUNCE UNSUBSCRIBE INFO
==

If you want to unsubscribe from the cygwin-xfree-announce mailing list,
please use the automated form at:

http://cygwin.com/lists.html#subscribe-unsubscribe

If this does not work, then look at the "List-Unsubscribe: " tag in the
email header of this message.  Send email to the address specified
there.  It will be in the format:

cygwin-xfree-announce-unsubscribe-you=yourdomain.com  cygwin.com

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

--
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/



[ANNOUNCEMENT] Updated: {xfig/xfig-lib}-3.2.5c-2: An interactive drawing tool

2015-02-13 Thread Dr . Volker Zell
Hi

New versions of 'xfig/xfig-lib' have been uploaded to a server near you.

 o Build for cygwin 1.7.34 with gcc-4.9.2
 o Build against libpng16


CYGWIN-XFREE-ANNOUNCE UNSUBSCRIBE INFO
==

If you want to unsubscribe from the cygwin-xfree-announce mailing list,
please use the automated form at:

http://cygwin.com/lists.html#subscribe-unsubscribe

If this does not work, then look at the "List-Unsubscribe: " tag in the
email header of this message.  Send email to the address specified
there.  It will be in the format:

cygwin-xfree-announce-unsubscribe-you=yourdomain.com  cygwin.com

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

--
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/



[ANNOUNCEMENT] Updated: ted-2.23-3: An easy rich text processor

2015-02-13 Thread Dr . Volker Zell
Hi

A new version of 'ted' has been uploaded to a server near you.

 o Build for cygwin 1.7.34 with gcc-4.9.2
 o Build against libpng16, libtiff6


CYGWIN-XFREE-ANNOUNCE UNSUBSCRIBE INFO
==

If you want to unsubscribe from the cygwin-xfree-announce mailing list,
please use the automated form at:

http://cygwin.com/lists.html#subscribe-unsubscribe

If this does not work, then look at the "List-Unsubscribe: " tag in the
email header of this message.  Send email to the address specified
there.  It will be in the format:

cygwin-xfree-announce-unsubscribe-you=yourdomain.com  cygwin.com

If you need more information on unsubscribing, start reading here:

http://sourceware.org/lists.html#unsubscribe-simple

Please read *all* of the information on unsubscribing that is available
starting at this URL.

--
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 XDMCP Issue

2015-02-13 Thread Jon TURNEY

On 13/02/2015 07:24, Maarten Hoes wrote:

 > On 2-2-2015 16:20, Jon TURNEY wrote:
 > If you can provide the details of the linux distribution and release
 > you are using on your remote host, I can see if I can try to
 > reproduce the problem.

I was wondering if you managed to reproduce the issue ?


Yes, I can reproduce it.

It seems that the XRANDR data which XWin returns isn't quite complete, 
which tickles a bug in Gnome [1] "primaryMonitor is undefined", which 
prevents the login greeter from being displayed.


I've been testing a fix for that issue in XWin.

This gets you the greeter login screen.  Unfortunately there seem to be 
other bugs, which prevent login from working.  These also occur when 
starting an XDMCP session from linux, so I don't think these are XWin 
issues.


[1] https://bugzilla.gnome.org/show_bug.cgi?id=736054

--
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/