Comments (3)
A stack trace would be helpful if you can provide it. The change 478815b was legit because without the assertion we otherwise would be dereferencing a null pointer. The assertion fails faster and louder.
from isolated-vm.
I believe I am seeing this w/ node 20.10.0 and isolated-vm 5.0.0 on linux but not MacOS. I have an exit hander that tries to clean up when the process ends. I get a clean exit on MacOS but on linux after all test has passed successfully at the very end I get: node: ../src/isolate/environment.h:202: static ivm::IsolateEnvironment& ivm::IsolateEnvironment::GetCurrent(): Assertion `environment != nullptr' failed and non zero exit code.
Happy to provide any additional information if you can tell me how to get it.
static async initializeIsolate() {
if (!EvalAction.isolate) {
EvalAction.isolate = new ivm.Isolate();
process.on('exit', (code) => {
this.debug(`The process is terminating with with code: ${code}`);
this.debug(`Disposing of VM isolate and context...`);
if (EvalAction.isolate) {
try {
EvalAction.isolate.dispose();
EvalAction.isolate = null;
EvalAction.context = null;
} catch {
// no op
// tests are passing but in ci I see this error after the test suite has run:
// node: ../src/isolate/environment.h:202:
// static ivm::IsolateEnvironment& ivm::IsolateEnvironment::GetCurrent():
// Assertion `environment != nullptr' failed.
}
}
this.debug('Cleanup complete.');
});
EvalAction.context = await EvalAction.isolate!.createContext();
// Expose globals
await EvalAction.initGlobals();
}
}
from isolated-vm.
Related Issues (20)
- Ability to capture swallowed promise rejections/errors HOT 1
- Heap out of memory HOT 1
- `memoryLimit` not being applied to isolate
- #<Promise> could not be cloned. HOT 2
- Question about maintenance mode HOT 2
- Segmentation fault while trying to use native-example from this repo HOT 2
- How to add --no-node-snapshot option when running the command npx jest? HOT 1
- TypeError: #<Promise> could not be cloned. HOT 1
- yarn add isolated-vm fails with a build error on latest stable versions HOT 11
- Docker build error in git action with linux/arm64 HOT 2
- Compile errors with node 22 on archlinux HOT 2
- unable to modify built-in object prototypes HOT 3
- Next.js: `new ivm.Isolate()` aborts the whole application without errors HOT 3
- Error: Cannot find module './out/isolated_vm' HOT 3
- how can i set js breakpoint on first line, Implement the stopOnEntry HOT 2
- Question about timeout option HOT 5
- How to access proto methods of the returned reference? HOT 3
- `ModuleNotFoundError: No module named 'distutils'` on Vercel starting from version `4.8.0` HOT 3
- Is there any way to request garbage collector inside an isolate? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from isolated-vm.