sgt-pattern draws in wrong window

Bug #1885411 reported by whitis on 2020-06-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sgt-launcher (Ubuntu)
Undecided
Unassigned

Bug Description

One of the two windows is blank and then it draws what it probably intended to draw in that window over the main window.

- sgt-launcher
- Pick pattern
- select a 10x10
- resize window larger (testing for legally blind user)
- play game
- upon completion, it draws the completed puzzle on top of the working puzzle instead of in the other window.

See attached screenshot

lsb_release -a; uname -a; dpkg -l sgt-puzzles; ldd /usr/games/sgt-pattern
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
Linux cervantes 5.3.0-53-generic #47~18.04.1-Ubuntu SMP Thu May 7 13:10:50 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-==============-============-============-=================================
ii sgt-puzzles 20170606.272 amd64 Simon Tatham's Portable Puzzle Co
 linux-vdso.so.1 (0x00007fc1e6124000)
 libgtk-3.so.0 => /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 (0x00007fc1e53ce000)
 libgdk-3.so.0 => /usr/lib/x86_64-linux-gnu/libgdk-3.so.0 (0x00007fc1e50d8000)
 libpangocairo-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 (0x00007fc1e4ecb000)
 libpango-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0 (0x00007fc1e4c7e000)
 libcairo.so.2 => /usr/lib/x86_64-linux-gnu/libcairo.so.2 (0x00007fc1e4961000)
 libgdk_pixbuf-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 (0x00007fc1e473d000)
 libgobject-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 (0x00007fc1e44e9000)
 libglib-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 (0x00007fc1e41d2000)
 libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fc1e3e34000)
 libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fc1e3c15000)
 libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fc1e3824000)
 libgmodule-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 (0x00007fc1e3620000)
 libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x00007fc1e32e8000)
 libXi.so.6 => /usr/lib/x86_64-linux-gnu/libXi.so.6 (0x00007fc1e30d8000)
 libXfixes.so.3 => /usr/lib/x86_64-linux-gnu/libXfixes.so.3 (0x00007fc1e2ed2000)
 libcairo-gobject.so.2 => /usr/lib/x86_64-linux-gnu/libcairo-gobject.so.2 (0x00007fc1e2cc9000)
 libatk-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0 (0x00007fc1e2aa3000)
 libatk-bridge-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0 (0x00007fc1e2872000)
 libepoxy.so.0 => /usr/lib/x86_64-linux-gnu/libepoxy.so.0 (0x00007fc1e2571000)
 libpangoft2-1.0.so.0 => /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 (0x00007fc1e235b000)
 libfontconfig.so.1 => /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 (0x00007fc1e2116000)
 libgio-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 (0x00007fc1e1d77000)
 libXinerama.so.1 => /usr/lib/x86_64-linux-gnu/libXinerama.so.1 (0x00007fc1e1b74000)
 libXrandr.so.2 => /usr/lib/x86_64-linux-gnu/libXrandr.so.2 (0x00007fc1e1969000)
 libXcursor.so.1 => /usr/lib/x86_64-linux-gnu/libXcursor.so.1 (0x00007fc1e175f000)
 libXcomposite.so.1 => /usr/lib/x86_64-linux-gnu/libXcomposite.so.1 (0x00007fc1e155c000)
 libXdamage.so.1 => /usr/lib/x86_64-linux-gnu/libXdamage.so.1 (0x00007fc1e1359000)
 libxkbcommon.so.0 => /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0 (0x00007fc1e111a000)
 libwayland-cursor.so.0 => /usr/lib/x86_64-linux-gnu/libwayland-cursor.so.0 (0x00007fc1e0f12000)
 libwayland-egl.so.1 => /usr/lib/x86_64-linux-gnu/libwayland-egl.so.1 (0x00007fc1e0d10000)
 libwayland-client.so.0 => /usr/lib/x86_64-linux-gnu/libwayland-client.so.0 (0x00007fc1e0b01000)
 libXext.so.6 => /usr/lib/x86_64-linux-gnu/libXext.so.6 (0x00007fc1e08ef000)
 librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x00007fc1e06e7000)
 libfreetype.so.6 => /usr/lib/x86_64-linux-gnu/libfreetype.so.6 (0x00007fc1e0433000)
 libthai.so.0 => /usr/lib/x86_64-linux-gnu/libthai.so.0 (0x00007fc1e022a000)
 libpixman-1.so.0 => /usr/lib/x86_64-linux-gnu/libpixman-1.so.0 (0x00007fc1dff85000)
 libpng16.so.16 => /usr/lib/x86_64-linux-gnu/libpng16.so.16 (0x00007fc1dfd53000)
 libxcb-shm.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0 (0x00007fc1dfb50000)
 libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x00007fc1df928000)
 libxcb-render.so.0 => /usr/lib/x86_64-linux-gnu/libxcb-render.so.0 (0x00007fc1df71b000)
 libXrender.so.1 => /usr/lib/x86_64-linux-gnu/libXrender.so.1 (0x00007fc1df511000)
 libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fc1df2f4000)
 libffi.so.6 => /usr/lib/x86_64-linux-gnu/libffi.so.6 (0x00007fc1df0ec000)
 libpcre.so.3 => /lib/x86_64-linux-gnu/libpcre.so.3 (0x00007fc1dee7a000)
 /lib64/ld-linux-x86-64.so.2 (0x00007fc1e5efe000)
 libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fc1dec76000)
 libdbus-1.so.3 => /lib/x86_64-linux-gnu/libdbus-1.so.3 (0x00007fc1dea29000)
 libatspi.so.0 => /usr/lib/x86_64-linux-gnu/libatspi.so.0 (0x00007fc1de7f9000)
 libharfbuzz.so.0 => /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 (0x00007fc1de55b000)
 libexpat.so.1 => /lib/x86_64-linux-gnu/libexpat.so.1 (0x00007fc1de329000)
 libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 (0x00007fc1de101000)
 libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007fc1ddee6000)
 libmount.so.1 => /lib/x86_64-linux-gnu/libmount.so.1 (0x00007fc1ddc92000)
 libdatrie.so.1 => /usr/lib/x86_64-linux-gnu/libdatrie.so.1 (0x00007fc1dda8b000)
 libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x00007fc1dd887000)
 libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007fc1dd681000)
 libsystemd.so.0 => /lib/x86_64-linux-gnu/libsystemd.so.0 (0x00007fc1dd3fd000)
 libgraphite2.so.3 => /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 (0x00007fc1dd1d0000)
 libblkid.so.1 => /lib/x86_64-linux-gnu/libblkid.so.1 (0x00007fc1dcf83000)
 libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007fc1dcd6e000)
 liblzma.so.5 => /lib/x86_64-linux-gnu/liblzma.so.5 (0x00007fc1dcb48000)
 liblz4.so.1 => /usr/lib/x86_64-linux-gnu/liblz4.so.1 (0x00007fc1dc92c000)
 libgcrypt.so.20 => /lib/x86_64-linux-gnu/libgcrypt.so.20 (0x00007fc1dc610000)
 libuuid.so.1 => /lib/x86_64-linux-gnu/libuuid.so.1 (0x00007fc1dc409000)
 libgpg-error.so.0 => /lib/x86_64-linux-gnu/libgpg-error.so.0 (0x00007fc1dc1f4000)

ProblemType: Bug
DistroRelease: Ubuntu 18.04
ProcVersionSignature: Ubuntu 5.3.0-53.47~18.04.1-generic 5.3.18
Uname: Linux 5.3.0-53-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.15
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Sun Jun 28 02:59:40 2020
InstallationDate: Installed on 2019-05-02 (422 days ago)
InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: sgt-puzzles
UpgradeStatus: No upgrade log present (probably fresh install)

whitis (whitis) wrote :
whitis (whitis) wrote :

The black window can't be killed after you close program.

Not with the X
Not will killall sgt-pattern
Not with killall -9 sgt-pattern
Not with xkill and pointing to window
Not with dash "quit"

it can be minimized or maximized or resized

I was able to kill it by xkill -id 0x897257 but that also killed gnome-shell. Had to Ctrl-alt-del, cancel, switch to terminal window with tab key, "nohup gnome-shell --restart &"

Note that the small picture over the big picture also happens when you restart sgt-pattern after having resized the window and then select a "10x10" game from type menu, although that window will close.

 xwininfo

xwininfo: Please select the window about which you
          would like information by clicking the
          mouse in that window

xwininfo: Window id: 0x897257 (has no name)

  Absolute upper-left X: 483
  Absolute upper-left Y: 197
  Relative upper-left X: 483
  Relative upper-left Y: 197
  Width: 548
  Height: 600
  Depth: 24
  Visual: 0x319
  Visual Class: TrueColor
  Border width: 0
  Class: InputOutput
  Colormap: 0x80000a (not installed)
  Bit Gravity State: NorthWestGravity
  Window Gravity State: NorthWestGravity
  Backing Store State: NotUseful
  Save Under State: no
  Map State: IsViewable
  Override Redirect State: no
  Corners: +483+197 -889+197 -889-283 +483-283
  -geometry 548x600+483+197

whitis (whitis) wrote :

Note problems affect other puzzles as well and sgt-launcher seems to be at fault. Apparently, its attempts to reparent the programs don't work on xwayland. sgt-launcher was already killed, though, when the zombie window wouldn't go away.

Ben Hutchings (benh-debian) wrote :

Seems to be caused by sgt-launcher, which is a separate package

affects: sgt-puzzles (Ubuntu) → sgt-launcher (Ubuntu)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers