Page 2 of 2
Re: Cannot build the UE4 plugin 3.1.1
Posted: 24 Sep 2021, 10:50
by hcpizzi
Could you try and apply this patch, to see which of the parameters to that function is the problem? I suspect it's going to be the input parameter being null (first check):
Index: NoesisTypeClass.cpp
===================================================================
--- NoesisTypeClass.cpp (revision 10749)
+++ NoesisTypeClass.cpp (working copy)
@@ -339,6 +339,10 @@
template<class T>
bool GenericSetter(Noesis::BaseComponent* Input, void* BasePointer, FProperty* Property)
{
+ check(Input != nullptr);
+ check(BasePointer != nullptr);
+ check(Property != nullptr);
+ check(Noesis::Boxing::CanUnbox<typename NoesisTypeTraits<T>::NoesisType>(Input));
void* Value = Property->template ContainerPtrToValuePtr<void>(BasePointer);
T TInput = NoesisTypeTraits<T>::ToUnreal(Noesis::Boxing::Unbox<typename NoesisTypeTraits<T>::NoesisType>(Input));
T& TValue = *(T*)Value;
Also: Could you post the XAML for the button that produces the crash and the function that gets executed?
Thank you.
Re: Cannot build the UE4 plugin 3.1.1
Posted: 24 Sep 2021, 13:49
by hcpizzi
Hi,
Forget about the above, I've been able to reproduce the problem.
I've created a ticket for this separate issue:
https://www.noesisengine.com/bugs/view.php?id=2130
I've already added a patch to the ticket that should resolve the crash.
Sorry about these problems. Let us know if this finally lets you run your project correctly.
Re: Cannot build the UE4 plugin 3.1.1
Posted: 25 Sep 2021, 14:27
by sergiu.zixelise
That's great news!
Just one question, how do I apply the .patch file? I wanted to replace the code in my .cpp file but I have the feeling that's not how it should be done, is there some automatic way to apply it?
Re: Cannot build the UE4 plugin 3.1.1
Posted: 27 Sep 2021, 12:09
by hcpizzi
Don't worry, I've attached the patched file to the ticket. I wanted to wait for you to test it before pushing it to GitHub.
Re: Cannot build the UE4 plugin 3.1.1
Posted: 27 Sep 2021, 17:26
by sergiu.zixelise
Ok great! let me know when it's updated, and I will try it. Thank you so much!
Re: Cannot build the UE4 plugin 3.1.1
Posted: 28 Sep 2021, 12:12
by hcpizzi
I've pushed the changes to GitHub. Please, let us know if they resolve your issue.
Thanks.
Re: Cannot build the UE4 plugin 3.1.1
Posted: 30 Sep 2021, 10:30
by sergiu.zixelise
Still not working, not sure if it's because of something wrong with building the plugin from source, because I feel that's not working properly either. Now my old version of the plugin is not working anymore either can't even open UE4 gives some error, and I can't find it on your website anymore either :(.
UE4 just makes me so frustrated they made things too complicated, always some compile errors or stuff not working as it should.
Re: Cannot build the UE4 plugin 3.1.1
Posted: 30 Sep 2021, 12:02
by sergiu.zixelise
Ok, I don't really understand what's going on, I am trying to run the project with the 3.1.0 version, but I am getting the Pure virtual function being called while the application was running crash.
It runs ok on a Mac, and on my partner's windows machine, just mine doesn't work anymore now, have a feeling it's something UE4 related.
Re: Cannot build the UE4 plugin 3.1.1
Posted: 30 Sep 2021, 12:20
by sergiu.zixelise
I also tried updating the project to 4.27, and still getting this error.
Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Core/Private/Windows/WindowsPlatformMisc.cpp] [Line: 475] Pure virtual function being called
UE4Editor_Core
VCRUNTIME140
UE4Editor_NoesisRuntime!NoesisNotifyArrayPropertyChanged() [D:\git\UI - Copy\Plugins\NoesisGUI\Source\NoesisRuntime\Private\NoesisTypeClass.cpp:3257]
UE4Editor_NoesisRuntime!UNoesisFunctionLibrary::NotifyArrayChanged() [D:\git\UI - Copy\Plugins\NoesisGUI\Source\NoesisRuntime\Private\NoesisFunctionLibrary.cpp:35]
UE4Editor_NoesisRuntime!UNoesisFunctionLibrary::execNotifyArrayChanged() [D:\git\UI - Copy\Plugins\NoesisGUI\Intermediate\Build\Win64\UE4Editor\Inc\NoesisRuntime\NoesisFunctionLibrary.gen.cpp:49]
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_CoreUObject
UE4Editor_NoesisRuntime!NoesisFunctionWrapper::Execute() [D:\git\UI - Copy\Plugins\NoesisGUI\Source\NoesisRuntime\Private\NoesisTypeClass.cpp:1547]
Noesis
Noesis
Noesis
Noesis
Noesis
Noesis
Noesis
Noesis
Noesis
Noesis
Noesis
Noesis
Noesis
UE4Editor_NoesisRuntime!UNoesisInstance::NativeOnTouchEnded() [D:\git\UI - Copy\Plugins\NoesisGUI\Source\NoesisRuntime\Private\NoesisInstance.cpp:1068]
UE4Editor_UMG
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_Slate
UE4Editor_ApplicationCore
UE4Editor_ApplicationCore
UE4Editor_ApplicationCore
UE4Editor_ApplicationCore
user32
user32
UE4Editor_ApplicationCore
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
UE4Editor
kernel32
ntdll
Re: Cannot build the UE4 plugin 3.1.1
Posted: 30 Sep 2021, 13:22
by hcpizzi
Hi Sergiu,
I've emailed you so we can figure this out faster.