Jump to content

Error when running project solution on vs 2022 Windows


PedroLopes951
 Share

Recommended Posts

Hey everyone , I tried to run the project solution while I was doing some debugging and the game was executing fine, but after It started crashing when running. Now everytime I try to run the project solution I have a black screen and this error pops up

Assertion failed: "0 && (L"Can't find a usable technique")"
Location: shadermanager.cpp:270 (CShaderManager::LoadTechnique)

Call stack:

CShaderManager::LoadTechnique (shadermanager.cpp:270)
    this = 0x0C60E22C -> 
        m_ProgramCache = (unsupported map<CShaderManager::CacheKey,shared_ptr<CShaderProgram> >)
        m_EffectCache = (unsupported unordered_map<CShaderManager::EffectCacheKey,shared_ptr<CShaderTechnique>,CShaderManager::EffectCacheKeyHash,equal_to<CShaderManager::EffectCacheKey> >)
        m_HotloadTechniques = (unsupported unordered_map<Path,set<weak_ptr<CShaderTechnique>,owner_less<weak_ptr<CShaderTechnique> > >,hash<Path>,equal_to<Path> >)
        m_HotloadPrograms = (unsupported unordered_map<Path,set<weak_ptr<CShaderProgram>,owner_less<weak_ptr<CShaderProgram> > >,hash<Path>,equal_to<Path> >)

    this = (unavailable)
    tech = 0x012FECC4 -> (shared_ptr<CShaderTechnique>)
    tech = 0x012FECC4 (see above)
    at_mask_read = 4294967295 (0xFFFFFFFF)
    ret = (unavailable - internal error)

    at_name = 4294967295 (0xFFFFFFFF)
    at_shader = 12 (0x0000000C)
    at_depth_fail = 4294967295 (0xFFFFFFFF)
    root = 
        m_Pointer = 0x0C818018 -> [8] { 242, 0, 0, 0, 0, 0, 0, 0 }

    el_require = 25 (0x00000019)
    at_mode = 4294967295 (0xFFFFFFFF)
    at_op = 4294967295 (0xFFFFFFFF)
    XeroFile = 
        
            m_Pointer = 0x0C818018 (see above)
            m_ElementNameCount = 4 (0x00000004)
            m_AttributeNameCount = 2 (0x00000002)
            m_ElementPointer = 0x0C81810A -> [8] { 7, 0, 0, 0, 101 ('e'), 102 ('f'), 102 ('f'), 101 ('e') }
            m_AttributePointer = 0x0C818138 -> [8] { 8, 0, 0, 0, 115 ('s'), 104 ('h'), 97 ('a'), 100 ('d') }

        m_Data = 
            m_Buffer = (shared_ptr<unsigned char>)
            m_Size = 335 (0x0000014F)


    device = 0x0BC2AB68 -> (Renderer::Backend::IDevice)
    el_depth = 4294967295 (0xFFFFFFFF)
    techDefines = 
        
            m_Items = 0x00000000


    techPasses = (unsupported vector<CShaderPass >)
    el_color = 4294967295 (0xFFFFFFFF)
    at_front_face = 4294967295 (0xFFFFFFFF)
    at_mask_green = 4294967295 (0xFFFFFFFF)
    at_pass = 4294967295 (0xFFFFFFFF)
    at_value = 4294967295 (0xFFFFFFFF)
    el_define = 4294967295 (0xFFFFFFFF)
    at_mask_alpha = 4294967295 (0xFFFFFFFF)
    at_src = 4294967295 (0xFFFFFFFF)
    profile2__ = 
        m_Name = 0x00C81E64 -> "loading technique"

    at_compare = 4294967295 (0xFFFFFFFF)
    el_blend = 4294967295 (0xFFFFFFFF)
    at_mask_red = 4294967295 (0xFFFFFFFF)
    at_mask_blue = 4294967295 (0xFFFFFFFF)
    preprocessor = 
        m_Preprocessor = 
            Source = 0x081FE0F0 -> "(3xK3"
            SourceEnd = 0x00000000
            Line = 0 (0x00000000)
            BOL = (bool)0xEC
            EnableOutput = 2 (0x00000002)
            EnableElif = 88 (0x00000058)
            MacroList = (unsupported forward_list<Ogre::CPreprocessor::Macro >)

        m_IncludeCallback = (function<bool __cdecl(CStr8 const &,CStr8 &)>)
        m_IncludeCache = (unsupported unordered_map<CStr8,CStr8,hash<CStr8>,equal_to<CStr8> >)

    el_cull = 4294967295 (0xFFFFFFFF)
    el_polygon = 4294967295 (0xFFFFFFFF)
    at_func = 4294967295 (0xFFFFFFFF)
    at_reference = 4294967295 (0xFFFFFFFF)
    usableTech = (unsupported optional<XMBElement>)
    el_stencil = 4294967295 (0xFFFFFFFF)
    at_constant = 4294967295 (0xFFFFFFFF)
    at_context = 4294967295 (0xFFFFFFFF)
    at_fail = 4294967295 (0xFFFFFFFF)
    at_shaders = (unavailable)
    at_shaders = 0 (0x00000000)
    el_pass = 37 (0x00000025)
    at_mask = 4294967295 (0xFFFFFFFF)
    at_test = 4294967295 (0xFFFFFFFF)
    el_sort_by_distance = 4294967295 (0xFFFFFFFF)
    at_dst = 4294967295 (0xFFFFFFFF)
    techPasses = (unsupported vector<CShaderPass >)
    passPipelineStateDesc = 
        shaderProgram = 0x0BFF1130 -> 
            (Renderer::Backend::IDeviceObject<Renderer::Backend::IShaderProgram>)

        depthStencilState = 
            depthTestEnabled = (bool)0x02
            depthCompareOp = 19918288
            depthWriteEnabled = (bool)0x0C
            stencilTestEnabled = (bool)0x32
            stencilReadMask = 32 (0x00000020)
            stencilWriteMask = 5375501 (0x0052060D)
            stencilReference = 208035488 (0x0C665EA0)
            stencilFrontFace = 
                failOp = 208035508
                passOp = 19917792
                depthFailOp = 2007482195
                compareOp = 41

            stencilBackFace = 
                failOp = 32
                passOp = 32
                depthFailOp = 786442
                compareOp = 137579384


        blendState = 
            enabled = (bool)0x8C
            srcColorBlendFactor = 19917824
            dstColorBlendFactor = 2007482195
            colorBlendOp = 71
            srcAlphaBlendFactor = 32
            dstAlphaBlendFactor = 137580488
            alphaBlendOp = 22020096
            constant = 
                r = 0.000000 (0x00000027)
                g = 0.000000 (0x0BFE7A34)
                b = 0.000000 (0x00000020)
                a = 0.000000 (0x0014000B)

            colorWriteMask = "xK3K3X"

        rasterizationState = 
            polygonMode = 137579404
            cullMode = 88
            frontFace = 20121552
            depthBiasEnabled = false
            depthBiasConstantFactor = 0.000000 (0x00000020)
            depthBiasSlopeFactor = 0.000000 (0x00000000)


    shaderProgram = (shared_ptr<CShaderProgram>)
    <begin>$L0 = (unavailable)
    <begin>$L0 = 
        m_Size = 2 (0x00000002)
        m_CurItemID = 2 (0x00000002)
        m_CurPointer = 0x0C81810A (see above)

    technique = 
        m_Pointer = 0x0C81809C -> "n"

    isUsable = (unavailable - internal error)

    <begin>$L1 = 
        m_Size = 2 (0x00000002)
        m_CurItemID = 2 (0x00000002)
        m_CurPointer = 0x0C81810A (see above)

    child = 
        m_Pointer = 0x0C8180D9 -> "1"

    attrs = 
        m_Size = 1 (0x00000001)
        m_Pointer = 0x0C8180F1 -> [8] { 12, 0, 0, 0, 17, 0, 0, 0 }
        m_CurItemID = 0 (0x00000000)
        m_CurPointer = 0x0C8180F1 (see above)
        m_EndPointer = 0x0C81810A (see above)

    cond = { (unsupported basic_string<char,char_traits<char> >) }
    <end>$L2 = 
        m_Size = (unavailable - internal error)

        m_CurItemID = (unavailable - internal error)

        m_CurPointer = (unavailable - internal error)


    <begin>$L2 = 
        m_Size = 2 (0x00000002)
        m_CurItemID = 2 (0x00000002)
        m_CurPointer = 0x0C81810A (see above)

    Child = 
        m_Pointer = 0x0C81809C (see above)

    <begin>$L3 = 
        m_Size = 0 (0x00000000)
        m_CurItemID = 209813745 (0x0C8180F1)
        m_CurPointer = 0x0C81810A (see above)

    <end>$L3 = 
        m_Size = (unavailable - internal error)

        m_CurItemID = (unavailable - internal error)

        m_CurPointer = (unavailable - internal error)


    Child = 
        m_Pointer = (unavailable - internal error)


    passDefines = 
        
            m_Items = (unavailable - internal error)



    passPipelineStateDesc = 
        shaderProgram = 0x0BFF1130 (see above)
        depthStencilState = 
            depthTestEnabled = (bool)0x02
            depthCompareOp = 19918288
            depthWriteEnabled = (bool)0x0C
            stencilTestEnabled = (bool)0x32
            stencilReadMask = 32 (0x00000020)
            stencilWriteMask = 5375501 (0x0052060D)
            stencilReference = 208035488 (0x0C665EA0)
            stencilFrontFace = 
                failOp = 208035508
                passOp = 19917792
                depthFailOp = 2007482195
                compareOp = 41

            stencilBackFace = 
                failOp = 32
                passOp = 32
                depthFailOp = 786442
                compareOp = 137579384


        blendState = 
            enabled = (bool)0x8C
            srcColorBlendFactor = 19917824
            dstColorBlendFactor = 2007482195
            colorBlendOp = 71
            srcAlphaBlendFactor = 32
            dstAlphaBlendFactor = 137580488
            alphaBlendOp = 22020096
            constant = 
                r = 0.000000 (0x00000027)
                g = 0.000000 (0x0BFE7A34)
                b = 0.000000 (0x00000020)
                a = 0.000000 (0x0014000B)

            colorWriteMask = 120 (0x78)

        rasterizationState = 
            polygonMode = 137579404
            cullMode = 88
            frontFace = 20121552
            depthBiasEnabled = false
            depthBiasConstantFactor = 0.000000 (0x00000020)
            depthBiasSlopeFactor = 0.000000 (0x00000000)


    shaderProgram = (shared_ptr<CShaderProgram>)
    <end>$L4 = 
        m_Size = (unavailable - internal error)

        m_CurItemID = (unavailable - internal error)

        m_CurPointer = (unavailable - internal error)


    <begin>$L4 = 
        m_Size = 0 (0x00000000)
        m_CurItemID = 209813552 (0x0C818030)
        m_CurPointer = 0x0C81810A (see above)

    Element = 
        m_Pointer = 0x0C81809C (see above)

    <begin>$L5 = (unavailable - internal error)


CShaderManager::LoadEffect (shadermanager.cpp:139)
    this = 0x0C60E22C (see above)
    name = 
        m = 0x01534D64 -> 
            data = (unsupported basic_string<char,char_traits<char> >)
            hash = 3107762118 (0xB93CAFC6)


    defines = 0x0BFF1208 -> 
        
            m_Items = 0x0C6669CC -> 
                items = (unsupported vector<pair<CStrIntern,CStrIntern> >)
                hash = 2830701477 (0xA8B913A5)



    callback = 0x012FED88 -> (function<void __cdecl(Renderer::Backend::SGraphicsPipelineStateDesc &)>)
    callback = 0x012FED88 (see above)
    technique = (shared_ptr<CShaderTechnique>)
    xmlFilename = 
        path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
        separator = 47 ('/')


`anonymous namespace'::CreateShader (overlayrenderer.cpp:83)
    name = 
        m = 0x01534D64 (see above)

    defines = 0x0BFF1208 (see above)
    defines = (unavailable)
    defines = 0x0BFF1208 (see above)
    depthTestEnabled = true 

OverlayRendererInternals::Initialize (overlayrenderer.cpp:265)
    this = (unavailable)
    quadStride = (unavailable - internal error)

    index = 
        m_Data = 0x0C7FCB80 -> [8] { 18, 27, 0, 0, 0, 0, 0, 0 }
        m_Stride = 2 (0x00000002)

    quadAttributes = (unsupported array<Renderer::Backend::SVertexAttributeFormat,3>)
    foregroundAttributes = (unsupported array<Renderer::Backend::SVertexAttributeFormat,2>)
    shpereAttributes = (unsupported array<Renderer::Backend::SVertexAttributeFormat,1>)

CRenderer::CRenderer (renderer.cpp:330)
    this = 0x0C5DC4B0 -> 
        (Singleton<CRenderer>)
        m = (unique_ptr<CRenderer::Internals,default_delete<CRenderer::Internals> >)
        m_Width = 1280 (0x00000500)
        m_Height = 720 (0x000002D0)
        m_Stats = 
            m_DrawCalls = 0 (0x00000000)
            m_TerrainTris = 0 (0x00000000)
            m_WaterTris = 0 (0x00000000)
            m_ModelTris = 0 (0x00000000)
            m_OverlayTris = 0 (0x00000000)
            m_BlendSplats = 0 (0x00000000)
            m_Particles = 0 (0x00000000)

        m_ShouldPreloadResourcesBeforeNextFrame = false
        m_ScreenShotType = NONE

    LINE_311_ = 
        m_t0 = 1.7922 (0x3FFCACD5B6805A2D)
        m_description = 0x00C7A070 -> "InitRenderer"


InitGraphics (gamesetup.cpp:682)
    args = (unavailable)
    args = (unavailable)
    flags = (unavailable)
    installedMods = 0x00000001
    installedMods = (unavailable)
    profilerGPUEnable = false
    renderPath = { (unsupported basic_string<char,char_traits<char> >) }
    context = [2048] 
        192 (0xC0)
        240 (0xF0)
        47 (0x2F)
        1 (0x01)
        252 (0xFC)
        0 (0x00)
        243 (0xF3)
        0 (0x00)
        52 (0x34)
        240 (0xF0)
        47 (0x2F)
        1 (0x01)
        160 (0xA0)
        7 (0x07)
        0 (0x00)
        0 (0x00) ...
    rq = 
        cx = (unavailable - internal error)

        glob = 
            { (js::WrappedPtrOperations<JSObject *,JS::Handle<JSObject *> >) }
            ptr = (unavailable - internal error)


        nativeScope = 
            { (js::WrappedPtrOperations<JSObject *,JS::Handle<JSObject *> >) }
            ptr = (unavailable - internal error)


        m_ScriptInterface = (unavailable - internal error)

        m_FormerRealm = (unavailable - internal error)


    data = 
        { 
                (js::WrappedPtrOperations<JS::Value,JS::Rooted<JS::Value> >)
 }
        stack = (unavailable - internal error)

        prev = (unavailable - internal error)

        ptr = 
            asBits_ = (unavailable - internal error)



    setup_gui = (unavailable - internal error)

    scriptInterface = (shared_ptr<ScriptInterface>)
    e = 0x012FFA78 -> 
        
            
                
                    (exception)
                    m_msg = 0x77A90E2A -> [8] { 139, 77 ('M'), 8, 137, 1, 184, 1, 0 }




    g_GUI = (unavailable - internal error)


RunGameOrAtlas (main.cpp:683)
    argv = 
        m_Pointer = 0x04DE0008 -> 0x04DE0028 -> "C:\Users\pedro\OneDrive\0ad\build\workspaces\vs2017\..\..\..\binaries\system\pyrogenesis.exe"
        m_Extent = 1 (0x00000001)

    isNonVisualReplay = false
    flags = 8 (0x00000008)
    args = 
        m_Args = (unsupported vector<pair<CStr8,CStr8> >)
        m_Arg0 = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 92 ('\')

        m_ArgsWithoutName = (unsupported vector<CStr8 >)

    isNonVisual = false
    isUsingRLInterface = false
    scriptEngine = 
        (Singleton<ScriptEngine>)
        m_Contexts = (unsupported list<JSContext const * >)

    res = 1e-07 (0x3E7AD7F29ABCAF48)
    isVisualReplay = (unavailable - internal error)

    modsToInstall = (unsupported vector<Path >)
    replayFile = 
        path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
        separator = 47 ('/')

    <begin>$L0 = 0x00000000
    <end>$L0 = 0x00000000
    modPath = 
        path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
        separator = 203

    paths = 
        m_root = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 0

        m_rdata = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 192

        m_gameData = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 19891

        m_userData = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 2047

        m_config = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 0

        m_cache = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 7

        m_logs = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 64424


    replay = 
        m_Stream = 0x00000000

    builder = 
        m_VFS = (shared_ptr<IVFS>)
        m_Files = (unsupported vector<Path >)
        m_TempDir = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 59568

        m_NumBaseMods = 86622240 (0x0529C020)

    paths = 
        m_root = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 0

        m_rdata = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 192

        m_gameData = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 19891

        m_userData = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 2047

        m_config = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 0

        m_cache = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 7

        m_logs = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 64424


    mod = 
        path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
        separator = 64160

    zip = 
        path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
        separator = 64356

    mods = (unsupported vector<CStr8 >)
    i = (unavailable - internal error)

    installedMods = (unsupported vector<CStr8 >)
    paths = 
        m_root = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 0

        m_rdata = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 192

        m_gameData = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 19891

        m_userData = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 2047

        m_config = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 0

        m_cache = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 7

        m_logs = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 64424


    installer = 
        m_VFS = (shared_ptr<IVFS>)
        m_ModsDir = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 7620

        m_TempDir = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 1

        m_CacheDir = 
            path = (unsupported basic_string<wchar_t,char_traits<wchar_t> >)
            separator = 0

        m_InstalledMods = (unsupported vector<CStr8 >)

    modInterface = 
        m_CmptPrivate = 
            pScriptInterface = 0x006E6F69 -> 
                m_CmptPrivate = 
                    pScriptInterface = (unavailable - internal error)

                    pCBData = (unavailable - internal error)


                m = (unique_ptr<ScriptInterface_impl,default_delete<ScriptInterface_impl> >)
                m_CustomObjectTypes = (unsupported map<basic_string<char,char_traits<char> >,ScriptInterface::CustomType >)

            pCBData = 0x0529C032

        m = (unique_ptr<ScriptInterface_impl,default_delete<ScriptInterface_impl> >)
        m_CustomObjectTypes = (unsupported map<basic_string<char,char_traits<char> >,ScriptInterface::CustomType >)

    <end>$L1 = (unavailable)
    <begin>$L1 = (unavailable - internal error)

    result = (unavailable - internal error)

    g_Profiler2 = 
        m_Initialised = (unavailable - internal error)

        m_FrameNumber = (unavailable - internal error)

        m_MgContext = (unavailable - internal error)

        m_GPU = (unavailable - internal error)

        m_Mutex = (mutex)
        m_Threads = (unsupported vector<unique_ptr<CProfiler2::ThreadStorage,default_delete<CProfiler2::ThreadStorage> > >)

    g_Game = (unavailable - internal error)

    g_NetClient = (unavailable - internal error)

    g_Shutdown = (unavailable - internal error)


SDL_main (main.cpp:740)
    argc = 1 (0x00000001)
    argv = 0x04DE0008 (see above)

main_getcmdline (sdl_windows_main.c:74)
    argvw = (unavailable)
    argc = (unavailable)

__scrt_common_main_seh (exe_common.inl:288)
    has_cctor = false
    main_result = (unavailable - internal error)

    tls_init_callback = (unavailable - internal error)

    is_nested = false
    tls_dtor_callback = (unavailable - internal error)

    main_result = 0 (0x00000000)
    __scrt_current_native_startup_state = (unavailable - internal error)


CallStartupWithinTryBlock (wseh.cpp:363)
    ret = (unavailable)
    ret = 0 (0x00000000)

RtlInitializeExceptionChain (:0)

RtlClearBits (:0)


errno = 0 (No error reported here)
OS error = 0 (no error code was set)

Any sugestions ? 

Link to comment
Share on other sites

7 minutes ago, Stan&#x60; said:

Gl always have them though?

In a properly installed game it should present (as well as SPIR-V shaders), but there're cases:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...