Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on macOS Sequoia #712

Open
TomDev234 opened this issue Jan 5, 2025 · 8 comments
Open

Crash on macOS Sequoia #712

TomDev234 opened this issue Jan 5, 2025 · 8 comments
Labels
bug Something isn't working

Comments

@TomDev234
Copy link

Game crashes at startup.

/Volumes/WORK_HDD/Gaming/Games/Testing/OpenGothic.command ; exit;
tom@i9-9900K ~ % /Volumes/WORK_HDD/Gaming/Games/Testing/OpenGothic.command ; exit;
OpenGothic v1.0 dev
no "Gothic.ini" file in path - using default settings

---crashlog(DeviceLostException(device is lost))---
GPU: AMD Radeon RX 6900 XT
#1: __cxa_get_exception_ptr - 4 libc++abi.dylib 0x00007ff809ee9237 __cxa_get_exception_ptr + 0
#2: __cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) - 5 libc++abi.dylib 0x00007ff809ee921c _ZN10__cxxabiv1L12failed_throwEPNS_15__cxa_exceptionE + 0
#3: Tempest::Detail::MtDevice::handleError(NS::Error*) - 6 libTempest.dylib 0x000000010f6bd357 _ZN7Tempest6Detail8MtDevice11handleErrorEPN2NS5ErrorE + 71
#4: Tempest::Detail::MtCompPipeline::MtCompPipeline(Tempest::Detail::MtDevice&, Tempest::Detail::MtPipelineLay const&, Tempest::Detail::MtShader const&) - 7 libTempest.dylib 0x000000010f663dd1 _ZN7Tempest6Detail14MtCompPipelineC2ERNS0_8MtDeviceERKNS0_13MtPipelineLayERKNS0_8MtShaderE + 609
#5: Tempest::MetalApi::createComputePipeline(Tempest::AbstractGraphicsApi::Device*, Tempest::AbstractGraphicsApi::PipelineLay const&, Tempest::AbstractGraphicsApi::Shader*) - 8 libTempest.dylib 0x000000010f66b048 _ZN7Tempest8MetalApi21createComputePipelineEPNS_19AbstractGraphicsApi6DeviceERKNS1_11PipelineLayEPNS1_6ShaderE + 56
#6: Tempest::Device::pipeline(Tempest::Shader const&) - 9 libTempest.dylib 0x000000010f68ac09 _ZN7Tempest6Device8pipelineERKNS_6ShaderE + 89
#7: Shaders::Shaders() - 10 Gothic2Notr 0x000000010d88d645 _ZN7ShadersC2Ev + 2837
#8: Renderer::Renderer(Tempest::Swapchain&) - 11 Gothic2Notr 0x000000010d8817bd _ZN8RendererC2ERN7Tempest9SwapchainE + 1437
#9: MainWindow::MainWindow(Tempest::Device&) - 12 Gothic2Notr 0x000000010d8a413a _ZN10MainWindowC2ERN7Tempest6DeviceE + 154
#10: main - 13 Gothic2Notr 0x000000010d8a38fb main + 555

zsh: abort /Volumes/WORK_HDD/Gaming/Games/Testing/OpenGothic.command

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

@TomDev234 TomDev234 added the bug Something isn't working label Jan 5, 2025
@Try
Copy link
Owner

Try commented Jan 6, 2025

Hi, @TomDev234 and thanks for report!

It seem one of the shaders failed to compile on your machine. Unfortunately, it's very hard to tell which one it was - so I've added extra data in error reporting, for Mac.

OpenGothic v1.0 dev

Hm, .dev means custom build - are you building the game from source yourself?

@TomDev234
Copy link
Author

No, not compiled by myself.
Here is another crash log with the latest OpenGothic build.
opengothic_log.txt

@Try
Copy link
Owner

Try commented Jan 10, 2025

@TomDev234

As mentioned before: unfortunately there is not enough information in crash. Basically all known so far, it that on of compute shaders, that works on M1, cannot be compiled on AMD.

If you can run build from ad81669 - that will be helpful, as not shader name is part of the crash-data.

Also if you still have XCode setup - it's possible to see in debugger, what been compiled as well.

@TomDev234
Copy link
Author

I have build OpenGothic from source. I get this error message. How to run it from Xcode? There is no Xcode project file.

tom@i9-9900K Testing % ./opengothic/Gothic2Notr.sh -g Gothic\ II
OpenGothic v1.0 dev
no "Gothic.ini" file in path - using default settings
unable to load archive: "Gothic II/Data/.DS_Store", reason: VFS disk signature not recognized: "Detected unsupported Union disk"

---crashlog(std::system_error("/Volumes/SRC_SSD/SRC/Build/OpenGothic/shader/ssao/ssao_blur.comp": Compiler encountered an internal error: I)---
GPU: AMD Radeon RX 6900 XT

@Try
Copy link
Owner

Try commented Jan 12, 2025

Hi, @TomDev234 and thanks for update

Compiler encountered an internal error: I

Seem to be a driver bug.

I've reported this issue on apple developer forum, here: https://developer.apple.com/forums/thread/772346

How to run it from Xcode?

Ah, sorry, I've should have mention how to generate it: cmake -H. -Bout/xcode -G Xcode.

@TomDev234
Copy link
Author

TomDev234 commented Jan 13, 2025

Here is a screen shot from Xcode.
Screenshot 2025-01-13 at 21 42 11

@Try
Copy link
Owner

Try commented Jan 13, 2025

Yeah, like I've mention before - driver bug.
Filed here https://developer.apple.com/forums/thread/772346 and in Feedback-Assistant. Apple asked:

It would be very helpful if you could attach any MTLCompilerService crash 
logs from an affected system, or better yet a sysdiagnose taken immediately after the crash.

and I've proveded shader source to them, so you dont have to.

@TomDev234
Copy link
Author

Here are the MTLCompilerService crash logs.
How do I submit the sysdiagnose? It is 311 mb in size. Only 25 mb are allowed here.
MTLCompilerService.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants