[Bug] MP2 Native TV ATSC Scanning Error (2 Viewers)

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    This is the failing scan log
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    I guess this your dvb scanning that now fails morf ?

    could you make sure that the user context created has the UserType enum set to : UserType.Scanner

    eg.
    user = new User(userName, UserType.Scanner, idCard);

    you should be able to see this from a full strack trace with a debugger attached.

    like in:
    Code:
     public TvResult Scan(string userName, int idCard, out IUser user, IChannel channel, int idChannel)
    	{
    	  user = null;
    	  TvResult result = TvResult.UnknownError;
    	  try
    	  {
    		if (ValidateTvControllerParams(userName) && ValidateTvControllerParams(channel))
    		{
    		  StopEPGgrabber();
    		  user = new User(userName, UserType.Scanner, idCard);
    ....

    the exception occurs because of this in UserManagement.cs:
    Code:
    if (idChannel < 1 && user.UserType != UserType.Scanner) // EGP scanner have no channel
    	  {
    		throw new InvalidOperationException("idChannel is invalid");
    	  }
     
    Last edited:

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Thanks. The problem in this case is the analog part: it does Tune() , then Scan().

    I changed the user now to type "Scanner" and I can pass the check. But scanning doesn't finish yet because of a message box:
    "Unable to scan"
    "Generic error: An error occurred while updating the entries"
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Thanks. The problem in this case is the analog part: it does Tune() , then Scan().

    I changed the user now to type "Scanner" and I can pass the check. But scanning doesn't finish yet because of a message box:
    "Unable to scan"
    "Generic error: An error occurred while updating the entries"
    I sadly dont have analog here.
    Can u get any closer to this exception?
    Does it occur in setuptv?
    Try make vs2010 stop on all exceptions. Both handled and unhandled.
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I just want to post an update to the current situation:

    Thanks to the testing support by @hardcorehire we could fix some issues already:
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    These binaries should solve the ATSC scanning issue (see details in post above). Place them under "C:\Program Files (x86)\Team MediaPortal\MP2-Server\Plugins\SlimTv.Service" (overwrite existing ones).

    Then try a new channel scan.
     

    Attachments

    • MP2_NativeTv_ATSC_ScanningFix.7z
      723.2 KB

    tomtj

    MP Donator
  • Premium Supporter
  • March 18, 2012
    56
    10
    NW Chicago suburbs
    Home Country
    United States of America United States of America
    With these binaries I picked up some channels under the (TV Channels) which is more than I got before. But none of those preview, and it is not the full complement of channels that are available to me OTA. It didn't pick up any of the call signs. Logs attached.
    Tony
     
    Last edited:

    hardcorehire

    Portal Pro
    April 1, 2008
    108
    45
    OHIO
    Home Country
    United States of America United States of America
    ATSC Scanning worked good. Are these changes committed to the v2 branch?
    I assume Gibman will work on a solution for the analog database issue.

    Thanks for the all the time spent getting this working.
     

    gibman

    Retired Team Member
  • Premium Supporter
  • October 4, 2006
    2,998
    1,372
    Aarhus
    Home Country
    Denmark Denmark
    Could you try install mysql 5.5 or 5.6.
    Last time i tried on ur comp Ididnt succeed.
     

    hardcorehire

    Portal Pro
    April 1, 2008
    108
    45
    OHIO
    Home Country
    United States of America United States of America
    I installed MySQL 5.6 but not sure how to setup. I'll send password in PM.
     

    Users who are viewing this thread

    Top Bottom