Hello,
I am having issues where the streams are freezing (no more data comes in) and then my program has excessive memory usage. When I take a heap shot, all of the memory are used by json objects which look to be refinitiv data objects. It's definitely not my application part holding onto memory. I paused a debug session and nothing more comes to my OnUpdate() or OnInsert() type functions from a stream.
When I finally stop my application and try to restart, it can't connect to workspace api. It just says: "State: Pending. DesktopSession is Pending"
Here are the RDP logs in the example of trying to reconnect:
2024-10-21 10:16:43.6641|Info|Refinitiv.Data.Log|1|Registering log system
2024-10-21 10:16:43.6641|Info|Refinitiv.Data.Initializer|1|Library version: 1.0.0-beta5
2024-10-21 10:16:43.6641|Info|Refinitiv.Data.Initializer|1|.Net runtime: 8.0.8
2024-10-21 10:16:43.6641|Info|Refinitiv.Data.Initializer|1|.Net version: 8.0.8+08338fcaa5c9b9a8190abb99222fed12aaba956c
2024-10-21 10:16:43.6923|Info|Refinitiv.Data.Core.DataLibraryConfig|1|Successfully loaded the Stream:[internal] configuration database.
2024-10-21 10:16:43.7084|Info|Refinitiv.Data.Core.DesktopSessionCore|1|No named session defined. Successfully loaded desktop default configuration.
2024-10-21 10:16:43.7084|Info|Refinitiv.Data.Core.DesktopSessionCore|1|DesktopSession Session State transitioned from Closed to Pending
2024-10-21 10:16:43.7243|Info|Refinitiv.Data.Core.DesktopSessionCore|1|Locating proxy port within: C:\Users\Administrator\AppData\Roaming/Refinitiv/Data API Proxy/.portInUse
2024-10-21 10:16:43.7243|Info|Refinitiv.Data.Core.DesktopSessionCore|1|Found port 9000 in file: C:\Users\Administrator\AppData\Roaming/Refinitiv/Data API Proxy/.portInUse
Now of course I can just completely stop workspace.. but something is happening that completely kills my streams and then I can't even reconnect to the API. Workspace was still fully functional on the front-end.
The only useful log I can give you related to the streams stopping is this portion
System.NullReferenceException: Object reference not set to an instance of an object.
at Refinitiv.Data.Content.HistoricalPricing.TSI.TSTable..ctor(TSTable dataTable)
at Refinitiv.Data.Content.HistoricalPricing.TSI.TSBars.SummarizePartialBar(DateTime datetime, IDerivationRules derivatives)
at Refinitiv.Data.Content.HistoricalPricing.IntradaySummarizer.SummarizeRecords(IList`1 records)
at Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer.ProcessMessageAsync(Boolean isRefresh)
at Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer.<StartMessageProcessing>b__20_0()
2024-10-21 03:35:09.7106|Error|Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer|205|Problems Summarizing record
System.NullReferenceException: Object reference not set to an instance of an object.
at Refinitiv.Data.Content.HistoricalPricing.TSI.TSTable..ctor(TSTable dataTable)
at Refinitiv.Data.Content.HistoricalPricing.TSI.TSBars.SummarizePartialBar(DateTime datetime, IDerivationRules derivatives)
at Refinitiv.Data.Content.HistoricalPricing.IntradaySummarizer.SummarizeRecords(IList`1 records)
at Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer.ProcessMessageAsync(Boolean isRefresh)
at Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer.<StartMessageProcessing>b__20_0()
2024-10-21 03:35:09.7106|Error|Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer|205|Problems Summarizing record
System.NullReferenceException: Object reference not set to an instance of an object.
at Refinitiv.Data.Content.HistoricalPricing.TSI.TSTable..ctor(TSTable dataTable)
at Refinitiv.Data.Content.HistoricalPricing.TSI.TSBars.SummarizePartialBar(DateTime datetime, IDerivationRules derivatives)
at Refinitiv.Data.Content.HistoricalPricing.IntradaySummarizer.SummarizeRecords(IList`1 records)
at Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer.ProcessMessageAsync(Boolean isRefresh)
at Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer.<StartMessageProcessing>b__20_0()
2024-10-21 03:35:09.7106|Error|Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer|205|Problems Summarizing record
System.NullReferenceException: Object reference not set to an instance of an object.
at Refinitiv.Data.Content.HistoricalPricing.TSI.TSTable..ctor(TSTable dataTable)
at Refinitiv.Data.Content.HistoricalPricing.TSI.TSBars.SummarizePartialBar(DateTime datetime, IDerivationRules derivatives)
at Refinitiv.Data.Content.HistoricalPricing.IntradaySummarizer.SummarizeRecords(IList`1 records)
at Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer.ProcessMessageAsync(Boolean isRefresh)
at Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer.<StartMessageProcessing>b__20_0()
2024-10-21 03:35:09.7106|Error|Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer|205|Problems Summarizing record
System.NullReferenceException: Object reference not set to an instance of an object.
at Refinitiv.Data.Content.HistoricalPricing.TSI.TSTable..ctor(TSTable dataTable)
at Refinitiv.Data.Content.HistoricalPricing.TSI.TSBars.SummarizePartialBar(DateTime datetime, IDerivationRules derivatives)
at Refinitiv.Data.Content.HistoricalPricing.IntradaySummarizer.SummarizeRecords(IList`1 records)
at Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer.ProcessMessageAsync(Boolean isRefresh)
at Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer.<StartMessageProcessing>b__20_0()
2024-10-21 03:35:09.7928|Error|Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer|90|Unexpected error processing TSI message
System.ArgumentException: Can not add property _SEQUENCE_NUMBER_ to Newtonsoft.Json.Linq.JObject. Property with the same name already exists on object.
at Newtonsoft.Json.Linq.JContainer.InsertItem(Int32 index, JToken item, Boolean skipParentCheck, Boolean copyAnnotations)
at Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer.<StartMessageProcessing>b__20_0()
2024-10-21 03:35:09.7928|Info|Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer|90|Stopped TSI Message Processing...
2024-10-21 03:35:09.7996|Error|Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer|119|Unexpected error processing TSI message
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at Newtonsoft.Json.Linq.JObject.GetEnumerator()+MoveNext()
at Newtonsoft.Json.Linq.JObject.MergeItem(Object content, JsonMergeSettings settings)
at Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer.<StartMessageProcessing>b__20_0()
2024-10-21 03:35:09.7996|Info|Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer|119|Stopped TSI Message Processing...
2024-10-21 03:35:11.1755|Error|Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer|115|Problems Summarizing record
System.NullReferenceException: Object reference not set to an instance of an object.
at Refinitiv.Data.Content.HistoricalPricing.TSI.TSTable..ctor(TSTable dataTable)
at Refinitiv.Data.Content.HistoricalPricing.TSI.TSBars.SummarizePartialBar(DateTime datetime, IDerivationRules derivatives)
at Refinitiv.Data.Content.HistoricalPricing.IntradaySummarizer.SummarizeRecords(IList`1 records)
at Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer.ProcessMessageAsync(Boolean isRefresh)
at Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer.<StartMessageProcessing>b__20_0()
2024-10-21 03:35:11.1755|Error|Refinitiv.Data.Content.HistoricalPricing.TSI.Summarizer|158|Problems Summarizing record