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"

Why does this create a call stack event?

When calling any of these functions even once the editor crashes because of a call stack event. I previously used to get a crash report when the crash happened and I used to get the message that I don't have any editor symbols for debugging this call stack event, therefore I have downloaded the symbols for debugging and after that, the crash report doesn't even pop-up.

 void AGreystoneCharacter::ZoomCameraIn()
 {
     if (CameraBoom->TargetArmLength > 100.0f)
     {
         CameraBoom->TargetArmLength -= 10.0f;
     }
 }
 void AGreystoneCharacter::ZoomCameraOut()
 {
     if (CameraBoom->TargetArmLength < 800.0f)
     {
         CameraBoom->TargetArmLength += 10.0f;
     }
 }

Product Version: UE 4.20
Tags:
more ▼

asked Oct 28 '18 at 11:11 PM in C++ Programming

avatar image

NijoMeister
70 9 10 18

avatar image timsev7n Oct 28 '18 at 11:53 PM

Maybe return it?

  void AGreystoneCharacter::ZoomCameraOut()
  {
      if (CameraBoom->TargetArmLength < 800.0f)
      {
          CameraBoom->TargetArmLength += 10.0f;
      }
 
 else return;
 
  }



avatar image NijoMeister Oct 29 '18 at 01:34 AM

This doesn't seem to fix the issue and I have tried updating to 4.21 and I ended up getting something finally in the logs https://pastebin.com/KhuySw86. Thanks!

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

1 answer: sort voted first

Only possible cause fo crash i can see is CameraBoom potentially being nullptr or invalid pointer, which would explain why you getting hard crash. Issue might in execution order, but this can be fixed in brute force way by adding extra condition:

 if (CameraBoom && CameraBoom->TargetArmLength > 100.0f)

Ofcorse this does not fix original issue but considering the code is already conditional it should be fine. This also won't help you if you have invalid pointer of CameraBoom

more ▼

answered Oct 29 '18 at 01:45 AM

avatar image

Shadowriver
37.3k 936 172 1116

(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