jmorton06 / Lumos

Cross-Platform C++ 2D/3D game engine
MIT License
1.21k stars 130 forks source link

Run error on macos (M1) #139

Open cubevlmu opened 4 weeks ago

cubevlmu commented 4 weeks ago

Describe the bug when i using xcode building the lumos editor project. I received the exception of xcode debugger at 'VKDescriptorSet' class. It seemed engine trying to run a function named 'GetDescriptorInfo'. I see that the object 'm_Shader' is nullptr. So i think maybe it's a bug about resource loading.

To Reproduce Steps to reproduce the behavior:

  1. Generate the xcode project
  2. Click the build action of 'Editor' project
  3. Run and exception caught.

Expected behavior Thread 1: EXC_BAD_ACCESS (code=1, address=0x0) ` namespace Graphics { uint32_t g_DescriptorSetCount = 0; VKDescriptorSet::VKDescriptorSet(const DescriptorDesc& descriptorDesc) { LUMOS_PROFILE_FUNCTION(); m_FramesInFlight = uint32_t(VKRenderer::GetMainSwapChain()->GetSwapChainBufferCount());

        m_Shader      = descriptorDesc.shader;
        m_Descriptors = m_Shader->GetDescriptorInfo(descriptorDesc.layoutIndex); //<- At here, the bug happend

        for(auto& descriptor : m_Descriptors.descriptors)
        {

`

Screenshots

error

Desktop (please complete the following information):

Additional context Also i see, your release builing at the repo has some error at the eidtor file of mac arm build. It only has 300k file size and can't be unzip.

jmorton06 commented 4 weeks ago

This should hopefully be fixed on main

cubevlmu commented 3 weeks ago

It still has some error when running the editor. Assert failed when call vma functions.

截圖 2024-06-10 08 42 58 截圖 2024-06-10 08 43 08