Skip to content

Java: test crashes with OpenVINO 2019R1 on MacOSX #14353

Closed

Description

@alalek

Nightly build

    [junit] Running org.opencv.test.calib3d.Calib3dTest
    [junit] java.lang.UnsatisfiedLinkError: /Volumes/build-storage/build/master_openvino-mac/build/lib/libopencv_java410.dylib: dlopen(/Volumes/build-storage/build/master_openvino-mac/build/lib/libopencv_java410.dylib, 1): Library not loaded: @rpath/libtbb.dylib
    [junit]   Referenced from: /opt/intel/openvino_2019.1.090/deployment_tools/inference_engine/lib/intel64/libinference_engine.dylib
    [junit]   Reason: image not found
    [junit] Running org.opencv.test.calib3d.Calib3dTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0 sec
    [junit] Test org.opencv.test.calib3d.Calib3dTest FAILED (crashed)

Activity

  1. alalek commented on Apr 17, 2019

    @alalek
    MemberAuthor

    This is Apple specific bug behavior.

    It is not related to Java or Ant tool directly, it is "System Integrity Protection".

    Spawning children processes of processes restricted by System Integrity Protection, such as by launching a helper process in a bundle with NSTask or calling the exec(2) command, resets the Mach special ports of that child process. Any dynamic linker (dyld) environment variables, such as DYLD_LIBRARY_PATH, are purged when launching protected processes.

    So Apple drops DYLD_ variables from launched shell (sh, bash, etc).

    $ DYLD_LIBRARY_PATH=my_value sh -c 'export' | grep DYLD
    ... and nothing ...
    

    OpenCV tests are launched using ant, which is a shell script which locate and run Java.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions