Skip to content
This repository was archived by the owner on Nov 10, 2018. It is now read-only.
This repository was archived by the owner on Nov 10, 2018. It is now read-only.

Table marshalling does not detect circular references #132

@Quenty

Description

@Quenty

ROBLOX will crash if you try to send a table that points to itself through the BindableEvent. I suspect it's because of the ROBLOX serializer, no other reason would force a recursion through a table as far as I can tell.

Example code that results in the crash, yes, parts of it are generic, but I don't want to share the 20,000 lines of code.
image
The above code creates a table that refers to itself. The below code contains a signal event that pushes through using the BindableEvent object, which serializes ROBLOX tables (as far as I can tell). This results in an infinite loop, since the serilizer doesn't have pointers, and you get a beautiful crash.
image
The beautiful output;
image
Which is really hard to debug.
image

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions