Comments (6)
To be fair - this could be the step itself causing LabVIEW to hang - perhaps nothing to worry about
from g-cli.
Even with a longer handover timeout we still see this - it isn't clear what the causality is but it should probably be treated as a separate issue.
from g-cli.
So I think this will all be improved if we can improve the robustness of the socket connection. One being polling with a timeout so we can handle this condition seperate to a disconnect. A timeout on the blocking call causes an exception but not an async call. This will also reduce the message errors on a timeout. See example below:
byte[] data = new byte[4096];
IASyncResult result = stream.BeginRead(data, 0, data.Length, null, null);
result.AsyncWaitHandle.WaitOne();
int bytes = stream.EndRead(result);
if (!result.IsCompleted)
else
...
from g-cli.
If we can still use exceptions (trying to confirm) there is an inner exception which should give more detail for better handling.
from g-cli.
Moving to async doesn't help.
I have confirmed the hang is due to what is being called in LabVIEW - it isn't clear why the process shows as exited though
from g-cli.
Fixed the race condition by setting stop on exit and using while instead. Not clear why. Will address in #55 to see if there is a more reliable method.
from g-cli.
Related Issues (20)
- Better Powershell Integration
- Duplicate messages when LabVIEW crashes (Comms Error: Unexpected EOF Error)
- g-cli did not show any warnings or errors when using the deprecated (2.x) `--timeout` argument HOT 1
- Set LabVIEW Version With Environmental Variable
- *relative* paths to VIs inside of PPLs does not work (on Linux at least) HOT 1
- Kill LabVIEW Command Doesn't Work on Linux HOT 4
- Add an `--exit` argument for LabVIEW to exit after completion of cmd HOT 3
- Handle Missing NI Registry Keys
- Get Option Value.vi should return 'option type' HOT 1
- Add Cache or Pre Build to Linux Dev Container
- Exception during registry scan for active lv version HOT 1
- Multi-Instance Environments Could Kill the Wrong Instance
- Linux doesn't detach from LabVIEW process
- g-cli in Linux hangs if called from an SSH session HOT 2
- lvBuild missing in VIP HOT 1
- Testing with G-CLI HOT 4
- Memory Allocation Errors - Improved Error Checking?
- UNC Paths Fail To Launch
- Timed out waiting for app to connect to g-cli HOT 1
- Running g-cli command from symbolic or hard link paths errors 1510 TCP Open failure 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 g-cli.