View Issue Details

IDProjectCategoryView StatusLast Update
0004409NoesisGUIC++ SDKpublic2026-10-16 12:10
Reporteralexgart Assigned Tojsantos  
PrioritynormalSeveritymajor 
Status assignedResolutionopen 
Product Version3.2.8 
Target Version4.0 
Summary0004409: Cannot parse Xaml's in parallel with Noesis::GUI::ParseXaml
Description

Calling multiple Noesis::GUI::ParseXaml in parallel from the non main thread results in a crash. The threads share a IXamlContextReceiver. So thread 1 can unset the context while thread 2 is using resulting in an NPE.

In XamlNode.cpp:1660

bool XamlNode::TryConvertUsing(TypeConverter* converter, const char* txt,
    Ptr<BaseComponent>& result) const
{
    IXamlContextReceiver* xamlContextReceiver = DynamicCast<IXamlContextReceiver*>(converter);
    if (xamlContextReceiver != nullptr)
    {
        xamlContextReceiver->SetContext(mX);
    }

    bool succeed = converter->TryConvertFromString(txt, result);

    if (xamlContextReceiver != nullptr)
    {
        xamlContextReceiver->SetContext(nullptr);
    }

    return succeed;
}
PlatformAny

Relationships

related to 0004480 assignedjsantos Calling Noesis::GUI::ParseXaml alongside Noesis::GUI::CreateView in parallel is not threadsave 

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-10-08 17:58 alexgart New Issue
2025-10-08 18:06 jsantos Description Updated
2025-10-08 18:07 jsantos Assigned To => jsantos
2025-10-08 18:07 jsantos Status new => assigned
2025-10-08 18:07 jsantos Target Version => 3.2
2025-11-04 10:18 sfernandez Relationship added duplicate of 0004480
2025-11-04 11:59 jsantos Relationship deleted 0004480
2025-11-04 11:59 jsantos Relationship added related to 0004480
2026-10-16 12:10 jsantos Target Version 3.2 => 4.0