View Issue Details

IDProjectCategoryView StatusLast Update
0005324NoesisGUIC++ SDKpublic2026-11-27 11:29
ReporterDitzy1571 Assigned Todfranjic  
PrioritynormalSeveritymajor 
Status assignedResolutionopen 
Product Version4.0 
Target Version4.0.2 
Summary0005324: TextureProvider (Studio::Options::GetTextureProvider) has no TextureChanged handler and RaiseTextureChanged is not handled
Description

When an image changes on disk, an integration calls RaiseTextureChanged on the texture provider it gave Studio
through Studio::Options::GetTextureProvider, with the Uri the provider was asked for, as Noesis's Unreal plugin
does (FNoesisStudioTextureProvider::OnTextureChanged, with the Uri it recorded in GetTextureInfo). Studio keeps
showing the old image.
The provider's TextureChanged() delegate has no handler while Studio is
open, so nothing in Studio hears the raise: no GetTextureInfo follows, and the image isn't loaded again.

The same provider given to GUI::SetTextureProvider for an ordinary view has one handler, and the same raise is
followed by a GetTextureInfo call with the new size.

Steps to reproduce

  1. On Windows, with NOESIS_SDK_DIR set, run powershell -ExecutionPolicy Bypass -File build.ps1 in minimal/.
    It builds repro.cpp against Noesis.lib and NoesisEditor.lib and runs repro Repro.noesis studio 3 times
    and repro Repro.noesis view once, on a fresh copy of project/ each time.
  2. The provider serves one image: 8 x 6, then 16 x 12 once it "changes". It logs each GetTextureInfo with its Uri
    and keeps the Uri object it last received.
  3. studio: the provider is returned by GetTextureProvider, Studio opens Page.xaml (an Image with
    Source="swatch.png"), 60 updates. Then the image changes, RaiseTextureChanged(last) with the very Uri
    GetTextureInfo received, 60 updates.
  4. view: the same provider set with GUI::SetTextureProvider, Page.xaml loaded with GUI::LoadXaml into a
    view, the same steps.
  5. Each prints the handlers on TextureChanged and the GetTextureInfo calls after the raise. Exit 1 if none
    came; build.ps1 exits 1 if a studio run got none.

Expected and actual

Expected: after the raise, Studio asks GetTextureInfo again (and LoadTexture, with a device), and shows the new
image.

Actual:

  GetTextureInfo('studio:///Repro;component/swatch.png', GetPath 'swatch.png') -> 8 x 6
  GetTextureInfo('studio:///Repro;component/swatch.png', GetPath 'swatch.png') -> 8 x 6
2 GetTextureInfo call(s) before the change; handlers on TextureChanged: 0
RaiseTextureChanged('studio:///Repro;component/swatch.png'), the Uri GetTextureInfo last received
studio: 0 GetTextureInfo call(s) after the raise

The control:

  GetTextureInfo('swatch.png', GetPath 'swatch.png') -> 8 x 6
  GetTextureInfo('swatch.png', GetPath 'swatch.png') -> 8 x 6
2 GetTextureInfo call(s) before the change; handlers on TextureChanged: 1
RaiseTextureChanged('swatch.png'), the Uri GetTextureInfo last received
  GetTextureInfo('swatch.png', GetPath 'swatch.png') -> 16 x 12
view: 1 GetTextureInfo call(s) after the raise
Attached Files
minimal.zip (4,000 bytes)
PlatformWindows

Relationships

related to 0005343 assigneddfranjic PNG assets not updating when Texture Group has been updated in Unreal Engine 

Activities

jsantos

jsantos

2026-11-10 15:11

manager   ~0012891

One question before investigating anything else.

Studio uses an internal mechanism to detect changes in the file system and it should detect texture changes without client code calling any delegate.

Is this not working for you?

Ditzy1571

Ditzy1571

2026-11-10 17:38

reporter   ~0012892

Last edited: 2026-11-10 17:39

I have tested it in both the standalone Noesis Studio (Windows, v0.4.336-beta) and in my integration. In both cases the texture is not updated when the file is being replaced with another one.

Steps to reproduce:

  1. Create a simple Noesis Studio project.
  2. Import new texture asset to the project.
  3. Add new Image element to the main Grid and point its source to the imported texture.
  4. Replace texture file with a new one of the same name.
  5. Observe that Noesis Studio doesn't update imported texture.
  6. Restart the Studio and observe that the texture is now updated.
jsantos

jsantos

2026-11-11 15:12

manager   ~0012895

Could you check this @dfranjic?

dfranjic

dfranjic

2026-11-16 21:01

developer   ~0012909

We have reproduced this and are looking into a fix.

Issue History

Date Modified Username Field Change
2026-11-06 16:09 Ditzy1571 New Issue
2026-11-06 16:09 Ditzy1571 File Added: minimal.zip
2026-11-10 15:10 jsantos Assigned To => jsantos
2026-11-10 15:10 jsantos Status new => assigned
2026-11-10 15:11 jsantos Note Added: 0012891
2026-11-10 15:11 jsantos Status assigned => feedback
2026-11-10 17:38 Ditzy1571 Note Added: 0012892
2026-11-10 17:38 Ditzy1571 Status feedback => assigned
2026-11-10 17:39 Ditzy1571 Note Edited: 0012892
2026-11-11 15:10 jsantos Assigned To jsantos => dfranjic
2026-11-11 15:10 jsantos Target Version => 4.0.2
2026-11-11 15:12 jsantos Note Added: 0012895
2026-11-16 21:01 dfranjic Note Added: 0012909
2026-11-23 14:37 dfranjic Relationship added has duplicate 0005343
2026-11-27 11:29 jsantos Relationship replaced related to 0005343