qiv: Imlib developer warning on missing files
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_
With the parameter:
image
being NULL. Please fix your program.
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.