question

Ibrahim Abu khater avatar image
Ibrahim Abu khater asked

Crashes and ANRs on UE5.1 regarding ServerModels::FPlayerProfileModel::readFromValue

Hello there,

we noticed couple of crashes and ANRs on our android game, the error trace shows it's related to Playfab SDK and here's a snippet of the crash stack trace, what could possibly gone wrong here?

Keep in mind we're using GetPlayerProfile at some point, but the client version, I'm assuming we might access a missing key inside the response object?

Playfab SDK version:1.104.221205

 Crashed: Thread: SIGSEGV  0x0000000000000000
 #00 pc 0x51e80 libc.so
 #01 pc 0x4a358a0 libUnreal.so (__cxx_global_var_init.42 [AttributesContainer.h:24])
 #02 pc 0x4a3326c libUnreal.so (__cxx_global_var_init.42 [AttributesContainer.h:24])
 #03 pc 0x4a32ecc libUnreal.so (__cxx_global_var_init.42 [AttributesContainer.h:24])
 #04 pc 0x2ad0f24 libUnreal.so (__cxx_global_var_init.42 [AttributesContainer.h:24])
 #05 pc 0xf88bfc libUnreal.so (PlayFab::ServerModels::FPlayerProfileModel::readFromValue(TSharedPtr<FJsonObject, (ESPMode)1> const&) [PlayFabServerDataModels.cpp])
 #06 pc 0xf82434 libUnreal.so (PlayFab::ServerModels::FPlayerProfileModel::readFromValue(TSharedPtr<FJsonObject, (ESPMode)1> const&) [PlayFabServerDataModels.cpp])
 #07 pc 0xf85560 libUnreal.so (PlayFab::ServerModels::FPlayerProfileModel::readFromValue(TSharedPtr<FJsonObject, (ESPMode)1> const&) [PlayFabServerDataModels.cpp])
 #08 pc 0xf9ce10 libUnreal.so (PlayFab::ServerModels::FPlayerProfileModel::readFromValue(TSharedPtr<FJsonObject, (ESPMode)1> const&) [PlayFabServerDataModels.cpp])
 #09 pc 0xcdf4c libc.so
 #10 pc 0x575dc libc.so

6347-crashstacktrace.txt

sdksunreal
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Neils Shi avatar image
Neils Shi answered

The crash stack trace is related to PlayFab ServerModels. Did you call any Server API with ProfileConstraints? For example: Server/GetPlayerProfile, Server/GetFriendsList or any leaderboard query like: Server/GetLeaderboard. If so, you may check if you access a missing key inside the response object.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.