View Issue Details

IDProjectCategoryView StatusLast Update
0002424NoesisGUIC++ SDKpublic2023-04-24 12:18
Reporterasusralis Assigned Tosfernandez  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.1.5 
Target Version3.1.7Fixed in Version3.2.1 
Summary0002424: Crash
DescriptionNo crash in unity editor, but always crashes in windows standalone.
TagsNo tags attached.
PlatformAny

Activities

asusralis

asusralis

2022-09-17 14:21

reporter  

sfernandez

sfernandez

2022-10-03 20:10

manager   ~0008087

The callstack indicates the crash happens setting TopPage dependency property in NavFrame, but it is not clear what part is wrong.
I prepared a debug Noesis library to see if we can get more information, could you try with that and send again the crash dump?

https://drive.google.com/file/d/133NfZQ5ztu1YbBmyHxnMrwuARsScn2fO/view?usp=sharing
asusralis

asusralis

2022-10-27 12:39

reporter   ~0008107

I seem to be getting an unrelated exception when I try to start the game now:

TTEX (30): public static readonly DependencyProperty ToolTipContentProperty = DependencyProperty.RegisterAttached(
            "ToolTipContent",
            typeof(UIElement),
            typeof(TTEx),
            new PropertyMetadata(OnValueChanged));
Player.log (16,602 bytes)   
Mono path[0] = 'C:/Users/asusr/Desktop/piercer/Piercer_Data/Managed'
Mono config path = 'C:/Users/asusr/Desktop/piercer/MonoBleedingEdge/etc'
Found 1 interfaces on host : 0) 192.168.1.2
Multi-casting "[IP] 192.168.1.2 [Port] 55322 [Flags] 2 [Guid] 4058808659 [EditorId] 618608748 [Version] 1048832 [Id] WindowsPlayer(2,DESKTOP-2NEIU23) [Debug] 1 [PackageName] WindowsPlayer [ProjectName] Piercer" to [225.0.0.222:54997]...
Starting managed debugger on port 56659
Using monoOptions --debugger-agent=transport=dt_socket,embedding=1,server=y,suspend=n,address=0.0.0.0:56659
Initialize engine version: 2022.1.20f1 (01d83b40d570)
[Subsystems] Discovering subsystems at path C:/Users/asusr/Desktop/piercer/Piercer_Data/UnitySubsystems
GfxDevice: creating device client; threaded=1; jobified=0
Direct3D:
    Version:  Direct3D 11.0 [level 11.1]
    Renderer: AMD Radeon(TM) Graphics (ID=0x1638)
    Vendor:   ATI
    VRAM:     14262 MB
    Driver:   27.20.15026.8004
Begin MonoManager ReloadAssembly
- Completed reload, in  0.414 seconds
D3D11 device created for Microsoft Media Foundation video decoding.
<RI> Initializing input.

New input system (experimental) initialized
<RI> Input initialized.

<RI> Initialized touch support.

UnloadTime: 1.268500 ms
Odin Serializer ArchitectureInfo initialization with defaults (all unaligned read/writes disabled).
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:Log (object)
Sirenix.Serialization.ArchitectureInfo:.cctor ()
Sirenix.Serialization.UnitySerializationInitializer:Initialize ()
Sirenix.Serialization.UnitySerializationInitializer:InitializeRuntime ()

Odin Serializer detected whitelisted runtime platform WindowsPlayer and memory read test succeeded; enabling all unaligned memory read/writes.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
UnityEngine.Logger:Log (UnityEngine.LogType,object)
UnityEngine.Debug:Log (object)
Sirenix.Serialization.ArchitectureInfo:SetRuntimePlatform (UnityEngine.RuntimePlatform)
Sirenix.Serialization.UnitySerializationInitializer:Initialize ()
Sirenix.Serialization.UnitySerializationInitializer:InitializeRuntime ()

Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis
DllNotFoundException: Noesis assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Noesis.Extend.Noesis_RegisterReflectionCallbacks(Noesis.Extend/Callback_FreeString,Noesis.Extend/Callback_RegisterType,Noesis.Extend/Callback_ToString,Noesis.Extend/Callback_Equals,Noesis.Extend/Callback_VisualChildrenCount,Noesis.Extend/Callback_VisualGetChild,Noesis.Extend/Callback_UIElementRender,Noesis.Extend/Callback_FrameworkElementConnectEvent,Noesis.Extend/Callback_FrameworkElementMeasure,Noesis.Extend/Callback_FrameworkElementArrange,Noesis.Extend/Callback_FrameworkElementApplyTemplate,Noesis.Extend/Callback_ItemsControlGetContainer,Noesis.Extend/Callback_ItemsControlIsContainer,Noesis.Extend/Callback_AdornerGetTransform,Noesis.Extend/Callback_FreezableClone,Noesis.Extend/Callback_CommandCanExecute,Noesis.Extend/Callback_CommandExecute,Noesis.Extend/Callback_ConverterConvert,Noesis.Extend/Callback_ConverterConvertBack,Noesis.Extend/Callback_MultiConverterConvert,Noesis.Extend/Callback_MultiConverterConvertBack,Noesis.Extend/Callback_ListCount,Noesis.Extend/Callback_ListGet,Noesis.Extend/Callback_ListSet,Noesis.Extend/Callback_ListAdd,Noesis.Extend/Callback_ListIndexOf,Noesis.Extend/Callback_DictionaryFind,Noesis.Extend/Callback_DictionarySet,Noesis.Extend/Callback_DictionaryAdd,Noesis.Extend/Callback_ListIndexerTryGet,Noesis.Extend/Callback_ListIndexerTrySet,Noesis.Extend/Callback_DictionaryIndexerTryGet,Noesis.Extend/Callback_DictionaryIndexerTrySet,Noesis.Extend/Callback_SelectTemplate,Noesis.Extend/Callback_StreamSetPosition,Noesis.Extend/Callback_StreamGetPosition,Noesis.Extend/Callback_StreamGetLength,Noesis.Extend/Callback_StreamRead,Noesis.Extend/Callback_StreamClose,Noesis.Extend/Callback_ProviderLoadXaml,Noesis.Extend/Callback_ProviderTextureInfo,Noesis.Extend/Callback_ProviderTextureLoad,Noesis.Extend/Callback_ProviderTextureOpen,Noesis.Extend/Callback_ProviderMatchFont,Noesis.Extend/Callback_ProviderFamilyExists,Noesis.Extend/Callback_ProviderScanFolder,Noesis.Extend/Callback_ProviderOpenFont,Noesis.Extend/Callback_ScrollInfoBringIntoView,Noesis.Extend/Callback_ScrollInfoGetCanHorizontalScroll,Noesis.Extend/Callback_ScrollInfoSetCanHorizontalScroll,Noesis.Extend/Callback_ScrollInfoGetCanVerticalScroll,Noesis.Extend/Callback_ScrollInfoSetCanVerticalScroll,Noesis.Extend/Callback_ScrollInfoGetExtentWidth,Noesis.Extend/Callback_ScrollInfoGetExtentHeight,Noesis.Extend/Callback_ScrollInfoGetViewportWidth,Noesis.Extend/Callback_ScrollInfoGetViewportHeight,Noesis.Extend/Callback_ScrollInfoGetHorizontalOffset,Noesis.Extend/Callback_ScrollInfoGetVerticalOffset,Noesis.Extend/Callback_ScrollInfoGetScrollOwner,Noesis.Extend/Callback_ScrollInfoSetScrollOwner,Noesis.Extend/Callback_ScrollInfoLineLeft,Noesis.Extend/Callback_ScrollInfoLineRight,Noesis.Extend/Callback_ScrollInfoLineUp,Noesis.Extend/Callback_ScrollInfoLineDown,Noesis.Extend/Callback_ScrollInfoPageLeft,Noesis.Extend/Callback_ScrollInfoPageRight,Noesis.Extend/Callback_ScrollInfoPageUp,Noesis.Extend/Callback_ScrollInfoPageDown,Noesis.Extend/Callback_ScrollInfoMouseWheelLeft,Noesis.Extend/Callback_ScrollInfoMouseWheelRight,Noesis.Extend/Callback_ScrollInfoMouseWheelUp,Noesis.Extend/Callback_ScrollInfoMouseWheelDown,Noesis.Extend/Callback_ScrollInfoSetHorizontalOffset,Noesis.Extend/Callback_ScrollInfoSetVerticalOffset,Noesis.Extend/Callback_ScrollInfoMakeVisible,Noesis.Extend/Callback_MarkupExtensionProvideValue,Noesis.Extend/Callback_GetPropertyValue_Bool,Noesis.Extend/Callback_GetPropertyValue_Float,Noesis.Extend/Callback_GetPropertyValue_Double,Noesis.Extend/Callback_GetPropertyValue_Int,Noesis.Extend/Callback_GetPropertyValue_UInt,Noesis.Extend/Callback_GetPropertyValue_Short,Noesis.Extend/Callback_GetPropertyValue_UShort,Noesis.Extend/Callback_GetPropertyValue_String,Noesis.Extend/Callback_GetPropertyValue_Uri,Noesis.Extend/Callback_GetPropertyValue_Color,Noesis.Extend/Callback_GetPropertyValue_Point,Noesis.Extend/Callback_GetPropertyValue_Rect,Noesis.Extend/Callback_GetPropertyValue_Int32Rect,Noesis.Extend/Callback_GetPropertyValue_Size,Noesis.Extend/Callback_GetPropertyValue_Thickness,Noesis.Extend/Callback_GetPropertyValue_CornerRadius,Noesis.Extend/Callback_GetPropertyValue_TimeSpan,Noesis.Extend/Callback_GetPropertyValue_Duration,Noesis.Extend/Callback_GetPropertyValue_KeyTime,Noesis.Extend/Callback_GetPropertyValue_Type,Noesis.Extend/Callback_GetPropertyValue_BaseComponent,Noesis.Extend/Callback_SetPropertyValue_Bool,Noesis.Extend/Callback_SetPropertyValue_Float,Noesis.Extend/Callback_SetPropertyValue_Double,Noesis.Extend/Callback_SetPropertyValue_Int,Noesis.Extend/Callback_SetPropertyValue_UInt,Noesis.Extend/Callback_SetPropertyValue_Short,Noesis.Extend/Callback_SetPropertyValue_UShort,Noesis.Extend/Callback_SetPropertyValue_String,Noesis.Extend/Callback_SetPropertyValue_Uri,Noesis.Extend/Callback_SetPropertyValue_Color,Noesis.Extend/Callback_SetPropertyValue_Point,Noesis.Extend/Callback_SetPropertyValue_Rect,Noesis.Extend/Callback_SetPropertyValue_Int32Rect,Noesis.Extend/Callback_SetPropertyValue_Size,Noesis.Extend/Callback_SetPropertyValue_Thickness,Noesis.Extend/Callback_SetPropertyValue_CornerRadius,Noesis.Extend/Callback_SetPropertyValue_TimeSpan,Noesis.Extend/Callback_SetPropertyValue_Duration,Noesis.Extend/Callback_SetPropertyValue_KeyTime,Noesis.Extend/Callback_SetPropertyValue_Type,Noesis.Extend/Callback_SetPropertyValue_BaseComponent,Noesis.Extend/Callback_CreateInstance,Noesis.Extend/Callback_DeleteInstance,Noesis.Extend/Callback_GrabInstance)
  at Noesis.Extend.RegisterCallbacks () [0x00001] in C:\Users\asusr\Documents\Noesis 3.1.5\Runtime\API\Core\Extend.cs:110 
  at Noesis.GUI.Init () [0x0001a] in C:\Users\asusr\Documents\Noesis 3.1.5\Runtime\API\Core\NoesisGUI.cs:87 
  at NoesisUnity.InitCore () [0x00001] in C:\Users\asusr\Documents\Noesis 3.1.5\Runtime\NoesisUnity.cs:25 
  at NoesisXaml.RegisterDependencies () [0x0000f] in C:\Users\asusr\Documents\Noesis 3.1.5\Runtime\NoesisXaml.cs:24 
  at NoesisXaml.Load () [0x00001] in C:\Users\asusr\Documents\Noesis 3.1.5\Runtime\NoesisXaml.cs:14 
  at NoesisView.LoadXaml (System.Boolean force) [0x00031] in C:\Users\asusr\Documents\Noesis 3.1.5\Runtime\NoesisView.cs:478 
  at NoesisView.OnEnable () [0x0001c] in C:\Users\asusr\Documents\Noesis 3.1.5\Runtime\NoesisView.cs:609 

(Filename: C:/Users/asusr/Documents/Noesis 3.1.5/Runtime/API/Core/Extend.cs Line: 110)

Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis
DllNotFoundException: Noesis assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Noesis.PropertyMetadata.Noesis_PropertyMetadata_Create()
  at Noesis.PropertyMetadata..ctor () [0x00000] in C:\Users\asusr\Documents\Noesis 3.1.5\Runtime\API\Proxies\PropertyMetadataExtend.cs:22 
  at Noesis.PropertyMetadata..ctor (Noesis.PropertyChangedCallback propertyChangedCallback) [0x00000] in C:\Users\asusr\Documents\Noesis 3.1.5\Runtime\API\Proxies\PropertyMetadataExtend.cs:27 
  at Salt.Tooltips.TTEx..cctor () [0x0000a] in C:\Users\asusr\Documents\UnityProjects\piercer\Piercer\Assets\Plugins\Custom Plugins\Stackable Tooltip\TTEx.cs:30 
Rethrow as TypeInitializationException: The type initializer for 'Salt.Tooltips.TTEx' threw an exception.


(Filename: C:/Users/asusr/Documents/Noesis 3.1.5/Runtime/API/Proxies/PropertyMetadataExtend.cs Line: 22)

Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/Noesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis.dll
Fallback handler could not load library C:/Users/asusr/Desktop/piercer/Piercer_Data/MonoBleedingEdge/libNoesis
DllNotFoundException: Noesis assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Noesis.NoesisGUI_PINVOKE.DependencyProperty_GetUnsetValue()
  at Noesis.DependencyProperty..cctor () [0x00000] in C:\Users\asusr\Documents\Noesis 3.1.5\Runtime\API\Proxies\DependencyProperty.cs:33 
Rethrow as TypeInitializationException: The type initializer for 'Noesis.DependencyProperty' threw an exception.
  at Navigation.NavFrame..cctor () [0x00000] in C:\Users\asusr\Documents\UnityProjects\piercer\Piercer\Assets\Plugins\Custom Plugins\Navigation\NavFrame.xaml.cs:32 
Rethrow as TypeInitializationException: The type initializer for 'Navigation.NavFrame' threw an exception.
  at Piercer.App.Start () [0x0001d] in C:\Users\asusr\Documents\UnityProjects\piercer\Piercer\Assets\Project\Source\App\App.cs:67 
  at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in <3dd5df5ef4974f29afeb2d3ba227c5da>:0 
  at UnityEngine.UnitySynchronizationContext+WorkRequest.Invoke () [0x00002] in <3b4bf2a7b2b14fdda08f1ba5f13c96f5>:0 
  at UnityEngine.UnitySynchronizationContext.Exec () [0x0005d] in <3b4bf2a7b2b14fdda08f1ba5f13c96f5>:0 
  at UnityEngine.UnitySynchronizationContext.ExecuteTasks () [0x00014] in <3b4bf2a7b2b14fdda08f1ba5f13c96f5>:0 

(Filename: C:/Users/asusr/Documents/Noesis 3.1.5/Runtime/API/Proxies/DependencyProperty.cs Line: 33)

Player.log (16,602 bytes)   
image.png (69,440 bytes)   
image.png (69,440 bytes)   
asusralis

asusralis

2023-03-02 18:42

reporter   ~0008320

Hello, can you send the debug library for 3.1.7? I am still getting this crash in standalone.
sfernandez

sfernandez

2023-03-06 11:05

manager   ~0008322

Hi, please find in the following link the debug version for 3.1.7: https://drive.google.com/file/d/1XkbVE-0d8UEhsktyiaVzT2308VYsiqGe/view?usp=share_link
asusralis

asusralis

2023-03-21 14:05

reporter   ~0008351

Was there any info about this? It seems to be crashing in 3.2.0 as well.
sfernandez

sfernandez

2023-03-27 20:13

manager   ~0008365

Unfortunately no.

In the past you gave us access to your project in git (Empis), would it be possible to get access to this Xeno project also and some indications to reproduce the crash?
I want to debug it myself to find what is happening.

Thanks a lot for your feedback and patience.
asusralis

asusralis

2023-03-29 12:11

reporter   ~0008378

I gave you access on bitbucket. You will have to build the game for windows to have it crash. It seems to have been crashing a lot less on 3.2, but it still sometimes does. It seems to be more random now.
asusralis

asusralis

2023-03-29 13:09

reporter   ~0008384

I created a branch called 'noesis-test-dev' which you can checkout and build.
sfernandez

sfernandez

2023-03-30 19:40

manager   ~0008394

Thanks, I was able to download it. Working on it now.
sfernandez

sfernandez

2023-04-03 13:49

manager   ~0008397

I think I found the cause of the crash... could you please try the following patch?

Index: Extend.cs
===================================================================
--- Extend.cs	(revision 12417)
+++ Extend.cs	(working copy)
@@ -5875,6 +5875,7 @@
                 if (!(instance is BaseComponent))
                 {
 #if NETSTANDARD
+                    _weakExtends.Remove(instance);
                     _weakExtends.Add(instance, new ExtendNotifier { cPtr = cPtr });
 #else
                     WeakInfo info = new WeakInfo
@@ -5978,6 +5979,7 @@
             ~ExtendNotifier()
             {
                 AddPendingRelease(cPtr);
+                cPtr = IntPtr.Zero;
             }
         }
asusralis

asusralis

2023-04-04 12:22

reporter   ~0008400

Oh great, I will try it. Thank you!
asusralis

asusralis

2023-04-04 16:04

reporter   ~0008401

It doesn't seem to crash anymore, but other parts of the game have started to not work. For example, when in combat, if you put your cursor over an ability, a preview shows at the top of the screen. This still works in the editor, but in the standalone this stopped working. Removing the changes you sent above makes this preview work again.

I linked the buttons that will show the preview when the cursor is over them.
image-2.png (9,712 bytes)   
image-2.png (9,712 bytes)   
asusralis

asusralis

2023-04-04 16:11

reporter   ~0008402

A progress bar also seems to not update anymore, but it is on a different branch from what you're on. Just to make sure I did it correctly, this is what I changed:
image-3.png (77,783 bytes)   
image-3.png (77,783 bytes)   
sfernandez

sfernandez

2023-04-04 17:31

manager   ~0008403

The changes you applied are correct.
And it is strange, the problem with the tooltips doesn't happen to me in standalone, they are shown at the top of the screen when moving the cursor over the abilities. Is this happening to you in a deterministic way, or it just happens sometimes?
asusralis

asusralis

2023-04-04 18:43

reporter   ~0008404

It seems building for a release build wasn't working. I switched to a debug build and it worked, and then switched back to a release build and it started to work too. I am not sure if there were some temporary files that were messing with this, but everything seems to work now, thanks. I will let you know if I run into this issue again.
asusralis

asusralis

2023-04-04 18:50

reporter   ~0008405

Last edited: 2023-04-04 18:54

Oh, maybe I spoke too soon. It seems I can't get a release build to work anymore with the tooltips, at least on my current branch. It's possible when I tried last time I didn't have the fix applied. Did you try a standalone release build?

If you check out the ticks-dev before 'Added Noesis fix' commit, and build in release, it should work. However, building on the latest in release and it won't work anymore - both the tooltips and the progress bar in the top-right.
sfernandez

sfernandez

2023-04-05 13:06

manager   ~0008406

I'll give a try to that branch and let you know.
sfernandez

sfernandez

2023-04-12 17:13

manager   ~0008417

Last edited: 2023-04-12 17:13

After much debugging it seems the problem is related to the use of the ConditionalWeakTable, the behavior is not the expected one in standalone and it leads to incorrectly destroy some native objects.
This table was only used for NETSTANDARD, so you can easily disable it by undefining that symbol in the top of Extend.cs:

#undef NETSTANDARD

using System;
using System.Collections.Generic;
...


Could you please try that?
asusralis

asusralis

2023-04-13 18:20

reporter   ~0008432

It seems to work! Thank you for this. Will this fix be in the next version?
sfernandez

sfernandez

2023-04-14 16:07

manager   ~0008434

Finally I implemented a different fix because we still want to use the ConditionalWeakTable as it is faster than the other code path.
Could you please try using the attached Extend.cs file and let me know if you find any trouble?
Extend.cs (308,981 bytes)
asusralis

asusralis

2023-04-24 11:35

reporter   ~0008451

It seems to work! Thank you.
sfernandez

sfernandez

2023-04-24 12:18

manager   ~0008452

Thanks a lot for the feedback and help.

Issue History

Date Modified Username Field Change
2022-09-17 14:21 asusralis New Issue
2022-09-17 14:21 asusralis File Added: Crash_2022-09-17_121050000.zip
2022-09-20 11:55 jsantos Assigned To => sfernandez
2022-09-20 11:55 jsantos Status new => assigned
2022-09-20 11:55 jsantos Target Version => 3.1.6
2022-10-03 20:10 sfernandez Status assigned => feedback
2022-10-03 20:10 sfernandez Note Added: 0008087
2022-10-27 12:39 asusralis Note Added: 0008107
2022-10-27 12:39 asusralis File Added: Player.log
2022-10-27 12:39 asusralis File Added: image.png
2022-10-27 12:39 asusralis Status feedback => assigned
2022-11-07 17:13 sfernandez Target Version 3.1.6 => 3.1.7
2023-03-02 18:42 asusralis Note Added: 0008320
2023-03-06 11:05 sfernandez Status assigned => feedback
2023-03-06 11:05 sfernandez Note Added: 0008322
2023-03-06 12:54 asusralis Status feedback => assigned
2023-03-21 14:05 asusralis Note Added: 0008351
2023-03-27 20:13 sfernandez Status assigned => feedback
2023-03-27 20:13 sfernandez Note Added: 0008365
2023-03-29 12:11 asusralis Note Added: 0008378
2023-03-29 12:11 asusralis Status feedback => assigned
2023-03-29 13:09 asusralis Note Added: 0008384
2023-03-30 19:40 sfernandez Note Added: 0008394
2023-04-03 13:49 sfernandez Status assigned => feedback
2023-04-03 13:49 sfernandez Note Added: 0008397
2023-04-04 12:22 asusralis Note Added: 0008400
2023-04-04 12:22 asusralis Status feedback => assigned
2023-04-04 16:04 asusralis Note Added: 0008401
2023-04-04 16:04 asusralis File Added: image-2.png
2023-04-04 16:11 asusralis Note Added: 0008402
2023-04-04 16:11 asusralis File Added: image-3.png
2023-04-04 17:31 sfernandez Status assigned => feedback
2023-04-04 17:31 sfernandez Note Added: 0008403
2023-04-04 18:43 asusralis Note Added: 0008404
2023-04-04 18:43 asusralis Status feedback => assigned
2023-04-04 18:50 asusralis Note Added: 0008405
2023-04-04 18:52 asusralis Note Edited: 0008405
2023-04-04 18:54 asusralis Note Edited: 0008405
2023-04-05 13:06 sfernandez Note Added: 0008406
2023-04-12 17:13 sfernandez Status assigned => feedback
2023-04-12 17:13 sfernandez Note Added: 0008417
2023-04-12 17:13 sfernandez Note Edited: 0008417
2023-04-13 18:20 asusralis Note Added: 0008432
2023-04-13 18:20 asusralis Status feedback => assigned
2023-04-14 16:07 sfernandez Note Added: 0008434
2023-04-14 16:07 sfernandez File Added: Extend.cs
2023-04-14 16:08 sfernandez Status assigned => feedback
2023-04-24 11:35 asusralis Note Added: 0008451
2023-04-24 11:35 asusralis Status feedback => assigned
2023-04-24 12:18 sfernandez Status assigned => resolved
2023-04-24 12:18 sfernandez Resolution open => fixed
2023-04-24 12:18 sfernandez Fixed in Version => 3.2.1
2023-04-24 12:18 sfernandez Note Added: 0008452