Odeslat dotazOdeslat dotaz
 

Obecná diskuseWPF Rendering Issues on Windows 7

  • 2. července 2009 2:10srinikat Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    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

Všechny reakce

  • 2. července 2009 5:34Sasikumar D.R. Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    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.

  • 2. července 2009 23:49srinikat Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    Thank U for the input.

    I used Windows 7 Build# 7229 but I still see the issue. Which version did you use?. 
    srini
  • 3. července 2009 5:20Sasikumar D.R. Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    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.
  • 8. července 2009 6:55Hua ChenMSFT, ModerátorUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    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
  • 13. července 2009 22:33srinikat Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    I downloaded Windows 7 build from above link and I tried it , but I still see the issue.
    srini
  • 14. července 2009 3:55Sasikumar D.R. Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    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.
  • 14. července 2009 16:47SRINIVAS K Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    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.
  • 15. července 2009 5:35Sasikumar D.R. Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    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? 
  • 15. července 2009 21:10srinikat Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    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
  • 16. července 2009 0:34srinikat Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    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
  • 16. července 2009 5:47Sasikumar D.R. Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    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.
  • 16. července 2009 10:09Hua ChenMSFT, ModerátorUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    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
  • 23. července 2009 21:11jhhhj Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     

    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.

  • 24. července 2009 19:27jhhhj Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    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.
  • 15. září 2009 18:28jhhhj Uživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaileUživatelské medaile
     
    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.