Restore from minimized broken in Vista (1 Viewer)

Swede

Portal Pro
September 6, 2006
490
47
West Coast Archipelago
Home Country
Sweden Sweden
Restore from minimized broken in Vista.

Reproduce like this:
Minimize to tray on exit must be activated.
Minimize MP and restore again a few times.
MP will not restore after a few times and DX errors in the log.
2009-03-08 10:02:06.318374 [Info.][MPMain]: Exception :Error in the application.
-2005532292 (D3DERR_OUTOFVIDEOMEMORY)
at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, IntPtr overrideWindow)
at Microsoft.DirectX.Direct3D.Device.PresentInternal(tagRECT* sourceRectangle, tagRECT* destRectangle, Control overrideWindow)
at Microsoft.DirectX.Direct3D.Device.Present()
at MediaPortalApp.Render(Single timePassed)

Log attached

TV-Server Version: Latest SVN
MediaPortal Version: Latest SVN
MediaPortal Skin: Xface
Windows Version: Vista Ultimate 32
CPU Type: Intel P4 2600MHz
HDD: WD 320 GB
Memory: 2 GB SDRAM DDR 400
Motherboard: MSI MS-6728
Video Card: Nvidia Geforce 7600 GS
Video Card Driver: 7.15.11.6925
Sound Card: Realtek AC97
Sound Card AC3:
Sound Card Driver: 6.0.1.6243
1. TV Card: Terratec Cinergy 1400DVB-T
1. TV Card Type: DVB-T
1. TV Card Driver: 5.0.18.0
2. TV Card: Lifeview USB
2. TV Card Type: DVB-T
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec: Microsoft
MPEG2 Audio Codec: Microsoft
h.264 Video Codec:
Satelite/CableTV Provider:
HTPC Case: ATX
Cooling:
Power Supply: Etasis 0dB fanless
Remote: Logitech Harmony 895
TV: Samsung 46 LCD
TV - HTPC Connection: Component
 

Swede

Portal Pro
September 6, 2006
490
47
West Coast Archipelago
Home Country
Sweden Sweden
No, this is without the patch. The patch does not work with Vista. Vista seems to use packed textures when restoring from minimized. If I use my patch, the textures are missing. I have with Blue3wide skin, 6 packed texture files and this PC has 256MB Nvidia7600 GPU. As you can see in the log, I start with "Main: Video memory left: 505 MB" and after 3 restores I'm out of memory???

Does anyone else have this problem?
 

tourettes

Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    I couldn't reproduce the issue. Minimize / restore was done over 30 times (256 MB GPU here on my dev PC).

    As you have bigger resolution than my dev PC Mediaportal will require bigger amount of memory for font textures.

    your:

    2009-03-08 10:01:33.140810 [Info.][MPMain]: fonts.InitializeDeviceObjects()
    2009-03-08 10:01:33.145692 [Debug][MPMain]: Loaded font:debug height:12 texture:256x256 chars:[32-255] miplevels:1
    2009-03-08 10:01:33.181823 [Debug][MPMain]: Loaded font:font10 height:16 texture:1024x1024 chars:[32-1537] miplevels:1
    2009-03-08 10:01:33.216000 [Debug][MPMain]: Loaded font:font11 height:17 texture:1024x1024 chars:[32-1537] miplevels:1
    2009-03-08 10:01:33.275567 [Debug][MPMain]: Loaded font:font12 height:20 texture:2048x1024 chars:[32-1537] miplevels:1
    2009-03-08 10:01:33.337086 [Debug][MPMain]: Loaded font:font13 height:21 texture:2048x1024 chars:[32-1537] miplevels:1
    2009-03-08 10:01:33.394700 [Debug][MPMain]: Loaded font:font14 height:22 texture:2048x1024 chars:[32-1537] miplevels:1
    2009-03-08 10:01:33.449384 [Debug][MPMain]: Loaded font:font15 height:24 texture:2048x1024 chars:[32-1537] miplevels:1
    2009-03-08 10:01:33.506021 [Debug][MPMain]: Loaded font:font16 height:26 texture:2048x1024 chars:[32-1537] miplevels:1
    2009-03-08 10:01:33.678861 [Debug][MPMain]: Loaded font:font17 height:28 texture:2048x2048 chars:[32-1537] miplevels:1
    2009-03-08 10:01:34.118286 [Debug][MPMain]: Loaded font:font18 height:29 texture:2048x2048 chars:[32-1537] miplevels:1
    2009-03-08 10:02:05.009864 [Debug][MPMain]: Loaded font:dingbats height:40 texture:4096x2048 chars:[32-1537] miplevels:1
    2009-03-08 10:02:05.014746 [Debug][MPMain]: Loaded font:font32 height:53 texture:512x256 chars:[48-59] miplevels:1
    2009-03-08 10:02:05.020605 [Debug][MPMain]: Loaded font:font48 height:80 texture:512x512 chars:[48-59] miplevels:1
    2009-03-08 10:02:05.026464 [Debug][MPMain]: Loaded font:font60 height:100 texture:512x512 chars:[48-59] miplevels:1
    2009-03-08 10:02:05.057712 [Debug][MPMain]: Loaded font:fontSVT height:21 texture:2048x1024 chars:[32-1537] miplevels:1

    compared to mine:

    2009-03-08 11:53:06.697500 [Info.][MPMain]: fonts.InitializeDeviceObjects()
    2009-03-08 11:53:06.703500 [Debug][MPMain]: Loaded font:debug height:12 texture:256x256 chars:[32-255] miplevels:1
    2009-03-08 11:53:06.720500 [Debug][MPMain]: Loaded font:font10 height:11 texture:1024x512 chars:[32-1537] miplevels:1
    2009-03-08 11:53:06.739500 [Debug][MPMain]: Loaded font:font11 height:12 texture:1024x512 chars:[32-1537] miplevels:1
    2009-03-08 11:53:06.777500 [Debug][MPMain]: Loaded font:font12 height:14 texture:1024x1024 chars:[32-1537] miplevels:1
    2009-03-08 11:53:06.808500 [Debug][MPMain]: Loaded font:font13 height:15 texture:1024x1024 chars:[32-1537] miplevels:1
    2009-03-08 11:53:06.839500 [Debug][MPMain]: Loaded font:font14 height:16 texture:1024x1024 chars:[32-1537] miplevels:1
    2009-03-08 11:53:06.863500 [Debug][MPMain]: Loaded font:font15 height:17 texture:1024x1024 chars:[32-1537] miplevels:1
    2009-03-08 11:53:06.887500 [Debug][MPMain]: Loaded font:font16 height:19 texture:1024x1024 chars:[32-1537] miplevels:1
    2009-03-08 11:53:06.927500 [Debug][MPMain]: Loaded font:font17 height:20 texture:2048x1024 chars:[32-1537] miplevels:1
    2009-03-08 11:53:06.967500 [Debug][MPMain]: Loaded font:font18 height:21 texture:2048x1024 chars:[32-1537] miplevels:1
    2009-03-08 11:53:07.104500 [Debug][MPMain]: Loaded font:dingbats height:28 texture:2048x2048 chars:[32-1537] miplevels:1
    2009-03-08 11:53:07.108500 [Debug][MPMain]: Loaded font:font32 height:38 texture:256x256 chars:[48-59] miplevels:1
    2009-03-08 11:53:07.112500 [Debug][MPMain]: Loaded font:font48 height:57 texture:512x256 chars:[48-59] miplevels:1
    2009-03-08 11:53:07.116500 [Debug][MPMain]: Loaded font:font60 height:72 texture:512x256 chars:[48-59] miplevels:1
    2009-03-08 11:53:07.136500 [Debug][MPMain]: Loaded font:fontSVT height:15 texture:1024x1024 chars:[32-1537] miplevels:1
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Sp, we definately should be reducing the required amount of different font sizes in default skin. Based on quick calculations on 1366x768 resolution has approx 80 MB requirement for the font textures.
     

    Swede

    Portal Pro
    September 6, 2006
    490
    47
    West Coast Archipelago
    Home Country
    Sweden Sweden
    tourettes

    Are you on a Vista setup? If so, is your restore quick or do you have to wait a few seconds?

    this problem was first introduced ::here 2008-12-19::

    There is a great size difference in the font folders xp (1280x1024) versus vista (1360x768):
     

    Attachments

    • vistafonts.jpg
      vistafonts.jpg
      34.9 KB
    • xpfonts.jpg
      xpfonts.jpg
      35.1 KB

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Are you on a Vista setup? If so, is your restore quick or do you have to wait a few seconds?

    Pretty quick I would say. But it shouldn't matter as MP is not designed to be anything else than HTPC application that is always running on the full screen..

    There is a great size difference in the font folders xp (1280x1024) versus vista (1360x768):

    You need to remember that texture size should be always in power of two, so there will be big jumps in the texture sizes between some resolutions.

    Looks like 1366x768 is "triggering" the bigger size to be used (jump from 1024 to 2048). Best way to optimize these would be to use only few different fonts in the skin itself.
     

    Swede

    Portal Pro
    September 6, 2006
    490
    47
    West Coast Archipelago
    Home Country
    Sweden Sweden
    Pretty quick I would say. But it shouldn't matter as MP is not designed to be anything else than HTPC application that is always running on the full screen..

    True, but it was quick before, and is still quick in XP. Just wondering if this is a local problem in my PC or a SVN introduced Vista problem. I cannot remember that the font files were so big before.

    I took it to its edge and removed all fonts but one in fonts.xml. Now I could do more restores but eventually the same error came up. soooo... it's not the fonts?
     

    Swede

    Portal Pro
    September 6, 2006
    490
    47
    West Coast Archipelago
    Home Country
    Sweden Sweden
    Hmm, so I raised AGP Aperture size in bios from 32 to 256 and my problems were gone. No more DX errors in the Vista setup. The laptop has no such setting, but works well with the packet texture fix.
     

    Users who are viewing this thread

    Top Bottom