Concurrency problem in TVE3 DoSetChannelStates() ? (1 Viewer)

romadd64

MP Donator
  • Premium Supporter
  • October 24, 2007
    82
    15
    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



    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(TKe y key, TValue value, Boolean add)
    at TvService.SimpleCardAllocation.UpdateChannelStateU sers(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(ExecutionCon text 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(TKe y key, TValue value, Boolean add)
    at TvService.SimpleCardAllocation.UpdateChannelStateU ser(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(ExecutionCon text executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()




    Thanks,
    romadd
     

    Users who are viewing this thread

    Top Bottom