Media Portal freezes on wake (1 Viewer)

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Yes, this is the problem. What else can I provide to help find a solution?
    You can try the attached patch.
    Close MediaPortal.
    Take a backup of MediaPortal.exe in your MediaPortal install folder (default c:\Program Files (x86)\Team MedaPortal\MediaPortal).
    Download and extract the attached MediaPortal.exe into your MediaPortal install folder to replace the default one.
    Try to reproduce the problem.

    Note: this patch is for short term testing with MediaPortal 1.12 only. If it works, it may be possible to integrate it into a future release. In any case, I will not provide long term support for it. Please do not ask for updates.

    I found this thread today. I don't know if this is a similar problem to what I am expiriencing.
    https://forum.team-mediaportal.com/threads/mp1-4578-crashes-after-standby.129964/
    Please respect the request in my previous post: one thing at a time!
    First let's try to get MP to always respond after resume when you trigger resume or provide input after an automatic resume. After that problem is solved I may or may not be able to help you to resolve other problems.
     

    Attachments

    • MediaPortal_[1.12_user_input_triggers_resume].zip
      505.4 KB

    Jeffrios

    Portal Member
    July 29, 2015
    22
    13
    37
    Home Country
    United States of America United States of America
    Following your instructions, I am unable to get Media Portal to launch with the .exe you provided.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Okay, so what happens? Do you get an error message? Log files?
    I'd like to help but it's literally impossible with the information you've provided about the problem.
     

    Jeffrios

    Portal Member
    July 29, 2015
    22
    13
    37
    Home Country
    United States of America United States of America
    Nothing happens, no error message, nothing appears.

    Log Option 1 & Option 3 are attached.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Thanks for the confirmation @regeszter :)

    @Jeffrios
    Thank you for the log files. They show:
    [collapse]
    "11/2/2015 5:07:22 AM";".NET Runtime";"(0)";"Error";"Application: MediaPortal.exe
    Framework Version: v4.0.30319
    Description: The process was terminated due to an unhandled exception.
    Exception Info: System.MissingMethodException
    Stack:
    at MediaPortalApp.Main(System.String[])
    ";"1026"
    "11/2/2015 5:07:22 AM";"Application Error";"Application Crashing Events";"Error";"Faulting application name: MediaPortal.exe, version: 1.12.0.0, time stamp: 0x56369748 Faulting module name: KERNELBASE.dll, version: 10.0.10240.16384, time stamp: 0x559f3b2a Exception code: 0xe0434352 Fault offset: 0x000b3e28 Faulting process id: 0xaa0 Faulting application start time: 0x01d1155ea6017937 Faulting application path: C:\Program Files (x86)\Team MediaPortal\MediaPortal\MediaPortal.exe Faulting module path: C:\Windows\SYSTEM32\KERNELBASE.dll Report Id: d311a51a-99a8-4be4-9fd8-f4a5c295ac16 Faulting package full name: Faulting package-relative application ID: ";"1000"
    "11/2/2015 5:07:23 AM";"Windows Error Reporting";"(0)";"Information";"Fault bucket 107702491326, type 1 Event Name: APPCRASH Response: Not available Cab Id: 0 Problem signature: P1: MediaPortal.exe P2: 1.12.0.0 P3: 56369748 P4: KERNELBASE.dll P5: 10.0.10240.16384 P6: 559f3b2a P7: e0434352 P8: 000b3e28 P9: P10: Attached files: C:\Users\jeffe\AppData\Local\Temp\WER3EB2.tmp.WERInternalMetadata.xml C:\Users\jeffe\AppData\Local\Temp\WER4105.tmp.appcompat.txt C:\ProgramData\Microsoft\Windows\WER\Temp\WER41A2.tmp.dmp C:\Users\jeffe\AppData\Local\Temp\WER428E.tmp.WERDataCollectionFailure.txt These files may be available here: C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_MediaPortal.exe_2e91513c420cdcecf42bb42b5dd70efa59b1dfc_bde6862f_052b429a Analysis symbol: Rechecking for solution: 0 Report Id: d311a51a-99a8-4be4-9fd8-f4a5c295ac16 Report Status: 4104 Hashed bucket: c6da20f9ff2f9090cc8545c503eb5e5a";"1001"[/collapse]

    That seems fishy to me.

    My guess is that one or more of the following are true:
    • The download or extraction somehow corrupted the file. Solution would be to download and extract again.
    • Security software quarantined the zip and/or exe. This wouldn't be particularly surprising since downloading an exe in a zip file from the internet is a bit suspicious. Solution would be to free the exe from your security software vault/quarantine-list/<whatever it's called>.
    • Windows recognised the zip as "downloaded from the internet" and is trying to protect your computer's security by preventing it from running. Solution would be to right click on MediaPortal.exe, select "properties", then click "unblock".

    Please let me know if the above suggestions don't help.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    @mm1352000 thanks for looking into this :)
    Can you push you change into an EXP branch, BOT will be able to build a full installer :) ? (or at least attach the patch here to upload a full installer)
    Thanks.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    I added the following lines of code:
    Code:
      if (_suspended && !_resumedSuspended)
      {
        // Resume operation of user interface for PBT_APMRESUMEAUTOMATIC without PBT_APMRESUMESUSPEND.
        Log.Info("Main: Resuming operation of user interface");
        OnResumeSuspend();
        msg.WParam = new IntPtr((int)PBT_EVENT.PBT_APMRESUMESUSPEND);
        PluginManager.WndProc(ref msg);
        msg.WParam = new IntPtr((int)PBT_EVENT.PBT_EVENT.PBT_POWERSETTINGCHANGE);
        _resumedSuspended = true;
        _suspended = false;
      }

    ...after this line:
    https://github.com/MediaPortal/Medi.../MediaPortal.Application/MediaPortal.cs#L1977
     

    Jeffrios

    Portal Member
    July 29, 2015
    22
    13
    37
    Home Country
    United States of America United States of America
    Nothing seems to change with the suggestions you provide. I still encounter basically nothing happening.
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Hmmm, I'm really not sure what else to suggest since regeszter confirmed the patch is functional for him.

    You are using MediaPortal 1.12, right?

    Is anybody able to build a full test installer?
     

    Users who are viewing this thread

    Top Bottom