Search Issue Tracker

Fixed in 2020.2

Fixed in 2018.4, 2019.4, 2020.1

Votes

17

Found in

2017.4.0f1

2017.4.12f1

Issue ID

1087475

Regression

No

[iOS] Crash at Action_1_Invoke_m2461023210_gshared when calling Social.Active.LoadAchievements

iOS

-

To reproduce:
1. Open attached project
2. Build for iOS
3. Open Xcode project, navigate to Capabilities tab in Project Navigator window
4. Enable Game Center
5. Run the app on an iOS device
6. If the app is opened without any issues, stop the app in Xcode and run again (usually takes a couple of times)

Expected result: the app is opened
Actual result: the app crashes

Reproduced on:
2017.4.0f1 2017.4.13f1 2017.4.16f1 2018.2.18f1, 2018.4.19f1

Not reproduced on:
2018.3.0b12 and 2019.1.0a11 (opened the app through Xcode 30 times and experienced no crashes)

Device reproduced on:
iPhone XS Max, iOS 12.0
iPhone 6, iOS 12.4.2
iPad Pro, iOS 12

Opened and closed the app on iPhone X iOS 12.1, iPhone 7 Plus iOS 12.0 about 30 times and experienced no crash.

Comments (12)

  1. 9cb193aa86b6311ac632c086007a14f4?d=mm

    habitoti

    Jun 02, 2020 10:38

    So as it‘s fixed in 2018.4 and 2020.2...will fix be ported to 2019 also?

  2. 9cb193aa86b6311ac632c086007a14f4?d=mm

    habitoti

    May 31, 2020 06:47

    This is still happening in 2019.3.15f1. Will this only be fixed after Marsflight happened?

  3. F52992705535ebb3050d9dd3aa73d7b5?d=mm

    mmSimon

    Mar 23, 2020 16:04

    We're seeing this in Unity 2019.2.21f1. Tried using a lambda method, tried adding a 2s delay between authentication and loading achievements and nothing's working ... Next I'll try preventing it from happening in a LoadScene ...

  4. Ec33a51c59a84460e4a4354a7ff4068a?d=mm

    Ed-Marty

    Sep 06, 2019 17:26

    Seeing this on Unity 2019.2.3f1

  5. E0cf0b152fde1ca8f07f64b75dc494dc?d=mm

    VoxelMatt

    Aug 28, 2019 02:47

    Seeing this on 2018.4.6f

  6. 1cba440dca4f024142857e2dfbb05db2?d=mm

    pushxtonotdie

    Jul 30, 2019 19:32

    Seeing this on 2018.3.12

  7. 72b1d71df1208abbf3cef021e9fbf4cd?d=mm

    xman800

    May 23, 2019 16:40

    For my game, if I use a lambda expression as the Social.LoadAchievements() callback, as in this example (https://docs.unity3d.com/ScriptReference/Social.LoadAchievements.html), I do not get the crash. But if I use a function call argument instead of a lambda expression, like in this example (https://docs.unity3d.com/Manual/net-SocialAPI.html), the crash may happen if the callback occurs during a LoadScene.

  8. 72b1d71df1208abbf3cef021e9fbf4cd?d=mm

    xman800

    May 23, 2019 16:10

    I've narrowed this down a bit more. It seems that if the Social.LoadAchievements() callback happens concurrently with Application.LoadScene(), the crash is likely to occur.

  9. 72b1d71df1208abbf3cef021e9fbf4cd?d=mm

    xman800

    Apr 17, 2019 03:43

    Seeing this intermittently on Unity 2018.3.11f1 on iPhone 7 (iOS 12.2) and iPhone 8 (iOS 12.1.2 and iOS 12.2) so far.

    I believe this IS a regression, because my game had thousands of sessions using Unity 5.6.6f2 without ever reporting this crash. Then, after updating only the game engine to Unity 2018.3.11f1 and not changing the app otherwise, I got multiple crash reports within days.

    The stack trace for me looks like:

    Action_1_Invoke_mB86FC1B303E77C41ED0E94FC3592A9CF8DA571D5_gshared + 84 (il2cpp-codegen-il2cpp.h:343)
    RuntimeInvoker_FalseVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017_RuntimeObject_RuntimeObject(vo... + 24 (Il2CppInvokerTable.cpp:22331)
    il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) + 108 (Runtime.cpp:531)
    scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExc... + 108 (ScriptingApi_Il2Cpp.cpp:243)
    ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) + 56 (ScriptingInvocation.cpp:347)
    InvokeGameCenterCallback(char const*, ScriptingArguments const&) + 96 (ScriptingInvocation.h:70)
    void GameCenter::TriggerCallback<ScriptingObjectPtr, ScriptingArrayPtr>(char const*, ScriptingObj... + 76 (GameCenter.mm:1384)
    [AchievementWrapper loadAchievements:]_block_invoke + 804 (GameCenter.mm:908)

  10. 35aa88bc61ab4b9d80bac9137c59f599?d=mm

    erikhallgren

    Mar 25, 2019 07:21

    Reproduced on 2019.1.0b8 and 2018.3.9f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.