Uploaded image for project: 'MediaPortal 1'
  1. MediaPortal 1
  2. MP1-4359

MP exit procedures are executed in wrong order

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • 1.6.0
    • None
    • None

    Description

      <p>When MP is closed, D3D class or &quot;Form&quot; is disposed. But the MP main form is disposed before any proper cleanup and stop calls are made to actual code, like for example plugin manager</p>

      <p>In MediaPortal.cs there is OnExit which has the all methods that should be called BEFORE MP Form is disposed.&nbsp;&nbsp;</p>

      <p>Logs show wrong order:</p>

      <div>[2014-01-21 00:15:31,067] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [INFO ] - Main: Exit requested</div>

      <div>[2014-01-21 00:15:31,100] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [INFO ] - Main: Stopping FrameMove</div>

      <div>[2014-01-21 00:15:31,102] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [DEBUG] - D3D: OnFormClosing()</div>

      <div>[2014-01-21 00:15:31,105] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [DEBUG] - D3D CleanupEnvironment()</div>

      <div>[2014-01-21 00:15:31,107] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [DEBUG] - GUIFont:texture disposing:0 debug</div>

      <div>[2014-01-21 00:15:31,109] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [DEBUG] - GUIFont:texture disposing:1 font2</div>

      <div>[2014-01-21 00:15:31,111] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [DEBUG] - GUIFont:texture disposing:2 font10</div>

      <div>&lt;clip&gt;</div>

      <div>[2014-01-21 00:15:31,143] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [INFO ] - TexturePacker: disposing texture:1994</div>

      <div>[2014-01-21 00:15:31,145] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [INFO ] - TexturePacker: disposing texture:1990</div>

      <div>[2014-01-21 00:15:31,149] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [DEBUG] - Main: WM_ACTIVATE (WA_INACTIVE)</div>

      <div>[2014-01-21 00:15:31,150] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [INFO ] - Main: Deactivation request received</div>

      <div>[2014-01-21 00:15:31,152] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [DEBUG] - D3D: OnLostFocus()</div>

      <div>[2014-01-21 00:15:31,157] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [DEBUG] - Main: SaveLastActiveModule - enabled False</div>

      <div>[2014-01-21 00:15:31,159] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [INFO ] - Main: Exiting</div>

      <div>[2014-01-21 00:15:31,162] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [DEBUG] - PlugInManager: Stop()</div>

      <div>[2014-01-21 00:15:31,163] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [DEBUG] - PluginManager: Stopping plugin &#39;MediaPortal.MusicShareWatcher.MusicShareWatcherPlugin&#39;</div>

      <div>[2014-01-21 00:15:31,165] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [DEBUG] - PluginManager: Stopping plugin &#39;SkinTranslations.SkinTranslationsPlugin&#39;</div>

      <div>[2014-01-21 00:15:31,166] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [DEBUG] - PluginManager: Stopping plugin &#39;TitanEditor.TitanPlugin&#39;</div>

      <div>[2014-01-21 00:15:31,168] [Log &nbsp; &nbsp;] [MPMain &nbsp; ] [INFO ] - Titan plugin: Stopped</div>

      Attachments

        Activity

          People

            sebastiii sebastiii
            seco seco (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: