Community Packages

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#38339 - [qiv] Displays a black rectangle instead of an image.

Attached to Project: Community Packages
Opened by Karol Błażewicz (karol) - Wednesday, 01 January 2014, 15:19 GMT
Last edited by Balló György (City-busz) - Monday, 06 January 2014, 08:46 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Balló György (City-busz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Upgrading qiv to version 2.3.1-1 seems to have broken it. 'qiv <somefile>' displays a black rectangle instead of an image.
At least on some hardware configurations (e.g. nvidia geforce fx 5500) 'qiv -f <somefile>' works fine.

Both user that reported the issue use DWM as their WM.


One of my computers has an ancient graphics card
$ lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device (rev 01)

and on this computer qiv prints some warnings in the console:
$ qiv -fm *.jpg

(qiv:887): Gdk-CRITICAL **: IA__gdk_drawable_set_colormap: assertion 'cmap == NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed

(qiv:887): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 15

(qiv:887): Gdk-CRITICAL **: IA__gdk_drawable_set_colormap: assertion 'cmap == NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed

(qiv:887): Gdk-WARNING **: Attempt to draw a drawable with depth 24 to a drawable with depth 15


$ qiv *.jpg

(qiv:1930): Gdk-CRITICAL **: IA__gdk_drawable_set_colormap: assertion 'cmap == NULL || gdk_drawable_get_depth (drawable) == cmap->visual->depth' failed

(qiv:1930): Gdk-CRITICAL **: IA__gdk_window_set_back_pixmap: assertion 'pixmap == NULL || gdk_drawable_get_depth (window) == gdk_drawable_get_depth (pixmap)' failed


but this may be due to the hardware being senile.
This task depends upon

Closed by  Balló György (City-busz)
Monday, 06 January 2014, 08:46 GMT
Reason for closing:  Upstream
Comment by Balló György (City-busz) - Friday, 03 January 2014, 07:54 GMT
So you are still using this horrible video chip... Me too. :) As you can see, the color depth is not enough, so create the file /usr/share/X11/xorg.conf.d/10-intel.conf with the following content, and it will solve the problem for you:

Section "Screen"
Identifier "Default Screen"
DefaultDepth 24
EndSection

Isn't it?
Comment by Karol Błażewicz (karol) - Friday, 03 January 2014, 21:11 GMT
Thank you, it indeed fixed the issue.
Is it a workaround or a proper fix?
Comment by Balló György (City-busz) - Friday, 03 January 2014, 21:28 GMT
It's the proper fix for the Intel driver, and maybe a bug in qiv or gdk, because it's unable to handle color depth lower than 24.

Loading...