Skip to content

SE_UpdateOSIGroundTruth causes AccessViolation #212

@cfschaller

Description

@cfschaller

Hi Emil,

sorry to bother you with this, but I hope you may be able to help me figure this one out:

As you may be aware we're successfully using a headless esmini to play OpenSCENARIOs within our C#/Unity application. As we recently updated to the newest version, I saw that there is also the option to write OSI data now. I went ahead and wanted to try the new functionality (following your HelloWorld example), so the experimental workflow now looks like this

  • SE_Init <-- successful
  • SE_EnableOSIFile <-- successful
  • Initial SE_UpdateOSIGroundTruth <-- causes System.AccessViolationException "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
  • Repeated: SE_StepDT + SE_UpdateOSIGroundTruth
  • SE_DisableOSIFile
  • SE_Close

I tried this with the most recently released esminiLib.dll on Windows as I though D_OSI was enabled by default.
Do I need to build a custom version anyways or is it necessary to place the osi-dlls next to the esminiLib?

Looking forward to hearing from you and thanks in advance,
Christoph

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions