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"

[Closed] Bug Report-Array

ssertion failed: (Index >= 0) & (Index < ArrayNum) [File:C:\Program Files\Epic Games\UE_4.17\Engine\Source\Runtime\Core\Public\Containers/Array.h] [Line: 596] Array index out of bounds: 9 from an array of size 9 how is array number 9 out of bounds?....... I found a wild little glitch right here... work around is easy but it's so weird

also I have the same loop in another section nothing different from the first if .... still crashes that's very bad ue4 cant handle loops well?

Product Version: UE 4.17
Tags:
more ▼

asked Feb 06 '18 at 01:56 AM in C++ Programming

avatar image

krisgoku2
96 5 8 11

avatar image Aericks Feb 06 '18 at 02:18 AM

Are you attempting to access Array[9] with 9 slots? Because there's a simple solution for that; Arrays begin at 0.

avatar image krisgoku2 Feb 06 '18 at 08:12 AM

I had to think for a second no nooo that's not it because I had the same loop in another spot doing the same thing.... so it's the engine.

avatar image Ali Akbar Feb 06 '18 at 11:24 AM

Check the callstack to find which code is referencing the array with the incorrect index

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

The question has been closed Feb 06 '18 at 03:26 PM by krisgoku2 for the following reason:

Wrong Cast.


2 answers: sort voted first

I Casted to a incorrect node in BP, nothing to do with code or the array in general

And the array come with lack of documentation or part of the array I cam across this problem previously but it was a few months ago,you cant define in constructor something here something there etc.. etc....

more ▼

answered Feb 06 '18 at 02:15 PM

avatar image

krisgoku2
96 5 8 11

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

Can you show us the code that it is crashing on. As people have mentioned, arrays run from 0...X, so getting index 9 out of array of size 9 (0,1,2,3,4,5,6,7,8), will crash.

I highly doubt this is an Engine issue, but without showing us any of your code or loops, we cannot help much further.

more ▼

answered Feb 06 '18 at 12:28 PM

avatar image

Dune
1.9k 53 40 200

avatar image krisgoku2 Feb 06 '18 at 01:10 PM

My guess is using remove on a array actually removes the entire element then? regardless, I check against that also and it still didn't work.

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

Follow this question

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

Answers to this question