Skip to content
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

fix node-bridge segfault #15338

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open

fix node-bridge segfault #15338

wants to merge 2 commits into from

Conversation

mroz22
Copy link
Contributor

@mroz22 mroz22 commented Nov 11, 2024

1st commit - just refactoring I felt makes sense
2nd commit - fixes #15336, it works on my machine but is not nice.

@mroz22 mroz22 changed the title Transport fixes segfault fix node-bridge segfault Nov 11, 2024
@mroz22 mroz22 force-pushed the transport-fixes-segfault branch 2 times, most recently from 460d358 to 6647c41 Compare November 13, 2024 14:54
@@ -354,21 +354,34 @@ export class UsbApi extends AbstractApi {
}

public async closeDevice(path: string) {
const device = this.findDevice(path);
let device = await this.findDevice(path, true);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the important change that makes it work on my machine. adding true here. Other places could maybe force enumeration too but I wanted to make changes minimal.

@mroz22 mroz22 marked this pull request as ready for review November 18, 2024 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

node bridge - another case of segfault 11
1 participant