spiff Wrote:that's definitely a bug.
try this;
Code:
Index: xbmc/Settings.cpp
===================================================================
--- xbmc/Settings.cpp (revision 35557)
+++ xbmc/Settings.cpp (working copy)
@@ -185,6 +185,9 @@
LoadRSSFeeds();
LoadUserFolderLayout();
+ RESOLUTION res = (RESOLUTION)g_guiSettings.GetInt("videoscreen.resolution");
+ g_graphicsContext.SetVideoResolution(res);
+
return true;
}
I tried that and it doesn't work :confused2: , used an existing profile/installation.
Then I decide to rename the portable_data folder and start all over. Now I got a little further.
I have added the following line between the 2 from your patch. Not sure if the use of %d is correct
CLog::Log(LOGNOTICE, "Setting Resolution %d", (RESOLUTION)g_guiSettings.GetInt("videoscreen.resolution"));
I enabled debug logging, find it below
Code:
10:59:10 T:6664 M:721571840 NOTICE: -----------------------------------------------------------------------
10:59:10 T:6664 M:721530880 NOTICE: Starting XBMC, Platform: Windows XP Professional Service Pack 3 build 2600. Built on Dec 1 2010 (SVN:Unknown, compiler 1500)
10:59:10 T:6664 M:721530880 NOTICE: Intel(R) Pentium(R) 4 CPU 3.00GHz
10:59:10 T:6664 M:721530880 NOTICE: Desktop Resolution: 1280x1024 32Bit at 60Hz
10:59:10 T:6664 M:721530880 NOTICE: Running with administrator rights
10:59:10 T:6664 M:721526784 NOTICE: special://xbmc/ is mapped to: c:\Program Files\Test\XBMC-Dharma-RC1
10:59:10 T:6664 M:721526784 NOTICE: special://xbmcbin/ is mapped to: c:\Program Files\Test\XBMC-Dharma-RC1
10:59:10 T:6664 M:721522688 NOTICE: special://masterprofile/ is mapped to: c:\Program Files\Test\XBMC-Dharma-RC1\portable_data\userdata
10:59:10 T:6664 M:721522688 NOTICE: special://home/ is mapped to: c:\Program Files\Test\XBMC-Dharma-RC1\portable_data
10:59:10 T:6664 M:721522688 NOTICE: special://temp/ is mapped to: c:\Program Files\Test\XBMC-Dharma-RC1\portable_data\temp
10:59:10 T:6664 M:721518592 NOTICE: The executable running is: c:\Program Files\Test\XBMC-Dharma-RC1\xbmc.exe
10:59:10 T:6664 M:721518592 NOTICE: Log File is located: c:\Program Files\Test\XBMC-Dharma-RC1\xbmc.log
10:59:10 T:6664 M:721518592 NOTICE: -----------------------------------------------------------------------
10:59:10 T:6664 M:721485824 NOTICE: Setup SDL
10:59:10 T:6664 M:720003072 NOTICE: Found screen: Plug and Play Monitor on Intel(R) 82915G/GV/910GL Express Chipset Family, adapter 0.
10:59:10 T:6664 M:719998976 NOTICE: Found screen: Default Monitor on TARGUS USB 2.0 VGA DOCK DEVICE(DISPLAY)., adapter 1.
10:59:10 T:6664 M:719970304 NOTICE: Primary mode: 1280x1024 @ 60.00 - Full Screen
10:59:10 T:6664 M:719839232 NOTICE: Secondary mode: 1280x1024 @ 60.00 - Full Screen #2
10:59:10 T:6664 M:719835136 NOTICE: Additional mode: 320x200 @ 70.00 - Full Screen
[cut lots of modes]
10:59:10 T:6664 M:719810560 NOTICE: Additional mode: 1280x1024 @ 75.00 - Full Screen
10:59:10 T:6664 M:719998976 NOTICE: Additional mode: 640x480 @ 60.00 - Full Screen #2
[cut loads of modes]
10:59:10 T:6664 M:720003072 NOTICE: Additional mode: 1280x1024 @ 85.00 - Full Screen #2
10:59:10 T:6664 M:720019456 NOTICE: load settings...
10:59:10 T:6664 M:719749120 DEBUG: CrystalHD: detecting CrystalHD installation path
10:59:10 T:6664 M:719724544 DEBUG: CrystalHD: CrystalHD software seems to be not installed.
10:59:10 T:6664 M:719589376 DEBUG: CrystalHD: broadcom crystal hd not found
10:59:10 T:6664 M:719425536 NOTICE: special://profile/ is mapped to: special://masterprofile/
10:59:10 T:6664 M:719405056 NOTICE: loading special://masterprofile/guisettings.xml
10:59:10 T:6664 M:718794752 NOTICE: Getting hardware information now...
10:59:10 T:6664 M:718794752 INFO: Using analog output
10:59:10 T:6664 M:718794752 INFO: AC3 pass through is enabled
10:59:10 T:6664 M:718794752 INFO: DTS pass through is enabled
10:59:10 T:6664 M:718794752 INFO: AAC pass through is disabled
10:59:10 T:6664 M:718794752 INFO: MP1 pass through is disabled
10:59:10 T:6664 M:718794752 INFO: MP2 pass through is disabled
10:59:10 T:6664 M:718794752 INFO: MP3 pass through is disabled
10:59:10 T:6664 M:718794752 NOTICE: Checking resolution 12
10:59:10 T:6664 M:718778368 NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
10:59:10 T:6664 M:718508032 DEBUG: CPlayerCoreConfig::<ctor>: created player DVDPlayer for core 1
10:59:10 T:6664 M:718508032 DEBUG: CPlayerCoreConfig::<ctor>: created player oldmplayercore for core 1
10:59:10 T:6664 M:718508032 DEBUG: CPlayerCoreConfig::<ctor>: created player PAPlayer for core 3
10:59:10 T:6664 M:718372864 DEBUG: CPlayerSelectionRule::Initialize: creating rule: system rules
10:59:10 T:6664 M:718372864 DEBUG: CPlayerSelectionRule::Initialize: creating rule: rtv
10:59:10 T:6664 M:718372864 DEBUG: CPlayerSelectionRule::Initialize: creating rule: hdhomerun/myth/rtmp/mms/udp
10:59:10 T:6664 M:718372864 DEBUG: CPlayerSelectionRule::Initialize: creating rule: lastfm/shout
10:59:10 T:6664 M:718372864 DEBUG: CPlayerSelectionRule::Initialize: creating rule: rtsp
10:59:10 T:6664 M:718372864 DEBUG: CPlayerSelectionRule::Initialize: creating rule: streams
10:59:10 T:6664 M:718372864 DEBUG: CPlayerSelectionRule::Initialize: creating rule: flv/aacp/sdp
10:59:10 T:6664 M:718372864 DEBUG: CPlayerSelectionRule::Initialize: creating rule: mp2
10:59:10 T:6664 M:718372864 DEBUG: CPlayerSelectionRule::Initialize: creating rule: dvd
10:59:10 T:6664 M:718372864 DEBUG: CPlayerSelectionRule::Initialize: creating rule: dvdfile
10:59:10 T:6664 M:718372864 DEBUG: CPlayerSelectionRule::Initialize: creating rule: dvdimage
10:59:10 T:6664 M:718372864 DEBUG: CPlayerSelectionRule::Initialize: creating rule: sdp/asf
10:59:10 T:6664 M:718372864 DEBUG: CPlayerSelectionRule::Initialize: creating rule: nsv
10:59:10 T:6664 M:718372864 NOTICE: Loaded playercorefactory configuration
10:59:10 T:6664 M:718372864 NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
10:59:10 T:6664 M:718372864 NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
10:59:10 T:6664 M:718372864 NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)
10:59:10 T:6664 M:718368768 NOTICE: Default DVD Player: dvdplayer
10:59:10 T:6664 M:718368768 NOTICE: Default Video Player: dvdplayer
10:59:10 T:6664 M:718368768 NOTICE: Default Audio Player: paplayer
10:59:10 T:6664 M:718655488 NOTICE: Loading media sources from special://masterprofile/sources.xml
10:59:10 T:6664 M:718274560 NOTICE: Setting Resolution 0
10:59:10 T:6664 M:718270464 DEBUG: CWinSystemWin32::SetFullScreen (true fullscreen) on screen 0 with size 1280x1024, refresh 60.000000
10:59:10 T:6664 M:718270464 DEBUG: CWinSystemWin32::ResizeInternal - resizing due to size change (2118306882,2118308268,1400,1241500 fullscreen)->(0,0,1280,1024 fullscreen)
And thats it. XBMC bails out without further messages.
Looking at guisettings.xml in the profiles folders, of a non patched XBMC, I see that there is indeed a videoscreen xml part with a resolution number in it.
In the portable_data\userdata\guisettings.xml the resolution is -1.
Anything else I can do to help track down this bug?
Regards,
Joop