Formular una preguntaFormular una pregunta
 

Debate generalWPF Rendering Issues on Windows 7

  • jueves, 02 de julio de 2009 2:10srinikat Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    Our application is very heavily using PNG Graphics for WPF UserControl backgrounds and WPF Window background . Our MainWindow hosts different WPF UserControls depending on the user selection just like TabControl. MainWindow and UserControls use different PNG images for background. We see rendering issues when the application is minimized and restored. We see some garbage getting rendered before the main window appears. This more like a bar code.

    I was able to capture the rendering issue, please click this link http://cid-a93b20e2f136913a.skydrive.live.com/self.aspx/.Public/Capture.png

    I was able to video capture the issue too, http://cid-a93b20e2f136913a.skydrive.live.com/self.aspx/.Public/capture-3.avi, Please note that this video only capture few frames with rendering issue, but we see this issue very consistenty.

    Our application runs fine on Windows XP and Window Vista, but we wee this issue on Windows 7.

    This to me more looks like rendering issue. Did anyone see this kind of issue?.



    srini

Todas las respuestas

  • jueves, 02 de julio de 2009 5:34Sasikumar D.R. Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    Hi Srinikat,

    I also faced same problem when I was using Windows 7 beta version. I don't know what is reason for this. But after upgrading from Beta to RC everything went fine..

    I think problem may be with display adapter or with built-in framework.

  • jueves, 02 de julio de 2009 23:49srinikat Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    Thank U for the input.

    I used Windows 7 Build# 7229 but I still see the issue. Which version did you use?. 
    srini
  • viernes, 03 de julio de 2009 5:20Sasikumar D.R. Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    Oh seems you are using leaked version. Sometimes problem might be with that version. I'm not sure of that. When I was using beta version that was also leaked version.

    Now I am using Windows 7 build# 7100. Everything works fine here.
  • miércoles, 08 de julio de 2009 6:55Hua ChenMSFT, ModeradorMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    Hello Srini,

       Could you please try the new RC to see if it works?

       http://www.microsoft.com/windows/windows-7/download.aspx

      Thanks.
    Please mark the replies as answers if they help and unmark them if they provide no help
  • lunes, 13 de julio de 2009 22:33srinikat Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    I downloaded Windows 7 build from above link and I tried it , but I still see the issue.
    srini
  • martes, 14 de julio de 2009 3:55Sasikumar D.R. Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    Srini.. Have u tried same application on some other computer. Probably problem might be with your display adapter.

    and also try to run same on vista and xp and check if there isany error.
  • martes, 14 de julio de 2009 16:47SRINIVAS K Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    Thank U.

    Yes, I tried this on multiple PCs in our Lab and we can reproduce it very consistently.  We don't see this issue on Windows-Vista and Windows-XP where it works great.
  • miércoles, 15 de julio de 2009 5:35Sasikumar D.R. Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    Srini, This seems Interesting.

    I think problem might be with windows 7. As Hua Chen marked this might be an issue with RC version of Windows 7.

    If possible can you post code for checking on my System? 
  • miércoles, 15 de julio de 2009 21:10srinikat Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    Thank U and Sure,
    Our application is tightly coupled to API developed on the top of our driver. I need to create dummy version of this application and send it to you.
    srini
  • jueves, 16 de julio de 2009 0:34srinikat Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    I stripped down the application and posted it to http://cid-a93b20e2f136913a.skydrive.live.com/self.aspx/.Public/Windows%207%20Issue.zip
    You can try this application as-is to see the issue.

    Just minimize the application and maximize it multiple times to see the stripes.

    Hua Chen,
    Do you mind tying this application on Windows 7 to see what is happening?. 




    srini
  • jueves, 16 de julio de 2009 5:47Sasikumar D.R. Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    Srini,

    I'm also getting your problem while running application. 

    It seems the problem is with Windows 7 and I suggest you to post same issue to Windows 7 team.
  • jueves, 16 de julio de 2009 10:09Hua ChenMSFT, ModeradorMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    Hello Srini,

      Hua Chen, 
     
        Do you mind tying this application on Windows 7 to see what is happening?.

        Very sorry I haven't a test environment by hand.   

       You can also report an issue on the  https://connect.microsoft.com/VisualStudio?wa=wsignin1.0


       Thanks.

        
    Please mark the replies as answers if they help and unmark them if they provide no help
  • jueves, 23 de julio de 2009 21:11jhhhj Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     

    I get similar issue on Windows XP. I also have WPF app with png graphics and transparent layers, when minimizing and restoring, or just clicking somewhere absolutely randomly I get a bunch of garbage pixels, not just stripes. Like if you scramble pixels into Gaussian noise.

  • viernes, 24 de julio de 2009 19:27jhhhj Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    srinikat,

    try to set SnapsToDevicePixels to false for all the controls on the form. I just did it and have not seen the issue anymore. May be it will fix it.



    if it helped you, please mark this as an answer.
  • martes, 15 de septiembre de 2009 18:28jhhhj Medallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuarioMedallas del usuario
     
    There is a work around available now from http://support.microsoft.com/kb/963021

    But in my case I resolved the issue by installing new driver for video card.