unable to take VM screenshot
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
virt-manager (Debian) |
Fix Released
|
Unknown
|
|||
virt-manager (Fedora) |
Fix Released
|
Medium
|
|||
virt-manager (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Description: Ubuntu 16.04 LTS
Release: 16.04
[ Description, reproducer ]
Start a KVM VM in via virt-manager. In the VM window, click "Virtual Machine", then "Take Screenshot" and "Save". It should save a screenshot.
Instead of creating a screenshot, it creates an empty png file and virt-manager throws this error:
Error taking screenshot: argument 1 must be convertible to a buffer, not _ResultTuple
Traceback (most recent call last):
File "/usr/share/
return self._take_
File "/usr/share/
file(filename, "wb").write(ret)
TypeError: argument 1 must be convertible to a buffer, not _ResultTuple
[ Fix ]
Looks like "ret" is now a named tuple. Upstream have a fix to check for this and take 'buffer' if so. We cherry-pick this commit.
[ Development fix ]
The same.
[ Regression potential ]
I'm not sure which part of the stack changed, I can imagine that if you run on an older version there might have been problems if you got the non-named tuple. But upstream cared for this by making the new codepath conditional, so I can't think of any other possibilities.
virt-manager:
Installed: 1:1.3.2-3ubuntu1
Candidate: 1:1.3.2-3ubuntu1
Version table:
*** 1:1.3.2-3ubuntu1 500
500 http://
500 http://
100 /var/lib/
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: virt-manager 1:1.3.2-3ubuntu1
ProcVersionSign
Uname: Linux 4.4.0-18-generic x86_64
ApportVersion: 2.20.1-0ubuntu2
Architecture: amd64
CurrentDesktop: KDE
Date: Mon Apr 18 17:16:49 2016
InstallationDate: Installed on 2016-04-05 (13 days ago)
InstallationMedia: Kubuntu 16.04 LTS "Xenial Xerus" - Beta amd64 (20160405)
PackageArchitec
SourcePackage: virt-manager
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |
Changed in virt-manager (Debian): | |
status: | Unknown → Fix Released |
Changed in virt-manager (Fedora): | |
importance: | Unknown → Medium |
status: | Unknown → Fix Released |
Trying to take a screenshot of the guest in virt-manager in current Rawhide - virt-manager- 1.3.2-1. fc24.noarch - fails, with this error:
Error taking screenshot: must be convertible to a buffer, not _ResultTuple
Traceback (most recent call last): virt-manager/ virtManager/ details. py", line 1455, in control_ vm_screenshot screenshot( ) virt-manager/ virtManager/ details. py", line 1507, in _take_screenshot
File "/usr/share/
return self._take_
File "/usr/share/
file(filename, "wb").write(ret)
TypeError: must be convertible to a buffer, not _ResultTuple