Crashes when zooming in on swd protocol analysis

When I zoom in on a capture with SWD protocol analysis the software reproducibly crashes. I can provide the capture file. See GIF to see it occur. The tool completely dies without any warnings. I’m using Logic 2.4.36.

swd-protocol-crash

@benfroelich Sorry to hear about that! Yes, we would love to receive a copy of your capture file (in .sal file format) if you can send that over.

Additionally, please also send us your machine ID.

In case you’d like to send this to us privately, you can send it via our contact form below:

https://contact.saleae.com/hc/en-us/requests/new

Hope to get to the bottom of this soon!

Hi Tim, thanks for the prompt reply. A generic capture is attached.

switchfault.sal (3.4 KB)

Machine info:

{“Environment”:“production”,“Branch”:“master”,“Commit”:“ced136093cfa95c7d7c9aca06f251697129d82a4”,“Version”:“2.4.36”,“AutomationVersion”:“1.0.0”,“MachineID”:“50764f03-3e23-4f69-b78d-e23a2cb0876c”,“PID”:4596,“LaunchId”:“a3f20747-725b-4557-98bf-8f61aa075a5e”,“Architecture”:“x64”}

By the way, the protocol analyzer works just fine if I remember not to zoom in too much. It misses a few uncommon SWD transactions such as TARGETSEL and activation sequences but overall is very helpful.

@benfroelich I’m not able to reproduce the crash on MacOS (zooming into various points on the capture file you provided).

The capture file looks a bit different compared to the video you provided as well.

Can you confirm:

  1. If you can reproduce the crash with the capture file you provided?
  2. What OS you are running?
  3. At what specific point in the capture file that you provided do you zoom into to cause the crash?

Hi Tim, I can reproduce the crash with the file provided on windows 11.

logic2_crash_switchfault.zip (9.9 MB)

It only happens in certain spots.

@benfroelich Aha, I was able to reproduce it even on MacOS. We’ll get this on the backlog to investigate further.

Thanks @benfroelich,

We’ve started digging through this, and the crash is happening in our frame rendering code. I’m pretty surprised that we haven’t seen this crash sooner, this code hasn’t changed for years! The crash is likely slightly dependent on the data you recorded, but the problem should not even be SWD specific, it seems like any protocol analyzer that produces a small group of frames in a similar size pattern could hit this crash. We haven’t fixed it yet, but it’s going on the list.

Thanks again for reporting this, and sorry for the trouble!