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"

Voxel Generation issue and crash

UPDATED moved to 4.10 Same result

So im following this Twitch series learning voxel generation and everything was fine till a dreaded UE4 crash

 !AssertLog="Assertion failed: (Index >= 0) & (Index < ArrayNum) [File:D:\UE_4.8\Engine\Source\Runtime\Core\Public\Containers\Array.h] [Line: 678]

this line pumps this

checkf((Index >= 0) & (Index < ArrayNum),TEXT("Array index out of bounds: %i from an array of size %i"),Index,ArrayNum);

Which makes sense

Code in question

https://drive.google.com/drive/folders/0B-rxhzHe5bejaVgyWUgzRFpfQW8?usp=sharing

Video Link - from where i was watching it

Product Version: UE older version
Tags:
more ▼

asked Mar 12 '17 at 10:51 AM in C++ Programming

avatar image

Ozcorps
32 1 5 7

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

1 answer: sort voted first

The problem isn't your UE version, it's that you are accessing an array out of bounds.

Somewhere you are calculating an index and accessing into "chunkFields" but that index is larger than the array size (or you're trying to pass an index < 0).

You need to add a breakpoint or some code to try and catch that bad index value and see how you are calculating it.

more ▼

answered Mar 13 '17 at 03:04 PM

avatar image

ExtraLifeMatt
1.6k 34 14 48

(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