After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 793157 - black rectangle appears when input box scrolls
black rectangle appears when input box scrolls
Status: RESOLVED FIXED
Product: gnome-calculator
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: gcalctool maintainers
gcalctool maintainers
Depends on:
Blocks:
 
 
Reported: 2018-02-04 05:03 UTC by Jason Crain
Modified: 2018-02-08 16:23 UTC
See Also:
GNOME target: ---
GNOME version: 3.25/3.26


Attachments
calculator-black-box.png (16.59 KB, image/png)
2018-02-04 05:03 UTC, Jason Crain
Details
with the fix (9de5ce309) (2.71 KB, image/png)
2018-02-06 12:37 UTC, Yasushi SHOJI
Details
without the fix (8472c0c95) (2.65 KB, image/png)
2018-02-06 12:38 UTC, Yasushi SHOJI
Details

Description Jason Crain 2018-02-04 05:03:02 UTC
Created attachment 367872 [details]
calculator-black-box.png

Forwarding from https://bugs.debian.org/888808

If you enter enough characters into the input box so that the scrollbar appears, a black rectangle appears on the left.  Image is attached.
Comment 1 Robert Roth 2018-02-04 07:49:29 UTC
Thanks for the report (I barely managed to read the debian bug number :) ). Fixed on current master.

This problem has been fixed in the unstable development version. The fix will be available in the next major software release. You may need to upgrade your Linux distribution to obtain that newer version.
Comment 2 Yasushi SHOJI 2018-02-06 12:37:48 UTC
Created attachment 367954 [details]
with the fix (9de5ce309)
Comment 3 Yasushi SHOJI 2018-02-06 12:38:21 UTC
Created attachment 367955 [details]
without the fix (8472c0c95)
Comment 4 Yasushi SHOJI 2018-02-06 12:40:55 UTC
Hi,

I'm the one posted on Debian BTS.

I see the fix (9de5ce309d8c) but on my local PC (debian sid), I still get a block rectangle on the master.  So I bisected to find the first bad commit. It's https://git.gnome.org/browse/gnome-calculator/commit/?id=246b7f08484a4f801880f6400df638acea6ce504

Both commit changes .css and .ui, so it must be some wrong value in there.

BTW, I see the block box without entering any digits.

I'm attaching two images. one with the fix (9de5ce309) and the other without (8472c0c95).  You can see that black box got smaller.
Comment 5 Jason Crain 2018-02-06 13:25:41 UTC
(In reply to Yasushi SHOJI from comment #4)
> I see the fix (9de5ce309d8c) but on my local PC (debian sid), I still get a
> block rectangle on the master.

The fix works for me. Is there something particular about your environment such as a non-default theme, custom CSS, or non-GNOME desktop, that contributes to this? Do you have to do anything in the gnome-calculator app like click buttons or enter text to cause it to happen?
Comment 6 Yasushi SHOJI 2018-02-06 13:50:39 UTC
I can see the black box without doing nothing.  Just launch.

I don't use special themes.  appearance on tweaks shows "Adwaita" for applications, cursor, and Icons.  No theme for Shell.

No custom CSS that I'm aware. (where can i check?)

I'm running X11 Gnome desktop (at least that' what gdm tells me.)

$ dpkg-query -W -f='${binary:Package}\t${Version}\n' '*theme*'
adwaita-icon-theme	3.26.1-3
gnome-icon-theme	3.12.0-2
gnome-icon-theme-symbolic	
gnome-themes-standard-data	
hicolor-icon-theme	0.17-1
python3-sphinx-rtd-theme	
qt5-gtk-platformtheme:amd64	5.9.2+dfsg-9
sound-theme-freedesktop	0.8-2
tango-icon-theme	0.8.90-7
tango-icon-theme-common	


dpkg-query -W -f='${binary:Package}\t${Version}\n' '*fonts*'
fonts-arphic-ukai	
fonts-arphic-uming	
fonts-crosextra-caladea	
fonts-crosextra-carlito	
fonts-dejavu	2.37-1
fonts-dejavu-core	2.37-1
fonts-dejavu-extra	2.37-1
fonts-dejima-mincho	227-15
fonts-droid	
fonts-droid-fallback	1:6.0.1r16-1.1
fonts-freefont	
fonts-freefont-otf	20120503-7
fonts-freefont-ttf	20120503-7
fonts-gentium	
fonts-hanazono	20170904-2
fonts-horai-umefont	670-2
fonts-inconsolata	001.010-5
fonts-indic	
fonts-ipafont	00303-18
fonts-ipafont-gothic	00303-18
fonts-ipafont-mincho	00303-18
fonts-ipafont-nonfree-jisx0208	1:00103-7
fonts-ipafont-nonfree-uigothic	00203-26
fonts-japanese-gothic	
fonts-japanese-mincho	
fonts-kanjistrokeorders	4.001~dfsg-2
fonts-komatuna	20101113-13
fonts-konatu	20121218-8
fonts-lato	2.0-2
fonts-liberation	1:1.07.4-5
fonts-liberation2	2.00.1-5
fonts-linuxlibertine	
fonts-lmodern	
fonts-lyx	2.2.3-4
fonts-migmix	20150712-1
fonts-motoya-l-cedar	1.01-4
fonts-motoya-l-maruberi	1.01-4
fonts-nanum	
fonts-noto	20171026-2
fonts-noto-cjk	1:20170601+repack1-1
fonts-noto-cjk-extra	
fonts-noto-hinted	20171026-2
fonts-noto-mono	20171026-2
fonts-noto-unhinted	
fonts-opensymbol	2:102.10+LibO6.0.0-1
fonts-sawarabi-gothic	20161015-2
fonts-sawarabi-mincho	20180115-1
fonts-sil-abyssinica	1.500-1
fonts-sil-andika	5.000-2
fonts-sil-andika-compact	5.000-2
fonts-sil-andikanewbasic	5.500-1
fonts-sil-annapurna	1.203-1
fonts-sil-annapurnasil	
fonts-sil-charis	5.000-2
fonts-sil-charis-compact	5.000-1
fonts-sil-dai-banna	2.200-1
fonts-sil-doulos	5.000-3
fonts-sil-doulos-compact	5.000-1
fonts-sil-ezra	2.51-8
fonts-sil-galatia	2.1-5
fonts-sil-gentium	20081126:1.03-1
fonts-sil-gentium-basic	1.1-7
fonts-sil-gentium-plus	
fonts-sil-gentiumplus	5.000-1
fonts-sil-gentiumplus-compact	5.000-2
fonts-sil-harmattan	1.00-1
fonts-sil-lateef	1.001-1
fonts-sil-mondulkiri	7.100-1
fonts-sil-mondulkiri-extra	5.300-1
fonts-sil-nuosusil	2.1.1-8
fonts-sil-padauk	3.003-1
fonts-sil-scheherazade	2.100-1
fonts-sil-sophia-nubian	1.000-6
fonts-sil-taiheritagepro	2.600-1
fonts-sil-yi	
fonts-sil-zaghawa-beria	1.000-3
fonts-stix	
fonts-takao	00303.01-2
fonts-takao-gothic	00303.01-2
fonts-takao-mincho	00303.01-2
fonts-texgyre	20160520-1
fonts-ubuntu-title	1:0.3-2
fonts-umeplus	20161108-1
fonts-vlgothic	20141206-4
fonts-wqy-microhei	
fonts-wqy-zenhei	
gsfonts	1:8.11+urwcyr1.0.7~pre44-4.4
gsfonts-x11	
latex-fonts-sipa-arundina	
latex-fonts-thai-tlwg	
scalable-cyrfonts-tex	
texlive-fonts-recommended	
ttf-mscorefonts-installer	
xfonts-100dpi	
xfonts-75dpi	
xfonts-base	1:1.0.4+nmu1
xfonts-encodings	1:1.0.4-2
xfonts-misc	
xfonts-scalable	
xfonts-utils	1:7.7+4
Comment 7 Robert Roth 2018-02-07 22:04:54 UTC
That's fairly strange. I can however reproduce something similar with the following custom css applied to my calculator window (the same css produces without the fix if running code before the fix, and with the fix if running code including the fix).

.info-view {
  background-color: black;
}

.sourceview {
  background-color: black;
}

@Yasushi SHOJI: Could you please try with the current master (I have pushed a fix which doesn't reproduce the problem anymore at my side, not even with the above CSS, neither on x11 or wayland)?
Comment 8 Yasushi SHOJI 2018-02-08 01:44:21 UTC
Bingo!

The commit caf53bb4 eliminated it and the commit caf53bb4^ does show the box.

BTW, does it mean I have some background settings?

Thanks!
Comment 9 Robert Roth 2018-02-08 16:23:30 UTC
(In reply to Yasushi SHOJI from comment #8)
> Bingo!
> 
> The commit caf53bb4 eliminated it and the commit caf53bb4^ does show the box.
> 
> BTW, does it mean I have some background settings?
Well, strangely I don't have anything like that with Adwaita, but it seems so, that you did have something set, or GTK+CSS isn't behaving uniformly.

Glad to hear that it works for you, it  usually takes a couple of guesses for me to fix a problem which I can't reproduce.