Possible to Crash Logic 2 with an Analyzer

It’s possible to completely crash Logic 2 (i.e. the application vanishes) if the format setting for an HLA output frame is invalid. (NB: That’s supposed to be a link to a highlight, but it appears that this forum is stripping the extra bits from the URL)

Unfortunately, I haven’t been able to find much in the way of clear documentation about the correct syntax for that setting, so attempting to get clever with it (it sure looks like an f-string, doesn’t it? but it isn’t!) can easily lead to a Logic crash. Then, of course, any helpful terminal output is gone, too.

This isn’t so much a question as a bug report. It shouldn’t be possible to completely crash Logic 2 from a Python HLA, period. For the most part, it looks like Logic is good at catching exceptions raised within HLAs, but this is a hole in that mechanism (guessing because the exception is raised at some layer outside the HLA engine itself).

See an older post regarding format string:

… but I didn’t hear back anything to confirm or deny my suspicions of the format syntax used:

Note: For more info on Handlebars JS:

(Which may or may not be the right syntax for this)

Finally, this could explain the harder crashing: if the Logic application (running in Electron/JavaScript) is natively executing/interpreting the ‘format’ returned from the python HLA, then the error handling & validation of a bad ‘format’ strings may be missing on the JavaScript side (vs. caught/handled on the python side).

However, I agree – the JS side could do more to catch/validate bad format exceptions from python/HLAs to mitigate hard crashes, and/or hopefully Saleae could at least document (or disclose) the right ‘format’ syntax to use to avoid causing them in the first place.

1 Like