-
Notifications
You must be signed in to change notification settings - Fork 253
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
@bugsnag/electron does not work with Windows 7 and Electron 19+ #1783
Comments
Hi @jeremyspiegel - thanks for raising this and sharing your solution. We're going to investigate and look at releasing a fix. We'll make sure we keep you updated on this thread 👍 |
I have made a test on Electron Fiddle: |
I've filled in separate issue #1799 before finding this one, it is directly related. I will close it in favor of this one but want to mention it due to the reference to another possible place where the affected function is being called. |
@luke-belton Hello! Any news about this? Our app started crashing on Windows 7 because of this. |
I was looking into the problem with electron in general and downgrading to electron in version 18 fixed the error! |
@Tulipesz The reason of the issue is the use of Bugsnag maintains its own fork: https://github.com/bugsnag/cuid, so hopefully, they will update it too. @luke-belton Maybe you will consider porting proposed change to your fork? It was approved in general by the library author. In meantime, I've solved the issue for myself by using patch-package |
Looks like this was fixed in Electron via electron/electron#35219. |
Just to let you know we have now released v3.0.2 of bugsnag/cuid which includes the changes mentioned above, so this issue should now be fixed. |
Describe the bug
The
os.hostname()
node API throws on Windows 7 with Electron 19+ with auv_os_gethostname returned ENOSYS
error. This API is used in @bugnsag/cuid/lib/fingerprint.js, and causes a crash on startup.libuv and node don't support Windows 7, so those projects seem very unlikely address this. Electron claims support for Windows 7 but it's unclear if they will address this or not (currently looking like not).
I was able to address this in my project with this patch:
The text was updated successfully, but these errors were encountered: