Description

Licensee-
"GeometryScript_TextureUtils.sample_texture2d_at_uv_positions does not work in python.

The uvlist becomes nullptr from python to C++. BP is working fine."

Steps to Reproduce

See attached python script.

  • Replace object paths for "your_staticmesh" and "your_texture".
Callstack
>	[Inline Frame] UnrealEditor-GeometryScriptingCore.dll!TSharedPtr<TArray<UE::Math::TVector2<double>,TSizedDefaultAllocator<32>>,1>::operator*() Line 1071	C++
 	[Inline Frame] UnrealEditor-GeometryScriptingCore.dll!UGeometryScriptLibrary_TextureMapFunctions::SampleTexture2DAtUVPositions(FGeometryScriptUVList) Line 35	C++
 	UnrealEditor-GeometryScriptingCore.dll!UGeometryScriptLibrary_TextureMapFunctions::execSampleTexture2DAtUVPositions(UObject * Context, FFrame & Stack, void * const Z_Param__Result) Line 198	C++
 	UnrealEditor-CoreUObject.dll!UFunction::Invoke(UObject * Obj, FFrame & Stack, void * const Z_Param__Result) Line 6455	C++
 	UnrealEditor-CoreUObject.dll!UObject::ProcessEvent(UFunction * Function, void * Parms) Line 2116	C++
 	UnrealEditor-PythonScriptPlugin.dll!PyUtil::InvokeFunctionCall(UObject * InObj, const UFunction * InFunc, void * InBaseParamsAddr, const wchar_t * InErrorCtxt) Line 527	C++
 	UnrealEditor-PythonScriptPlugin.dll!FPyWrapperObject::CallFunction_Impl(UObject * InObj, _object * InArgs, _object * InKwds, const PyGenUtil::FGeneratedWrappedFunction & InFuncDef, const char * InPythonFuncName, const wchar_t * InErrorCtxt) Line 303	C++
 	[Inline Frame] UnrealEditor-PythonScriptPlugin.dll!FPyWrapperObject::CallFunction(_typeobject * InPythonFuncName, _object *) Line 207	C++
 	UnrealEditor-PythonScriptPlugin.dll!FPyWrapperObject::CallClassMethodWithArgs_Impl(_typeobject * InType, _object * InArgs, _object * InKwds, void * InClosure) Line 322	C++
 	UnrealEditor-PythonScriptPlugin.dll!FPyMethodWithClosureDef::Call(FPyMethodWithClosureDef * InDef, _object * InSelf, _object * InArgs, _object * InKwds) Line 152	C++
 	[External Code]	
 	UnrealEditor-PythonScriptPlugin.dll!FPythonScriptPlugin::EvalString(const wchar_t * InStr, const wchar_t * InContext, const int InMode, _object * InGlobalDict, _object * InLocalDict) Line 1315	C++
 	[Inline Frame] UnrealEditor-PythonScriptPlugin.dll!FPythonScriptPlugin::EvalString(const wchar_t *) Line 1286	C++
 	UnrealEditor-PythonScriptPlugin.dll!FPythonScriptPlugin::RunString(FPythonCommandEx & InOutPythonCommand) Line 1345	C++
 	UnrealEditor-PythonScriptPlugin.dll!FPythonScriptPlugin::ExecPythonCommandEx(FPythonCommandEx & InOutPythonCommand) Line 598	C++
 	UnrealEditor-PythonScriptPlugin.dll!FPythonScriptPlugin::ExecPythonCommand(const wchar_t * InPythonCommand) Line 498	C++
 	UnrealEditor-PythonScriptPlugin.dll!FPythonCommandExecutor::Exec(const wchar_t * Input) Line 152	C++
 	UnrealEditor-OutputLog.dll!SConsoleInputBox::OnTextCommitted(const FText & InText, ETextCommit::Type CommitInfo) Line 413	C++
 	[Inline Frame] UnrealEditor-OutputLog.dll!Invoke(void(SConsoleInputBox::*)(const FText &, ETextCommit::Type)) Line 66	C++
 	[Inline Frame] UnrealEditor-OutputLog.dll!UE::Core::Private::Tuple::TTupleBase<TIntegerSequence<unsigned int>>::ApplyAfter(void(SConsoleInputBox::*)(const FText &, ETextCommit::Type) &) Line 327	C++
 	UnrealEditor-OutputLog.dll!TBaseSPMethodDelegateInstance<0,SConsoleInputBox,1,void __cdecl(FText const &,enum ETextCommit::Type),FDefaultDelegateUserPolicy>::ExecuteIfSafe(const FText & <Params_0>, ETextCommit::Type <Params_1>) Line 312	C++
 	[Inline Frame] UnrealEditor-Slate.dll!TDelegate<void __cdecl(FText const &,enum ETextCommit::Type),FDefaultDelegateUserPolicy>::ExecuteIfBound(const FText &) Line 639	C++
 	UnrealEditor-Slate.dll!SMultiLineEditableTextBox::OnEditableTextCommitted(const FText & InText, ETextCommit::Type InCommitType) Line 650	C++
 	[Inline Frame] UnrealEditor-Slate.dll!Invoke(void(SMultiLineEditableTextBox::*)(const FText &, ETextCommit::Type)) Line 66	C++
 	[Inline Frame] UnrealEditor-Slate.dll!UE::Core::Private::Tuple::TTupleBase<TIntegerSequence<unsigned int>>::ApplyAfter(void(SMultiLineEditableTextBox::*)(const FText &, ETextCommit::Type) &) Line 327	C++
 	UnrealEditor-Slate.dll!TBaseSPMethodDelegateInstance<0,SMultiLineEditableTextBox,1,void __cdecl(FText const &,enum ETextCommit::Type),FDefaultDelegateUserPolicy>::ExecuteIfSafe(const FText & <Params_0>, ETextCommit::Type <Params_1>) Line 312	C++
 	UnrealEditor-Slate.dll!FSlateEditableTextLayout::HandleCarriageReturn(bool isRepeat) Line 1640	C++
 	UnrealEditor-Slate.dll!FSlateEditableTextLayout::HandleKeyDown(const FKeyEvent & InKeyEvent) Line 1087	C++
 	UnrealEditor-Slate.dll!SMultiLineEditableText::OnKeyDown(const FGeometry & MyGeometry, const FKeyEvent & InKeyEvent) Line 706	C++
 	[Inline Frame] UnrealEditor-Slate.dll!FSlateApplication::ProcessKeyDownEvent::__l22::<lambda_2>::operator()(const FArrangedWidget &) Line 4540	C++
 	UnrealEditor-Slate.dll!FEventRouter::Route<FReply,FEventRouter::FBubblePolicy,FKeyEvent,`FSlateApplication::ProcessKeyDownEvent'::`22'::<lambda_2>>(FSlateApplication * ThisApplication, FEventRouter::FBubblePolicy RoutingPolicy, FKeyEvent EventCopy, const FSlateApplication::ProcessKeyDownEvent::__l22::<lambda_2> & Lambda, ESlateDebuggingInputEvent DebuggingInputEvent) Line 417	C++
 	[Inline Frame] UnrealEditor-Slate.dll!FEventRouter::RouteAlongFocusPath(FSlateApplication *) Line 386	C++
 	UnrealEditor-Slate.dll!FSlateApplication::ProcessKeyDownEvent(const FKeyEvent & InKeyEvent) Line 4536	C++
 	UnrealEditor-Slate.dll!FSlateApplication::OnKeyDown(const int KeyCode, const unsigned int CharacterCode, const bool IsRepeat) Line 4447	C++
 	UnrealEditor-ApplicationCore.dll!FWindowsApplication::ProcessDeferredMessage(const FDeferredWindowsMessage & DeferredMessage) Line 2054	C++
 	UnrealEditor-ApplicationCore.dll!FWindowsApplication::DeferMessage(TSharedPtr<FWindowsWindow,1> & NativeWindow, HWND__ * InHWnd, unsigned int InMessage, unsigned __int64 InWParam, __int64 InLParam, int MouseX, int MouseY, unsigned int RawInputFlags) Line 2726	C++
 	UnrealEditor-ApplicationCore.dll!FWindowsApplication::ProcessMessage(HWND__ * hwnd, unsigned int msg, unsigned __int64 wParam, __int64 lParam) Line 1895	C++
 	[Inline Frame] UnrealEditor-ApplicationCore.dll!WindowsApplication_WndProc(HWND__ *) Line 919	C++
 	UnrealEditor-ApplicationCore.dll!FWindowsApplication::AppWndProc(HWND__ * hwnd, unsigned int msg, unsigned __int64 wParam, __int64 lParam) Line 925	C++
 	[External Code]	
 	[Inline Frame] UnrealEditor-ApplicationCore.dll!WinPumpMessages() Line 113	C++
 	UnrealEditor-ApplicationCore.dll!FWindowsPlatformApplicationMisc::PumpMessages(bool bFromMainLoop) Line 142	C++
 	UnrealEditor.exe!FEngineLoop::Tick() Line 5291	C++
 	[Inline Frame] UnrealEditor.exe!EngineTick() Line 66	C++
 	UnrealEditor.exe!GuardedMain(const wchar_t * CmdLine) Line 202	C++
 	UnrealEditor.exe!LaunchWindowsStartup(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow, const wchar_t * CmdLine) Line 233	C++
 	UnrealEditor.exe!WinMain(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * pCmdLine, int nCmdShow) Line 282	C++

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-170422 in the post.

0
Login to Vote

Fixed
Fix Commit23261158
Main Commit23261735
Release Commit23261158
CreatedNov 17, 2022
ResolvedJan 4, 2023
UpdatedFeb 3, 2023