New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Electron: Segfault aws_napi_queue_threadsafe_function #335
Comments
Unfortunately, we don't support running in Electron at the moment. It's tentatively planned for later this year. |
is there any workaround tu subscribe to an AWS IoT MQTT topic? For example using a standard lib? |
Looking closer, I think I misdiagnosed. We're aware of a dynamic loading failure on Windows with Electron, but this isn't that. Can you provide full detailed repro steps (linux preferred)? Assume I know nothing about Electron (which would be a correct assumption). The crash isn't in publish. It appears that Node is going away before the native code is completely finished. There may be some relaxations we can apply to how we use the threadsafe functions to handle this. As for workarounds, you can use the v1 SDK for mqtt3. You can use a third party mqtt library directly, but correctly handling authentication can be tricky depending on what you want to do (cert/key vs. websockets with sigv4 signing vs. custom authentication). |
Hi @bretambrose . Recently, I've tried to implement electron with quasar. I used the recent
|
Hi @memo26167 , I think what you mentioned above is a different issue. As Electron no longer supports |
We have updated the Electron support. The issue should be fixed in release v1.19.1. https://github.com/aws/aws-iot-device-sdk-js-v2/releases/tag/v1.19.1 |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
I've tried to execute the MQTT5 example inside an electron project and the publish command crashes with a segfault, below the stack trace. I don't know if it's a bug of
aws-crt-nodejs
but I run the same lib for cloudwatch without problems.Expected Behavior
no errors
Current Behavior
it crashes
Reproduction Steps
call client.publish inside an electron main process
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.9.5
Environment details (OS name and version, etc.)
all (windows, linux, osx)
The text was updated successfully, but these errors were encountered: