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"

[Bug] Editor crash after removing element of map in blueprint

My editor was built from source with VS2015 installed on win10, and I got following case causing editor crash in "play" mode: alt text

When calling the function serveral times, the editor may hang or crash, and the project is built on an empty C++ project. I also find some points in investigation: 1, The problem seems related with last "keys" node. If that one was removed, editor "play" normal. 2. stack trace in crash report, seems wild at random place, to me it looks like a stack corruption.

extra question: Any way to export the problemtic assert? The "assert export" in editor seems exports ".Copy" file which can't be imported to another project. I have uploaded the "testMapObj.uassert" in attachment, hope you can try it in your project.

testObjMap.uassert

This seems a major bug in Blueprint, could u have a look to this problem?

Product Version: UE 4.15
Tags:
map_bug0.jpg (479.6 kB)
testmapobj.rar (18.7 kB)
more ▼

asked Apr 27 '17 at 04:12 AM in Bug Reports

avatar image

old xia
13 1 4 6

avatar image old xia Apr 27 '17 at 04:44 AM

In the meanwhile, I'd like to write C++ codes to replace the "map" related, and how many differece between C++ TMap and Blueprint map? Is TMap Safe enough, tested in other projects? I hope to not start from very bottom code.

avatar image old xia Apr 28 '17 at 07:46 AM

alt text

update: sorry, following function results error, not the previous one. It construct uobjects and adds them to a map, then delete some element, then crash.

map_bug1.jpg (520.5 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4 answers: sort voted first

Hey old xia-

Thank you for reporting this, I was able to reproduce the crash based on your first screenshot locally in 4.15. However, when I tested the same setup in the 4.16 preview the crash was no longer occurring. You should be able to use the setup shown in your screenshot in 4.16 without running into the same issue.

Cheers

Doug Wilson

more ▼

answered May 02 '17 at 02:13 PM

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

I don't see logic errors in your BP. Maybe Construct node is taken much more than 1 frame? Try to make sure, put Is valid node right after you construct your maps.

more ▼

answered Apr 28 '17 at 09:51 AM

avatar image

Two-faced
860 31 13 48

avatar image old xia Apr 29 '17 at 12:17 AM

In test I used a button of widget, in the event of click of which will trigger this logic. Yes this code may execute multiple times by click the button many times, but the crash happens randomly, some time crash/hang on the first click

avatar image Two-faced Apr 29 '17 at 01:10 PM

You don't get it. This node which constructs your map probably is too heavy to instantly give you the reference or complete a creation. Have you tried: alt text

avatar image Two-faced Apr 29 '17 at 01:12 PM

Or engine doesn't like when you create a map and instantly destroy it at the same frame. Try to only create maps

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

answered May 01 '17 at 07:20 PM

avatar image

Two-faced
860 31 13 48

avatar image Two-faced May 02 '17 at 09:57 AM

Let's wait for the official opinion)

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

nice to know improvement in preview, hope to meet 4.16 GA.

more ▼

answered May 05 '17 at 02:09 AM

avatar image

old xia
13 1 4 6

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
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