Skip to content

Conversation

@DPesterev
Copy link

I've noticed that at application start memory consumption jumped to 1.7GB
Reason is corrupted cache file in %LocalAppData%\Temp
which lead to invalid number of bytes to be read from file in CFXEnvelope.ReadRecord
BinaryReader.ReadBytes(len) always create buffer byte array with requested len.

Proposal is to limit maximum allowed CFXMessage size to 32MB
In case message in BinaryReader is bigger - invalidate cache.
Screenshot 2024-07-02 133313

@DPesterev
Copy link
Author

@johnjwalls
Copy link
Contributor

Hi Dmitrii. I don't think we can just limit all messages to 32MB. Lots of CFX users have messages that exceed this size. Why do you believe the large message corrupted the cache? Is there a repeatable re-create procedure to make this happen?
Thanks very much for taking the time to help out with the CFX project.

@DPesterev
Copy link
Author

Hi @johnjwalls, I missed your comment.
You can reproduce this bug if you use attached zip file.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants