Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498746 - x11-terms/xfce4-terminal-0.6.2-r1 - launching terminal on second screen kills existing terminal that was running on first screen
Summary: x11-terms/xfce4-terminal-0.6.2-r1 - launching terminal on second screen kills...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 05:21 UTC by Chris Mansfield
Modified: 2020-07-17 17:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Mansfield 2014-01-21 05:21:40 UTC
I am running a dual-headed display ( screens :0.0 and :0.1 ). I updated x11-terms/xfce4-terminal today and since the update it is not able to run on both screens at the same time. I can launch it on screen :0.0 and it works fine, but as soon as I launch it on screen :0.1, the terminal window on :0.0 disappears. The same thing happens if I try it in reverse order - launching on :0.1 first and then :0.0, the terminal on :0.1 disappears.

Reproducible: Always

Steps to Reproduce:
1. Launch xfce4-terminal on display :0.0
2. Launch xfce4-terminal on display :0.1
3. The terminal on :0.1 opens normally but the one on :0.0 disappears.
Actual Results:  
this error message shows up:
The program 'xfce4-terminal' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 1586 error_code 8 request_code 1 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.)


Expected Results:  
I would like to have xfce4-terminals running on both displays at the same time.

chris@qfx ~ $ emerge --info
Portage 2.2.7 (default/linux/amd64/13.0/desktop, gcc-4.7.3, glibc-2.17, 3.10.17-gentoo x86_64)
=================================================================
System uname: Linux-3.10.17-gentoo-x86_64-AMD_FX-tm-4100_Quad-Core_Processor-with-gentoo-2.2
KiB Mem:    16177972 total,    103108 free
KiB Swap:     524284 total,    524284 free
Timestamp of tree: Tue, 21 Jan 2014 04:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.5-r3, 3.2.5-r3, 3.3.3
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.11.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.6.3, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo r3pek sunrise x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O -pipe -march=native"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo http://gentoo.mirrors.easynews.com/linux/gentoo/ http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo http://gentoo.mirrors.hoobly.com/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://lug.mtu.edu/gentoo/ ftp://lug.mtu.edu/gentoo/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.pair.com/ rsync://mirrors.rit.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://mirror.iawnet.sandia.gov/gentoo/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.llarian.net/ ftp://gentoo.mirrors.tds.net/gentoo rsync://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.lug.udel.edu/pub/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ rsync://gentoo.cs.uni.edu/gentoo-distfiles http://gentoo.cs.uni.edu/ http://mirror.usu.edu/mirrors/gentoo/ ftp://ftp.wallawalla.edu/pub/mirrors/ftp.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/r3pek /var/lib/layman/sunrise /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 aspell avahi berkdb bluetooth branding bzip2 cairo cdda cddb cdparanoia cdr cdrkit cli consolekit cracklib crypt cups cxx dbus dri dts dv dvd dvdr emboss encode exif fam fbconsole ffmpeg firefox flac foomaticdb fortran gdbm gif gimp gnome gnutls gpm gstreamer gtk iconv icu id3tag jack java jpeg ladspa lame lash lcms ldap libcaca libnotify lm_sensors lock mad melt midi mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib mysql nautilus ncurses nls nptl nsplugin ocr ogg opengl openmp pam pango pcre pdf pidgin png policykit ppds python python3 qt3support qt4 readline samba scanner sdl session spell sse sse2 sse3 ssl startup-notification svg swat taglib tcl tcpd theora threads thunar tiff timidity tk truetype udev udisks unicode upower usb vorbis wav webkit wma wmf wxwidgets x264 xcb xinerama xml xrandr xscreensaver xulrunner xv xvfb xvid zeroconf zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="i386 ppc ppc64 x86_64 arm m68k" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Samuli Suominen gentoo-dev 2014-01-21 06:01:00 UTC
(In reply to Chris Mansfield from comment #0)
> I would like to have xfce4-terminals running on both displays at the same
> time.

I have similar setup and it's working fine here. I expect this is a bug in X itself, but for heck of it, what version of xfce4-terminal? 0.6.3?
Comment 2 Chris Mansfield 2014-01-21 16:44:56 UTC
This is xfce4-terminal version 0.6.2-r1.
Comment 3 Chris Mansfield 2014-01-21 16:55:46 UTC
Just found the same problem reported here:

https://bugzilla.xfce.org/show_bug.cgi?id=10109

I'll try their workaround later today and see if it helps.
Comment 4 Samuli Suominen gentoo-dev 2014-01-21 17:29:42 UTC
(In reply to Chris Mansfield from comment #2)
> This is xfce4-terminal version 0.6.2-r1.

No good. I tried to say "Test latest first, that is 0.6.3"
Comment 5 Chris Mansfield 2014-01-22 05:01:28 UTC
Ok, I unmasked & emerged the 0.6.3 version. The problem did not go away.

I did confirm that the problem does not occur if I launch it using 'xfce4-terminal --disable-server'.
Comment 6 Samuli Suominen gentoo-dev 2014-01-22 06:22:55 UTC
x11@ team, can you look at Comment #0, and comment on it? Thanks.
Comment 7 Thomas Petersen 2014-01-23 11:51:18 UTC
I have just updated to 0.6.2-r1 as well and I get the same problem.

When using the --disable-server option I can run multiple terminals on different screens but that alters the behaviour of the program significantly. Now each and every terminal window has it's own process. In this case it is for instance not possible to move a tab from one terminal window to another.

With version 0.4.8 only one process was created for each different screen.
Comment 8 Matt Turner gentoo-dev 2017-01-26 06:34:27 UTC
Can anyone reproduce this with current stable?
Comment 9 Thomas Petersen 2017-01-29 16:04:59 UTC
I have done some testing on the various versions of xfce4-terminal:

0.6.3
The problem persists.
When opening a second terminal on another screen the first one is terminated.

$ xfce4-terminal --display=:0.1 &
[1] 19297
$ xfce4-terminal --display=:0.0 &
[2] 19518
The program 'xfce4-terminal' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 1267 error_code 8 request_code 1 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]-  Exit 1                  xfce4-terminal --display=:0.1

0.6.92
Behaves a bit better than 0.6.3. When running a terminal on another screen the existing terminal does not terminate but the new window opens on the same screen as the first terminal is run on.
To open a terminal on another screen the use of the --disable-server option is required.
The program prints out this warning by the way:
(xfce4-terminal:12220): Gdk-CRITICAL **: gdk_display_get_screen: assertion 'screen_num == 0' failed
This version has switched to gtk+3.

0.8.3
Does not print any assertion but otherwise behave like 0.6.92.
Comment 10 Matt Turner gentoo-dev 2017-01-29 17:28:38 UTC
(In reply to Samuli Suominen from comment #6)
> x11@ team, can you look at Comment #0, and comment on it? Thanks.

The "See Also" bug I'm adding has bisected it to a a commit to xfce4-terminal.
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-07-17 16:40:01 UTC
Does this still happen today?  If so, I'll ping upstream bug but I don't think there's anything I can do here (I don't think trying to revert upstream commits is a good idea here).  The current upstream report is:

https://gitlab.xfce.org/apps/xfce4-terminal/-/issues/3
Comment 12 Chris Mansfield 2020-07-17 17:30:09 UTC
(In reply to Michał Górny from comment #11)
> Does this still happen today?  If so, I'll ping upstream bug but I don't
> think there's anything I can do here (I don't think trying to revert
> upstream commits is a good idea here).  The current upstream report is:
> 
> https://gitlab.xfce.org/apps/xfce4-terminal/-/issues/3

I reconfigured my system a while back, so this no longer affects me and I don't think I could easily test it.