View Issue Details

IDProjectCategoryView StatusLast Update
0005281NoesisGUIC# SDKpublic2026-11-02 17:39
Reporterdarthmaule2 Assigned Tosfernandez  
PrioritynormalSeveritycrash 
Status resolvedResolutionfixed 
Product Version4.0.1 
Target Version4.0.2Fixed in Version4.0.2 
Summary0005281: MediaElement.SetCreateMediaPlayerCallback corrupts memory and leads to crash
Description

Calling this function in Noesis 4.0.0 / 4.0.1 results in my application crashing about 50% of the time.
MediaElement.SetCreateMediaPlayerCallback(GEMediaPlayer.Create, null);

AI Investigation:

What the stack shows
• App.Main → app.Run() (line 370) → NoesisApp.Application.Start → Window.Init → _view = GUI.CreateView(this); (Window.cs line 250).
• View.CreateCPtr calls into Noesis.dll, which then reads address 0xFFFFFFFFFFFFFFFF.
• GUI.CreateView hands the UIShell.MainWindow element tree, loaded from MainWindow.xaml, to the native view. Noesis then hooks up that tree: it applies styles, resolves resources and connects to the managed MainWindow object. That's where it crashed.
What I checked
• Noesis.GUI.dll and Noesis.App.dll are both version 4.0.1.18228, so the two managed libraries match each other.
• MainWindow isn't disposed (IsDisposed = false). PPAA = true, Samples = 1, and the render context is RenderContextWGL.
• The only exception before the crash was a first-chance NLog.NLogConfigurationException. It's probably unrelated, but it means the logging setup failed.
• There was no Noesis log output before the crash, so nothing points to a specific XAML or resource error.

PlatformAny

Activities

sfernandez

sfernandez

2026-11-02 17:39

manager   ~0012844

Fixed in changeset r18272

Issue History

Date Modified Username Field Change
2026-10-26 19:40 darthmaule2 New Issue
2026-10-26 20:03 sfernandez Assigned To => sfernandez
2026-10-26 20:03 sfernandez Status new => assigned
2026-10-26 20:03 sfernandez Target Version => 4.0.2
2026-11-02 17:39 sfernandez Status assigned => resolved
2026-11-02 17:39 sfernandez Resolution open => fixed
2026-11-02 17:39 sfernandez Fixed in Version => 4.0.2
2026-11-02 17:39 sfernandez Note Added: 0012844