View Issue Details

IDProjectCategoryView StatusLast Update
0002571NoesisGUIUnitypublic2023-04-24 10:49
Reporterstonstad Assigned Tosfernandez  
PrioritynormalSeveritycrash 
Status closedResolutionduplicate 
Product Version3.2.0 
Target Version3.2.1 
Summary0002571: FrameworkElement_Resources_get Crash
Description

I clicked a button which internally fades a UserControl. Error log w/ stack dump included.

=================================================================
Managed Stacktrace:

  at <unknown> <0xffffffff>
  at Noesis.NoesisGUI_PINVOKE:FrameworkElement_Resources_get <0x000f8>
  at Noesis.FrameworkElement:get_Resources <0x000d2>
  at StellarConquest.Presentation.Unity.UI.FrameworkElementExtensionMethods:FadeIn <0x004fa>
  at StellarConquest.Presentation.Unity.UI.UIStateMachine:ScreenTransition <0x0047a>
  at StellarConquest.Presentation.Unity.UI.UIStateMachine:ScreenTransition <0x000e2>
  at StellarConquest.Presentation.Unity.UI.UIStateMachine:ShowCharacterSelectionScreen <0x0035a>
  at StellarConquest.Presentation.Unity.GameStateMachine:SetState <0x007f2>
  at <>c__DisplayClass15_0:<Login>b__0 <0x004ba>
  at <ActionWrapper>d__9:MoveNext <0x000af>
  at UnityEngine.SetupCoroutine:InvokeMoveNext <0x001b0>
  at <Module>:runtime_invoke_void_object_intptr <0x0019f>
  at <unknown> <0xffffffff>
  at UnityEngine.MonoBehaviour:StartCoroutineManaged2 <0x00153>
  at UnityEngine.MonoBehaviour:StartCoroutine <0x00212>
  at <>c__DisplayClass10_0:<Invoke>b__0 <0x0007a>
  at StellarConquest.Presentation.Unity.UnityDispatcher:Update <0x002cd>
  at System.Object:runtime_invoke_void__this__ <0x00187>

=================================================================
Received signal SIGSEGV
Obtained 47 stack frames
0x00007ffc7d1de46e (Noesis) Boxed_Color_GetStaticType
0x000001c965cdf1b9 (Mono JIT Code) (wrapper managed-to-native) Noesis.NoesisGUI_PINVOKE:FrameworkElement_Resources_get (System.Runtime.InteropServices.HandleRef)
0x000001c965cdef93 (Mono JIT Code) Noesis.FrameworkElement:get_Resources () (at D:/Source/StellarConquest/StellarConquest.Utilities/Noesis/3.2.0/Runtime/API/Proxies/FrameworkElement.cs:834)
0x000001c96a1b0e1b (Mono JIT Code) StellarConquest.Presentation.Unity.UI.FrameworkElementExtensionMethods:FadeIn (Noesis.FrameworkElement,Noesis.FrameworkElement,System.TimeSpan,System.Action) (at D:/Source/StellarConquest/StellarConquest.Presentation.Unity/Assets/User Interface/Controls/FrameworkElementExtensionMethods.cs:67)
0x000001c96a53ce6b (Mono JIT Code) StellarConquest.Presentation.Unity.UI.UIStateMachine:ScreenTransition (System.TimeSpan,System.TimeSpan,System.Action,System.Action) (at D:/Source/StellarConquest/StellarConquest.Presentation.Unity/Assets/User Interface/UIStateMachine.cs:183)
0x000001c96a53c943 (Mono JIT Code) StellarConquest.Presentation.Unity.UI.UIStateMachine:ScreenTransition (System.Action,System.Action) (at D:/Source/StellarConquest/StellarConquest.Presentation.Unity/Assets/User Interface/UIStateMachine.cs:171)
0x000001c96a53c56b (Mono JIT Code) StellarConquest.Presentation.Unity.UI.UIStateMachine:ShowCharacterSelectionScreen () (at D:/Source/StellarConquest/StellarConquest.Presentation.Unity/Assets/User Interface/UIStateMachine.cs:120)
0x000001c965cd9233 (Mono JIT Code) StellarConquest.Presentation.Unity.GameStateMachine:SetState (StellarConquest.Presentation.Unity.GameStateType) (at D:/Source/StellarConquest/StellarConquest.Presentation.Unity/Assets/Scripts/Global/GameStateMachine.cs:112)
0x000001c96a5156eb (Mono JIT Code) StellarConquest.Presentation.Unity.UI.LoginScreen/<>cDisplayClass15_0:<Login>b0 () (at D:/Source/StellarConquest/StellarConquest.Presentation.Unity/Assets/User Interface/Screens/Login/LoginScreen.cs:204)
0x000001c968220eb0 (Mono JIT Code) StellarConquest.Presentation.Unity.UnityDispatcher/<ActionWrapper>d
9:MoveNext () (at D:/Source/StellarConquest/StellarConquest.Presentation.Unity/Assets/Scripts/Utility/UnityDispatcher.cs:68)
0x000001c968220951 (Mono JIT Code) UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
0x000001c968220b60 (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_intptr (object,intptr,intptr,intptr)
0x00007ffc7c980394 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffc7c8beb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ffc7c8becdc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff667a92174 (Unity) scripting_method_invoke
0x00007ff667a72b24 (Unity) ScriptingInvocation::Invoke
0x00007ff667a3c93a (Unity) Coroutine::Run
0x00007ff667a6a815 (Unity) MonoBehaviour::TryCreateAndRunCoroutine
0x00007ff667a68133 (Unity) MonoBehaviour::StartCoroutineManaged2
0x00007ff666b2d21e (Unity) MonoBehaviour_CUSTOM_StartCoroutineManaged2
0x000001c968220684 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.MonoBehaviour:StartCoroutineManaged2 (UnityEngine.MonoBehaviour,System.Collections.IEnumerator)
0x000001c968220213 (Mono JIT Code) UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
0x000001c9681efdbb (Mono JIT Code) StellarConquest.Presentation.Unity.UnityDispatcher/<>c
DisplayClass10_0:<Invoke>b0 () (at D:/Source/StellarConquest/StellarConquest.Presentation.Unity/Assets/Scripts/Utility/UnityDispatcher.cs:74)
0x000001c96821fd8e (Mono JIT Code) StellarConquest.Presentation.Unity.UnityDispatcher:Update () (at D:/Source/StellarConquest/StellarConquest.Presentation.Unity/Assets/Scripts/Utility/UnityDispatcher.cs:62)
0x000001c9591e5af8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void
this__ (object,intptr,intptr,intptr)
0x00007ffc7c980394 (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)
0x00007ffc7c8beb44 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3066)
0x00007ffc7c8becdc (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3113)
0x00007ff667a92174 (Unity) scripting_method_invoke
0x00007ff667a72b24 (Unity) ScriptingInvocation::Invoke
0x00007ff667a5a804 (Unity) MonoBehaviour::CallMethodIfAvailable
0x00007ff667a5a92a (Unity) MonoBehaviour::CallUpdateMethod
0x00007ff66750c35b (Unity) BaseBehaviourManager::CommonUpdate<BehaviourManager>
0x00007ff667513daa (Unity) BehaviourManager::Update
0x00007ff66773782d (Unity) InitPlayerLoopCallbacks'::2'::UpdateScriptRunBehaviourUpdateRegistrator::Forward
0x00007ff66771e55a (Unity) ExecutePlayerLoop
0x00007ff66771e6e3 (Unity) ExecutePlayerLoop
0x00007ff667724a45 (Unity) PlayerLoop
0x00007ff6686ac2ef (Unity) PlayerLoopController::InternalUpdateScene
0x00007ff6686b8d9d (Unity) PlayerLoopController::UpdateSceneIfNeededFromMainLoop
0x00007ff6686b7191 (Unity) Application::TickTimer
0x00007ff668b3dd1a (Unity) MainMessageLoop
0x00007ff668b42050 (Unity) WinMain
0x00007ff669f0752e (Unity) __scrt_common_main_seh
0x00007ffe51d226bd (KERNEL32) BaseThreadInitThunk
0x00007ffe535aa9f8 (ntdll) RtlUserThreadStart

Attached Files
PlatformAny

Relationships

has duplicate 0002579 closedsfernandez Unity Crash After Modifying Resource XAML 

Activities

sfernandez

sfernandez

2023-04-14 17:20

manager   ~0008436

Can you post the code of UIStateMachine:ScreenTransition and FrameworkElementExtensionMethods:FadeIn?
The crash is because the FrameworkElement is null (or at least its native pointer is). Are you calling the Dispose() method defined in BaseComponent by any chance?

Issue History

Date Modified Username Field Change
2023-04-13 20:06 stonstad New Issue
2023-04-13 20:06 stonstad File Added: Crash_2023-04-13_180254995.zip
2023-04-14 17:20 sfernandez Assigned To => sfernandez
2023-04-14 17:20 sfernandez Status new => feedback
2023-04-14 17:20 sfernandez Note Added: 0008436
2023-04-24 10:46 sfernandez Relationship added has duplicate 0002579
2023-04-24 10:47 sfernandez Target Version => 3.2.1
2023-04-24 10:49 sfernandez Status feedback => closed
2023-04-24 10:49 sfernandez Resolution open => duplicate
2025-10-10 13:29 jsantos Category Unity3D => Unity