View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002487 | NoesisGUI | C++ SDK | public | 2023-01-10 09:40 | 2023-03-27 12:14 |
| Reporter | Logris | Assigned To | jsantos | ||
| Priority | normal | Severity | block | ||
| Status | assigned | Resolution | open | ||
| Product Version | 3.2.0 | ||||
| Target Version | 3.2 | ||||
| Summary | 0002487: (3.20b1) Noesis::Shutdown() crashes | ||||
| Description | https://www.noesisengine.com/forums/viewtopic.php?t=2837&sid=c0a18aa6c93c94b8f8cb1d651bbd14e1 minidump | ||||
| Platform | Windows | ||||
|
Thanks for the report.
|
|
You can provide a debug version Noesis_d.dll + Noesis_d.lib + Noesis_d.pdb? |
|
|
Hi, would it be possible to get your application built, so we can execute it ourselves? That way we can use a debug version of Noesis and make changes to narrow the problem. |
|
|
The debug version will be enough app.exe + MinimumContent? |
|
|
Yes, whatever minimum files that are needed to launch your application, and that crash on shutdown, would be enough, thanks. |
|
|
https://drive.google.com/file/d/1oU1W5K0-dCxV059D6-B5ZuK5MbKI7iUj/view?usp=sharing Run app - start.bat We have implemented a multi-window interface with WindowEx class. in Noesis 2 - 3.1.6 it works fine |
|
|
I was able to fix the crash inside Shutdown and generated a new patched library: https://drive.google.com/file/d/1OakiKAz5w8IOMfyHR3meWPnWeKg6SbHk/view?usp=share_link Anyway, before Shutdown was called I hit an assert while debugging caused by releasing a BaseRefCounted object that was already deleted. Adding some logs it looks it was the RenderDevice. You should verify that you are not deleting the RenderDevice object while there are Ptr still holding a reference. |
|
|
Just a clarification, if you store the renderer in a Ptr<> it will be automatically destroyed. It is dangerous to invoke manual deletes on BaseComponent instances. If you want to make sure the instance is being destroyed you can do something like:
|
|
|
Hello The negative number of refs was due to There was another problem. Leaks. The error appeared in this build. |
|
|
I can't repro this in our examples. Could you isolate this because I would say, the leaks are real. |
|
|
Noesis::GUI::SetFontDefaultProperties(11.f, FontWeight_Light, Noesis::Init(); Noesis::Shutdown(); Noesis::Init(); |
|
|
The leak comes from creating symbols before the call to Noesis::Init. |
|
|
The temp workaround is calling Noesis::GUI::SetFontDefaultProperties after Noesis::GUI::Init |
|
|
Ok, thanks. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2023-01-10 09:40 | Logris | New Issue | |
| 2023-01-10 09:40 | Logris | Tag Attached: C++ | |
| 2023-01-10 09:40 | Logris | Tag Attached: crash | |
| 2023-01-10 09:40 | Logris | Tag Attached: Directx11 | |
| 2023-01-10 13:31 | jsantos | Assigned To | => sfernandez |
| 2023-01-10 13:31 | jsantos | Status | new => assigned |
| 2023-01-10 13:31 | jsantos | Target Version | => 3.2.0 |
| 2023-01-10 13:31 | jsantos | Note Added: 0008196 | |
| 2023-01-10 13:31 | jsantos | Status | assigned => feedback |
| 2023-01-10 17:40 | Logris | Note Added: 0008199 | |
| 2023-01-10 17:40 | Logris | Status | feedback => assigned |
| 2023-01-11 13:21 | sfernandez | Status | assigned => feedback |
| 2023-01-11 13:21 | sfernandez | Note Added: 0008201 | |
| 2023-01-11 14:28 | Logris | Note Added: 0008203 | |
| 2023-01-11 14:28 | Logris | Status | feedback => assigned |
| 2023-01-11 16:12 | sfernandez | Note Added: 0008204 | |
| 2023-01-11 16:12 | sfernandez | Status | assigned => feedback |
| 2023-01-15 13:36 | Logris | Note Added: 0008209 | |
| 2023-01-15 13:36 | Logris | Status | feedback => assigned |
| 2023-01-16 18:38 | sfernandez | Status | assigned => feedback |
| 2023-01-16 18:38 | sfernandez | Note Added: 0008211 | |
| 2023-01-17 18:24 | jsantos | Note Added: 0008219 | |
| 2023-01-17 18:24 | jsantos | Note Edited: 0008219 | |
| 2023-01-18 17:16 | Logris | Note Added: 0008222 | |
| 2023-01-18 17:16 | Logris | Status | feedback => assigned |
| 2023-01-19 14:15 | jsantos | Note Added: 0008226 | |
| 2023-01-19 20:22 | Logris | Note Added: 0008231 | |
| 2023-01-20 11:04 | sfernandez | Relationship added | related to 0002483 |
| 2023-01-20 11:40 | sfernandez | Assigned To | sfernandez => jsantos |
| 2023-01-20 11:41 | sfernandez | Note Added: 0008234 | |
| 2023-01-20 11:54 | jsantos | Note Added: 0008236 | |
| 2023-01-20 13:07 | Logris | Note Added: 0008237 | |
| 2023-03-27 12:14 | jsantos | Target Version | 3.2.0 => 3.2 |