View Issue Details

IDProjectCategoryView StatusLast Update
0002530NoesisGUIC# SDKpublic2023-05-11 09:39
Reporterstonstad Assigned Tosfernandez  
PrioritynormalSeveritycrashReproducibilityrandom
Status resolvedResolutionfixed 
Product Version3.1.7 
Target Version3.2Fixed in Version3.2.0 
Summary0002530: Random Crashes
Description=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at Noesis.NoesisGUI_PINVOKE:BaseComponent_Release <0x000db>
      at Noesis.BaseComponent:Release <0x00082>
      at Noesis.Extend:ReleasePending <0x00212>
      at Noesis.Extend:Shutdown <0x00c82>
      at Noesis.Extend:OnDomainUnload <0x00082>
      at <Module>:invoke_void_object_EventArgs <0x002d4>
      at System.AppDomain:DoDomainUnload <0x00099>
      at System.Object:runtime_invoke_void__this__ <0x00187>
=================================================================
Steps To ReproduceCrash happened after Begin MonoManager ReloadAssembly. New behavior with 3.1.7. This is client MBI.
TagsNo tags attached.
PlatformAny

Activities

stonstad

stonstad

2023-03-08 17:03

reporter  

stonstad

stonstad

2023-03-24 19:41

reporter   ~0008353

Any updates for this crash behavior?
stonstad

stonstad

2023-03-24 21:17

reporter   ~0008354

More Crashes --

=================================================================
    Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

=================================================================
    Managed Stacktrace:
=================================================================
      at <unknown> <0xffffffff>
      at Noesis.Extend:Noesis_LaunchPropertyChangedEvent <0x0010c>
      at Noesis.Extend:NotifyPropertyChanged <0x002c2>
      at QuestLogViewModel:OnPropertyChanged <0x00113>
      at QuestLogViewModel:set_SelectedQuest <0x00132>
      at <Module>:runtime_invoke_void__this___object <0x001a3>
      at <unknown> <0xffffffff>
      at System.Reflection.RuntimeMethodInfo:InternalInvoke <0x00151>
      at System.Reflection.RuntimeMethodInfo:Invoke <0x00522>
      at System.Reflection.RuntimePropertyInfo:SetValue <0x00393>
      at System.Reflection.PropertyInfo:SetValue <0x000a2>
      at <>c__DisplayClass2_0:<.ctor>b__1 <0x00083>
      at PropertyAccessorPropRW`1:Set <0x00091>
      at Noesis.Extend:SetPropertyValue <0x00123>
      at Noesis.Extend:SetPropertyValue_BaseComponent <0x0015a>
      at Noesis.Extend:SetPropertyValue_BaseComponent <0x0012a>
      at <unknown> <0xffffffff>
      at Noesis.NoesisGUI_PINVOKE:Selector_SetIsSelected <0x00111>
      at Noesis.Selector:SetIsSelected <0x001ba>
      at NoesisGUIExtensions.SelectAction:Invoke <0x00142>
      at NoesisApp.TriggerAction:CallInvoke <0x000f5>
      at NoesisApp.TriggerBase:InvokeActions <0x003d2>
      at NoesisApp.EventTriggerBase:OnEvent <0x0008a>
      at NoesisApp.EventTriggerBase:OnEventImpl <0x0008b>
      at Noesis.MouseEventArgs:InvokeHandler <0x001b3>
      at Noesis.EventManager:InvokeHandler <0x0020b>
      at Noesis.EventHandlerStore:RaiseRoutedEvent <0x0050a>
      at Noesis.EventHandlerStore:RaiseRoutedEvent <0x0012a>
      at <unknown> <0xffffffff>
      at Noesis.View:Noesis_View_MouseMove <0x0010c>
      at Noesis.View:MouseMove <0x000ea>
      at NoesisView:UpdateMouse <0x004c2>
      at NoesisView:UpdateInputs <0x000da>
      at NoesisView:UpdateInternal <0x00442>
      at NoesisView:LateUpdate <0x000da>
      at System.Object:runtime_invoke_void__this__ <0x00187>
=================================================================
Received signal SIGSEGV
Obtained 86 stack frames
0x00007ff897718f60 (Noesis) DependencyProperty_GetUnsetValue
0x00007ff897719448 (Noesis) DependencyProperty_GetUnsetValue
0x00007ff897718841 (Noesis) DependencyProperty_GetUnsetValue
0x00007ff8976fb24d (Noesis) Noesis_GetPlatformID
0x00007ff8976fafa6 (Noesis) Noesis_GetPlatformID
0x00007ff8976fb940 (Noesis) Noesis_GetPlatformID
0x00007ff8977197e7 (Noesis) DependencyProperty_GetUnsetValue
0x00007ff89771a30a (Noesis) DependencyProperty_GetUnsetValue
0x00007ff89786e2d3 (Noesis) VisualStateChangedEventArgs_Control_get
0x00007ff8978f8a04 (Noesis) Noesis_LaunchPropertyChangedEvent
0x0000024bfa79158d (Mono JIT Code) (wrapper managed-to-native) Noesis.Extend:Noesis_LaunchPropertyChangedEvent (intptr,intptr,string)
0x0000024bfa791303 (Mono JIT Code) Noesis.Extend:NotifyPropertyChanged (object,System.ComponentModel.PropertyChangedEventArgs) (at ./Noesis 3.2.0/Runtime/API/Core/Extend.cs:6265)
0x0000024b3aead624 (Mono JIT Code) QuestLogViewModel:OnPropertyChanged (string) (at D:/Source/Noesis/UI Project/Assets/Samples/QuestLog/QuestLogViewModel.cs:69)
0x0000024b3aead8c3 (Mono JIT Code) QuestLogViewModel:set_SelectedQuest (QuestLog.Quest) (at D:/Source/Noesis/UI Project/Assets/Samples/QuestLog/QuestLogViewModel.cs:46)
0x0000024bfa790ee4 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr)
0x00007ff894720394 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ff89465eb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ff894665bdf (mono-2.0-bdwgc) mono_runtime_try_invoke_array (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:5777)
0x00007ff89459cea0 (mono-2.0-bdwgc) ves_icall_InternalInvoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/icall.c:4041)
0x00007ff8945c1691 (mono-2.0-bdwgc) ves_icall_InternalInvoke_raw (at C:/build/output/Unity-Technologies/mono/mono/metadata/icall-def.h:692)
0x0000024b11a384c2 (Mono JIT Code) (wrapper managed-to-native) System.Reflection.RuntimeMethodInfo:InternalInvoke (System.Reflection.RuntimeMethodInfo,object,object[],System.Exception&)
0x0000024b11a35073 (Mono JIT Code) System.Reflection.RuntimeMethodInfo:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
0x0000024bc02c05e4 (Mono JIT Code) System.Reflection.RuntimePropertyInfo:SetValue (object,object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
0x0000024bc02c01f3 (Mono JIT Code) System.Reflection.PropertyInfo:SetValue (object,object,object[])
0x0000024bfa790d04 (Mono JIT Code) Noesis.Extend/PropertyAccessorPropRW`1/<>c__DisplayClass2_0<PropertyT_REF>:<.ctor>b__1 (object,PropertyT_REF) (at ./Noesis 3.2.0/Runtime/API/Core/ExtendProps.cs:106)
0x0000024bfa790c22 (Mono JIT Code) Noesis.Extend/PropertyAccessorPropRW`1<PropertyT_REF>:Set (object,PropertyT_REF) (at ./Noesis 3.2.0/Runtime/API/Core/ExtendProps.cs:116)
0x0000024bfa790af4 (Mono JIT Code) Noesis.Extend:SetPropertyValue<T_REF> (Noesis.Extend/PropertyAccessor,object,T_REF) (at ./Noesis 3.2.0/Runtime/API/Core/Extend.cs:5184)
0x0000024bfa79086b (Mono JIT Code) Noesis.Extend:SetPropertyValue_BaseComponent (intptr,int,intptr,intptr,intptr) (at ./Noesis 3.2.0/Runtime/API/Core/Extend.cs:5641)
0x0000024bc00330cb (Mono JIT Code) (wrapper native-to-managed) Noesis.Extend:SetPropertyValue_BaseComponent (intptr,int,intptr,intptr,intptr)
0x00007ff8979554e7 (Noesis) Noesis_RegisterLogCallback
0x00007ff89771be5a (Noesis) BindingExpression_UpdateSource
0x00007ff8977181f3 (Noesis) DependencyProperty_GetUnsetValue
0x00007ff8976fb686 (Noesis) Noesis_GetPlatformID
0x00007ff897779379 (Noesis) Boxed_Color_GetStaticType
0x00007ff8978a0099 (Noesis) CanExecuteRoutedEventArgs_GetCommandHelper
0x00007ff8977d30d9 (Noesis) ItemsChangedEventArgs_ItemCount_get
0x00007ff8977d39ff (Noesis) ItemsChangedEventArgs_ItemCount_get
0x00007ff8977d393d (Noesis) ItemsChangedEventArgs_ItemCount_get
0x00007ff8976fbe26 (Noesis) KeyEventArgs_IsToggled_get
0x00007ff8976fb89f (Noesis) Noesis_GetPlatformID
0x00007ff89770825e (Noesis) BaseComponent_GetStaticType
0x00007ff897707f8b (Noesis) BaseComponent_GetStaticType
0x0000024bfa76ff12 (Mono JIT Code) (wrapper managed-to-native) Noesis.NoesisGUI_PINVOKE:Selector_SetIsSelected (System.Runtime.InteropServices.HandleRef,bool)
0x0000024bfa78fdcb (Mono JIT Code) Noesis.Selector:SetIsSelected (Noesis.DependencyObject,bool) (at ./Noesis 3.2.0/Runtime/API/Proxies/Selector.cs:56)
0x0000024bfa78fb33 (Mono JIT Code) NoesisGUIExtensions.SelectAction:Invoke (object) (at ./Noesis 3.2.0/Runtime/API/Interactivity/SelectAction.cs:25)
0x0000024bc02a9796 (Mono JIT Code) NoesisApp.TriggerAction:CallInvoke (object) (at ./Noesis 3.2.0/Runtime/API/Interactivity/TriggerAction.Interactivity.cs:44)
0x0000024bc02a94a3 (Mono JIT Code) NoesisApp.TriggerBase:InvokeActions (object) (at ./Noesis 3.2.0/Runtime/API/Interactivity/TriggerBase.Interactivity.cs:82)
0x0000024bc02a904b (Mono JIT Code) NoesisApp.EventTriggerBase:OnEvent (object) (at ./Noesis 3.2.0/Runtime/API/Interactivity/EventTriggerBase.cs:94)
0x0000024bc02a8f6c (Mono JIT Code) NoesisApp.EventTriggerBase:OnEventImpl (object,Noesis.EventArgs) (at ./Noesis 3.2.0/Runtime/API/Interactivity/EventTriggerBase.cs:205)
0x0000024bfa78f574 (Mono JIT Code) Noesis.MouseEventArgs:InvokeHandler (System.Delegate,intptr,intptr) (at ./Noesis 3.2.0/Runtime/API/Proxies/MouseEventArgs.cs:50)
0x0000024bc02a80ac (Mono JIT Code) Noesis.EventManager:InvokeHandler (intptr,System.Delegate,intptr,intptr) (at ./Noesis 3.2.0/Runtime/API/Core/Events.cs:578)
0x0000024bc02a7ccb (Mono JIT Code) Noesis.EventHandlerStore:RaiseRoutedEvent (intptr,intptr,intptr,intptr,intptr) (at ./Noesis 3.2.0/Runtime/API/Core/Events.cs:267)
0x0000024bc024963b (Mono JIT Code) (wrapper native-to-managed) Noesis.EventHandlerStore:RaiseRoutedEvent (intptr,intptr,intptr,intptr,intptr)
0x00007ff8978e7c1f (Noesis) TraversalRequest_FocusNavigationDirection_get
0x00007ff897866da8 (Noesis) VisualStateChangedEventArgs_Control_get
0x00007ff8977dcddd (Noesis) ItemsChangedEventArgs_ItemCount_get
0x00007ff8977dba22 (Noesis) ItemsChangedEventArgs_ItemCount_get
0x00007ff89786e684 (Noesis) VisualStateChangedEventArgs_Control_get
0x0000024bc3c3a38d (Mono JIT Code) (wrapper managed-to-native) Noesis.View:Noesis_View_MouseMove (System.Runtime.InteropServices.HandleRef,int,int)
0x0000024bc3c3a1eb (Mono JIT Code) Noesis.View:MouseMove (int,int) (at ./Noesis 3.2.0/Runtime/API/Core/View.cs:182)
0x0000024bc3c387d3 (Mono JIT Code) NoesisView:UpdateMouse () (at ./Noesis 3.2.0/Runtime/NoesisView.cs:1092)
0x0000024bc3c380cb (Mono JIT Code) NoesisView:UpdateInputs (single) (at ./Noesis 3.2.0/Runtime/NoesisView.cs:1300)
0x0000024bc3c291c3 (Mono JIT Code) NoesisView:UpdateInternal () (at ./Noesis 3.2.0/Runtime/NoesisView.cs:1449)
0x0000024bc3c28cdb (Mono JIT Code) NoesisView:LateUpdate () (at ./Noesis 3.2.0/Runtime/NoesisView.cs:1356)
0x0000024bf7416cc8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ff894720394 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ff89465eb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ff89465ecdc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff683a4c4f4 (Unity) scripting_method_invoke
0x00007ff683a2ce34 (Unity) ScriptingInvocation::Invoke
0x00007ff683a147a4 (Unity) MonoBehaviour::CallMethodIfAvailable
0x00007ff683a148ca (Unity) MonoBehaviour::CallUpdateMethod
0x00007ff6834b5bdb (Unity) BaseBehaviourManager::CommonUpdate<LateBehaviourManager>
0x00007ff6834bd25a (Unity) LateBehaviourManager::Update
0x00007ff6836e377d (Unity) `InitPlayerLoopCallbacks'::`2'::PreLateUpdateScriptRunBehaviourLateUpdateRegistrator::Forward
0x00007ff6836ca47a (Unity) ExecutePlayerLoop
0x00007ff6836ca603 (Unity) ExecutePlayerLoop
0x00007ff6836d0965 (Unity) PlayerLoop
0x00007ff68466285f (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff68466f59d (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff68466d8a1 (Unity) Application::TickTimer
0x00007ff684af939a (Unity) MainMessageLoop
0x00007ff684afe140 (Unity) WinMain
0x00007ff685ee0ffe (Unity) __scrt_common_main_seh
0x00007ff9eae926bd (KERNEL32) BaseThreadInitThunk
0x00007ff9ec58a9f8 (ntdll) RtlUserThreadStart
stonstad

stonstad

2023-03-24 21:17

reporter   ~0008355

I'm trying to work with artists to show them how to author in XAML with Noesis. It is embarrassing to have it repeatedly crash in Unity every time they make a change. This is within a vanilla Unity 3D project with the 3.1.7 plugin.
stonstad

stonstad

2023-03-24 21:20

reporter   ~0008356

We made a small one line change in the quest sample and the crash above happened. Unity 2022.2.12f1.
stonstad

stonstad

2023-03-25 00:23

reporter   ~0008358

sfernandez

sfernandez

2023-03-27 20:10

manager   ~0008364

Each crash dump seems to be a different issue.

The first one (from 3.1.7 version) happens during assembly reload.
The second one (from 3.2.0rc1 version) happens raising a PropertyChanged in a view model.
The last one (from a 3.1.8.12257 version I'm not aware of) seems similar to issue 0002512.

Let's investigate each one separately, the last one in the mentioned ticket.

Regarding the second one, it seems happened with our QuestLog sample, right? is there any steps to reproduce it?
stonstad

stonstad

2023-04-12 23:21

reporter   ~0008421

The unknown version is likely the debug library provided here: https://www.noesisengine.com/bugs/view.php?id=2512#c8337

The 3.2 version was testing I did with a separate project -- but basically everything crashes for me whenever I edit a single line.

What is your Unity setting for: General -> Script Changes While Playing ?
sfernandez

sfernandez

2023-04-13 10:41

manager   ~0008423

>> What is your Unity setting for: General -> Script Changes While Playing ?
We always work with "Recompile And Continue Playing".

>> The 3.2 version was testing I did with a separate project -- but basically everything crashes for me whenever I edit a single line.
Are you able to crash editing xaml/scripts in a separate project with just our plugin and samples?
From the crash you sent with Noesis 3.2, it looks like you were playing with the QuestLog sample, it happened just selecting a different quest from the list. Do you remember what you did to make it crash?
stonstad

stonstad

2023-04-13 17:21

reporter   ~0008427

> From the crash you sent with Noesis 3.2, it looks like you were playing with the QuestLog sample, it happened just selecting a different quest from the list. Do you remember what you did to make it crash?
Consistently, the issue is always editing a line of XAML. It doesn't matter what the line is -- seriously. It doesn't matter.

> We always work with "Recompile And Continue Playing".
OK, I always work with Recompile After Finished Playing. That setting is common to both Stellar Conquest and MBI. I have to do this because, like most projects in Unity, I do not support recompilation during playback.
stonstad

stonstad

2023-04-13 17:39

reporter   ~0008428

https://tonstad.blob.core.windows.net/media/noesis.mp4
stonstad

stonstad

2023-04-13 17:40

reporter   ~0008429

stonstad

stonstad

2023-04-13 17:42

reporter   ~0008431

See above video w/ crash dump. Clearly, this is an issue with Noesis on domain reload. Second, note that both of my projects use different app domain reload settings compared to what you are testing with. Lastly, the stack trace and location changes -- which again points to this not being a XAML change issue, but systemic with Noesis app domain reloads.
stonstad

stonstad

2023-04-13 19:59

reporter   ~0008433

I upgraded from Noesis 3.1.8 to 3.2. Issue no longer manifests!

Issue History

Date Modified Username Field Change
2023-03-08 17:03 stonstad New Issue
2023-03-08 17:03 stonstad File Added: Crash_2023-03-08_160052780.zip
2023-03-08 22:34 jsantos Assigned To => sfernandez
2023-03-08 22:34 jsantos Status new => assigned
2023-03-08 22:34 jsantos Target Version => 3.1.8
2023-03-24 19:41 stonstad Note Added: 0008353
2023-03-24 21:17 stonstad Note Added: 0008354
2023-03-24 21:17 stonstad File Added: Crash_2023-03-24_201530301.zip
2023-03-24 21:17 stonstad Note Added: 0008355
2023-03-24 21:20 stonstad Note Added: 0008356
2023-03-25 00:23 stonstad Note Added: 0008358
2023-03-25 00:23 stonstad File Added: Crash_2023-03-24_231908538.zip
2023-03-27 20:10 sfernandez Status assigned => feedback
2023-03-27 20:10 sfernandez Note Added: 0008364
2023-04-12 23:21 stonstad Note Added: 0008421
2023-04-12 23:21 stonstad Status feedback => assigned
2023-04-13 10:41 sfernandez Status assigned => feedback
2023-04-13 10:41 sfernandez Note Added: 0008423
2023-04-13 17:21 stonstad Note Added: 0008427
2023-04-13 17:21 stonstad Status feedback => assigned
2023-04-13 17:39 stonstad Note Added: 0008428
2023-04-13 17:40 stonstad Note Added: 0008429
2023-04-13 17:40 stonstad File Added: Crash_2023-04-13_153702329.zip
2023-04-13 17:42 stonstad Note Added: 0008431
2023-04-13 19:59 stonstad Note Added: 0008433
2023-05-11 09:34 admin Status assigned => resolved
2023-05-11 09:34 admin Resolution open => fixed
2023-05-11 09:34 admin Fixed in Version => 3.2.0
2023-05-11 09:39 jsantos Target Version 3.1.8 => 3.2