Skip to content
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

On large insert (e.g. paste), client-side method execution failed #1

Open
rocketraman opened this issue Aug 10, 2015 · 1 comment
Open
Labels

Comments

@rocketraman
Copy link
Contributor

Paste a large block of text into the editor. An error similar to the following will occur in Swarm.js and the insertion fails:

method execution failed Spec {value: "/Text#10!2y4wk+A0017r~0.insert", index: 23} Object {2y4wj+A0017r~0: Object} Error: malformed timestamp value: 2y4wk1T0
@rocketraman
Copy link
Contributor Author

Having taken a quick look I believe this problem is happening because when a lot of inserts are done in a very short span of time (as in a large paste), the RichText.js CRDT appends a sequence number to the operation timestamp for uniqueness. When enough of these sequence numbers are used, the timestamp becomes longer than expected by the parser in Swarm.js SecondPreciseClock.parseTimestamp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant