ConfettiFX / The-Forge

The Forge Cross-Platform Rendering Framework PC Windows, Steamdeck (native), Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2
Apache License 2.0
4.65k stars 491 forks source link

Executing Unit Tests on Mac OS 10.14 gives a Bad Access error #206

Closed rayx32 closed 2 years ago

rayx32 commented 3 years ago

I get a MainThread (1): EXC_BAD_ACCESS (code=1, address=0x40) error when trying to run any Unit Test. It occurs in the MetalRenderer.mm , util_find_heap_with_space method and MutexLock lock(*pRenderer->pHeapMutex); code block

OS: Mac OS 10.14.6 XCode: 11.3.1

wolfgangfengel commented 3 years ago

Thanks for reporting this. We are looking into this. I will get back to you.

wolfgangfengel commented 3 years ago

We tried Xcode 10.1 and mac OS 10.13 but we were not able to reproduce this issue. Do you have a call stack, a log file or a bit more info. What machine is it? Is it a Mac Pro or iMac Pro? We do not test on those.

rayx32 commented 3 years ago

Sorry for being so late. Running this in a 2019 Macbook Pro with a Radeon Pro 560X + Intel UHD 630

The stack trace is attached. forge_stack_trace.txt

wolfgangfengel commented 3 years ago

Looks like we will have this fixed in the next release.

wolfgangfengel commented 2 years ago

Should be fixed in Release 1.50