clariusdev / cast

APIs for Researchers and Marketplace Apps
https://www.clarius.com
BSD 3-Clause "New" or "Revised" License
37 stars 16 forks source link

pycaster.py can only run when image is frozen; crashes when unfrozen #79

Closed yuanagain closed 2 years ago

yuanagain commented 2 years ago

Hi, I've observed the following behavior:

  1. I have been unable to get the example to run (see below) unless (see next note)

    (venv) ➜  mac git:(master) ✗ DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. python pycaster.py --port 5828 --address 192.168.0.182
    initialization succeeded
    connected to 192.168.0.182 on port 5828
    press ('q' to quit) ('a' for action): aimaging running
    libc++abi: terminating with uncaught exception of type boost::python::error_already_set
    [1]    3629 abort      DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. python pycaster.py --port 5828
  2. When the image is frozen from the device, I am able to run the example, i.e.:

(venv) ➜  mac git:(master) ✗ DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. python pycaster.py --port 5828 --address 192.168.0.182
initialization succeeded
connected to 192.168.0.182 on port 5828
press ('q' to quit) ('a' for action): a
(f)->freeze, (i)->image, (c)->cine, (d/D)->depth, (g/G)->gain: d
press ('q' to quit) ('a' for action): a
(f)->freeze, (i)->image, (c)->cine, (d/D)->depth, (g/G)->gain: d
press ('q' to quit) ('a' for action): f
press ('q' to quit) ('a' for action): a
(f)->freeze, (i)->image, (c)->cine, (d/D)->depth, (g/G)->gain: f
press ('q' to quit) ('a' for action): imaging running
libc++abi: terminating with uncaught exception of type boost::python::error_already_set
[1]    3747 abort      DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:. python pycaster.py --port 5828

That is to say, when I unfreeze, pycaster.py crashes (but at least it does unfreeze the image in the app).

yuanagain commented 2 years ago

I see this has been fixed in the updated examples; please disregard