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

Run error on macos (M1) #139

Open
cubevlmu opened this issue Jun 9, 2024 · 2 comments
Open

Run error on macos (M1) #139

cubevlmu opened this issue Jun 9, 2024 · 2 comments

Comments

@cubevlmu
Copy link

cubevlmu commented Jun 9, 2024

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):

  • OS: MacOS 14.2.1
  • Device: MacBook Air M1 2020

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
Copy link
Owner

This should hopefully be fixed on main

@cubevlmu
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants