View Issue Details

IDProjectCategoryView StatusLast Update
0002114NoesisGUIC# SDKpublic2021-10-28 19:00
Reporterstonstad Assigned Tosfernandez  
PrioritynormalSeveritycrashReproducibilityrandom
Status assignedResolutionopen 
Product Version3.0.12 
Summary0002114: MultiBindingExpression_UpdateSource Access Violation Crash
DescriptionRandom runtime crash. Was playing game, approximately ten minutes in, and this crash occured.

Noesis.dll caused an Access Violation (0xc0000005)
  in module Noesis.dll at 5273e43b.


========== OUTPUTTING STACK TRACE ==================

0x00007FFA5273E43B (Noesis) MultiBindingExpression_UpdateSource
0x00007FFA52745B49 (Noesis) MultiBindingExpression_UpdateSource
0x00007FFA5273F5C4 (Noesis) MultiBindingExpression_UpdateSource
0x00007FFA5273D789 (Noesis) MultiBindingExpression_UpdateSource
0x00007FFA5286DF96 (Noesis) Noesis_RegisterLogCallback
0x00007FF74CF41B14 (Unity) GfxDeviceWorker::RunCommand
0x00007FF74CF47FBD (Unity) GfxDeviceWorker::RunExt
0x00007FF74CF480D8 (Unity) GfxDeviceWorker::RunGfxDeviceWorker
0x00007FF74B66666E (Unity) Thread::RunThreadWrapper
0x00007FFADA547034 (KERNEL32) BaseThreadInitThunk
0x00007FFADC002651 (ntdll) RtlUserThreadStart

========== END OF STACKTRACE ===========
Steps To ReproduceUsing the patched version of 3.0.12.x that Sergio provided for https://www.noesisengine.com/bugs/view.php?id=2109
TagsNo tags attached.
PlatformAny

Activities

stonstad

stonstad

2021-09-16 16:14

reporter  

sfernandez

sfernandez

2021-09-22 10:40

manager   ~0007472

I generated a new library that should fix the crash and shows an error message to help me identify the situation causing the crash:
https://drive.google.com/file/d/1QlVb-4q8HVo6dLszDadg7ykmxZdbOCor/view?usp=sharing

Please let me know if you get an error message like "Adding '<classname>' node to '<classname>' and parent is not connected to the View".
stonstad

stonstad

2021-09-22 12:22

reporter   ~0007473

Thanks -- I'm trying it out today. I'll report back.
stonstad

stonstad

2021-09-27 22:01

reporter   ~0007483

OK, I finally encountered it.

[noesis] Adding 'Grid' node to 'Grid' and parent is not connected to the View
UnityEngine.Debug:LogError (object)
NoesisUnity:UnityLog (int,string) (at Assets/NoesisGUI/Plugins/NoesisUnity.cs:148)
Noesis.View:Update (double) (at Assets/NoesisGUI/Plugins/API/Core/View.cs:333)
NoesisView:ExternalUpdateInternal () (at Assets/NoesisGUI/Plugins/NoesisView.cs:910)
NoesisView:LateUpdate () (at Assets/NoesisGUI/Plugins/NoesisView.cs:880)

No crashes.
sfernandez

sfernandez

2021-09-28 10:02

manager   ~0007485

Have you identified how to reproduce it?
I was expecting different types involved and I'm still not sure what is the source of this situation.
stonstad

stonstad

2021-09-28 16:50

reporter   ~0007487

Last edited: 2021-09-28 16:50

It may be related to a race condition in my code. I know what I was doing when I first saw it (thanks for the output) but I'm not sure if it is consistently reproducible, or where in the visual tree / code-behind it occurs. I'll keep looking today and reply back with more detail as I learn more.

stonstad

stonstad

2021-10-06 19:15

reporter   ~0007502

I came across a scenario the other day that consistently crashed Noesis. I believe I had mistakenly added a rectangle to a grid twice in a row -- a cut and paste error. I intended to return back to it and file a report but I was under a deadline to get things working. I am going to upgrade to 3.1.x today -- how do we want to proceed with this bug/behavior?
sfernandez

sfernandez

2021-10-06 20:02

manager   ~0007504

Were you using the patched library I sent you? All those crashes are probably different from the one that started this ticket, can you attach the new crash dumps?
stonstad

stonstad

2021-10-28 02:55

reporter   ~0007547

Different crash on 3.0.12.
stonstad

stonstad

2021-10-28 02:58

reporter   ~0007548

Both crashes, first and second, happened using the patched library.
stonstad

stonstad

2021-10-28 03:10

reporter   ~0007549

Here is another one -- likely the same crash behavior as the second and most recent reported crash. These crashes are repeatable and they happen at runtime (not during app domain load/unload).

I am testing space battles with large numbers of ships which have corresponding targeting UI framework elements. Noesis is stable with 100+ targets with position and blend updating once per frame. However, once I enable the ability for ships to be destroyed -- which also destroys targeting reticles, I find that I get crashes in a few seconds of each battle starting.

The UI which displays these targets is long-lived and is never destroyed. The UI elements are added and removed from a Canvas. The control which contains the canvas implements OnRendering via the following syntax:

  private void InitializeComponent()
        {
            Loaded += (sender, e) =>
            {
                _View = View;
                _View.Rendering += OnRendering;
            };
            Unloaded += (sender, e) =>
            {
                _View.Rendering -= OnRendering;
                _View = null;
            };

            GUI.LoadComponent(this, "Assets/User Interface/Screens/Game/Overlay/Targeting/TargetingControl.xaml");
            _Root = this.Content as FrameworkElement;
            _Canvas = _Root.FindName("_Canvas") as Canvas;
        }

I hope this information is helpful. Thank you!
stonstad

stonstad

2021-10-28 19:00

reporter  

stonstad

stonstad

2021-10-28 19:00

reporter   ~0007551

Last edited: 2021-10-28 19:00

Below: Possibly the same crash as reported on 10/27 but the stack trace is different and the error is associated with d3d11.dll.

stonstad

stonstad

2021-10-28 19:00

reporter  

Issue History

Date Modified Username Field Change
2021-09-16 16:14 stonstad New Issue
2021-09-16 16:14 stonstad File Added: Crash_2021-09-16_140425551.zip
2021-09-17 12:13 jsantos Assigned To => sfernandez
2021-09-17 12:13 jsantos Status new => assigned
2021-09-22 10:40 sfernandez Status assigned => feedback
2021-09-22 10:40 sfernandez Note Added: 0007472
2021-09-22 12:22 stonstad Note Added: 0007473
2021-09-22 12:22 stonstad Status feedback => assigned
2021-09-27 22:01 stonstad Note Added: 0007483
2021-09-28 10:02 sfernandez Status assigned => feedback
2021-09-28 10:02 sfernandez Note Added: 0007485
2021-09-28 16:50 stonstad Note Added: 0007487
2021-09-28 16:50 stonstad Status feedback => assigned
2021-09-28 16:50 stonstad Note Edited: 0007487
2021-10-06 19:15 stonstad Note Added: 0007502
2021-10-06 20:02 sfernandez Status assigned => feedback
2021-10-06 20:02 sfernandez Note Added: 0007504
2021-10-28 02:55 stonstad File Added: Crash_2021-10-28_005102883.zip
2021-10-28 02:55 stonstad Note Added: 0007547
2021-10-28 02:55 stonstad Status feedback => assigned
2021-10-28 02:58 stonstad Note Added: 0007548
2021-10-28 03:10 stonstad File Added: Crash_2021-10-28_010128243.zip
2021-10-28 03:10 stonstad Note Added: 0007549
2021-10-28 19:00 stonstad File Added: Crash_2021-10-28_2_165334345.zip
2021-10-28 19:00 stonstad Note Added: 0007551
2021-10-28 19:00 stonstad File Added: Crash_2021-10-28_2_165334345-2.zip
2021-10-28 19:00 stonstad Note Edited: 0007551