Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#23131 - [gnuplot] program crash when using wxt terminal and plotting from script

Attached to Project: Arch Linux
Opened by Roy Zuo (roylez) - Friday, 04 March 2011, 13:09 GMT
Last edited by Allan McRae (Allan) - Saturday, 16 June 2012, 07:26 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When the output terminal is set to be wxt (the default one), running gnuplot with a plot script makes the program crash and yields the following error message:

> gnuplot -p < abc.gpi
<unknown>: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.
gnuplot: xcb_io.c:221: poll_for_event: Assertion `(((long) (event_sequence) - (long) (dpy->request)) <= 0)' failed.
[1] 5645 abort gnuplot -p < abc.gpi

Changing output terminal to be ``x11'' eliminates the issue.

Additional info:
* package version(s)

Name : gnuplot
Version : 4.4.2-2
Architecture : i686

* config and/or log files etc.


Steps to reproduce:

Run command ``gnuplot -p < abc.gpi'' with the attached script.
   abc.gpi (5.4 KiB)
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 16 June 2012, 07:26 GMT
Reason for closing:  Fixed
Comment by François (Spip) - Thursday, 05 May 2011, 19:22 GMT
Same architecture, same version, same revision and it works fine for me...
Comment by Roy Zuo (roylez) - Friday, 06 May 2011, 00:11 GMT
Wired. I still have the problem here though my laptop is always up-to-date.

> gnuplot -p -e 'set term wxt; plot sin(x)'
gnuplot: xcb_io.c:221: poll_for_event: Assertion `(((long) (event_sequence) - (long) (dpy->request)) <= 0)' failed.
^C[1] 3902 terminated gnuplot -p -e 'set term wxt; plot sin(x)'
> gnuplot -p -e 'set term x11; plot sin(x)'
# nothing here, everything goes fine ...
Comment by Ronald van Haren (pressh) - Friday, 06 May 2011, 05:36 GMT
the above command works fine for me on x86_64.

I'll update gnuplot later today, please see if that still gives the same error.
Comment by François (Spip) - Friday, 06 May 2011, 05:43 GMT
Well, I just remember I'm using gnuplot provided by an AUR contributor with Tikz support (see  FS#22205 ). It might be a clue. (Sorry for the confusion)
Comment by Roy Zuo (roylez) - Friday, 06 May 2011, 14:41 GMT
The problem still exists. However, it gives something slightly different.

I tried running gnuplot with that "--sync" option, however gnuplot does not seem to recognize it.


> gnuplot --version
gnuplot 4.4 patchlevel 3
> gnuplot -p -e 'set term wxt; plot sin(x)'
gnuplot: xcb_io.c:221: poll_for_event: Assertion `(((long) (event_sequence) - (long) (dpy->request)) <= 0)' failed.
The program '<unknown>' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 967 error_code 3 request_code 2 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
[1] 12037 abort gnuplot -p -e 'set term wxt; plot sin(x)'
Comment by Allan McRae (Allan) - Saturday, 02 June 2012, 12:17 GMT
Status? Works for me...
Comment by Roy Zuo (roylez) - Saturday, 16 June 2012, 06:46 GMT
The problem is gone, maybe fixed upstream.

Version 4.6 patchlevel 0 last modified 2012-03-04
Build System: Linux x86_64

Loading...