Bug 1017250
Summary: | avoid some allocation failure on c&p | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | David Jaša <djasa> |
Component: | mingw-virt-viewer | Assignee: | Marc-Andre Lureau <marcandre.lureau> |
Status: | CLOSED ERRATA | QA Contact: | Desktop QE <desktop-qa-list> |
Severity: | low | Docs Contact: | |
Priority: | unspecified | ||
Version: | 3.3.0 | CC: | acathrow, cfergeau, dblechte, mkrcmari, sherold, tpoitras, uril, yeylon |
Target Milestone: | --- | ||
Target Release: | 3.4.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | mingw-virt-viewer-0.5.6-21.el6_5 mingw-spice-gtk-0.20-6.el6_5 mingw-glib2-2.32.4-1.1.el6_5 mingw-gtk2-2.24.13-7.el6_5 | Doc Type: | Bug Fix |
Doc Text: |
Previously, virt-viewer was unable to handle large copy and paste operations. If a very large amount of text was copied, then mingw-virt-viewer displayed a failure to allocate memory error.
After fixing this bug, up to 100 MB of data can be copied and pasted.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2014-06-09 12:51:18 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 1017790 | ||
Bug Blocks: | 1019797, 1029162 |
Description
David Jaša
2013-10-09 13:45:35 UTC
Sorry, but I don't think we should handle such big clipboard. And a crash for OOM is the way gtk+ application are written. However, we should try to handle cases where the clipboard size is ridiculously big (say over 100mb) and just discard copy operation, imho. The first offender, gtk+, does copy or some transformation of clipboard without size limits (utf16 to utf8 or dib/bmp). We would need to convince gtk+ maintainer to have clipboard memory limit or to handle OOM condition for more cases (they do for dib for instance). Spice-gtk itself also does copy and transformation (crlf conversion), we would need to handle OOM condition for this case too or just drop big clipboard data by default (which is imho, a better alternative). This shouldn't be too hard to improve to avoid the crash, but I'd consider this quite low priority. sent patches for spice-gtk: http://lists.freedesktop.org/archives/spice-devel/2013-November/015256.html devel ack, those patch already help for some case, but we don't have full solution yet. I would move to 3.4 there are number of bugs related to copy/paste across supported platforms. We should creat the tracker bug and link all copy/paste bugs to it. the 3.4 target sounds reasonable to address these issues. changing bug title to a realistic one. (there is *no* way we are going to handle oom conditions in spice-gtk) Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-0644.html |