home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Start-up problem with Turkish Regional Settings
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="UNOPARATOR" data-source="post: 183919" data-attributes="member: 56815"><p><strong>The syptom : </strong></p><p>MediaPortal main window doesn't show anything other than window borders and main menu strip. There is no GUI. In Windows XP the GUI part doesn't draw at all (just shows what was under the current window position at startup), in Windows Vista the GUI part appears white...</p><p></p><p><strong>The prognosis : </strong></p><p>After installing SVN and looking the source code, I wasn't able to find anything at first. Then I checked the Log directory for any leads and saw this :</p><p>[CODE]2007-09-21 13:04:47.034035 [ERROR][MPMain]: D3D: InitializeDeviceObjects - Exception: System.IO.FileNotFoundException: d:\mediaportal\xbmc\bin\debug\skin\bluetwo\media\newmail[COLOR="Red"]ı[/COLOR]con.png</p><p> at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)</p><p> at System.Drawing.Image.FromFile(String filename)</p><p> at MediaPortal.GUI.Library.TexturePacker.AddBitmap(PackedTextureNode root, Image rootImage, String file, Boolean& dontAdd) in D:\MediaPortal\Core\guilib\TexturePacker.cs:line 420</p><p> at MediaPortal.GUI.Library.TexturePacker.PackSkinGraphics(String skinName) in D:\MediaPortal\Core\guilib\TexturePacker.cs:line 336</p><p> at MediaPortal.GUI.Library.GUITextureManager.Init() in D:\MediaPortal\Core\guilib\GUITextureManager.cs:line 726</p><p> at MediaPortalApp.InitializeDeviceObjects() in D:\MediaPortal\xbmc\MediaPortal.cs:line 1541</p><p> at MediaPortal.D3DApp.InitializeEnvironment() in D:\MediaPortal\xbmc\d3dapp.cs:line 1001[/CODE]notice the <span style="color: Red">red</span> text (you may have to scroll the code block to the right) that was supposed to be lower case "i" (in Turkish we have upper case "i" as "I" with a dot over it, and lower case "I" looks like "i" without a dot over it) but that crypted text is (I'm guessing that's because the log file is ANSI encoded instead of UNICODE) supposed to be lower case "I" as in Turkish characters...</p><p>Then I checked the sourcecode for the use of .ToLower() method.</p><p></p><p><strong>The solution :</strong></p><p>I replaced all .ToLower() methods with .ToLowerInvariant() and that was it.</p><p></p><p><strong>Suggestion : </strong> <em>I know you will find out a better solution for this...</em></p><p>In my opinion it should be better to use case sensitive filenames (as in C# syntax <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite7" alt=":p" title="Stick Out Tongue :p" loading="lazy" data-shortname=":p" />)</p><p>or </p><p>first try to find the filename as it is (case sensitive) and if no file is found try to find the filename with .ToLowerInvariant() and if still not found try to find with .ToLower() (as the current thread's cultureInfo -Regional Settings)...</p><p></p><p>The bug exists in latest stable (0.2.2.0), latest release candidate (0.2.3.0 RC2) and also the nightly builds...</p><p></p><p>As I can finally see the GUI and able to use the program, I must say THANK YOU for your great efforts in such a great and also free product !!!! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p></blockquote><p></p>
[QUOTE="UNOPARATOR, post: 183919, member: 56815"] [B]The syptom : [/B] MediaPortal main window doesn't show anything other than window borders and main menu strip. There is no GUI. In Windows XP the GUI part doesn't draw at all (just shows what was under the current window position at startup), in Windows Vista the GUI part appears white... [B]The prognosis : [/B] After installing SVN and looking the source code, I wasn't able to find anything at first. Then I checked the Log directory for any leads and saw this : [CODE]2007-09-21 13:04:47.034035 [ERROR][MPMain]: D3D: InitializeDeviceObjects - Exception: System.IO.FileNotFoundException: d:\mediaportal\xbmc\bin\debug\skin\bluetwo\media\newmail[COLOR="Red"]ı[/COLOR]con.png at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement) at System.Drawing.Image.FromFile(String filename) at MediaPortal.GUI.Library.TexturePacker.AddBitmap(PackedTextureNode root, Image rootImage, String file, Boolean& dontAdd) in D:\MediaPortal\Core\guilib\TexturePacker.cs:line 420 at MediaPortal.GUI.Library.TexturePacker.PackSkinGraphics(String skinName) in D:\MediaPortal\Core\guilib\TexturePacker.cs:line 336 at MediaPortal.GUI.Library.GUITextureManager.Init() in D:\MediaPortal\Core\guilib\GUITextureManager.cs:line 726 at MediaPortalApp.InitializeDeviceObjects() in D:\MediaPortal\xbmc\MediaPortal.cs:line 1541 at MediaPortal.D3DApp.InitializeEnvironment() in D:\MediaPortal\xbmc\d3dapp.cs:line 1001[/CODE]notice the [COLOR="Red"]red[/COLOR] text (you may have to scroll the code block to the right) that was supposed to be lower case "i" (in Turkish we have upper case "i" as "I" with a dot over it, and lower case "I" looks like "i" without a dot over it) but that crypted text is (I'm guessing that's because the log file is ANSI encoded instead of UNICODE) supposed to be lower case "I" as in Turkish characters... Then I checked the sourcecode for the use of .ToLower() method. [B]The solution :[/B] I replaced all .ToLower() methods with .ToLowerInvariant() and that was it. [B]Suggestion : [/B] [I]I know you will find out a better solution for this...[/I] In my opinion it should be better to use case sensitive filenames (as in C# syntax :P) or first try to find the filename as it is (case sensitive) and if no file is found try to find the filename with .ToLowerInvariant() and if still not found try to find with .ToLower() (as the current thread's cultureInfo -Regional Settings)... The bug exists in latest stable (0.2.2.0), latest release candidate (0.2.3.0 RC2) and also the nightly builds... As I can finally see the GUI and able to use the program, I must say THANK YOU for your great efforts in such a great and also free product !!!! :thx: [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
Start-up problem with Turkish Regional Settings
Contact us
RSS
Top
Bottom