Comments (11)
@jorgerobles Thanks. I will insert the makeSingleInstance into the electron code. That's the most common reason for this error. I probably also need to implement a netstat check if the port is already used by another server.
from lw.comm-server.
https://www.nallex.com/questions/example-of-how-to-handle-eaddrinuse-errors-in-nodejs
from lw.comm-server.
from lw.comm-server.
@cprezzi Hi Claudio, do you have any resolutions to capturing this error?
It is being reported by many LW4 users.
from lw.comm-server.
Maybe we can specify a range of ports and if catch error open other port (809x).
Downside could be the fill up of all the alternative ports. Have to say 8000/8080 are pretty common ports, maybe we can move to 90xx
https://www.npmjs.com/package/node-netstat could be useful, scanning first if that port is used...
from lw.comm-server.
@DarklyLabs have you experienced that error? If so, could use a network diagnose tool to know what is on 8000? Maybe LW is not cleaning up correctly on binary or there's a common software that uses that port.
from lw.comm-server.
Is it possible to only allow one instance of LW to run on a computer at any time?
We have found situations where the computer has gone to sleep and upon awakening chrome crashed but there is still an instance of LW running when we check the processes.
from lw.comm-server.
@jorgerobles We can replicate the error by starting 2 instances of LW.
from lw.comm-server.
Yes, as it's using a specific port to launch, means that if is used conflicts each other.
The problem here is the new instance cannot kill the former. Will investigate.
Thanks for the feedback!
from lw.comm-server.
@cprezzi https://github.com/electron/electron/blob/master/docs/api/app.md#appmakesingleinstancecallback
from lw.comm-server.
I have implemented the makeSingleInstance function to prohibit starting multiple instances. Instead, the main window is activated.
See commit 52bd4c1
from lw.comm-server.
Related Issues (20)
- Tools and macro panels not showing HOT 1
- FEATURE: Clean up the horrible build system HOT 3
- npm does not install on Ubuntu 20.04 HOT 1
- Remove Laserweb from Raspberry HOT 8
- Google Plus went away a while ago... HOT 1
- Job Abort on Marlin sends M112, this halts the controller and forces a manual reset by the user. HOT 2
- sudo node server.js - websockets.listen is not a function HOT 5
- socket.io - Unsupported protocol version HOT 2
- How can I build a Windows standalone exe? HOT 6
- LaserWeb causes a lot of udevadm instances to start up HOT 4
- Commit f43136a introduced bugs into app/index.js HOT 4
- No server / machine connection running on Raspberry Pi 3B+ HOT 8
- Working with reverse proxy HOT 6
- Laser test crashes server HOT 9
- Feature request - linuxen HOT 3
- Unsupported protocol version HOT 3
- Cannot connect from LaserGRBL HOT 1
- FEATURE: Modularization
- Failed at the [email protected] install script HOT 3
- Crash on Laser Test HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lw.comm-server.