Skip to content

loadModuleFromSource() causes assertion failure on Ubuntu #67

Description

@rob271

I get a runtime assertion failure unless I replace:
Slang::ComPtr<slang::IModule> slangModule{ slangSession->loadModuleFromSource("triangle", "assets/shader.slang", nullptr, nullptr) };

with this line:
Slang::ComPtr<slang::IModule> slangModule{ slangSession->loadModule( "assets/shader.slang", nullptr) };

Using diagnostics it gives me this: assert failure: slang-session.cpp(56): blob

I'm not sure whether this is expected behavior on Linux or whether there is something specific about my configuration that I'm missing. Anyway, I just wanted to report this in case this information is useful for someone.

Environment:
Ubuntu 24.04.4
Vulkan SDK 1.4.357.1
GCC 14
GLM 1.0.3
SDL3 3.2.31
Slang 2026.13.1-1-g84792eb15

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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