Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 907053

Summary: remote-viewer.exe crashes in 16bpp
Product: Red Hat Enterprise Virtualization Manager Reporter: Bryan Yount <byount>
Component: mingw-virt-viewerAssignee: Marc-Andre Lureau <marcandre.lureau>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: urgent Docs Contact:
Priority: high    
Version: 3.1.2CC: acathrow, cfergeau, colin.coe, dblechte, jbiddle, mketchio, mkrcmari, pvine
Target Milestone: ---   
Target Release: 3.2.0   
Hardware: Unspecified   
OS: Windows   
Whiteboard:
Fixed In Version: mingw-virt-viewer-0.5.3-24.el6ev Doc Type: Bug Fix
Doc Text:
Previously, running virt-viewer on a client machine configured with 16bpp would result in the client crashing after a few minutes of use. This was caused by a GDI leak in GTK+, related to 16bpp handling. Now, the leak has been fixed and virt-viewer will no longer crash on a 16bpp client.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-10 20:02:26 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:
Attachments:
Description Flags
Screenshot of the crash on WindowsXP
none
debug window fails to launch virt-viewer
none
virt-viewer-deubg output from crash none

Description Bryan Yount 2013-02-02 23:08:25 UTC
Description of problem:
On WindowsXP, intermittently the remote-viewer.exe will crash. The dump attached to this case and the screenshot are from a recent crash of the application when the user shut down the Windows 7 guest.

Version-Release number of selected component (if applicable):
rhevm-spice-client-x86-cab-3.1-8
WindowsXP SP3

How reproducible:
Intermittent

Steps to Reproduce:
1. Launch a Spice console on an XP client
2. Power off the guest
  
Actual results:
The remote-viewer.exe crashed

Expected results:
remote-viewer.exe should not crash

Additional info:
The remote-viewer also sometimes hangs the XP system but that may be unrelated to this issue. When the program hangs, it prevents the user from typing in on their XP client.

Comment 1 Bryan Yount 2013-02-02 23:09:43 UTC
Created attachment 692137 [details]
Screenshot of the crash on WindowsXP

Comment 19 Colin Coe 2013-03-10 05:47:27 UTC
See GSS ticket 783648 also.

Comment 22 Bryan Yount 2013-03-17 17:52:37 UTC
Created attachment 711506 [details]
debug window fails to launch virt-viewer

After installing virt-viewer-debug, the debug console launches but fails to then launch virt-viewer. Customer typically authenticates to the machine with an AD user but has also apparently tried installing virt-viewer and the debug console as the local admin with the same results.

Comment 24 Christophe Fergeau 2013-03-18 08:51:31 UTC
(In reply to comment #22)
> Created attachment 711506 [details]
> debug window fails to launch virt-viewer
> 
> After installing virt-viewer-debug, the debug console launches but fails to
> then launch virt-viewer. Customer typically authenticates to the machine
> with an AD user but has also apparently tried installing virt-viewer and the
> debug console as the local admin with the same results.

Tying 'thread apply all bt' at that prompt may give more clues as to what crashed.

Comment 32 Marc-Andre Lureau 2013-04-05 14:06:40 UTC
we are still missing informations to solve this...

Comment 33 Bryan Yount 2013-04-05 18:57:52 UTC
Created attachment 731993 [details]
virt-viewer-deubg output from crash

Comment 35 Marc-Andre Lureau 2013-04-07 20:21:55 UTC
sadly, I can't reproduce that crash (tested on XP)

There doesn't seem to be any clear GDI leak in Gtk+.

Apparently, that crash could be also just memory exhaustion.

How much memory the client had? It would be interesting to observe task manager free memory and GDI count (menu/view/select columns -> GDI objects)

Comment 37 Colin Coe 2013-04-08 04:19:20 UTC
We have a user that frequently experiences remote-viewer crashes.  His client PC runs Win XP SP3 (32-bit).

GSS case 800701 has been updated with latest logs.

I can confirm that the crash is not related to memory constraints (at least for us) as the client PC has 4GB of RAM and only 1.7GB was in use at the time of the crash.

CC

Comment 38 Marc-Andre Lureau 2013-04-08 12:58:13 UTC
some more clues, I managed to reproduce the crash when the client is configured in 16bits, spice-gtk leaks tons of GDI and memory in this case. Also the rendering is pretty bad with a 32bit guest

Comment 39 Marc-Andre Lureau 2013-04-08 21:04:50 UTC
Patch sent upstream 671538, we should include it next build and see if it fixes customer crash as well.

Comment 40 Colin Coe 2013-04-08 21:15:34 UTC
We are more than happy to do 'beta' testing...

Comment 43 Christophe Fergeau 2013-04-09 09:05:36 UTC
(In reply to comment #39)
> Patch sent upstream 671538

Adding to the "External Tracker" blackboard

Comment 46 Marc-Andre Lureau 2013-04-09 16:42:27 UTC
fixed in mingw-gtk 2.24.13-4 included in mingw-virt-viewer-0.5.3-24.el6ev

Comment 48 Bryan Yount 2013-04-09 17:58:50 UTC
Marc-Andre, the customer reported that both his client and his guest are running in 32-bit color mode. What is recommended best practice for spice guests? Should they be set to 16-bit? Would that help performance?

Comment 49 Marc-Andre Lureau 2013-04-09 18:09:22 UTC
(In reply to comment #48)
> Marc-Andre, the customer reported that both his client and his guest are
> running in 32-bit color mode. What is recommended best practice for spice
> guests? Should they be set to 16-bit? Would that help performance?

I would stick to 32bit, unless you have very strong reason to use 16bit. Especially on client side.

Ok so we are still clueless about what might cause that customer crash, sigh.

I suggest we open/clone a different bug for that, because that bug is now quite long and fitted for the 16bpp crash.

Comment 50 Bryan Yount 2013-04-09 18:22:52 UTC
(In reply to comment #49)
> I would stick to 32bit, unless you have very strong reason to use 16bit.
> Especially on client side.
> 
> Ok so we are still clueless about what might cause that customer crash, sigh.
> 
> I suggest we open/clone a different bug for that, because that bug is now
> quite long and fitted for the 16bpp crash.

Are you saying that the new build fixes the crashing only if the person is running 16-bit color depth on the guest and it won't help us here? The customer is willing to test the new build to see if it resolves the issue anyway so let's hope that it does.

If the crash still occurs with the new build, I will open a new BZ and grab new virt-viewer-debug output. Thanks!

Comment 51 Marc-Andre Lureau 2013-04-09 18:28:57 UTC
(In reply to comment #50)
> Are you saying that the new build fixes the crashing only if the person is
> running 16-bit color depth on the guest and it won't help us here? The
> customer is willing to test the new build to see if it resolves the issue
> anyway so let's hope that it does.

It's probably not going to help in !16bpp cases

> If the crash still occurs with the new build, I will open a new BZ and grab
> new virt-viewer-debug output. Thanks!

thanks, I will continue investigations..

Comment 52 Colin Coe 2013-04-12 00:00:15 UTC
I had a look at the user's PC who gets a lot of remote-viewer crashes and found that his PC was set to 16 bit colour although the guest (VM) was set to 32 bit.

I had him change from 16 to 32bit and remote-viewer seems stable now.

Comment 55 Bryan Yount 2013-04-25 02:06:27 UTC
Good news: The crashing for my customer appears to be fixed with this build!

Comment 56 errata-xmlrpc 2013-06-10 20:02:26 UTC
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/RHEA-2013-0889.html