[Bug] MediaPortal crashing intermittently when interacting with the TV Guide (1 Viewer)

Holzi

Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    1. Go to TV Home, Full EPG, click on a channel, click on any show.
    2. Mouse click TopBar "<", "<", then "X" to exit MePo, I get the crash.

    Can reproduce a crash with these steps too.
     

    RonD

    Test Group
  • Team MediaPortal
  • December 20, 2011
    911
    278
    SillyValley CA
    Home Country
    United States of America United States of America
    Holzi,

    what MePo version are you using? If you use windows Event Viewer to look at Application errors do you get the following type of error?

    Faulting application name: MediaPortal.exe, version: 1.5.0.0, time stamp: 0x5245685c
    Faulting module name: KERNELBASE.dll, version: 6.1.7601.18229, time stamp: 0x51fb1116
    Exception code: 0xe053534f
    Fault offset: 0x0000c41f
    Faulting process id: 0x%9
    Faulting application start time: 0x%10
    Faulting application path: %11
    Faulting module path: %12
    Report Id: %13

    I added the info from the crash dumps for MePo 1.5. Not sure how useful this info is or what other debug info is needed to find the real problem.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France

    Holzi

    Super Moderator
  • Team MediaPortal
  • April 21, 2010
    7,934
    2,235
    Ba-Wü
    Home Country
    Germany Germany
    Zzzz, now it gets strange! Today I can't reproduce the crashes anymore... Using MP 1.6.0.

    But I am seeing this behaviour now:
    It doesn't crash here but I can't select a program anymore if I go back (the point where it crashes by Holzi). It only moves the time for and back >_>
     

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Zzzz, now it gets strange! Today I can't reproduce the crashes anymore... Using MP 1.6.0.

    But I am seeing this behaviour now...
    ...which is the same is what I see.
    I've tried over and over and over to reproduce this problem, but I can't. :(
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    EPG didn't work correctly for me and that's maybe why I can't reproduce it. I have see strange error in Log so I have try to attach vs to TV service and quickly TV service crash. So it's another issue but related to EPG. I'm not at home right now put can provide log later and surely on another thread forum
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Good news :)
    I can reproduce the crash lol (no fix) but the crash is here lol

    upload_2014-1-3_17-26-7.png


    upload_2014-1-3_17-29-30.png


    It seems that it doesn't crash always @ the same place.
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    hmmm seems random, i have change skin to test (SMP / DW) -> no crash
    Back to titan -> no crash ....
     

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    :)

    Ahah found something :
    When it crash, it happen after doing ESC for me and it run in a loop :
    Code:
    [2014-01-03 18:33:53,224] [Error  ] [MPMain  ] [ERROR] - OnMessage cntTarget.OnMessage:GUI_MSG_SETFOCUS

    I have added this log line :
    Code:
                      GUIControl cntTarget = GetControl(message.TargetControlId);
                      if (cntTarget != null)
                      {
                        // recalculate visibility, so a invisible item that is becoming visible
                        // becouse the previous component is no longer focused can be focused
                        // mantis issue #1755
                        //UpdateVisibility();  //Bav: reverting change, because it is creating a nonfocused status, when a focus is switching from one control to the other
                        Log.Error("OnMessage cntTarget.OnMessage:{0}", message.Message);
                        cntTarget.OnMessage(message);
                      }

    So now is to know why it does that :)
     

    Attachments

    • log_crash.rar
      22.7 KB

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    It seems that i can reproduce the crash with Titan only but can't be an issue on MP that Titan trigger.
    For some obscure reason, when going back to previous windows, it goes here : (if (Disabled || !CanFocus()))
    And then MP try to focus on all guide item (that too much and then lead to the crash)
    So it's maybe a property set or not set on skin files but skin and me, we are not friend :)

    Code:
    /// <summary>
        /// OnMessage() This method gets called when there's a new message.
        /// Controls send messages to notify their parents about their state (changes)
        /// By overriding this method a control can respond to the messages of its controls
        /// </summary>
        /// <param name="message">message : contains the message</param>
        /// <returns>true if the message was handled, false if it wasnt</returns>
        public virtual bool OnMessage(GUIMessage message)
        {
          if (message.TargetControlId == GetID)
          {
            switch (message.Message)
            {
              case GUIMessage.MessageType.GUI_MSG_SETFOCUS:
    
                // if control is disabled then move 2 the next control
                if (Disabled || !CanFocus())
                {
                  int controlId = 0;
    
                  switch ((Action.ActionType)message.Param1)
                  {
                    case Action.ActionType.ACTION_MOVE_DOWN:
                      controlId = NavigateDown;
                      break;
                    case Action.ActionType.ACTION_MOVE_UP:
                      controlId = NavigateUp;
                      break;
                    case Action.ActionType.ACTION_MOVE_LEFT:
                      controlId = NavigateRight;
                      break;
                    case Action.ActionType.ACTION_MOVE_RIGHT:
                      controlId = NavigateLeft;
                      break;
                  }
    
                  if (controlId == 0)
                  {
                    controlId = Navigate((Direction)message.Param1);
                  }
    
                  if (controlId != -1 && controlId != GetID)
                  {
                    FocusControl(WindowId, controlId, (Direction)message.Param1);
                  }
    
                  return true;
                }
    
                Focus = true;
                return true;
     

    Users who are viewing this thread

    Top Bottom