Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Execute Process Request crashes UE4.24.1 #259

Closed
erpy opened this issue Jan 27, 2020 · 11 comments
Closed

Execute Process Request crashes UE4.24.1 #259

erpy opened this issue Jan 27, 2020 · 11 comments
Labels
question Further information is requested

Comments

@erpy
Copy link

erpy commented Jan 27, 2020

Execute Process Request crashes Editor everytime. Verify peer is disabled in project config.
image

@ufna ufna added the question Further information is requested label Jan 28, 2020
@ufna
Copy link
Owner

ufna commented Jan 28, 2020

Hi @erpy ,

What's inside Construct Json Request function? It's not the one from VaRest.

@erpy
Copy link
Author

erpy commented Jan 28, 2020

Hi @ufna,
it's a constructor that also sets up the json object for the request.
I couldn't find examples for how to make a request, so I went for deductive usage... :)

image

@erpy
Copy link
Author

erpy commented Jan 28, 2020

That also crashes with "Process URL" other than "Execute Process Request"

@ufna
Copy link
Owner

ufna commented Jan 28, 2020

What is in crash log?

@erpy
Copy link
Author

erpy commented Jan 28, 2020

`Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000038

UE4Editor_VaRest!UVaRestRequestJSON::ProcessRequest() [d:\build++portal+dev-marketplace+full\sync\localbuilds\plugintemp\hostproject\plugins\varest\source\varest\private\varestrequestjson.cpp:410]
UE4Editor_VaRest!UVaRestRequestJSON::execProcessURL() [d:\build++portal+dev-marketplace+full\sync\localbuilds\plugintemp\hostproject\plugins\varest\source\varest\public\varestrequestjson.h:82]`

@erpy
Copy link
Author

erpy commented Jan 28, 2020

[2020.01.28-09.13.15:148][797]LogScript: Warning: Accessed None trying to read property CallFunc_constructJsonRequest_jsonObj
[2020.01.28-09.13.15:148][797]LogScript: Warning: Accessed None trying to read property CallFunc_constructJsonRequest_jsonObj

@erpy
Copy link
Author

erpy commented Jan 28, 2020

Looking at the logs now, and it looks like those objects are possibly null...
I've stepped many times through it... the Request and Json objects both appear to be there when debugging in Blueprint editor.

@ufna
Copy link
Owner

ufna commented Jan 28, 2020

I'm not sure why, but your Construct Json Request function works not as it should. It should be replaced for now with original one.

@erpy
Copy link
Author

erpy commented Jan 28, 2020

I just tried a vanilla request, only using VaRest functions... same result.

@erpy
Copy link
Author

erpy commented Jan 28, 2020

Ok, I got it working. The Json object for the request was not "constructed" using the "ConstructJSON" function, but only referencing a VaRest Json Object variable in the blueprint.
It would be nice if this would raise an error in the Blueprint rather than crashing the Editor ?

Btw, thanks for your time! I appreciate.

@ufna
Copy link
Owner

ufna commented Jan 28, 2020

Thanks for pointing this, minor improvement is here :)

@ufna ufna closed this as completed Jan 28, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants