ni / grpc-labview

gRPC client and server support for LabVIEW
MIT License
85 stars 60 forks source link

Labview crashes when two (or more) servers are stopped #356

Closed HouetIBS closed 2 months ago

HouetIBS commented 6 months ago

I'm using two servers and two clients in one application. When running the servers and clients, this works really well.

When I close one server (no matter which one I choose), the server is closed nicely as well. But, when I close the second server, Labview crashes when calling the LVStopServer in the dll. image (The gRPCid server is for both servers not 0 and unique for all servers)

If I just use the simple 'helloworld'-example and just copy an extra server in the application, it is really easy to reproduce the problem. image

Would be great if this can be fixed.

Thanks in advance.

PS:

With kind regards,

Erik

AB#2689710

nischalks commented 6 months ago

Hi @HouetIBS, we wanted to check with you, which NI product team do you belong to ?

HouetIBS commented 6 months ago

Hi,

I do not really understand your question. I work for IBS Precision Engineering in the Netherlands. We use Labview for pretty much every application we build.

The current application, which uses gRPC, is written in Labview 2021 64bit.

I really like the gRPC/proto implementation to use as a communication standard between software products. Good that you all started a gRPC implementation for Labview. Unfortunate, there are some challenges to overtake to make it a really good experience.

Met vriendelijke groeten,

Erik Houet IBS Precision Engineering B.V. From: nischalks @.> Sent: donderdag 4 april 2024 14:32 To: ni/grpc-labview @.> Cc: Erik Houet @.>; Mention @.> Subject: Re: [ni/grpc-labview] Labview crashes when two (or more) servers are stopped (Issue #356)

Hi @HouetIBShttps://github.com/HouetIBS, we wanted to check with you, which NI product team do you belong to ?

— Reply to this email directly, view it on GitHubhttps://github.com/ni/grpc-labview/issues/356#issuecomment-2037063741, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BHG4ZPV6ASWHOI4F2XXGEK3Y3VB3RAVCNFSM6AAAAABFC5NWASVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMZXGA3DGNZUGE. You are receiving this because you were mentioned.Message ID: @.**@.>>

nischalks commented 5 months ago

@HouetIBS Thats nice to know. Thanks Erik!

gmkrtchy commented 4 months ago

Hi @nischalks,

We are utilizing LV gRPC for a key customer project. We’ve encountered an issue where stopping two parallel-running servers results in a LabVIEW crash. The first server shuts down correctly, but LabVIEW crashes during the closure of the second server, leading to a loss of connection to the RT Target. This issue has also occurred on LabVIEW RT. Are there any updates on the status of this issue? Thank you in advance.

Gor Mkrtchyan Senior Solutions Engineer | CCS EMEA

SallyTYT commented 4 months ago

Not sure if you are facing the same issue as this one https://github.com/ni/grpc-labview/issues/279

gmkrtchy commented 4 months ago

@SallyTYT thanks for the comment,

My case is little bit different, I could properly get data from both clients, the problem is only when I am Closing the servers, first server closes properly but during second server closure LV crashes and connection to RT target loses.