Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Infragistics Bug

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Infragistics Bug

    The following code generates an unhandled exception in Infragistics when there is a problem with one of the DataSeries data connections:
    Code:
    [SIZE=2][FONT=Courier New][SIZE=2][FONT=Courier New]Bars.Session.GetNextBeginEnd(DateTime.Now, [/FONT][/SIZE][/FONT][/SIZE][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]out[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] SessionStart, [/SIZE][/FONT][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]out[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] SessionEnd) ;[/SIZE][/FONT][/SIZE][/FONT]
    This results in Session Start = 01-Jan-00 00:00:00 and Session End = 01-Dec-99 00:00:00.

    Trace and Log files attached, as well as the popup indicating the error loading chart data.
    Attached Files
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    #2
    Hello,

    Can you provide a specific scenario in which this happened?

    Using the example from the help guide on the instrument pictured generated no errors, I am unsure what had caused the error based on the information given.

    I look forward to being of further assistance.

    Comment


      #3
      Infragistics Bug

      Hi Jesse. Although I have yet to try this, I suspect if the network connection is "sub optimal" for some reason but the connection is not "down", it causes the data error that's reported, which in turn causes Infragistics to bugout.

      Even if the actual data error cannot be generated on demand, I suspect there is sufficient information already to investigate and address the unhandled exception in Infragistics in any case, as it stands on its own as an issue in need of resolution.

      Thanks.
      Multi-Dimensional Managed Trading
      jeronymite
      NinjaTrader Ecosystem Vendor - Mizpah Software

      Comment


        #4
        Hello,

        Thank you for the reply.

        I am not sure how I would re create this scenario as I don't have way to simulate a sub optimal internet connection to test with. I can try disconnecting my computer today to test this but other than that I am unsure how this would be tested.

        The developers ask for a reproducible scenario for reporting bugs, so until I can reproduce this in some way I would be unable to submit it.

        I will use what you have posted for testing, but if you can provide a more specific scenario that would be best so I can submit this for review.

        I look forward to being of further assistance.

        Comment


          #5
          Infragistics Bug

          Hi Jesse.

          I am now confident that this error (bug?) has nothing to do with the quality of the Internet connection. The attached files show the error occurs every time I start my strategy.

          Your kind assistance requested again to followup on this. I'm happy to forward any other required files to PlatformSupport, if you wish. Obviously, my strategy code is excepted from that, it being 40K+ lines of code.

          Thanks!
          Attached Files
          Multi-Dimensional Managed Trading
          jeronymite
          NinjaTrader Ecosystem Vendor - Mizpah Software

          Comment


            #6
            Hello,

            Thank you for providing the trace, I can look into the error on my end and see if I can find any further information. Without a sample that demonstrates this I am unsure of anything else I could request that would be helpful at this point.

            would it be possible for you to create a sample that demonstrates this error? I would be happy to look into a sample that demonstrates the issue if you would like to isolate the problem in the script and create a sample that shows it. I can then take this sample and find the exact cause or provide that information to development.

            Without any sort of sample that shows what is happening, there is not a lot to go on based on the error. All we know for sure is that there is an exception regarding an index out of bounds that is related to an Infragistics control.

            I look forward to being of further assistance.

            Comment


              #7
              Infragistics Bug

              Thanks for your reply, Jesse.

              I have discovered that I can "predict" the bug using the following code:
              Code:
               [FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]Bars.Session.GetNextBeginEnd(DateTime.Now, [/SIZE][/FONT][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]out[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] SessionStart, [/SIZE][/FONT][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]out[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] SessionEnd) ;[/SIZE][/FONT][/SIZE][/FONT]
               [FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]TimeSpan SessionDelta = SessionStart - DateTime.Now ;[/SIZE][/FONT][/SIZE][/FONT]
               [FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff][FONT=Courier New][SIZE=2][COLOR=#0000ff]bool[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2] InfragisticsBug = SessionDelta < TimeSpan.FromDays(-[/SIZE][/FONT][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#800080][FONT=Courier New][SIZE=2][COLOR=#800080][FONT=Courier New][SIZE=2][COLOR=#800080]10[/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][FONT=Courier New][SIZE=2][FONT=Courier New][SIZE=2]) ; [/SIZE][/FONT][/SIZE][/FONT][FONT=Courier New][SIZE=2][COLOR=#008000][FONT=Courier New][SIZE=2][COLOR=#008000][FONT=Courier New][SIZE=2][COLOR=#008000]// Infragistics Bug!
              [/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT][/COLOR][/SIZE][/FONT]
              The Session Start time returned when the bug manifests is 01-Jan-00 00:00:00. The prediction is valid and occurs before the bug manifests.

              Here is the trace record for the GetBarsNow invocation:
              Code:
               2015-09-14 13:50:19:278 (1 NT FXCM D27406684001) Data.Bars.GetBarsNow: instrument='$AUDUSD' from='2015-09-13' to='2015-09-13' period=1 Min splitAdjusted=False dividendAdjusted=False bars=0 session='Forex'
              I hope this helps.

              Thanks!
              Multi-Dimensional Managed Trading
              jeronymite
              NinjaTrader Ecosystem Vendor - Mizpah Software

              Comment


                #8
                Hello,

                Thank you for the reply.

                I tried the provided code on a 1 minute chart for the $AUDUSD, I had also set a custom range to try the dates listed in the log message. I am unable to reproduce this at this time.

                Are there any other steps to produce the error?
                is this absolutely the only code in the file? If not can you instead provide an export of the sample so I have exactly the same file as you?
                can you confirm the error is generated when using the provided code only in a script?

                Does this happen only on your FXCM connection, can you re produce this using the Simulated data feed or Market replay?

                If you can provide any further details on any steps I may not be doing that you are that would be helpful.

                I look forward to being of further assistance.

                Comment


                  #9
                  Infragistics Bug

                  Thanks, Jesse.

                  Let me experiment with this and see what I can do to isolate it to a small repeatable code chunk. Given that it doesn't always happen, it seems like certain data stream conditions are needed. It's very common within the first few hours of the Monday market open, but it can happen at any time. It's just not clear what the circumstances are. I'll let you know when I have more information.

                  Thanks again!
                  Multi-Dimensional Managed Trading
                  jeronymite
                  NinjaTrader Ecosystem Vendor - Mizpah Software

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  633 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  364 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  105 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  567 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  568 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X