x

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"

AnswerHub Maintenance

Background maintenance is scheduled to occur between 9 - 11am EDT on Tuesday, May 21. Site operation may be slower than normal during this time and a brief interruption in operation may be observed

read access violation in ConditionalBeginDestroy()

https://www.dropbox.com/s/3q93wydfoh4rphh/ExceptionFun.png?dl=0

The C++ portion of the debugger seems to think everything is ok, but the call location is clearly in data. I have the memory window set to rax+80h. This is all built with Debug Editor in VS2015.

The object in question is a DBCharacter, which is a UObject derived class with several uint64 properties I set through the fancy C++ reflection stuff. The values come out of a sqlite3 db. The UObject is made via StaticAllocateObject and stored in a TArray in my game instance class. Changing the EObjectFlags can affect when this crash occurs.

The way I reach this usually is my game instance Init() calls OnlineSubsystem's Identity Interface AutoLogin(), which fires off my login complete delegate, which opens the DB and reads the character list based on the SteamID.

Soon after garbage collection kicks in as a result of loading the map and down it goes.

If I set the StaticAllocateObject's EObjectFlags to RF_RootSet the game runs awhile then hits the same exception on close (as one would expect).

Product Version: UE 4.15
Tags:
more ▼

asked Mar 31 '17 at 09:00 AM in Using UE4

avatar image

kbaird
1 1

(comments are locked)
10|2000 characters needed characters left

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