Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • Bugs /
avatar image
Question by Dann Rees · Jun 15, 2019 at 03:35 AM · apisLeaderboards and Statisticssdksunreal

UE4 continually crashing

Hi there,

I've setup leaderboards which generally work great in UE4. However the engine is constantly crashing on me. It's usually with the GetLeaderboardAroundPlayer request (specicially the OnSuccess delegate).

It usually happens when I'm switching maps or stopping the game.

Here's the crash report:

LoginId:18ac774f461c9d008b6ef3a8d3229fcd EpicAccountId:cc542e79173a45cd814192dc7778d7ce Unhandled exception UE4Editor_CoreUObject UE4Editor_CoreUObject UE4Editor_CoreUObject UE4Editor_CoreUObject UE4Editor_CoreUObject UE4Editor_CoreUObject UE4Editor_CoreUObject UE4Editor_CoreUObject UE4Editor_CoreUObject UE4Editor_CoreUObject UE4Editor_PlayFab!UPlayFabClientAPI::FDelegateOnSuccessGetLeaderboardAroundPlayer_DelegateWrapper() [d:\build\++portal+dev-marketplace+full\sync\localbuilds\plugintemp\hostproject\plugins\playfab\source\playfab\classes\playfabclientapi.h:1725] UE4Editor_PlayFab!UPlayFabClientAPI::HelperGetLeaderboardAroundPlayer() [d:\build\++portal+dev-marketplace+full\sync\localbuilds\plugintemp\hostproject\plugins\playfab\source\playfab\private\playfabclientapi.cpp:6818] UE4Editor_PlayFab!UPlayFabClientAPI::execHelperGetLeaderboardAroundPlayer() [d:\build\++portal+dev-marketplace+full\sync\localbuilds\plugintemp\hostproject\plugins\playfab\source\playfab\classes\playfabclientapi.h:29] UE4Editor_CoreUObject UE4Editor_CoreUObject UE4Editor_PlayFab!TMulticastScriptDelegate<FWeakObjectPtr>::ProcessMulticastDelegate<UObject>() [d:\rocketsync\4.22.0-5660361+++ue4+release-4.22\working\engine\source\runtime\core\public\uobject\scriptdelegates.h:488] UE4Editor_PlayFab!FOnPlayFabClientRequestCompleted::Broadcast() [d:\build\++portal+dev-marketplace+full\sync\localbuilds\plugintemp\hostproject\plugins\playfab\source\playfab\classes\playfabclientapi.h:24] UE4Editor_PlayFab!UPlayFabClientAPI::OnProcessRequestComplete() [d:\build\++portal+dev-marketplace+full\sync\localbuilds\plugintemp\hostproject\plugins\playfab\source\playfab\private\playfabclientapi.cpp:9377] UE4Editor_PlayFab!TBaseUObjectMethodDelegateInstance<0,UPlayFabClientAPI,void __cdecl(TSharedPtr<IHttpRequest,0>,TSharedPtr<IHttpResponse,1>,bool)>::ExecuteIfSafe() [d:\rocketsync\4.22.0-5660361+++ue4+release-4.22\working\engine\source\runtime\core\public\delegates\delegateinstancesimpl.h:677] UE4Editor_HTTP UE4Editor_HTTP UE4Editor_HTTP UE4Editor_Core UE4Editor UE4Editor UE4Editor UE4Editor UE4Editor kernel32 ntdll

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Sarah Zhang · Jun 17, 2019 at 06:25 AM

I have tested this API that you provided in the UE4, and unable to reproduce the crash in my own project. Can you provide more info about your project? What are the version of UE4 and the version of SDK? Did you use blueprint or cpp? Also you can provide your error info to the UE4 forum for some help.

Comment

People who like this

0 Show 3 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Dann Rees · Jun 17, 2019 at 12:35 PM 1
Share

Hi Sarah.

I'm using the blueprint plugin and UE4.22.

I've discovered the crash occurs if the custom object Im passing with the request is garbage collected before a response is received.

Moving the Reques/Response code from Game Instance to Game Mode reduced the crashes significantly, however they do still occur occasionally.

The problem is I can't check if the pointer is valid for the custom object in the response. Any attempt to access it if it has been GC'd causes a crash, including Is valid and != Null. Is there a way around this?

Thanks

avatar image justindooley Dann Rees · Mar 27, 2020 at 03:05 PM 0
Share

Exact same thing is happening to us. It's only because of this comment that we were able to discover what was going on.

avatar image justindooley justindooley · Mar 27, 2020 at 05:47 PM 0
Share

Here is an example of the custom data being null and crashing

invite-details.png (21.0 kB)

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    GetLeaderboardAroundPlayer api call failing 0 Answers

    Leaderboard limits? No where does it say this. 2 Answers

    [UE4] Crash in Unreal Engine 4 3 Answers

    TitleId in SendAccountRecoveryEmailAsync (CSharpSDK) 1 Answer

    Leaderboards AvatarUrl and LinkedAccounts are always Null. 2 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges