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
The data I'm putting in the cache is a table of metatable based objects and those objects reference objects that reference them.
Cause: Save clones the table and then gives it to BeforeSave. Stack Trace:
Script 'ReplicatedStorage.rbxts_include.node_modules.datastore2.src.TableUtil', Line 8 - function clone (x4996) - Studio - TableUtil:8
Script 'ReplicatedStorage.rbxts_include.node_modules.datastore2.src', Line 46 - function clone - Studio - src:46
Script 'ReplicatedStorage.rbxts_include.node_modules.datastore2.src', Line 305 - Studio - src:305
Script 'ReplicatedStorage.rbxts_include.node_modules.datastore2.src.Promise', Line 218
BeforeSave: Yes BeforeInitialGet: Yes
The tables output by my BeforeSave and BeforeInitialGet do not include any circular references. Saving Method: Standard
Masken8
changed the title
Putting a table with circular references in the cache causes a stack overflow
Saving a table with circular references causes a stack overflow
Dec 30, 2020
Masken8
changed the title
Saving a table with circular references causes a stack overflow
SaveAsync clones tables before giving them to BeforeSave
Dec 30, 2020
The data I'm putting in the cache is a table of metatable based objects and those objects reference objects that reference them.
Cause: Save clones the table and then gives it to
BeforeSave
.Stack Trace:
BeforeSave: Yes
BeforeInitialGet: Yes
The tables output by my
BeforeSave
andBeforeInitialGet
do not include any circular references.Saving Method:
Standard
Do note that I am using https://github.com/osyrisrblx/rbx-datastore2 but it's using the same underlying code. The script that handles this seems to be up to date.
The text was updated successfully, but these errors were encountered: