Autolaunch webContents Error
complete
Daniel Miradakis
complete
Daniel Miradakis
Flavio Zordan I believe v2.2.2 will stop that annoying popup from appearing on your devices now. If you see otherwise, please let me know! I think I will close this out this weekend or early next week. Thanks!
Daniel Miradakis
Just published hotfix v2.2.2. Let's see if that fixes this error from occurring now.
Daniel Miradakis
I think I finally figured out the issue here:
The Electron BrowserWindow.getFocusedWindow() method inconsistently returns a NULL value for the current browser window object when called from the IPC Main process. Other users have experienced similar issues before, but no one seems to be able to understand why or how this happens. But like me, they have noticed that the behavior is inconsistent.
A particular GitHub issue, https://github.com/sindresorhus/electron-dl/issues/42, was very helpful.
I need to directly pass in the browserwindow object in my background.js file and bypass this method call entirely since no one can determine the cause of its inconsistent behavior.
Will push out a hotfix later today and see if that fixes the issue.
Daniel Miradakis
Note to self: I am continuing to think this is an internal Electron bug. See this old GitHub post about Electron remote calls, looks suspiciously similar with indeterminate remote call errors (https://github.com/electron/electron/issues/7351). Continuing to investigate.
Daniel Miradakis
in progress
Had another early adopter reach out about this error, is severely affecting their devices. Reopening for investigation and fixing.
Daniel Miradakis
open
Daniel Miradakis
under review
Daniel Miradakis
in progress