Bug 94854

Summary: Display wrong when use PhotoShop CS6 on Windows 7
Product: Spice Reporter: Coolper Chen <coolper22>
Component: serverAssignee: Spice Bug List <spice-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: bugzilla, fziglio, teuf
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: picture
0.png
1.png
2.png
3.png
4.png
5.png
6.png
7.png
8.png
9.png
10.png

Description Coolper Chen 2016-04-07 06:55:38 UTC
Created attachment 122784 [details]
picture

the attachment picture shows the display problem,there are some dotted lines that should be display.

how to reproduce:
1.install PhotoShop CS6 on windows 7;
2.run PhotoShop and open an image;
3.set image scale to 100% or 200%;
4.use mouse to select a region,move mouse quickly,it will show some dotted lines; if move mouse slowly,it will not show dotted lines;
Comment 1 Victor Toso 2016-04-07 07:24:32 UTC
Hello, thanks for taking time to report this.

Are you using any compression (lz, glz, quic ...) ? The compression itself could be the problem sometimes.

qemu command line, guest-tools version and the client and client version that you are using please.
Comment 2 Pavel Grunt 2016-04-07 09:37:07 UTC
(In reply to Coolper Chen from comment #0)
> Created attachment 122784 [details]
> picture
> 
> the attachment picture shows the display problem,there are some dotted lines
> that should be display.
> 
> how to reproduce:
> 1.install PhotoShop CS6 on windows 7;
> 2.run PhotoShop and open an image;
> 3.set image scale to 100% or 200%;
> 4.use mouse to select a region,move mouse quickly,it will show some dotted
> lines; if move mouse slowly,it will not show dotted lines;

Hi, spicec is deprecated. Please test with remote-viewer.
Comment 3 Coolper Chen 2016-04-08 08:33:16 UTC
I tested on spice-server version 0.12.4 and 0.12.6,remote-viewer version 0.5.6,all have the problem.

I write a tool based on spice replay,it can manully control drawing spice graphic command one by one.

The attachments 0.png is snapshot of using remote-viewer,1.png to 10.png is snapshot for drawing sequence of the problem.
Comment 4 Coolper Chen 2016-04-08 08:34:08 UTC
libvirt xml:
<domain type='kvm' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
  <name>win7</name>
  <uuid>9b1e6fc2-2589-4df5-98b1-d88dc2114eff</uuid>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-1.7'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <cpu>
    <topology sockets='1' cores='2' threads='1'/>
  </cpu>
  <clock offset='localtime'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/qemu-system-x86_64</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qed'/>
      <source file='/home/cc/work/vm/win7ultimate.img'/>
      <target dev='hda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x2'/>
    </controller>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <interface type='bridge'>
      <mac address='00:25:35:44:25:07'/>
      <source bridge='sharebr'/>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'/>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='spice' port='10000' autoport='no' listen='0.0.0.0'>
      <listen type='address' address='0.0.0.0'/>
      <channel name='main' mode='insecure'/>
      <channel name='inputs' mode='insecure'/>
    </graphics>
    <sound model='ich6'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </sound>
    <video>
      <model type='qxl' ram='65536' vram='262144' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <redirdev bus='usb' type='spicevmc'>
      <address type='usb' bus='0' port='3'/>
    </redirdev>
    <redirdev bus='usb' type='spicevmc'>
      <address type='usb' bus='0' port='4'/>
    </redirdev>
    <redirdev bus='usb' type='spicevmc'>
      <address type='usb' bus='0' port='5'/>
    </redirdev>
    <redirdev bus='usb' type='spicevmc'>
      <address type='usb' bus='0' port='6'/>
    </redirdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x0a' function='0x0'/>
    </memballoon>
  </devices>
</domain>
Comment 5 Coolper Chen 2016-04-08 08:35:11 UTC
Created attachment 122804 [details]
0.png
Comment 6 Coolper Chen 2016-04-08 08:35:39 UTC
Created attachment 122805 [details]
1.png
Comment 7 Coolper Chen 2016-04-08 08:36:00 UTC
Created attachment 122806 [details]
2.png
Comment 8 Coolper Chen 2016-04-08 08:36:29 UTC
Created attachment 122807 [details]
3.png
Comment 9 Coolper Chen 2016-04-08 08:38:20 UTC
Created attachment 122808 [details]
4.png
Comment 10 Coolper Chen 2016-04-08 08:38:44 UTC
Created attachment 122809 [details]
5.png
Comment 11 Coolper Chen 2016-04-08 08:39:13 UTC
Created attachment 122810 [details]
6.png
Comment 12 Coolper Chen 2016-04-08 08:39:43 UTC
Created attachment 122811 [details]
7.png
Comment 13 Coolper Chen 2016-04-08 08:40:18 UTC
Created attachment 122812 [details]
8.png
Comment 14 Coolper Chen 2016-04-08 08:40:43 UTC
Created attachment 122813 [details]
9.png
Comment 15 Coolper Chen 2016-04-08 08:41:09 UTC
Created attachment 122814 [details]
10.png
Comment 16 Pavel Grunt 2016-04-08 08:53:46 UTC
Hi,

can you try with different compression methods / with disabled compression ?

See http://libvirt.org/formatdomain.html#elementsGraphics.
It is also possible that driver is doing something wrong.

Do you have the latest spice guest tools ?

Thanks

(note: remote-viewer 0.5.6 is 3 years old)
Comment 17 Coolper Chen 2016-04-11 03:19:37 UTC
my enviroment:
spice-server 0.12.6
spice-gtk 0.31
spice-guest-tools-0.100.exe
libvirt 1.2.2
qemu-kvm 2.0.1
Ubuntu 14.04.4 LTS

I disable spice compression with:
<image compression='off'/>
<jpeg compression='never'/>
<zlib compression='never'/>

also I try glz,lz,quic compression method,but all have the problem.
Comment 18 Frediano Ziglio 2018-01-18 23:31:03 UTC
Fixed by https://cgit.freedesktop.org/spice/spice/commit/?id=aac24601647c9077199c1e9e17e794f5a354c4ba.
Maybe should be backported?
Comment 19 Christophe Fergeau 2018-01-19 09:14:00 UTC
To the 0.12 branch? Yes, bug fixes can (and should ;) definitely be backported to that branch, at least when they are not invasive changes, or when the backport is not complicated.
Comment 20 Frediano Ziglio 2018-01-22 11:00:52 UTC
Backported to 0.12 branch.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.