You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to load a fairly large (20 MiB+) Cap file in the browser and it fails on this error:
TypeError: Cannot read property 'id' of undefined
at Pointer../node_modules/capnp-ts/lib/serialization/pointers/pointer.js.Pointer.toString (pointer.js:44)
at Object.format (util.js:263)
at trackPointerAllocation (pointer.js:786)
at new Pointer (pointer.js:30)
at followFar (pointer.js:287)
at followFars (pointer.js:299)
at getTargetListElementSize (pointer.js:462)
at isCompositeList (pointer.js:312)
at Object.getContent (pointer.js:333)
at getSize (struct.js:412)
The stacktrace is misleading; it's failing because of the traversal limit being exceeded (and then proceeding to fail to fail because the segment is not yet defined... that needs a patch!).
There is potentially a bug in how this is being accounted for since the docs on it were slim; do these same files load fine in another implementation?
Hi, I'm trying to load a fairly large (20 MiB+) Cap file in the browser and it fails on this error:
Schema:
It happens both with unpacked and packed files, but only with some files (when I try a smaller file, it parses fine).
I'm using capnp-ts version 0.2.4 and the file was generated with Cap'n Proto v0.6.1 (in C++).
Do you have any idea what might be causing this?
Thanks.
The text was updated successfully, but these errors were encountered: