[KBSON-13] Use bson to deserialize and get OOM error Created: 06/Sep/23  Updated: 27/Oct/23  Resolved: 09/Oct/23

Status: Closed
Project: Kotlin BSON
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Unknown
Reporter: evan zhong Assignee: Christian Melchior (Inactive)
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When the deserialized buffer length exceeds 100 million, an OOM error is reported, causing the browser to crash.



 Comments   
Comment by Christian Melchior (Inactive) [ 11/Sep/23 ]

Hmm, this sounds a bit weird. KBSON cannot run in the browser, so it is a bit unclear exactly what is meant here?

Also, we would need much more detail about exactly what code is crashing.

Note, that even if this ticket is using the KBSON library, it will deserialize everything in memory. So anything with 100 million objects will most likely run out of memory. The library doesn't currently have a streaming mode.

Generated at Thu Feb 08 09:06:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.