-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Encountering a segmentation fault issue when attempting to send multiple images via gRPC #6891
Comments
Hi @lawliet0823, is the segmentation fault happening every time you run the code? Can you use some tools (i.e. gdb) to print the stack trace when the segmentation fault happens? |
The problem occurs every time. This is the stack trace printed out by GDB: Thread 1 "grpc_client" received signal SIGSEGV, Segmentation fault. |
I wonder if you still get the segmentation fault if you run the ensemble_image_client.cc directly via command line? If not, maybe there is a difference in the inputs passed into the |
My updated code is as follows.
No segmentation fault occurred.
I am not sure if my post-processing code is correct. The detection results extracted are all zero. |
I referenced the ensemble_image_client.cc code and attempted to use a single request for multiple image inferences. However, I encountered a segmentation fault.
Here is my code:
I intend to process 10 images using the preprocess function (which has been tested successfully for single image). I'm wondering where the issue might be stemming from.
The text was updated successfully, but these errors were encountered: