Skip to content

readRawData() reliably crashes with an access violation (0xC0000005) — ClariusL15 #230

Description

@ilabenedetti

Hi everyone,
I'm trying to get raw/RF data saving working through the Cast API in Python. I've run into a crash I can't get past, and I've done a fair amount of testing to narrow it down — hoping someone from the team can point me in the right direction.

Setup

  • Probe: Clarius L15, research/raw data mode enabled on the account
  • OS: Windows 11
  • Python: 3.12 (64-bit)
  • SDK build: cast.dll / pyclariuscast.pyd, built 2025-10-29 (checked via the PE header timestamp, since these binaries don't expose a version number through Windows file properties)
  • I'm working from a modified version of the official pycaster.py sample

What's happening

requestRawData() works exactly as expected — after connecting and streaming for a few seconds, it consistently returns a correct byte count for the requested time range. But the very next call, readRawData(), crashes the whole Python process every time, with Windows exit code -1073741819 (0xC0000005 / STATUS_ACCESS_VIOLATION). This isn't a Python exception I can catch — it's a native crash inside the SDK itself.

What I've tried to rule out

I went through this pretty systematically because I wanted to be sure it wasn't something on my end before writing in:

  • Data size: tested a ~20MB window (2s) and a ~5.6MB window (0.5s) — same crash both times
  • Timing: called readRawData() immediately after requestRawData() returned, and after waiting 5 seconds — same crash both times
  • LZO compression: tried both lzo=False and lzo=True — same crash both times
  • Imaging state: tried with the probe actively streaming, and with imaging frozen right before the read — same crash both times

Running with python -u (unbuffered output) confirms the crash happens inside the readRawData() call itself, in every one of these scenarios — a print statement right before the call runs, but the one right after (on success) never gets reached.

One thing I noticed: the changelog mentions "Fixed: Raw data collection" in v12.2.2 and "Fixed Windows crashes" in v12.2.4, both from late 2024. My build is from October 2025, so this doesn't seem to be the same issue — maybe a regression, or something specific to the L15 (I saw issue #211 also involves RF data with an L15 probe, though the symptoms described there are a bit different from mine).

Where I'm stuck

I don't have visibility into the SDK internals, so I can't tell if this is a known limitation, something version-specific, or a genuine bug worth filing more formally. Has anyone on the team seen this before, or is there a recommended way to get raw data out reliably that I might be missing? I share my full test script and logs if that helps track it down.

crash_logs.txt

pycaster_rf.py

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions