open-mmlab / mmcv

OpenMMLab Computer Vision Foundation
https://mmcv.readthedocs.io/en/latest/
Apache License 2.0
5.82k stars 1.63k forks source link

could not work with SimpleITK, related to import order #573

Closed hubutui closed 3 years ago

hubutui commented 3 years ago

When I run:

import SimpleITK
import mmcv

I got segmentation fault (core dumped), but if I import mmcv first, it's OK.

mmcv-full: 1.1.3 simpleitk: 2.0.0 python: 3.8.5

ZhiyuanChen commented 3 years ago

It worked quite well for me on Windows 10, Ubuntu 20.04 (WSL), and CentOS, would you mind providing more details?

wangruohui commented 3 years ago

It might be an incompatibility on binaries. Are mmcv-full and SimpleITK compiled with different version of compilers? Would you please provide more information on your environment and the way you install these packages?

hubutui commented 3 years ago

OS: ArchLinux pytorch: python-pytorch-cuda 1.6.0 All these pkgs are installed from ArchLinux or ArchLinuxCN's repo. check here for the coredump file, password to download: n98vg9 if needed.

hubutui commented 3 years ago

It's fixed in SimpleITK, see also https://github.com/SimpleITK/SimpleITK/issues/1208.