Bug 1204930 - opencv: Segmentation fault
Summary: opencv: Segmentation fault
Status: RESOLVED INVALID
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Stefan Brüns
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-01 15:24 UTC by Axel Braun
Modified: 2022-11-02 15:47 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Axel Braun 2022-11-01 15:24:22 UTC
Current opencv (4.6.0) cant be imported in python because it throws a segmentation fault. As consequence, camera etc doe not work

docb@X1E:~/buildservice> python3
Python 3.10.8 (main, Oct 19 2022, 07:46:20) [GCC] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /usr/lib64/libopencv_imgcodecs.so.406: undefined symbol: _ZN7Imf_3_114ChromaticitiesC1ERKN9Imath_3_14Vec2IfEES5_S5_S5_
>>> 

Information for package python3-opencv:
---------------------------------------
Repository     : openSUSE-Tumbleweed-Oss
Name           : python3-opencv
Version        : 4.6.0-2.2
Arch           : x86_64
Vendor         : openSUSE
Installed Size : 6.6 MiB
Installed      : Yes (automatically)
Status         : up-to-date
Source package : opencv-4.6.0-2.2.src
Upstream URL   : https://opencv.org/
Comment 1 Stefan Brüns 2022-11-02 12:26:04 UTC
c++filt _ZN7Imf_3_114ChromaticitiesC1ERKN9Imath_3_14Vec2IfEES5_S5_S5_
Imf_3_1::Chromaticities::Chromaticities(Imath_3_1::Vec2<float> const&, Imath_3_1::Vec2<float> const&, Imath_3_1::Vec2<float> const&, Imath_3_1::Vec2<float> const&)
Comment 2 Stefan Brüns 2022-11-02 14:26:46 UTC
$> nm -DC --defined-only /usr/lib64/libOpenEXR-3_1.so.30 | grep Imf_3_1::Chromaticities::Chromaticities
0000000000061ad0 T Imf_3_1::Chromaticities::Chromaticities(Imath_3_1::Vec2<float> const&, Imath_3_1::Vec2<float> const&, Imath_3_1::Vec2<float> const&, Imath_3_1::Vec2<float> const&)
0000000000061ad0 T Imf_3_1::Chromaticities::Chromaticities(Imath_3_1::Vec2<float> const&, Imath_3_1::Vec2<float> const&, Imath_3_1::Vec2<float> const&, Imath_3_1::Vec2<float> const&)

$> nm -DC --undefined-only /usr/lib64/libopencv_imgcodecs.so.406 | grep Imf_3_1::Chromaticities::Chromaticities
                 U Imf_3_1::Chromaticities::Chromaticities(Imath_3_1::Vec2<float> const&, Imath_3_1::Vec2<float> const&, Imath_3_1::Vec2<float> const&, Imath_3_1::Vec2<float> const&)


Apparently, your libOpenEXR is broken.
Comment 3 Axel Braun 2022-11-02 15:47:44 UTC
(In reply to Stefan Brüns from comment #2)
 
> Apparently, your libOpenEXR is broken.

Found out its a newer version than the one in TW. Downgraded and it works again!

Thanks!