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

On Windows (no bug on Mac) sometimes see JavaScript error when app starts using log. #402

Open
kmackey1 opened this issue Feb 6, 2024 · 2 comments

Comments

@kmackey1
Copy link

kmackey1 commented Feb 6, 2024

Sometimes when my Windows app starts, I will see 5 JavaScript errors with "EBUSY: resource busy or locked, open 'C:\Users\kmackey\product\logs\main.log'"

Using Process Monitor, usually, but not always, I see MsSense.exe (the main service executable for Defender for Endpoint, the service is running as a service with the name SENSE) accessing the file. I tried adding the log file as an exception to Defender, but I still see the errors.

Also in Process Monitor, I see some of my app's operations resulting in sharing violations, though they don't always result in the JavaScript errors. Here are the operations that seem to result in the errors (from different app runs):

Desired Access: Generic Read/Write, Disposition: OverwriteIf, Options: Synchronous IO Non-Alert, Attributes: N, ShareMode: Read, Write, Delete, AllocationSize: 0

Desired Access: Append Data/Add Subdirectory/Create Pipe Instance, Write EA, Read Attributes, Write Attributes, Read Control, Synchronize, Disposition: OpenIf, Options: Synchronous IO Non-Alert, Attributes: N, ShareMode: Read, Write, Delete, AllocationSize: 0

@megahertz
Copy link
Owner

It looks like you have a few different instances of your app running. For such a case, it's better to use a different log file name for each instance.

@kmackey1
Copy link
Author

kmackey1 commented Feb 7, 2024

I should have added that this problem is not happening on the macOS version of the app. Only Windows.

@kmackey1 kmackey1 changed the title Sometimes see JavaScript error when app starts using log. On Windows (not Mac) sometimes see JavaScript error when app starts using log. Feb 13, 2024
@kmackey1 kmackey1 changed the title On Windows (not Mac) sometimes see JavaScript error when app starts using log. On Windows (no bug on Mac) sometimes see JavaScript error when app starts using log. Feb 13, 2024
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

No branches or pull requests

2 participants