Open daschuer opened 3 years ago
I think the error is that the code for OpenCV < version 3 compares the result of LoadLibrary with 32. I don't know where that number came from. I guess you don't have libopencv_core.so. Maybe the result of LoadLibrary is cast to an unsigned value? It's strange though that you are the first to report this error. Nowadays I do all my builds with --with-opencv-cxx-api, which is needed for recent versions of OpenCV.
I have /usr/lib/x86_64-linux-gnu/libopencv_core.so.3.2 installed.
I am probably the first that reports it, because it happens only with the libportaudio under development.
My concern is mainly if we did something wrong there, which triggers the segfault here. Maybe there is something wrong we can easily fix.
I have /usr/lib/x86_64-linux-gnu/libopencv_core.so.3.2 installed.
But do you have the libopencv_core.so symlink that USDX tries to open?
I am probably the first that reports it, because it happens only with the libportaudio under development.
So when you configure USDX --without-portaudio there is no crash?
I have the symlink see
daniel@540U4C:~$ ls -l /usr/lib/x86_64-linux-gnu/libopencv_core.so lrwxrwxrwx 1 root root 21 Sep 20 2018 /usr/lib/x86_64-linux-gnu/libopencv_core.so -> libopencv_core.so.3.2
Strange, now I can no longer reproduce the issue. It still works, even If I remove the libopencv-core-dev package which brings the symlink.
What is the exact version of the libc6 package you have installed?
If it is 2.27-3ubuntu1.4 then it is crashing when dereferencing the symbol_scope
parameter before the for
loop is executed for the first time: https://github.com/bminor/glibc/blob/23158b08a0908f381459f273a984c6fd328363cb/elf/dl-lookup.c#L811
My libc6 version is actually 2.27-3ubuntu1.4
I can reliable reproduce the issue when installing a modified libportaudio. But after restart the issue is gone. I can remember that originally a restart does not help. Maybe this was a second issue which is solved now.
Do we have an explanation why a restart makes a difference? Do we have an issue of using uninitialized memory?
I am currently testing a new PortAudio version that features a PulseAudio API. https://github.com/PortAudio/portaudio/pull/336
For testing I use Ubuntu Bionic + 2017.8.0-1 (bionic) http://ppa.launchpad.net/tomtomtom/ultrastar-deluxe/ubuntu
Unfortunately the UltraStar is crashing just after startup. Does anyone have an idea why this happens. Is it possible to provide a portaudio update that is not crashing the build?
Here is the log of my test: