Concurrency problem in TVE3 DoSetChannelStates() ?

Discussion in 'General Support' started by romadd64, October 21, 2008.

Thread Status:
Not open for further replies.
  1. romadd64
    • Premium Supporter

    romadd64 MP Donator

    Joined:
    October 24, 2007
    Messages:
    82
    Likes Received:
    15
    Ratings:
    +15 / 0
    Home Country:
    Italy Italy
    TV-Server Version: 1 RC2 SVN
    MediaPortal Version: 1 RC2 SVN
    MediaPortal Skin: BlueTwo
    Windows Version: TVE3 : XP SP3 - Client : XP SP3 + Vista x64 SP1
    CPU Type: TVE3 : Intel E2180 - Client : AMD 4400 + Intel Q6600
    HDD: A lot
    Memory: TVE3 : 2 GB - Client : 2 GB + 8GB
    Motherboard: TVE3 : Asus P5KE-WiFi - Client : Barebone 690G + Asus P5KE-WiFi
    Video Card: TVE3 : Nvidia 7300 - Client : 690G + Nvidia 8800GT
    Video Card Driver: Last
    Sound Card: Client : SoundMax integrated
    Sound Card AC3: Optical Out
    Sound Card Driver: Last
    1. TV Card: 2 Terratec 2400i
    1. TV Card Type: DVB-T
    1. TV Card Driver: 1.0.3.266
    2. TV Card: FloppyDTV
    2. TV Card Type: DVB-T
    2. TV Card Driver:
    3. TV Card: Technisat Skystar 2 PCI ver 2.1
    3. TV Card Type: DVB-S
    3. TV Card Driver: BDA 4.4.3.0
    4. TV Card: NVidia DualTV PAL
    4. TV Card Type: Analog
    4. TV Card Driver: 5.9.5.23
    MPEG2 Video Codec: MPV
    MPEG2 Audio Codec: MPA
    h.264 Video Codec: ffdshow
    Satelite/CableTV Provider: Hotbird 13°E, Astra 19.2°E
    HTPC Case: TVE3 : Assembled, Client : Asus Barebone
    Cooling:
    Power Supply:
    Remote:
    TV:
    TV - HTPC Connection: HDMI




    EDIT - Posted in the wrong forum, sorry - Moved in MediaPortal Forum » MediaPortal TV-Server » Help on Development » Bugreports: TV Server / Client » 1.0 RC2 and SVN Builds




    Could be a concurrency problem when in TVE3 more than one DoSetChannelStates() thread is running.
    In my attached tv.log :

    New recording starting and his DoSetChannelStates() :

    2008-10-20 23.25.11.575750 [5]: Scheduler : time to record TvDatabase.Channel 20/10/2008 23.25.11-21/10/2008 1.30.00 Matrix
    ..
    ..
    2008-10-20 23.25.12.122625 [21]: Controller: DoSetChannelStates for 2394 channels



    Another recordind starting and his DoSetChannelStates() :

    2008-10-20 23.25.13.341375 [5]: Scheduler : time to record TvDatabase.Channel 20/10/2008 23.25.13-21/10/2008 1.00.00 Porta a Porta
    ..
    ..
    2008-10-20 23.25.14.294500 [17]: Controller: DoSetChannelStates for 2394 channels





    TVServer crashes in thread 21 and 17 :

    2008-10-20 23.25.16.607000 [17]: Tvservice stopped due to a app domain exception System.IndexOutOfRangeException: Index was outside the bounds of the array.
    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
    at TvService.SimpleCardAllocation.UpdateChannelStateUsers(IList`1& allUsers, ChannelState chState, Int32 channelId)
    at TvService.SimpleCardAllocation.DoSetChannelStates(Dictionary`2 cards, List`1 channels, Boolean checkTransponders, IList`1 allUsers, TVController tvController)
    at TvService.SimpleCardAllocation.<>c__DisplayClass1.<SetChannelStates>b__0()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    2008-10-20 23.25.16.622625 [21]: Tvservice stopped due to a app domain exception System.IndexOutOfRangeException: Index was outside the bounds of the array.
    at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
    at TvService.SimpleCardAllocation.UpdateChannelStateUser(User& user, ChannelState chState, Int32 channelId)
    at TvService.SimpleCardAllocation.DoSetChannelStates(Dictionary`2 cards, List`1 channels, Boolean checkTransponders, IList`1 allUsers, TVController tvController)
    at TvService.SimpleCardAllocation.<>c__DisplayClass1.<SetChannelStates>b__0()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()




    Thanks,
    romadd
     
Loading...
Thread Status:
Not open for further replies.

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!