qiv: Imlib developer warning on missing files

Bug #1580758 reported by John Bradshaw
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qiv (Ubuntu)
New
Undecided
Unassigned

Bug Description

qiv 2.2.4-2 amd64
libimlib2 1.4.6-2 amd64

Set up:
When calling qiv with the -q1 (rotate) option an Imlib debug message is printed due to a NULL parameter being passed to the library when the file is missing... I'd expect that qiv stops processing of any not found or corrupt file before Imlib2 is called.

Expected behaviour:
Only the qiv "Unable to read file" message is displayed

Actual behaviour:
An Imlib2 developer warning is printed along with the qiv error message

Example:
$ qiv missing.jpg
Unable to read file: Failed to open file 'missing.jpg': No such file or directory

$ qiv -q1 missing.jpg
Unable to read file: Failed to open file 'missing.jpg': No such file or directory
***** Imlib2 Developer Warning ***** :
 This program is calling the Imlib call:

 imlib_image_orientate();

 With the parameter:

 image

 being NULL. Please fix your program.

Revision history for this message
Fredda (wiegner) wrote :

One of the qiv developers here.

Stumbled accidentally about this bugreport.
Reporting bugs to upstream would be nice for future bugs.

Bug is fixed in the latest development version:

https://bitbucket.org/ciberandy/qiv/commits/fa245ea

The patch works also on the reported version without modification.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.