User avatar
hcpizzi
Site Admin
Posts: 245
Joined: 09 Feb 2012, 12:40

Re: Cannot build the UE4 plugin 3.1.1

24 Sep 2021, 10:50

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.

Tags:
 
User avatar
hcpizzi
Site Admin
Posts: 245
Joined: 09 Feb 2012, 12:40

Re: Cannot build the UE4 plugin 3.1.1

24 Sep 2021, 13:49

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.
 
sergiu.zixelise
Topic Author
Posts: 12
Joined: 23 May 2021, 10:57

Re: Cannot build the UE4 plugin 3.1.1

25 Sep 2021, 14:27

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?
 
User avatar
hcpizzi
Site Admin
Posts: 245
Joined: 09 Feb 2012, 12:40

Re: Cannot build the UE4 plugin 3.1.1

27 Sep 2021, 12:09

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.
 
sergiu.zixelise
Topic Author
Posts: 12
Joined: 23 May 2021, 10:57

Re: Cannot build the UE4 plugin 3.1.1

27 Sep 2021, 17:26

Ok great! let me know when it's updated, and I will try it. Thank you so much!
 
User avatar
hcpizzi
Site Admin
Posts: 245
Joined: 09 Feb 2012, 12:40

Re: Cannot build the UE4 plugin 3.1.1

28 Sep 2021, 12:12

I've pushed the changes to GitHub. Please, let us know if they resolve your issue.

Thanks.
 
sergiu.zixelise
Topic Author
Posts: 12
Joined: 23 May 2021, 10:57

Re: Cannot build the UE4 plugin 3.1.1

30 Sep 2021, 10:30

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.
 
sergiu.zixelise
Topic Author
Posts: 12
Joined: 23 May 2021, 10:57

Re: Cannot build the UE4 plugin 3.1.1

30 Sep 2021, 12:02

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.
 
sergiu.zixelise
Topic Author
Posts: 12
Joined: 23 May 2021, 10:57

Re: Cannot build the UE4 plugin 3.1.1

30 Sep 2021, 12:20

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
 
User avatar
hcpizzi
Site Admin
Posts: 245
Joined: 09 Feb 2012, 12:40

Re: Cannot build the UE4 plugin 3.1.1

30 Sep 2021, 13:22

Hi Sergiu,

I've emailed you so we can figure this out faster.

Who is online

Users browsing this forum: Bing [Bot] and 4 guests