Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

FEnvQueryOptionInstance Generator stored in FEnvQueryInstanceCache is garbage collected

This is the second time this has showed up for me using a custom generator. The last time it happened I was able to somehow work around by making a new query from scratch.

At some point during the running of my game after multiple instances have been ran for this particular query the cached Generator is garbage collected and becomes invalid. The InstanceCache in the EnvQueryManager keeps picking up the cached instance and the query crashes when it attempts to execute on the generator. The crash in the end crashes on the line` FScopeCycleCounterUObject GeneratorScope(OptionItem.Generator);` inside EnvQueryInstance.cpp.

I do have multiple versions of the query cached with different modes. The one that is crashing is returning a single result and the other functional cached instance is returning 25%.

I'm still investigating where the generator gets lost, but might either make a new query in data to attempt to work around the problem or manually look for invalid query instances in the cache and remove them.

It doesn't appear the cache is ever reset at runtime.

Product Version: UE 4.9
more ▼

asked Jan 19 '16 at 04:09 AM in C++ Programming

avatar image

713 32 30 56

avatar image dzeligman Jan 19 '16 at 05:11 AM

I changed the tasks calling the query to return a single result and that has somehow "fixed" the garbage collection of the generator. I'll investigate further when I get more time.

avatar image dzeligman Jan 19 '16 at 05:16 AM

It appears this may be // FORT-16508 and thus fixed in the last commit to master for EQS. I might attemp to cherry pick the change as I cannot upgrade the engine any time soon.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question