question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IPC appears to be broken on Windows

See original GitHub issue

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:

ASP.NET Core Application connected... global.electronsocket cQS8pxM3WoqXUD2IAAAB 2019-01-14T16:17:47.132Z
stdout: BridgeConnector connected!

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 <Link> 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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
theiviaxxcommented, May 6, 2019

@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

2reactions
GregorBiswangercommented, May 16, 2019

Fixed! Big thanks to @pedromrpinto!

The next few days will be the next big Electron.NET update released.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to connect to an IPC Port
This the error message when I start up the computer.Failed to connect to an IPC Port: The System cannot find the file specified.What...
Read more >
Fix Adobe IPC Broker error; How to disable or remove it?
The best solution for this is to re-register the component using Command Prompt. To re-register the CRClient.dll file open Command Prompt and ...
Read more >
administrative shares are missing - Windows Server
Provides an explanation of various symptoms that can occur when the IPC$, ADMIN$, or C$ shares are missing on your computer, and provides ......
Read more >
How to Fix Ipc Port Error Errors
A Ipc Port Error error can exist if one or more of the following symptoms appear: Freezing (so-called “Freeze”) of the application or...
Read more >
windows services - IPC Remoting problem
Have you tried running the service on the Production system as a different user that you know has permissions to the resource(s) in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found