New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gracefully handle large array items #650

jasonatball opened this Issue Nov 14, 2017 · 0 comments


None yet
2 participants

jasonatball commented Nov 14, 2017

A user created a packet which contained the following item:
APPEND_ARRAY_ITEM DATA 16 UINT 16777216 "Buffer of two-byte unsigned integer pixel values"

COSMOS happily parsed this definition but then Packet Viewer chokes when trying to display it and Script Runner freezes when trying to check the data in a script. I think this is just an issue with ARRAY_ITEM but we should investigate boundary conditions with STRING and BLOCK as well.

We either need to disallow certain size items or pop up a warning saying your performance will suffer. The cut off could be difficult to determine considering different machine specs.

@jasonatball jasonatball added the feature label Nov 14, 2017

@jasonatball jasonatball self-assigned this Dec 11, 2017

@ryanatball ryanatball added this to the v4.2.2 milestone Apr 11, 2018

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