D
Deno

help

Node-API related segmentation fault

Ddjdev7/26/2023
Any idea what could be causing this crash? I'm using Node-API and the same module is working fine in Node.js. Can't figure out the exact part causing this to create a reproducible example πŸ€”
Ddjdev7/26/2023
cc @littledivy any idea?
Ddjdev7/26/2023
so it comes down to this specific part. Let me check what could be causing this in native land
Ddjdev7/26/2023
So the error comes down to napi_create_external seems that finalizer cb being null is not handled correctly in deno
Ddivy7/27/2023
oh huh whats being finalized?
Ddjdev7/27/2023
I created an external with no finalizer callback (nullptr) and - deno just treats it as normal c callback and goes ahead to call it sometime - node will check if its null then its not called
AAapoAlas7/27/2023
You never know if someone has placed a function at memory slot 0... (Apparently in some architectures it is a valid memory address.)
Ddjdev7/28/2023
that’s probably a case to not worry about πŸ˜† in standard conforming C/C++ implementations, I guess it is possible to reliably set a function pointer to null.
AAapoAlas7/28/2023
Yeah πŸ™‚

Looking for more? Join the community!

Recommended Posts
jwt generation and verificationjwt verification(using JOSE package) is working perfectly only when i have set b64 parameter insideHosting a node project on deploy?Can we host a NodeJS project using Deno Deploy or do we need some conversion first?anyone have a modern container workflow for the serverless framework?I was able to find code that executed at one point in time. It no longer does. I’d really like to iHow to deno up nuxt?**Setting up Nuxt3**: When learning more about V8 and the node.js architecture I became aware of dengoogle cloud SDKsHi all, I am building an application that interacts with google cloud apis, specifically google plaPrisma and denogetting this ```error: could not find package '.prisma' from referrer 'file:///Users/nikos/WebstormPDates don't increment correctlywhen I run the below function with the specific date 2023-09-30, I get the result of n-1 (for any nuHi, can anyone direct me to the repo/functions where the deno/fresh project generator is held?I am looking to add functionality to this project generator but I'm not familiar enough to really fiSpeed of generatorsHow fast are JS generators when used as iterators? To be clear, I see the `for..of` loop being veryParsing HTML/XMLLately I've been researching how to write a simple HTML/XML -> JSON converter. My syntax isn't complIs it possible to import cjs module from es module, both in extension?cjs is added using `deno_core::extension`'s `js`. esm added using `deno_core::extension`'s `esm` IDeno.serve() doesn't streamhttps://gist.github.com/guest271314/39a3f93346bbc7dec5ee9fa1ff579256Deno ImportsI'm trying to use react-hook-form in an application, but bringing in the dependency results in a depWhere to store this key β€” and how?```ts const cryptoKey = await crypto.subtle.generateKey({ name: 'HMAC', hash: 'SHA-512' }, tTyping DateTimes```ts interface ICity { slug: string name: string description?: string createdAt: Date updBundle without exportIs it possible to have the output not having `export... ` line?LSP badly resolves relative imports between cached modulesI don't really understand this, but it looks to me like the LSP / VS Code has started resolving relaReason for "Following modules were not evaluated"What is the reason for "Following modules were not evaluated; make sure they are imported from otherdiscordav.deno.dev not working nowIm using discordav.deno.dev for get the discord profile picture from id. It was working yesterday buKV: What to return from here?```TS // Create City router.post('/cities', async (context) => { const data = await context.requ