Search Issue Tracker
Not Reproducible
Votes
0
Found in
2018.3.5f1
Issue ID
1147289
Regression
No
[iOS] [Game Center] [Not Reproducible] Crash in "Scripting::ScriptingWrapperFor" while trying to retrieve profile images
Summary:
- In GameCenter.mm under GetUserImage() an GetEmptyUserImage() gets called that then tries to initialize a texture which could possibly fail.
- if an Init texture is returning false, the case is not being handled but straight passed to ScriptingWrapperFor.
- See GCImageToTexture2D() method that handles the case if a texture cant be initialized.
Reproduces on:
- Most likely all iOS devices (iOS versions from 9 to 12, and all device models (both 32 and 64-bit)).
Call stack:
0 empires 0x100f75084 Scripting::ScriptingWrapperFor(Object*) (ScriptingTypes.h:624)
1 empires 0x100caeea0 GameCenterPlatform_CUSTOM_GetUserImage() (UnityObjectMarshalling.h:230)
2 empires 0x102441438 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 15396684
3 empires 0x1024412a4 unsigned long long flatbuffers::HashFnv1a<unsigned long long>(char const*) + 15396280
4 empires 0x100a62a10 RuntimeInvoker_FalseVoid_t22962CB4C05B1D89B55A6E1139F0E87A90987017_Int32_t585191389E07734F19F3156FF88FB3EF4800D102_RuntimeObject(void (*)(), MethodInfo const*, void*, void**) (Il2CppInvokerTable.cpp:38787)
...
Note:
- Full call stack and further contact information attached in the edit.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
tritruonglihuhugames
Sep 27, 2023 04:25
We have the same bug on Unity 2021.3.9f1
YauhenZenkevich
Jul 12, 2023 13:54
Unity 2021.3.13f1
iOS 12 -16.5.1
0 UnityFramework 0x388c28 Scripting::ScriptingWrapperFor(Object*) + 595 (BaseObject.h:595)
1 UnityFramework 0x1da8c0 GameCenterPlatform_CUSTOM_GetUserImage() + 211 (UnityObjectMarshalling.h:211)
2 UnityFramework 0x1d3022c selector_thread(void*) (.cold.1) + 656 (threadpool-ms-io.cpp:656)
3 UnityFramework 0x1d2ffa0 selector_thread(void*) (.cold.1) + 656 (threadpool-ms-io.cpp:656)
4 UnityFramework 0xafdeb4 il2cpp::vm::Runtime::InvokeWithThrow(MethodInfo const*, void*, void**) + 567 (Runtime.cpp:567)
5 UnityFramework 0xafdd14 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppException**) + 561 (Runtime.cpp:561)
6 UnityFramework 0x37c8a4 scripting_method_invoke(ScriptingMethodPtr, ScriptingObjectPtr, ScriptingArguments&, ScriptingExceptionPtr*, bool) + 292 (ScriptingApi_Il2Cpp.cpp:292)
7 UnityFramework 0x38853c ScriptingInvocation::Invoke(ScriptingExceptionPtr*, bool) + 298 (ScriptingInvocation.cpp:298)
8 UnityFramework 0x850090 InvokeGameCenterCallback(char const*, ScriptingArguments const&) + 1410 (GameCenter.mm:1410)
9 UnityFramework 0x850140 GameCenter::ExecuteGameCenterCallbacks() + 1498 (GameCenter.mm:1498)
10 UnityFramework 0x2cbd40 ExecutePlayerLoop(NativePlayerLoopSystem*) + 383 (PlayerLoop.cpp:383)
11 UnityFramework 0x2cbd80 ExecutePlayerLoop(NativePlayerLoopSystem*) + 407 (PlayerLoop.cpp:407)
12 UnityFramework 0x2cbfdc PlayerLoop() + 514 (PlayerLoop.cpp:514)
13 UnityFramework 0x7c1d70 UnityPlayerLoopImpl(bool) + 330 (LibEntryPoint.mm:330)
14 UnityFramework 0x1706c -[UnityAppController(Rendering) repaint] + 238 (UnityAppController+Rendering.mm:238)
15 UnityFramework 0x16ffc -[UnityAppController(Rendering) repaintDisplayLink] + 72 (UnityAppController+Rendering.mm:72)
16 QuartzCore 0x2946c CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 820
17 QuartzCore 0x39414 display_timer_callback(__CFMachPort*, void*, long, void*) + 372
18 CoreFoundation 0x79d54 __CFMachPortPerform + 176
19 CoreFoundation 0x97148 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 60
20 CoreFoundation 0x98e38 __CFRunLoopDoSource1 + 520
21 CoreFoundation 0x7a658 __CFRunLoopRun + 2240
22 CoreFoundation 0x7f3ec CFRunLoopRunSpecific + 612
23 GraphicsServices 0x135c GSEventRunModal + 164
24 UIKitCore 0x39d6e8 -[UIApplication _run] + 888
25 UIKitCore 0x39d34c UIApplicationMain + 340
26 UnityFramework 0x16ba0 -[UnityFramework runUIApplicationMainWithArgc:argv:] + 96 (main.mm:96)
27 Blockudoku 0x412c main + 28 (main.mm:28)
28 ??? 0x1d88e6dec (Missing)
arey-ohbibi
Apr 29, 2021 17:41
We have the same bug on Unity 2019.4.18f1
Petr777
Mar 02, 2021 07:58
we also have this crash, cannot reproduce
fiveampsoftware
May 23, 2020 05:47
We also see this issue as one of our top crash reports on iOS.
ZikW
May 20, 2019 14:43
It's rare but I can see in Xcode crash logs that it happened on a few devices for our game too.