-
-
Notifications
You must be signed in to change notification settings - Fork 733
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
IPC appears to be broken on Windows #204
Comments
I'm getting this too. Any points in the right direction would be amazing. |
Hi, When the connection is rebuilt, all event listeners are lost. I need a solution with Socket.IO. |
Hi Gregor, I should probably have been clearer when I raised this issue, when I said 'Leave the app for a while' I meant leave it for a minute, two at the most rather than a long period such as overnight. I guess the question is what causes the connection to be rebuilt after such a short period and every 30s thereafter? Regards, Richard |
Hi Gregor, Below is the console output from my app (detailed above). From the timestamps you can see that the connection messages appear roughly 30s apart. The stdout: ping messages are from my IPC code. There is also a message about window-all-closed listeners near the end, does that provide any insight?
Regards, |
I also get this, though not on this cadence. it will just happen at some point in the application lifetime, i cant seem to narrow it down to a specific event. Im not sure if this is the wrong way, but is there something i can do on the asp side to "re-connect" everything? |
I get the same issue on Ubuntu 16.04
and on the other end:
If I start the application and do not click that button the disconnect will happen
However, if I click that button as soon as the window has loaded, the dialog is shown, So it seems that once that initial "contact" has been made the connection is kept alive. Edit: I have determined that in my case the disconnect happens because the "server" side was doing a lot of work at startup (service instances being created for dependency injection). This does not take away the issue of course, but thought it might be good to mention (and I should update my design) |
I had a similar issue. Everytime the socket reconnects Tray, Globalshortcuts, etc, lose the concat between js and C#. The pull request #233 (FIX application hangs after socket reconnect) shoud fix that problem. |
@pedromrpinto I am using your PR changes and so far so good 👍 It does report the Bridge disconnect message, but everything still works as expected |
We're having @richardpartridgeflynet 's issue as well. When will we be able to update to a release with @pedromrpinto 's PR? Thanks |
Fixed! Big thanks to @pedromrpinto! The next few days will be the next big Electron.NET update released. |
@GregorBiswanger I'm still getting these messages in the log. Functionality still seems to be working, but I'm a bit concerned about the msg:
Is this a false positive or is there something that needs to change to prevent a leak? I'm more than happy to debug. I'm running with .net core 3.0.0. |
Hi,
I'm working on a proof of concept (Windows not Linux/Mac) prior to us using Electon.NET in an upcoming project and I'm having an issue with the IPC between the main and renderer processes. I can get the IPC working but only very briefly, after a little time messages like this will begin scrolling up the console:
These messages are generated about every 30s until the program is closed. Once the first of these messages has appeared, IPC between the main and rendered processes stops.
Please note that I raised a very similar issue (number 12) on the electron.net-api-demos project. This issue was closed because the demos code was not created with the latest version of the Electron.NET API but I don't think that explanation applies to this issue.
Here's a minimal set of instructions that should let you reproduce the issue starting with a clean Win 2012 R2 VM:
Install dotnet-sdk-2.2.102 (issue also shows up with sdk 2.1)
Install Node 10.15.0 LTS
Create a new app with dotnet new mvc
Install ElectronNET.API 0.0.11
Install ElectronNET.CLI 0.0.11
Add some basic IPC between main and rendered processes, I copied the code Gregor added in his Getting Started video on YouTube
Start the app and try out the IPC, note that it works. Leave the app for a while until one of the BridgeConnector messages appears, re-try the IPC and note that it no longer works.
Note that you may have to edit the Views\Shared_Layout.cshtml file to remove the integrity="..." attributes from the tags as Electron doesn't handle those well.
Please let me know if you have any suggestions as to what might be going on or if you need any more info to help diagnose the issue.
Thanks,
Richard
The text was updated successfully, but these errors were encountered: