You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Successfully built the DiligentEngine on a MacBook Pro with M4 Pro chips running macOS Sequoia 15.1. However, samples (e.g., Tutorial01_HelloTriangle) crash on both the GL and Vulkan backends. After hours of debugging and searching, I decided to post an issue here.
I am new to DiligentEngine and I am not familiar with Objective-C++ nor AppKit, and I greatly appreciate any assistance.
P.S. I have also tested this on a friend's Intel MacBook Pro 2020 with intel iris graphics, and encountered the same issue.
To repoduce (just a clean clone from the latest commit):
-- The C compiler identification is AppleClang 16.0.0.16000026
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_BUILD_TYPE is not specified, default to Debug. Note that this is only relevant for single-configuration generators (such as Makefile Generators and Ninja).
Target processor: x86_64
CMake generator: Xcode
Target platform: MacOS 64
DiligentCorePro module is not found. Metal backend will be disabled
D3D11_SUPPORTED: FALSE
D3D12_SUPPORTED: FALSE
GL_SUPPORTED: TRUE
GLES_SUPPORTED: FALSE
VULKAN_SUPPORTED: TRUE
METAL_SUPPORTED: FALSE
WEBGPU_SUPPORTED: FALSE
Additional Clang compile options for release configurations: -mavx2
-- Found Python3: /usr/local/Frameworks/Python.framework/Versions/3.12/bin/python3.12 (found version "3.12.5") found components: Interpreter
-- optimizer enabled
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- SPIRV-Cross: Finding Git version for SPIRV-Cross.
-- Found Git: /usr/local/bin/git (found version "2.46.0")
-- SPIRV-Cross: Git hash: diligent-v2.5.6-44-g65d73934
-- Architecture: x86_64
-- DiligentCore commit hash: 953c6a45
Using Vulkan library path: /Users/septicmk/VulkanSDK/1.3.296.0/macOS/lib
-- Found OpenGL: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.0.sdk/System/Library/Frameworks/OpenGL.framework
-- The ASM compiler identification is AppleClang
-- Found assembler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
CMake Warning (dev) at DiligentTools/ThirdParty/libpng/CMakeLists.txt:61 (option):
Policy CMP0077 is not set: option() honors normal variables. Run "cmake --help-policy CMP0077"for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
For compatibility with older versions of CMake, option is clearing the
normal variable 'PNG_FRAMEWORK'.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Deprecation Warning at DiligentTools/ThirdParty/libpng/CMakeLists.txt:102 (message):
The option PNG_BUILD_ZLIB has been deprecated; please use ZLIB_ROOT instead
-- Found AWK program: /usr/bin/awk
Looking in indexes: http://mirrors.cloud.tencent.com/pypi/simple
Requirement already satisfied: libclang==16.0.6 in /usr/local/lib/python3.12/site-packages (16.0.6)
[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: python3.12 -m pip install --upgrade pip
Looking in indexes: http://mirrors.cloud.tencent.com/pypi/simple
Requirement already satisfied: jinja2 in /usr/local/lib/python3.12/site-packages (3.1.3)
Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib/python3.12/site-packages (from jinja2) (2.1.5)
[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: python3.12 -m pip install --upgrade pip
-- Including Cocoa support
Fetching GLTF assets...
-- Configuring done (48.8s)
-- Generating done (0.1s)
-- Build files have been written to: /Users/septicmk/project/DiligentEngine/build/MacOS_tmp
Error message (Both GL and VK report):
# open ./Tutorial01_HelloTriangle
2024-11-23 12:34:07.953 Tutorial01_HelloTriangle[22490:191519] +[IMKClient subclass]: chose IMKClient_Modern
2024-11-23 12:34:07.953 Tutorial01_HelloTriangle[22490:191519] +[IMKInputSession subclass]: chose IMKInputSession_Modern
fish: Job 1, './Tutorial01_HelloTriangle' terminated by signal SIGSEGV (Address boundary error)
It seems that [[NSProcessInfo processInfo] arguments] is already autoreleased (though this is uncertain). Removing the autorelease seems to resolve the issue, as samples and tutorials now run as expected.
Not sure if this resolves the issue correctly; perhaps some Objective-C++ experts can take a look.
Successfully built the DiligentEngine on a MacBook Pro with M4 Pro chips running macOS Sequoia 15.1. However, samples (e.g.,
Tutorial01_HelloTriangle
) crash on both the GL and Vulkan backends. After hours of debugging and searching, I decided to post an issue here.I am new to DiligentEngine and I am not familiar with Objective-C++ nor AppKit, and I greatly appreciate any assistance.
P.S. I have also tested this on a friend's Intel MacBook Pro 2020 with intel iris graphics, and encountered the same issue.
To repoduce (just a clean clone from the latest commit):
Building tools and envs:
For vulkan information
For cmake output
Error message (Both GL and VK report):
lldb backtrace:
backtrace
The text was updated successfully, but these errors were encountered: