Skip to content

ExposureReportWorksForEverySecurityType test causing crash #9203

@Martin-Molinero

Description

@Martin-Molinero

Expected Behavior

  • No crash

Actual Behavior

  • Crash
The active test run was aborted. Reason: Test host process crashed : 20260106 21:41:10.882 ERROR:: LocalDiskMapFileProvider.GetMapFileResolver(sgx): The specified directory does not exist: ../../../Data/equity/sgx/map_files
Specify --help for a list of available options and commands.
Fatal error.
0xC0000005
   at Python.Runtime.PyObject.Invoke(Python.Runtime.PyTuple, Python.Runtime.PyDict)
   at Python.Runtime.PyObject.TryInvokeMember(System.Dynamic.InvokeMemberBinder, System.Object[], System.Object ByRef)
   at DynamicClass.CallSite.Target(System.Runtime.CompilerServices.Closure, System.Runtime.CompilerServices.CallSite, System.Object, Python.Runtime.PyDict, Python.Runtime.PyDict)
   at System.Dynamic.UpdateDelegates.UpdateAndExecute3[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.Runtime.CompilerServices.CallSite, System.__Canon, System.__Canon, System.__Canon)
   at QuantConnect.Report.ReportElements.MonthlyReturnsReportElement.Render()
   at QuantConnect.Report.Report.Compile(System.String ByRef, System.String ByRef)
   at QuantConnect.Tests.Report.ReportChartTests+<>c__DisplayClass1_0.<ExposureReportWorksForEverySecurityType>b__1()
   at DynamicClass.InvokeStub_TestDelegate.Invoke(System.Object, System.Object, IntPtr*)
   at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
   at System.Delegate.DynamicInvokeImpl(System.Object[])
   at NUnit.Framework.Internal.Reflect.DynamicInvokeWithTransparentExceptions(System.Delegate)
   at NUnit.Framework.Internal.ExceptionHelper.RecordException(System.Delegate, System.String)
   at NUnit.Framework.Constraints.ThrowsNothingConstraint.ApplyTo[[System.__Canon, System.Private.CoreLib, Version=10.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](System.__Canon)
   at NUnit.Framework.Assert.DoesNotThrow(NUnit.Framework.TestDelegate)
   at QuantConnect.Tests.Report.ReportChartTests.ExposureReportWorksForEverySecurityType()
   at System.RuntimeMethodHandle.InvokeMethod(System.Runtime.CompilerServices.ObjectHandleOnStack, Void**, System.Runtime.CompilerServices.ObjectHandleOnStack, BOOL, System.Runtime.CompilerServices.ObjectHandleOnStack)
   at System.RuntimeMethodHandle.InvokeMethod(System.Runtime.CompilerServices.ObjectHandleOnStack, Void**, System.Runtime.CompilerServices.ObjectHandleOnStack, BOOL, System.Runtime.CompilerServices.ObjectHandleOnStack)
   at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(System.Object, IntPtr*)
   at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)

Potential Solution

  • Will require further testing to pin the underlying issue

Reproducing the Problem

dotnet test ./QuantConnect.Tests.dll --filter "FullyQualifiedName=QuantConnect.Tests.Report.ReportChartTests.ExposureReportWorksForEverySecurityType" --blame-hang-timeout 120seconds --blame-crash --verbosity detailed
Adding py.gil in the tests stops the issue from reproducing when running the test by itself but still reprocess when running all
dotnet test ./QuantConnect.Tests.dll --blame-hang-timeout 300seconds --blame-crash --filter "TestCategory!=TravisExclude&TestCategory!=ResearchRegressionTests"

System Information

N/A

Checklist

  • I have completely filled out this template
  • I have confirmed that this issue exists on the current master branch
  • I have confirmed that this is not a duplicate issue by searching issues
  • I have provided detailed steps to reproduce the issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions