microsoft / OpenCLOn12

The OpenCL-on-D3D12 mapping layer
MIT License
104 stars 13 forks source link

There is a problem with OpenCL that is preventing darktable from starting. #20

Closed Myron-S closed 2 years ago

Myron-S commented 3 years ago

Please see the following issue:

darktable.exe caused a Breakpoint at location 00007FFF33DF9052 in module KERNELBASE.dll. https://github.com/darktable-org/darktable/issues/8700

It appears this is a problem with OpenCLOn12.

jenatali commented 3 years ago

Thanks for reporting. I can reproduce this on my end. This breakpoint is a bug in our OpenCL compiler stack, I'll take a closer look and see if I can get a fix.

jenatali commented 3 years ago

Yep, I see the problem. Seems simple enough to fix: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10303. Once that's reviewed and merged I can see about pushing out an updated version of the OpenCL and OpenGL Compatibility Pack. In the meantime, you can uninstall that "app" to work around this issue.

jenatali commented 3 years ago

A new compatibility pack is being published through the Store right now (version 0.2104.7.0 or 1.2104.7.0) which should resolve this for you. Please reactivate if it doesn't.

Myron-S commented 3 years ago

Updated the compatibility pack. Darktable lives again :-)

EricBright commented 2 years ago

The same issue seems to be back (at least in my case). The installed version of my OpenCL™ and OpenGL® Compatibility Pack is 1.2201.1.0. This might be a regression. What do you think? BTW, there seems to be no way for me to uninstall the pack temporarily via the Store. I have no idea why.

BobSouza commented 2 years ago

I am also seeing it.
this is darktable 3.8.1 reporting an exception:


Error occurred on Saturday, March 19, 2022 at 19:56:07. darktable-cltest.exe caused a Breakpoint at location 00007FFC53E85A34 in module CLOn12Compiler.dll.

Looks like it's having trouble compiling 'blendop.cl

jenatali commented 2 years ago

Thanks for reporting. I'll try to get to it soon.

Myron-S commented 2 years ago

Problem still exists.

this is darktable 3.8.1 reporting an exception:

-------------------

Error occurred on Saturday, May 28, 2022 at 18:12:42.

darktable.exe caused a Breakpoint at location 00007FFC97023754 in module CLOn12Compiler.dll.

AddrPC           Params
00007FFC97023754 000001DB6DC66F20 000001DB6DC66F20 000000CD045FC830  CLOn12Compiler.dll!clc_specialize_spirv
00007FFC9701F491 000000CD045FC601 0000000000000000 000000CD045FC830  CLOn12Compiler.dll!clc_specialize_spirv
00007FFC97022E06 000000CD045FC670 0000000000000000 000001DB6F34A860  CLOn12Compiler.dll!clc_specialize_spirv
00007FFC96F55DD5 000001DB76759710 00007FFD498747B1 000001DB538EB670  CLOn12Compiler.dll!clc_spirv_to_dxil
00007FFCA61EC6CC 0000000000000000 00007FFCA61EC930 000001DB6E26B5E0  OpenCLOn12.dll!0x7ffc0000c6cc
00007FFCA6209F20 0000000000000000 000001DB00000000 000001DB76759490  OpenCLOn12.dll!clUnloadPlatformCompiler
00007FFCA6208B4C 000001DB734BF098 000001DB66B84448 000001DB71BADCF0  OpenCLOn12.dll!clUnloadPlatformCompiler
00007FFCA6208471 000001DB56509F50 000000CD045FE898 000001DB56C15480  OpenCLOn12.dll!clUnloadPlatformCompiler
00007FFCA620C5B8 000001DB734BF040 00000000000024B0 0000000000000000  OpenCLOn12.dll!clBuildProgram
00007FFCB373E8C0 000000CD045FF010 0000000000000103 000001DB56649300  libdarktable.dll!dt_opencl_build_program
00007FFCB3743FFC 000001DB569AB1F0 0000000000000001 000001DB00000000  libdarktable.dll!dt_opencl_init
00007FFCB36A194B 00007FFD00000001 000001DB552BDE40 000001DB00000001  libdarktable.dll!dt_init
00007FF6B4902B15 00007FF6B4901660 0000000000000010 0000000000000000  darktable.exe!0x7ff600002b15
00007FF6B49015B5 000000000000005A 0000000000000000 00007FF6B4907090  darktable.exe!0x7ff6000015b5
00007FF6B49013D4 0000000000000000 0000000000000000 0000000000000000  darktable.exe!0x7ff6000013d4
00007FF6B4901506 0000000000000000 0000000000000000 0000000000000000  darktable.exe!0x7ff600001506
00007FFD47917034 0000000000000000 0000000000000000 0000000000000000  KERNEL32.DLL!BaseThreadInitThunk
00007FFD498A2651 0000000000000000 0000000000000000 0000000000000000  ntdll.dll!RtlUserThreadStart

darktable.exe   3.8.1.0
ntdll.dll       10.0.19041.1682
KERNEL32.DLL    10.0.19041.1706
KERNELBASE.dll  10.0.19041.1706
msvcrt.dll      7.0.19041.546
libintl-8.dll   0.21.0.0
ADVAPI32.dll    10.0.19041.1682
sechost.dll     10.0.19041.1586
RPCRT4.dll      10.0.19041.1706
libglib-2.0-0.dll   2.70.3.0
ole32.dll       10.0.19041.1202
ucrtbase.dll    10.0.19041.789
combase.dll     10.0.19041.1682
GDI32.dll       10.0.19041.1620
win32u.dll      10.0.19041.1706
gdi32full.dll   10.0.19041.1706
msvcp_win.dll   10.0.19041.789
USER32.dll      10.0.19041.1503
SHELL32.dll     10.0.19041.1706
WS2_32.dll      10.0.19041.546
libdarktable.dll
PSAPI.DLL       10.0.19041.546
libiconv-2.dll  1.16.0.0
libwinpthread-1.dll 1.0.0.0
libpcre-1.dll
libgcc_s_seh-1.dll
libstdc++-6.dll
libcairo-2.dll
exchndl.dll     0.9.3.0
libgdk-3-0.dll  3.24.31.0
IMM32.dll       10.0.19041.546
SETUPAPI.dll    10.0.19041.1682
cfgmgr32.dll    10.0.19041.1620
bcrypt.dll      10.0.19041.1023
libgdk_pixbuf-2.0-0.dll 2.42.6.0
libgio-2.0-0.dll    2.70.3.0
SHLWAPI.dll     10.0.19041.1706
libgobject-2.0-0.dll    2.70.3.0
libgtk-3-0.dll  3.24.31.0
comdlg32.dll    10.0.19041.1566
shcore.dll      10.0.19041.1645
lua54.dll
libpango-1.0-0.dll  1.50.3.0
libpangocairo-1.0-0.dll 1.50.3.0
zlib1.dll
libgomp-1.dll
libavif.dll
libcurl-4.dll
CRYPT32.dll     10.0.19041.1320
WLDAP32.dll     10.0.19041.1706
libexiv2.dll
libgmodule-2.0-0.dll    2.70.3.0
libgphoto2-6.dll
libgphoto2_port-12.dll
libGraphicsMagick-3.dll
libheif.dll
libicuin69.dll
libicuuc69.dll
libIlmImf-2_5.dll
libjpeg-8.dll
libjson-glib-1.0-0.dll
liblcms2-2.dll
libopenjp2-7.dll
libpng16-16.dll
libpugixml.dll  1.11.0.0
librsvg-2-2.dll
libsecret-1-0.dll
libsoup-2.4-1.dll
libsqlite3-0.dll
libtiff-5.dll
libxml2-2.dll
MSIMG32.dll     10.0.19041.1466
libfontconfig-1.dll
libfreetype-6.dll   2.11.1.0
libpixman-1-0.dll
VERSION.dll     10.0.19041.546
mgwhelp.dll     0.9.3.0
dwmapi.dll      10.0.19041.746
HID.DLL         10.0.19041.546
WINMM.dll       10.0.19041.546
libcairo-gobject-2.dll
libepoxy-0.dll
libfribidi-0.dll
libpangowin32-1.0-0.dll 1.50.3.0
gdiplus.dll     10.0.19041.1706
DNSAPI.dll      10.0.19041.1620
IPHLPAPI.DLL    10.0.19041.546
libffi-7.dll
COMCTL32.dll    6.10.19041.1110
WINSPOOL.DRV    10.0.19041.1706
libatk-1.0-0.dll    2.36.0.0
libharfbuzz-0.dll
libthai-0.dll
libpangoft2-1.0-0.dll   1.50.3.0
libaom.dll
libdav1d.dll    5.1.1.0
rav1e.dll
libbrotlidec.dll
libcrypto-1_1-x64.dll   1.1.1.13
libidn2-0.dll
libnghttp2-14.dll
libpsl-5.dll
libssh2-1.dll
libssl-1_1-x64.dll  1.1.1.13
libzstd.dll
libexpat-1.dll
libexif-12.dll
libltdl-7.dll
libsystre-0.dll
libbz2-1.dll
libde265-0.dll
libx265.dll     3.4.0.31
libicudt69.dll
libHalf-2_5.dll
libIex-2_5.dll
libIlmThread-2_5.dll
libImath-2_5.dll
USERENV.dll     10.0.19041.572
libgcrypt-20.dll    1.10.0.0
libdeflate.dll
libjbig-0.dll
libLerc.dll
liblzma-5.dll   5.2.5.0
libwebp-7.dll
dbghelp.dll     10.0.19041.867
DWrite.dll      10.0.19041.1566
USP10.dll       10.0.19041.546
libgraphite2.dll
libdatrie-1.dll
libbrotlicommon.dll
libunistring-2.dll  0.9.10.0
libtre-5.dll
libgpg-error-0.dll  1.44.0.0
dbgcore.DLL     10.0.19041.789
CRYPTBASE.DLL   10.0.19041.546
bcryptPrimitives.dll    10.0.19041.1415
CRYPTSP.dll     10.0.19041.546
rsaenh.dll      10.0.19041.1052
NSI.dll         10.0.19041.610
0patchLoaderX64.dll 21.5.5.10500
ntmarta.dll     10.0.19041.546
windows.storage.dll 10.0.19041.1706
Wldp.dll        10.0.19041.1682
mswsock.dll     10.0.19041.546
winhttp.dll     10.0.19041.1682
KBDUK.DLL       10.0.19041.1
uxtheme.dll     10.0.19041.1620
MSCTF.dll       10.0.19041.1620
OLEAUT32.dll    10.0.19041.985
DEVOBJ.dll      10.0.19041.1620
WINTRUST.dll    10.0.19041.1682
MSASN1.dll      10.0.19041.546
kernel.appcore.dll  10.0.19041.546
clbcatq.dll     2001.12.10941.16384
OpenCL.dll      3.0.1.0
AppXDeploymentClient.dll    10.0.19041.1620
Windows.ApplicationModel.dll    10.0.19041.746
twinapi.appcore.dll 10.0.19041.964
propsys.dll     7.0.19041.1023
profapi.dll     10.0.19041.844
Windows.FileExplorer.Common.dll 10.0.19041.1566
iertutil.dll    11.0.19041.1682
mssprxy.dll     7.0.19041.1620
dxgi.dll        10.0.19041.1566
nvopencl64.dll  30.0.15.1296
cryptnet.dll    10.0.19041.906
drvstore.dll    10.0.19041.1566
nvapi64.dll     30.0.15.1296
igdrcl64.dll    23.20.101.1994
igdgmm64.dll    30.0.101.1994
dxcore.dll      10.0.19041.546
igdfcl64.dll    30.0.101.1994
igc64.dll       30.0.101.1994
OpenCLOn12.dll
d3d12.dll       10.0.19041.1266
nvcompiler64.dll    30.0.15.1296
D3D12Core.dll   10.0.19041.1320
D3DSCache.dll   10.0.19041.746
igd12dxva64.dll 30.0.101.1994
igd12umd64.dll  30.0.101.1994
igd12um64kbl.dll
igdinfo64.dll
CLOn12Compiler.dll
DXIL.dll        10.0.19592.1000
TextShaping.dll
textinputframework.dll  10.0.19041.1620
CoreUIComponents.dll    10.0.19041.546
CoreMessaging.dll   10.0.19041.746
wintypes.dll    10.0.19041.1682

Windows 10.0.19044
DrMingw 0.9.3
jenatali commented 2 years ago

Sorry for the delay. I've root caused this: https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17246/diffs?commit_id=9f64d07f21e83e0140254536e7dfc803200a693a. The problem is that the kernel contains unused image args, which is the same as #35.

Myron-S commented 2 years ago

Just a question born from curiosity. How long might it take before the compiled app is available on the Microsoft App Store?

jenatali commented 2 years ago

Hopefully today or tomorrow.

jenatali commented 2 years ago

The update should be live.

Myron-S commented 2 years ago

Is the version of the update 1.2206.5.0? If it is then the fix has not worked. If that's not the right version then the update is not yet live as I've just now reinstalled the compatibility pack and DarkTable is refusing to start.

this is darktable 3.8.1 reporting an exception:

-------------------

Error occurred on Tuesday, June 28, 2022 at 19:58:37.

darktable.exe caused a C++ exception handling exception at location 00007FFD92034FD9 in module KERNELBASE.dll.

AddrPC           Params
00007FFD92034FD9 00000A28F4EE908A 00007FFCC0C46917 0000000000000008  KERNELBASE.dll!RaiseException
00007FFCF0C3BA4C 0000000000000000 0000022EC1872750 000045D830E4EA27  OpenCLOn12.dll!UnionRect
00007FFCF0C3AEF3 0000000000000000 0000000000000120 0000000000000000  OpenCLOn12.dll!UnionRect
00007FFCF0C3A1B1 0000022EA1F0B930 0000000000000000 0000022EB4F11618  OpenCLOn12.dll!UnionRect
00007FFCF0B824E5 0000022EC1773CD0 0000022EBF29B528 0000C825444C45EA  OpenCLOn12.dll!0x7ffc000024e5
00007FFCF0B8AA5C 000000B9B63FE970 0000022EC1872750 000000B9B63FEB60  OpenCLOn12.dll!0x7ffc0000aa5c
00007FFCF0B8CFFC 0000022EBF29B4F0 000000B9B63FEB60 0000022EB4F11618  OpenCLOn12.dll!0x7ffc0000cffc
00007FFCF0B8CD05 0000022EBF29B4F0 0000022EB4E20CD8 0000022EB4F11590  OpenCLOn12.dll!0x7ffc0000cd05
00007FFCF0BA874A 0000022E00000000 0000000000000000 000000B9B63FEC50  OpenCLOn12.dll!clUnloadPlatformCompiler
00007FFCF0BA8471 0000022EB4E20C80 000000B9B63FED98 0000022EA4F285C0  OpenCLOn12.dll!clUnloadPlatformCompiler
00007FFCF0BAC5B8 0000022EB4E20C80 00000000000024B0 0000000000000000  OpenCLOn12.dll!clBuildProgram
00007FFD00D0E8C0 000000B9B63FF510 0000000000000103 0000022EA48F5680  libdarktable.dll!dt_opencl_build_program
00007FFD00D13FFC 0000022EA45C7480 0000000000000001 0000022E00000000  libdarktable.dll!dt_opencl_init
00007FFD00C7194B 00007FFD00000001 0000022EA38BDE60 0000022E00000001  libdarktable.dll!dt_init
00007FF7227D2B15 00007FF7227D1660 0000000000000010 0000000000000000  darktable.exe!0x7ff700002b15
00007FF7227D15B5 000000000000005A 0000000000000000 00007FF7227D7090  darktable.exe!0x7ff7000015b5
00007FF7227D13D4 0000000000000000 0000000000000000 0000000000000000  darktable.exe!0x7ff7000013d4
00007FF7227D1506 0000000000000000 0000000000000000 0000000000000000  darktable.exe!0x7ff700001506
00007FFD93687034 0000000000000000 0000000000000000 0000000000000000  KERNEL32.DLL!BaseThreadInitThunk
00007FFD948C2651 0000000000000000 0000000000000000 0000000000000000  ntdll.dll!RtlUserThreadStart

darktable.exe   3.8.1.0
ntdll.dll       10.0.19041.1741
KERNEL32.DLL    10.0.19041.1741
KERNELBASE.dll  10.0.19041.1741
msvcrt.dll      7.0.19041.546
libintl-8.dll   0.21.0.0
ADVAPI32.dll    10.0.19041.1682
sechost.dll     10.0.19041.1586
RPCRT4.dll      10.0.19041.1706
libglib-2.0-0.dll   2.70.3.0
ole32.dll       10.0.19041.1202
ucrtbase.dll    10.0.19041.789
combase.dll     10.0.19041.1741
GDI32.dll       10.0.19041.1620
win32u.dll      10.0.19041.1766
gdi32full.dll   10.0.19041.1706
msvcp_win.dll   10.0.19041.789
USER32.dll      10.0.19041.1503
SHELL32.dll     10.0.19041.1741
WS2_32.dll      10.0.19041.546
libdarktable.dll
PSAPI.DLL       10.0.19041.546
libiconv-2.dll  1.16.0.0
libwinpthread-1.dll 1.0.0.0
libpcre-1.dll
libgcc_s_seh-1.dll
libstdc++-6.dll
libcairo-2.dll
exchndl.dll     0.9.3.0
libgdk-3-0.dll  3.24.31.0
IMM32.dll       10.0.19041.546
SETUPAPI.dll    10.0.19041.1741
cfgmgr32.dll    10.0.19041.1620
bcrypt.dll      10.0.19041.1023
libgdk_pixbuf-2.0-0.dll 2.42.6.0
libgio-2.0-0.dll    2.70.3.0
SHLWAPI.dll     10.0.19041.1706
libgobject-2.0-0.dll    2.70.3.0
libgtk-3-0.dll  3.24.31.0
comdlg32.dll    10.0.19041.1766
shcore.dll      10.0.19041.1741
lua54.dll
libpango-1.0-0.dll  1.50.3.0
libpangocairo-1.0-0.dll 1.50.3.0
zlib1.dll
libgomp-1.dll
libavif.dll
libcurl-4.dll
CRYPT32.dll     10.0.19041.1320
WLDAP32.dll     10.0.19041.1766
libexiv2.dll
libgmodule-2.0-0.dll    2.70.3.0
libgphoto2-6.dll
libgphoto2_port-12.dll
libGraphicsMagick-3.dll
libheif.dll
libicuin69.dll
libicuuc69.dll
libIlmImf-2_5.dll
libjpeg-8.dll
libjson-glib-1.0-0.dll
liblcms2-2.dll
libopenjp2-7.dll
libpng16-16.dll
libpugixml.dll  1.11.0.0
librsvg-2-2.dll
libsecret-1-0.dll
libsoup-2.4-1.dll
libsqlite3-0.dll
libtiff-5.dll
libxml2-2.dll
MSIMG32.dll     10.0.19041.1466
libfontconfig-1.dll
libfreetype-6.dll   2.11.1.0
libpixman-1-0.dll
VERSION.dll     10.0.19041.546
mgwhelp.dll     0.9.3.0
dwmapi.dll      10.0.19041.746
HID.DLL         10.0.19041.546
WINMM.dll       10.0.19041.546
libcairo-gobject-2.dll
libepoxy-0.dll
libfribidi-0.dll
libpangowin32-1.0-0.dll 1.50.3.0
gdiplus.dll     10.0.19041.1706
DNSAPI.dll      10.0.19041.1620
IPHLPAPI.DLL    10.0.19041.546
libffi-7.dll
COMCTL32.dll    6.10.19041.1110
WINSPOOL.DRV    10.0.19041.1706
libatk-1.0-0.dll    2.36.0.0
libharfbuzz-0.dll
libthai-0.dll
libpangoft2-1.0-0.dll   1.50.3.0
libaom.dll
libdav1d.dll    5.1.1.0
rav1e.dll
libbrotlidec.dll
libcrypto-1_1-x64.dll   1.1.1.13
libidn2-0.dll
libnghttp2-14.dll
libpsl-5.dll
libssh2-1.dll
libssl-1_1-x64.dll  1.1.1.13
libzstd.dll
libexpat-1.dll
libexif-12.dll
libltdl-7.dll
libsystre-0.dll
libbz2-1.dll
libde265-0.dll
libx265.dll     3.4.0.31
libicudt69.dll
libHalf-2_5.dll
libIex-2_5.dll
libIlmThread-2_5.dll
libImath-2_5.dll
USERENV.dll     10.0.19041.572
libgcrypt-20.dll    1.10.0.0
libdeflate.dll
libjbig-0.dll
libLerc.dll
liblzma-5.dll   5.2.5.0
libwebp-7.dll
dbghelp.dll     10.0.19041.867
DWrite.dll      10.0.19041.1566
USP10.dll       10.0.19041.546
libgraphite2.dll
libdatrie-1.dll
libbrotlicommon.dll
libunistring-2.dll  0.9.10.0
libtre-5.dll
libgpg-error-0.dll  1.44.0.0
dbgcore.DLL     10.0.19041.789
CRYPTBASE.DLL   10.0.19041.546
bcryptPrimitives.dll    10.0.19041.1415
CRYPTSP.dll     10.0.19041.546
rsaenh.dll      10.0.19041.1052
NSI.dll         10.0.19041.610
0patchLoaderX64.dll 21.5.5.10500
ntmarta.dll     10.0.19041.546
windows.storage.dll 10.0.19041.1741
Wldp.dll        10.0.19041.1682
mswsock.dll     10.0.19041.546
winhttp.dll     10.0.19041.1682
KBDUK.DLL       10.0.19041.1
uxtheme.dll     10.0.19041.1620
DEVOBJ.dll      10.0.19041.1620
MSCTF.dll       10.0.19041.1741
OLEAUT32.dll    10.0.19041.985
WINTRUST.dll    10.0.19041.1741
MSASN1.dll      10.0.19041.546
kernel.appcore.dll  10.0.19041.546
clbcatq.dll     2001.12.10941.16384
OpenCL.dll      3.0.1.0
AppXDeploymentClient.dll    10.0.19041.1620
Windows.ApplicationModel.dll    10.0.19041.746
twinapi.appcore.dll 10.0.19041.1741
propsys.dll     7.0.19041.1741
profapi.dll     10.0.19041.844
Windows.FileExplorer.Common.dll 10.0.19041.1741
iertutil.dll    11.0.19041.1741
mssprxy.dll     7.0.19041.1741
dxgi.dll        10.0.19041.1741
nvopencl64.dll  30.0.15.1296
cryptnet.dll    10.0.19041.906
drvstore.dll    10.0.19041.1566
nvapi64.dll     30.0.15.1296
igdrcl64.dll    23.20.101.1994
igdgmm64.dll    30.0.101.1994
dxcore.dll      10.0.19041.546
igdfcl64.dll    30.0.101.1994
igc64.dll       30.0.101.1994
OpenCLOn12.dll
d3d12.dll       10.0.19041.1266
nvcompiler64.dll    30.0.15.1296
D3D12Core.dll   10.0.19041.1320
D3DSCache.dll   10.0.19041.746
igd12dxva64.dll 30.0.101.1994
igd12umd64.dll  30.0.101.1994
igd12um64kbl.dll
igdinfo64.dll
CLOn12Compiler.dll
TextShaping.dll
textinputframework.dll  10.0.19041.1741
CoreUIComponents.dll    10.0.19041.546
CoreMessaging.dll   10.0.19041.746
wintypes.dll    10.0.19041.1682
xmllite.dll     10.0.19041.546

Windows 10.0.19044
DrMingw 0.9.3
jenatali commented 2 years ago

Ack, looks like there was an ABI update I missed from the compiler, so an update to this runtime is needed in addition to the compiler. Let me fix that...

jenatali commented 2 years ago

Wow, things rotted quite a bit. I've pushed several fixes to master, will go ahead and push a new package.

EricBright commented 2 years ago

Here is the report from my installation:

darktable_bt_2QRKO1.txt

jenatali commented 2 years ago

Ok, this should be properly fixed by 1.2206.6.0. That one's verified to be working for me instead of just spot-addressing the cause of the earlier crash.

oscarbg commented 2 years ago

@jenatali for whatever reason on my system doesn't find any update from 1.2205.1.0.. can make 1.2206.6.0 a github release?

Myron-S commented 2 years ago

@oscarbg Try uninstalling the compatibility pack and then reinstalling. That might work.

jenatali commented 2 years ago

@jenatali for whatever reason on my system doesn't find any update from 1.2205.1.0.. can make 1.2206.6.0 a github release?

I didn't update the package source for Windows insiders, but my expectation was that the higher-numbered package from the non-flighted channel would be offered instead. I'm publishing the package to insiders as well, should be up in an hour or two.

EricBright commented 2 years ago

1.2206.6.0 version fixed the issue like a charm!

oscarbg commented 2 years ago

thanks @jenatali for the release..