-
-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
In libzim v8 when using a custom item and adding a lot of objects to a zim file it will throw a segmentation fault error after about 10,000 items have been inserted.
The error has been reported to nodejs/node-addon-api below.
It appears to be related to:
- the persistent object reference being lost or garbage collected before the object and function can be used
- some other unknown issue involving the global state within nodejs.
- it may also be related to the creation of ThreadSafeFunction(s) created within a ThreadSafeFunction context but this should be OK and does not crash until after about 10k or more iterations.
To reproduce the error modify tests/makeLargeZim.ts
file to use the custom item and run the test, it should fail.
The issue has been reported to nodejs/node-addon-api#1174 .
Related to #72