Commit b66eb0a0 authored by Maik Qualmann's avatar Maik Qualmann

disable OpenCL for everyone

An analysis with Heaptrack shows that we
have a big memory leak with active OpenCL.
CCBUGS: 423632
CCBUGS: 421043
CCBUGS: 416266
CCBUGS: 420411
parent 5da17660
Pipeline #26828 passed with stage
in 38 minutes
......@@ -102,6 +102,16 @@ int main(int argc, char* argv[])
qputenv("QT_AUTO_SCREEN_SCALE_FACTOR", "1");
}
// OpenCV crash with face engine with OpenCL support
// https://bugs.kde.org/show_bug.cgi?id=423632
// When analyzing with Heaptrack it was found
// that a big memory hole is created in
// libpocl when OpenCL is active.
qputenv("OPENCV_OPENCL_RUNTIME", "disabled");
qputenv("OPENCV_OPENCL_DEVICE", "null");
#ifdef HAVE_QWEBENGINE
QApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
......
......@@ -73,11 +73,6 @@ export IOLIBS=$DIR/usr/lib/libgphoto2_port
export QT_XCB_FORCE_SOFTWARE_OPENGL=1
export QTWEBENGINE_CHROMIUM_FLAGS="--disable-gpu"
# OpenCV crash with face engine with OpenCL support
# https://bugs.kde.org/show_bug.cgi?id=423632
export OPENCV_OPENCL_RUNTIME=disabled
export OPENCV_OPENCL_DEVICE=null
# code to disable Plasma desktopk detection with QDesktopService
export APPIMAGE_ORIGINAL_KDE_FULL_SESSION=$KDE_FULL_SESSION
export APPIMAGE_ORIGINAL_DESKTOP_SESSION=$DESKTOP_SESSION
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment