Frequently Asked Questions

Troubleshooting Process

  1. For program exceptions that occur during SDK development, it is recommended to run the client to check if its functions are normal.
  2. If the functions on client are normal, but there is a program exception, you need to troubleshoot the program issues with secondary development.
  3. If the functions on client are abnormal, and there is a program exception, you can refer to the following FAQs and solutions.
  4. If program issues remain unsolved after the above troubleshooting process, please record issue details or images about program exceptions, client version No., library name, and library version No., which can be accessed in Help > About on the client, and contact technical support.

FAQs and Solutions

Part 1 GigE Camera Issues

  1. The camera is not on the camera list of the client.

    Possible Cause: Firewall may block the communication data of devices, which leads to the failure to identify the camera.

    Solution: Disable all firewalls.

  2. Opening the camera failed.

    1. Possible Cause: The camera owns exclusive permission, and can only be accessed by one program. It may be occupied by a program or an app.

      Solution: On the client, check if the camera is accessed by other programs or apps. If yes, close the background program or app to make the camera available.

    2. Possible Cause: The camera is abnormally closed (usually in debug mode) due to the previous failure to close the camera or the previous failure to destroy the camera handle, and the heartbeat time is too long, which makes the camera still in occupied state.

      Solution: Power off and restart the camera, or wait for the camera heartbeat to time out to release the resource of camera.

    3. Possible Cause: Connecting the camera to the industrial PC failed. The camera IP address and the industrial PC IP address are not in the same network segment.

      Solution: Edit the camera IP address to make it and the industrial PC IP address in the same network segment. In the camera list on the client, right-click the camera, and select Modify IP to edit the IP address.

      Note
      For more details, refer to the client user manual.
  3. Starting grabbing image failed.

    1. Possible Cause: The memory of the industrial PC is not enough.

      Solution: Check the system memory usage of the industrial PC. If the available memory is small, go to Settings > Buffer to reduce the value of Buffers for Getting Stream.

    2. Possible Cause: The handle resources are not enough.

      Solution: Check the handle quantity configuration, and increase the handle limit by executing ulimit –n 65535 command on the terminal.

      Attention
      This command is only effective for the current terminal. To apply it to all terminals, modify the system configuration file.
  4. Software trigger execution fails when executing software trigger command via calling SDK.

    Possible Cause: The trigger source is not set to software trigger.

    Solution: Before calling the SDK to execute the software trigger command, ensure the camera is in the software trigger mode, and the trigger source is set to software trigger.

  5. The camera does not output the image.

    Possible Cause: Camera configuration error. Trigger mode is disabled, or no trigger signal is provided for the camera.

    Solution: Check camera configurations. Enable the trigger mode, and set a correct trigger source.

  6. Blurry screen, lost frame, or gained frame is detected.

    1. Possible Cause: There is packet loss due to insufficient bandwidth.

      Solution: Use different GigE interfaces for multiple cameras. If one GigE interface is used by multiple cameras, it will lead to high bandwidth usage.

    2. Possible Cause: Jumbo Frame of NIC is disabled, which leads to low data transmission efficiency.

      Solution: Check MTU setting of the environment, and increase it to 9000.

    3. Possible Cause: Adaptive Drop Frame is enabled on the client, and there is packet loss due to network issues. After Adaptive Drop Frame is enabled, when frame data loss is detected, the system will automatically drop the frame. If there are network issues such as network congestion, continuous blank screen will occur.

      Solution: Go to Settings > Network on the client to disable Adaptive Drop Frame, check bandwidth usage, and optimize the network.

    4. Possible Cause: For line scan cameras, the PartialImageOutPutMode is set to PartialImageDiscard. After PartialImageDiscard is selected, if the output image height is below the set value and the image is incomplete, the system will automatically discard the image.

      Solution: Change PartialImageOutPutMode to other options, and check external trigger.

    5. Possible Cause: External trigger is configured for the camera, but the trigger signal quantity is invalid, leading to the inadequate or excessive output images.

      Solution: Check camera trigger configuration and trigger source.

    6. Possible Cause: Due to not releasing buffer in time after calling the API for grabbing image, the SDK buffer is inadequate for storage of images sent from the camera, and there is frame loss.

      Solution:

  7. Error message is returned after calling MV_CC_GetImageBuffer(), and there is no data.

    1. Possible Cause: Error occurred when the camera outputs images, and no image can be acquired by the API.

      Solution: Check camera configuration and trigger source to ensure camera image output.

    2. Possible Cause: API timeout is longer than image output time.

      Solution: Increase the nMsec value of MV_CC_GetImageBuffer() to make the API timeout longer than image output time.

    3. Possible Cause: There is not enough memory for SDK use. The image buffer that is used for image acquiring is not timely released.

      Solution: After getting the image by calling MV_CC_GetImageBuffer(), timely call MV_CC_FreeImageBuffer() to release the image buffer.

  8. Error occurred when calling MV_CC_HB_Decode().

    Possible Cause: The image data sent to SDK is incomplete, which leads to the failure of image HB decoding.

    Solution: Before calling MV_CC_HB_Decode(), check if there is packet loss by nLostPacket in MV_FRAME_OUT_INFO_EX . If yes, optimize the network.

  9. The camera is abnormally offline.

    Possible Causes: 1) There is network congestion. 2) NIC is in sleep mode. 3) The network interface is loose.

    Solution: 1) Check network bandwidth usage, ad optimize the network. 2) Check network bandwidth, and change the power option to “never putting the computer in sleep mode”. 3) Check the network interface conditions.

  10. Compilation error: ld:-lMvCameraControl cannot find libMvCameraControl library.

    Possible Cause: After installing, environment variables do not take effect in the current console.

    Solution: Troubleshoot if environment variables take effect, and the presence of the Lib library.

    1. Ensure all environment variables related to SDK take effect.
      echo $MVCAM_COMMON_RUNENV
    2. Execute the following command if the SDK path is not printed after executing the previous command:
      cd (client installation path).
      source set_env_path.sh
    3. Check the presence of library through the lib library path if the SDK path can be printed normally.
      cd /opt/MVS/lib/64
      ls -lh

  11. Compilation error: ld:-lMvCameraControl (with incompatible symbols)

    Possible Cause: SDK version does not match that of hardware, or it is not supported by the toolchain.

    Solution:

    1. Check the current hardware environment and SDK version.

      uname -a
      cd /opt/MVS/lib/64
      readelf -h libMvCameraControl.so

      Check if the SDK header information matches with the system information.

    2. Check the GCC version. Enter gcc -v in the console to get GCC version. Update the GCC version if it is earlier than the minimum required version. For more details, refer to the technical support.

      This page provides the minimum required GCC version of each SDK.

      SDK Version Minimum GCC Version
      x86_64 4.8.5
      i386 4.4.7
      armhf 4.8.2
      aarch64 4.9.4
      arm-none 4.1.1

Part 2 U3V Camera Issues

  1. Opening the camera failed.

    1. Possible Cause: Camera driver is not correctly installed, or it is recognized as driver of other manufacturers.

      Solution:Check if the driver is correctly installed. If not, reinstall the driver. Input “lsusb” in the console, and check the corresponding device on the list.

    2. Possible Cause: 1) An USB 2.0 cable is used to connect USB (2.0 or 3.0) interface and the device. 2) An USB 3.0 cable is used to connect USB 2.0 interface and the device.

      Solution: Check the USB cable and interface to ensure the camera is connected to interface 3.0.

    3. Possible Cause: The camera owns exclusive permission, and can only be accessed by one program.

      Solution: On the client, check if the camera is accessed by other programs or apps. If yes, close the background program or app to make the camera available.

    4. Possible Cause: There are libusb library version conflicts and symbol errors in Linux.

      Solution: Check the current libusb dependency path of the U3V with ldd libMvUsb3vTL.so.

  2. Abnormal image grabbing / frame loss / frame No. reset.

    1. Possible Cause: There is data loss due to insufficient bandwidth of USB interface.

      Solution:

      • On the client, right-click the device, and select U3V Transfer Setting to increase the value of Packet Size.
      • USB script can be used to adjust USB interface buffer in Linux, to adjust image resolution and frame rate.

    2. Possible Cause: Stream channel and frame No. are reset due to stream channel data exception caused by EMC interference.

      Solution: Check the device environment, reduce static electricity, and enhance anti-interference capability by using ring magnets.