View Issue Details

IDProjectCategoryView StatusLast Update
0003294NoesisGUIC++ SDKpublic2024-06-06 17:52
Reportermgb Assigned Tojsantos  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Product Version3.2 
Target Version3.2.4Fixed in Version3.2.4 
Summary0003294: GLRenderDevice::DeleteSampler / GLRenderDevice::DeleteFramebuffer / NS_ASSERT
Description

Hi, I'm having trouble running Inventory / HelloWorld with OpenGL.

The errors I'm reporting also happen in my application.
However, I am reporting it in examples to make it easier to reproduce.

I'm using Windows 11 ARM through Parallels on an Apple M2 Max.

My application is only in OpenGL.

VS Output:
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'E:\noesis-sdk\Bin\windows_x86_64\Samples.Inventory.exe'. Symbols loaded.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\ntdll.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\xtajit64.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\kernel32.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\KernelBase.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\apphelp.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'E:\noesis-sdk\Bin\windows_x86_64\NoesisApp.dll'. Symbols loaded.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'E:\noesis-sdk\Bin\windows_x86_64\Noesis.dll'. Symbols loaded.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140d.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\user32.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Unloaded 'C:\Windows\System32\user32.dll'
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbased.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\gdi32.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\win32u.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\ws2_32.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Unloaded 'C:\Windows\System32\win32u.dll'
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\gdi32full.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\rpcrt4.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\msvcp_win.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\DWrite.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\ucrtbase.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\msvcrt.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\msvcp140d.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\shell32.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\ole32.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\combase.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\oleaut32.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\shlwapi.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\vcruntime140_1d.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\imm32.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\bcryptprimitives.dll'.
13:41:59:348 [NOESIS/I] Noesis Init v3.2.3 (Windows on x86_64 Debug)
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\mswsock.dll'.
13:41:59:348 [NOESIS/I] Inspector listening on port 17629
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\advapi32.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\sechost.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\bcrypt.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\kernel.appcore.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\uxtheme.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\clbcatq.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\MMDevAPI.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\devobj.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\cfgmgr32.dll'.
13:41:59:348 'Samples.Inventory.exe' (Win32): Unloaded 'C:\Windows\System32\cfgmgr32.dll'
13:41:59:348 'Samples.Inventory.exe' (Win32): Unloaded 'C:\Windows\System32\cfgmgr32.dll'
13:41:59:348 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\AudioSes.dll'.
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\SHCore.dll'.
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\ResourcePolicyClient.dll'.
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\powrprof.dll'.
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\umpdc.dll'.
13:41:59:598 [NOESIS/D] Creating 'WASAPI' audio device: Speakers (High Definition Audio Device)
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\XInput1_4.dll'.
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\InputHost.dll'.
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\CoreMessaging.dll'.
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\msctf.dll'.
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\cryptbase.dll'.
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\TextInputFramework.dll'.
13:41:59:598 [NOESIS/I] 'Resources.xaml' loaded
13:41:59:598 [NOESIS/I] 'App.xaml' loaded
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\opengl32.dll'.
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\glu32.dll'.
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\DXCore.dll'.
13:41:59:598 [NOESIS/D] Creating GL render context
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\AppXDeploymentClient.dll'.
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\prl_gldd.dll'.
13:41:59:598 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\version.dll'.
13:41:59:598 [NOESIS/D] PixelFormat: R8G8B8A8 D24S8 1x
13:41:59:598 [NOESIS/W] Creating a Debug context
13:41:59:598 [NOESIS/D] Version: 3.3 (3.3 Metal - 88)
13:41:59:598 [NOESIS/D] Vendor: Parallels and Apple
13:41:59:598 [NOESIS/D] Renderer: Parallels using Apple M2 Max (Compat)
13:41:59:845 [NOESIS/I] 'MainWindow.xaml' loaded
13:41:59:845 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\CoreUIComponents.dll'.
13:41:59:845 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\WinTypes.dll'.
13:41:59:845 [NOESIS/I] 'Sequel Regular' loaded
13:41:59:845 [NOESIS/I] 'Gidole Regular' loaded
13:41:59:845 [NOESIS/I] 'AnimatedNumber.xaml' loaded
13:42:00:095 [NOESIS/I] 'AnimatedNumber.xaml' loaded
13:42:00:095 [NOESIS/I] 'AnimatedNumber.xaml' loaded
13:42:00:095 [NOESIS/I] 'AnimatedNumber.xaml' loaded
13:42:00:339 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\ApplicationTargetedFeatureDatabase.dll'.
13:42:00:339 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\twinapi.appcore.dll'.
13:42:00:339 The thread 'ShellHandwriting Delegate Thread' (6444) has exited with code 0 (0x0).
13:42:00:848 [NOESIS/I] 'Images/Background.jpg' loaded
13:42:01:361 [NOESIS/I] 'Images/Character.png' loaded
13:42:01:361 [NOESIS/I] 'Images/InventoryAtlas.png' loaded
13:42:01:361 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\dwmapi.dll'.
13:42:01:361 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\dxgi.dll'.
13:42:01:361 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\d3d11.dll'.
13:42:01:361 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\directxdatabasehelper.dll'.
13:42:01:361 'Samples.Inventory.exe' (Win32): Loaded 'C:\Windows\System32\prl_umdd10.dll'.
13:42:03:096 'Samples.Inventory.exe' (Win32): Unloaded 'C:\Windows\System32\prl_umdd10.dll'
13:42:03:096 [NOESIS/E] Assertion failed: glIsFramebuffer(framebuffer), at GLRenderDevice.cpp(1936)
13:42:03:096 A breakpoint instruction (debugbreak() statement or a similar call) was executed in Samples.Inventory.exe.
13:42:03:096
13:42:28:229 [NOESIS/E] Assertion failed: glIsSampler(sampler), at GLRenderDevice.cpp(2398)
13:42:28:229 A breakpoint instruction (
debugbreak() statement or a similar call) was executed in Samples.Inventory.exe.
13:42:28:229
13:42:30:206 [NOESIS/E] Assertion failed: glIsSampler(sampler), at GLRenderDevice.cpp(2398)
13:42:30:206 A breakpoint instruction (__debugbreak() statement or a similar call) was executed in Samples.Inventory.exe.
13:42:30:206

CallStack:
NoesisApp.dll!NoesisApp::GLRenderDevice::DeleteSampler(unsigned int sampler) Line 2398 C++
NoesisApp.dll!NoesisApp::GLRenderDevice::~GLRenderDevice() Line 200 C++
NoesisApp.dll!NoesisApp::GLRenderDevice::scalar deleting destructor'(unsigned int) C++ Noesis.dll!Noesis::BaseRefCounted::OnDestroy() Line 61 C++ Noesis.dll!Noesis::RenderDevice::OnDestroy() Line 276 C++ Noesis.dll!Noesis::BaseRefCounted::Release() Line 46 C++ NoesisApp.dll!Noesis::Ptr<Noesis::RenderDevice>::Reset() Line 159 C++ NoesisApp.dll!NoesisApp::GLRenderContext::Shutdown() Line 970 C++ NoesisApp.dll!NoesisApp::Application::~Application() Line 72 C++ Samples.Inventory.exe!Inventory::App::~App() C++ Samples.Inventory.exe!Inventory::App::scalar deleting destructor'(unsigned int) C++
Noesis.dll!Noesis::BaseRefCounted::OnDestroy() Line 61 C++
Noesis.dll!Noesis::BaseRefCounted::Release() Line 46 C++
NoesisApp.dll!NoesisApp::Application::Release() Line 99 C++
NoesisApp.dll!Noesis::Ptr<NoesisApp::Application>::Reset() Line 159 C++
NoesisApp.dll!NoesisApp::ApplicationLauncher::OnExit() Line 163 C++
NoesisApp.dll!NoesisApp::DisplayLauncher::Run() Line 50 C++
Samples.Inventory.exe!NsMain(int argc, char argv) Line 95 C++
Samples.Inventory.exe!WinMain(HINSTANCE * formal, HINSTANCE * formal, char * formal, int formal) Line 37 C++

Samples.Inventory.exe!invoke_main() Line 107 C++
Samples.Inventory.exe!__scrt_common_main_seh() Line 288 C++
Samples.Inventory.exe!scrt_common_main() Line 331 C++
Samples.Inventory.exe!WinMainCRTStartup(void *
formal) Line 17 C++
kernel32.dll!00007ffdaa15091c() Unknown
kernel32.dll!00007ffdaa0e7ad0() Unknown
ntdll.dll!00007ffdade3c148() Unknown

Steps To Reproduce

Open HelloWorld or Inventory
Close window.

PlatformAny

Activities

jsantos

jsantos

2024-06-06 01:51

manager   ~0009664

Hello! Any chance I could connect to your machine again to debug this?

jsantos

jsantos

2024-06-06 17:48

manager   ~0009667

Last edited: 2024-06-06 17:52

Fixed, thanks again!


Index: Win32Display.cpp

--- Win32Display.cpp (revision 14043)
+++ Win32Display.cpp (working copy)
@@ -138,6 +138,11 @@
////////////////////////////////////////////////////////////////////////////////////////////////////
Win32Display::~Win32Display()
{

  • // Some OpenGL implementations require the window handle to be alive when shutting down the
  • // context. Therefore, we will destroy the window handle here instead of inside WM_DESTROY
  • SetWindowLongPtrW(mWindowHandle, GWLP_USERDATA, 0);
  • DestroyWindow(mWindowHandle);
  • TSF::Shutdown();

    if (shCore != 0)
    @@ -1173,10 +1178,10 @@

         return false;
     }
  • case WM_DESTROY:
  • case WM_CLOSE:
    {
    PostQuitMessage(0);
  • return false;
  • return true;
    }
    case WM_DROPFILES:
    {

Issue History

Date Modified Username Field Change
2024-05-02 18:47 mgb New Issue
2024-05-03 14:30 jsantos Assigned To => jsantos
2024-05-03 14:30 jsantos Status new => assigned
2024-05-03 14:30 jsantos Target Version => 3.2.4
2024-06-06 01:51 jsantos Note Added: 0009664
2024-06-06 01:51 jsantos Status assigned => feedback
2024-06-06 12:50 mgb Status feedback => assigned
2024-06-06 17:48 jsantos Status assigned => resolved
2024-06-06 17:48 jsantos Resolution open => fixed
2024-06-06 17:48 jsantos Fixed in Version => 3.2.4
2024-06-06 17:48 jsantos Note Added: 0009667
2024-06-06 17:52 jsantos Note Edited: 0009667