Skip to content

SIGSEGV in vkCreateDescriptorSetLayout on Android 9 NDK 27.0.12077973 #214

@volo-zyko

Description

@volo-zyko

The following code crashes in the mentioned function during VkFFT initialization.

    VkFFTConfiguration vkfft_config = {};

    pfUINT buffer_size = (1 << 18);

    vkfft_config.FFTdim = 1;
    vkfft_config.size[0] = buffer_size / sizeof(float) / 2;  // Complex numbers
    vkfft_config.physicalDevice = &_vk_physical_device;
    vkfft_config.device = &_vk_device;
    vkfft_config.queue = &_vk_queue;
    vkfft_config.commandPool = &_vk_command_pool;
    vkfft_config.fence = &_vk_fence;
    vkfft_config.isCompilerInitialized = 0;
    vkfft_config.bufferSize = &buffer_size;
    vkfft_config.makeForwardPlanOnly = 1;
    const VkFFTResult res = initializeVkFFT(&_vkfft_app, vkfft_config);

There are 2 places where it's used.

res = vkCreateDescriptorSetLayout(app->configuration.device[0], &descriptorSetLayoutCreateInfo, 0, &axis->descriptorSetLayout);

res = vkCreateDescriptorSetLayout(app->configuration.device[0], &descriptorSetLayoutCreateInfo, 0, &axis->descriptorSetLayout);

For me, adding descriptorSetLayoutBindings[i].pImmutableSamplers = NULL; in a loop before the call fixed the crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions