mscorwks.dll crash (1 Viewer)

dir

MP Donator
  • Premium Supporter
  • August 30, 2006
    408
    36
    Home Country
    Afghanistan Afghanistan
    Have just started getting this error, but it happens when I start up configuration.exe and click on Plugins. the Configuration.log file has about 150 lines of errors in it, so hopefully the answer's in there.

    History:
    - running 1.2.1 since it came out
    - haven't used MP for weeks
    - used it yesterday and ran the MP Extension installer to look for updates, and updated everything that had new versions.
    - I don't have incompatable / unsupported plugins installed (in other words, I don't have plugins with that red warning in the Extension installer)
    - updated StreamedMP via MP tonight when it indicated a new version
    - Ran MP for the past 3 hours with no problem
    - Decided to look for that weather plugin replacement
    - found that new weather plugin and installed it
    - tried starting STreamedmP BasicHome Editor and got an error
    - researched it and found that it was an "oops, sorry, you also need to update OnlineVideos to 1.0.0"
    - removed OnlineVideos and installed new version (didn't uninstall current config)
    - started STreamedMP editor ok this time
    - updated (via StreamedMP menu editor) the menu (deleted old weather, added new one)
    - noticed that the menu editor allows for "NZB" and thought, "Hmmm, that'd be good
    - searched the forums and found the NZB plugin and installed the plugin
    - went back in the StreamedMP editor and tried adding NZB and got an error "QuickSelect Skil XML Missing or InvalidIndex was out of range. Must be non-negative and less than the size of the collection. Parameter name: index".
    - Toggled the menu editor to Display XML Filenames instead of menu items. Found "mpNZB" and added it manually. It accepted it.
    - Generated new menu and exited
    - Started up Configuration.exe to edit the new NZB plugin
    - Clicked on Plugins and got the crash
    - Thought I should uninstall the NZB plugin so went back into MP Extension Installer
    - Noticed that there was a newer version of the NZB plugin available and updated it
    - Tried Configuration.exe again but still crashes.
    [UPDATE:
    - after writing the stuf below, I researched the first error, Cornerstone.dll, found that it was related to OnlineVideos 1.0, so I uninstalled OnlineVideos 1.0 and now configuration.exe works and I can go into the plugins. So that's solved my error but now I have to figure out why OnlineVideos 1.0 is killing things!]

    Here's the crash:
    Description:
    Stopped working

    Problem signature:
    Problem Event Name: APPCRASH
    Application Name: Configuration.exe
    Application Version: 1.2.1.0
    Application Timestamp: 4e7d725f
    Fault Module Name: mscorwks.dll
    Fault Module Version: 2.0.50727.5448
    Fault Module Timestamp: 4e154bce
    Exception Code: c0000005
    Exception Offset: 0001d36d
    OS Version: 6.1.7601.2.1.0.256.48
    Locale ID: 3081

    Am going through the configuration.log file. Many, many errors (?!) but first error is
    [Debug][Config Main(1)]: PluginsNew: loadPlugins C:\Program Files (x86)\Team MediaPortal\MediaPortal\Plugins\windows\Cornerstone.dll
    [Warn.][Config Main(1)]: Plugin Manager: Plugin Cornerstone.Tools.ProcessProgressDelegate is incompatible with the current MediaPortal version! (File: Cornerstone.dll)

    followed by 110 lines of similar warnings for Cornerstone.dll. Then:
    [Debug][Config Main(1)]: PluginsNew: loadPlugins C:\Program Files (x86)\Team MediaPortal\MediaPortal\Plugins\windows\Google.GData.Client.dll
    [Warn.][Config Main(1)]: Plugin Manager: Plugin Google.GData.Client.OAuthBase is incompatible with the current MediaPortal version! (File: Google.GData.Client.dll)

    followed again by 110 lines of similar warnings

    and it goes on with hundreds / thousands of more similar errors for
    Google.GData.Extensions.dll
    Google.GData.YouTube.dll
    lastfm-sharp.dll
    Micropolis.MPCore.dll
    SevenZipSharp.dll
    WorldWeather.Core.dll
    SubtitlePlugins.dll

    then the last line written before it crashes is:
    PluginsNew: loadPlugins C:\Program Files (x86)\Team MediaPortal\MediaPortal\Plugins\process\StreamedMPEditor.dllold

    Will start researching but wanted to log stuff while it was still fresh. MAy come back to this post and delete a lot if it turns out to be irrelevant.
     

    Inker

    Retired Team Member
  • Premium Supporter
  • December 6, 2004
    2,055
    318
    Well: Plugin Manager: Plugin Cornerstone.Tools.ProcessProgressDelegate is incompatible with the current MediaPortal version!

    So you have a mismatch of plugin and Mediaportal versions.
    I don't think this is related to the original issue at all.
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,755
    7,200
    Sydney
    Home Country
    Australia Australia
    Im pretty sure those Plugin Manager warnings appear for everyone (they do for me as well, but only when selecting plugins in configuration)...so I dont think that is the root cause of your problem.
     

    dir

    MP Donator
  • Premium Supporter
  • August 30, 2006
    408
    36
    Home Country
    Afghanistan Afghanistan
    Well, since those errors 6 months ago, and because of continuous crashing of MP, I decided to build a new PC (new motherboard, memory, hard drive), install W7 again, and MP 1.2.3. I did this about a week ago. I reinstalled all the plugins I use as well. So I have a new system and updated versions of everything, and new databases. (And just to be clear, brand new memory - 4x4GB, 16GB total of matched memory certified for my (ASUS) motherboard. So it's really unlikely that I've got memory problems as the logs repeatedly suggest.)

    And I'm still getting crashes. The same ones essentially. So I cleared out the log files and ran MP yesterday, and today I've got lots of log files. I've got a 240MB (!!) fanarthandler.log file which clearly shows that it's generating millions of records for the same error continuously - non-stop, until I guess something else crashes because of it. Or perhaps FAH is crashing because of something else.

    I've just done a google search for one of the errors and of course this thread came up as the top hit, which is why I'm updating it. But the error may related to some other plugin/process but I'll start here.

    Log files are in the zip below (lol - the 246,162,816 byte fanarthandler.log file compresses down to 130K! Good repetition!)

    I don't really trust most of the errors - either they are incidental or wrong. For example, there's a multitude of invalid thumbnail errors for files that exist and appear to be totally normal when viewed within the plugin config, or MP, or using MS-Paint. There's errors for incompatable modules, but in other threads this is dismissed as something that appears in everyone's logs.

    The plugins I have installed (and as of July 12 2012, MPEI says they are all the latest) are:

    plugins.png


    Some example errors in my log files:

    the one that's repeated, oh, a few hundred thousand times in fanarthandler.log:
    Code:
    13-Jul-2012 12:42:08 Error [       FanartHandler]: CheckImageResolution: System.OutOfMemoryException: Out of memory.
       at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
       at System.Drawing.Image.FromFile(String filename)

    And others in error.log:
    Code:
    2012-07-13 01:02:50.967719 [ERROR][MPMain(1)]: render exception:System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
       at MediaPortal.GUI.Library.CachedTexture.FontEngineDrawTexture(Int32 textureNo, Single x, Single y, Single nw, Single nh, Single uoff, Single voff, Single umax, Single vmax, Int32 color, Single[,] matrix)
       at MediaPortal.GUI.Library.CachedTexture.Frame.Draw(Single x, Single y, Single nw, Single nh, Single uoff, Single voff, Single umax, Single vmax, Int32 color)
       at MediaPortal.GUI.Library.GUIImage.Render(Single timePassed)
       at MediaPortal.GUI.Library.GUIControl.DoRender(Single timePassed, UInt32 currentTime)
       at MediaPortal.GUI.Library.GUIWindow.Render(Single timePassed)

    Code:
    2012-07-13 11:58:20.580141 [ERROR][MPMain(1)]: render exception:System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
       at System.String.Concat(String str0, String str1)
       at System.String.Concat(Object arg0, Object arg1)
       at MediaPortal.GUI.Library.GUIFadeLabel.RenderText(Single timePassed, Single fPosX, Single fPosY, Single fMaxWidth, Int64 dwTextColor, String wszText)
       at MediaPortal.GUI.Library.GUIFadeLabel.Render(Single timePassed)
       at MediaPortal.GUI.Library.GUIControl.DoRender(Single timePassed, UInt32 currentTime)
       at MediaPortal.GUI.Library.GUIWindow.Render(Single timePassed)

    Code:
    2012-07-13 11:58:21.674204 [ERROR][TVSeries Sync(47)]: Exception   :System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
       at WindowPlugins.GUITVSeries.DBValue.op_Implicit(String value)
       at TraktPlugin.TraktHandlers.TVSeries.<>c__DisplayClass45.<TraktEpisodeExists>b__43(TraktLibraryShow s)
       at System.Linq.Enumerable.WhereArrayIterator`1.MoveNext()
       at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
       at TraktPlugin.TraktHandlers.TVSeries.TraktEpisodeExists(IEnumerable`1 traktEpisodes, DBEpisode episode)
       at TraktPlugin.TraktHandlers.TVSeries.SyncLibrary()
       at TraktPlugin.TraktHandlers.TVSeries.<OnImportCompleted>b__57()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
    2012-07-13 11:58:22.146231 [ERROR][TVSeries Sync(47)]: Exception   :Exception of type 'System.OutOfMemoryException' was thrown.
    2012-07-13 11:58:22.147231 [ERROR][TVSeries Sync(47)]:   site      :WindowPlugins.GUITVSeries.DBValue op_Implicit(System.String)
    2012-07-13 11:58:22.148231 [ERROR][TVSeries Sync(47)]:   source    :MP-TVSeries
    2012-07-13 11:58:22.149231 [ERROR][TVSeries Sync(47)]:   stacktrace:   at WindowPlugins.GUITVSeries.DBValue.op_Implicit(String value)
       at TraktPlugin.TraktHandlers.TVSeries.<>c__DisplayClass45.<TraktEpisodeExists>b__43(TraktLibraryShow s)
       at System.Linq.Enumerable.WhereArrayIterator`1.MoveNext()
       at System.Linq.Enumerable.Count[TSource](IEnumerable`1 source)
       at TraktPlugin.TraktHandlers.TVSeries.TraktEpisodeExists(IEnumerable`1 traktEpisodes, DBEpisode episode)
       at TraktPlugin.TraktHandlers.TVSeries.SyncLibrary()
       at TraktPlugin.TraktHandlers.TVSeries.<OnImportCompleted>b__57()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

    Code:
    2012-07-13 11:59:31.309187 [ERROR][RefreshWorker(6)]: TextureManager: LoadGraphic - invalid thumb(C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Backdrops\FullSize\{Spawn} [-1537478138].jpg)
    2012-07-13 11:59:31.389191 [ERROR][RefreshWorker(6)]: TextureManager: LoadGraphic - invalid thumb(C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\faithless (10940).jpg)
    2012-07-13 11:59:31.585202 [ERROR][RefreshWorker(6)]: TextureManager: LoadGraphic - invalid thumb(C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\UserDef\pictures\default2.jpg)
    2012-07-13 11:59:52.354390 [ERROR][RefreshWorker(52)]: TextureManager: LoadGraphic - invalid thumb(C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\MovingPictures\Backdrops\FullSize\{Inside.Job} [1333568862].jpg)
    2012-07-13 11:59:52.419394 [ERROR][RefreshWorker(52)]: TextureManager: LoadGraphic - invalid thumb(C:\ProgramData\Team MediaPortal\MediaPortal\Thumbs\Skin FanArt\Scraper\music\simply red (82218).jpg)

    there's a hundred or so supposedly invalid thumbs that, well, aren't invalid by any other measure.

    I only have WARN or above logging enabled which kept the log files down in size and allowed me to more easily read the errors, but I'll enable debug logging and post those in a few hours or a day to give a complete picture.

    Any help would be appreciated in picking apart a likely candidate issue - I suspect there's a few red herrings in here but only one main culprit.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Any help would be appreciated in picking apart a likely candidate issue - I suspect there's a few red herrings in here but only one main culprit.

    My own experience with FanArtHandler is that the database sometimes went corrupt on me, I simply deleted the db3 file and problem fixed.

    Also scan your thumbs folder for any image of 0-bytes. It has solved problems for a few people by removing those. Corrupt images like that can then cause the grahpic processing part of MediaPortal that is used by plugins freak out and generate memory leaks, which eventually cause OutOfMemory errors. And it might not even be your 16GB system memory, it can also be the videocard memory.

    Also no matter how brand new hardware is, you can never rely it to be flawless when you have software acting up. That 3rd module could have 1 bit corrupt, which means only programs loaded in the memory range of 8GB-12GB would notice it and that can sometimes take a very long time to realize (it feels so random then). So just run a memtest86 test that comes included with Vista/Win7/Win8 and adjust the test settings to the maximum stength and make it pass at least 3 to 5x.
     

    Johnnemann

    New Member
    August 5, 2012
    1
    0
    Home Country
    United States of America United States of America
    I am also having issues with the mscorwks.dll crash. I mostly use MP-TVSeries, but the crash never seems to occur when I'm actually using the HTPC - I will go to wake it and find that it has crashed while unattended. It seems to happen almost every time I watch a series and then leave the PC, though.

    I have logs and whatnot, but mostly I just wanted to add my voice to the chorus that this is occurring. I'm on XP with the DefaultWide skin.
     

    Users who are viewing this thread

    Top Bottom