neufieldrobotics / spinnaker_sdk_camera_driver

Point Grey (FLIR) Spinnaker based camera driver (Blackfly S etc.)
MIT License
125 stars 90 forks source link

Fix the '' terminate called after throwing an instance of 'std::bad_cast' " error on exit. #15

Closed ghost closed 4 years ago

ghost commented 5 years ago

when will this bug be fixed? I am trying to use 4 cams using hardware trigger but I usually see this error.

ghost commented 5 years ago

This bug doesnt seem to affect functionality so its not high priority. Are you able to use the 4 cameras together?

ghost commented 5 years ago

I could not say I can do that. Sometimes It works but I should try several times before. I am using official hardware trigger circuit. 4 cams can not initialize at once.

ghost commented 5 years ago

Can you paste the output so we can look at it.

ghost commented 5 years ago

One is when it works well and the other is not. 00 01

ghost commented 5 years ago

This could he related to cameras not getting enough power. How are you powering them? Just plugging into IUB ports or powered USB hub or external power?

ghost commented 5 years ago

I connected master(primary) camera directly into computer and the others are connected to USB hub(this one do not have external power). I ordered powered usb hub. So when after I get that usb hub, I will test again. Thanks for your help. I will upload that result too.

ghost commented 5 years ago

When I use powered usb hub, another error is occurred. 01

ghost commented 5 years ago

Not a lot of information to go by there. Have you increased your USB buffer as suggested during installation.

ghost commented 5 years ago

Thanks I fixed it! previously I set usb buffer as 1000 but now I increase 1500. It works very well. I followed this instruction for increasing usb buffer. https://importgeek.wordpress.com/2017/02/26/increase-usbfs-memory-limit-in-ubuntu/