Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by JamesJLinden · Feb 22, 2016 at 11:27 PM · ioscrash

Unity crash on iOS - GameObject.SendMessage()

Unity Version: 5.3.2p2

It's crashing from within Unity's internal code when doing a GameObject.SendMessage() call, it should be noted that this particular line itself is not the source of the crash (nothing in this line of code is null):

target.gameObject.SendMessage("OnPointerClick", eventData, SendMessageOptions.DontRequireReceiver);

Source file: https://gist.github.com/blaketriana/b954dd255038c2bcab5d

My best guess is that somehwere in Unity's SendMessage code, an exception occurs when it tries to find a valid target to invoke the OnPointerClick message. This would mean the crash happens before we ever invoke the OnPointerClick callback on the target and not within the body of its callback (because that would show up in the trace). It seems like I will need to open a support ticket with Unity if it's an internal problem in their code.

Let me know if there's more information I can share about my issue. Thanks all!

 Thread : Crashed: com.apple.main-thread
 0  game-app                       0x100033770 CrashedCheckBellowForHintsWhy() (CrashReporter.mm:97)
 1  game-app                       0x100cbfe10 RuntimeInvoker_Void_t2779279689_Object_t_Object_t(MethodInfo const*, void*, void**) (Il2CppInvokerTable.cpp:1128)
 2  game-app                       0x101613d94 il2cpp::vm::Runtime::CallUnhandledExceptionDelegate(Il2CppDomain*, Il2CppDelegate*, Il2CppObject*) (Runtime.cpp:350)
 3  game-app                       0x101613d14 il2cpp::vm::Runtime::UnhandledException(Il2CppObject*) (Runtime.cpp:433)
 4  game-app                       0x100ee6ee4 ScriptingInvocation::Invoke(ScriptingException**, bool) (ScriptingInvocation.cpp:202)
 5  game-app                       0x100edd0f8 MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodIl2Cpp, ScriptingObject*, ScriptingException**) (MonoBehaviour.cpp:839)
 6  game-app                       0x100edd2dc MonoBehaviour::InvokeMethodOrCoroutineChecked(ScriptingMethodIl2Cpp, ScriptingObject*) (MonoBehaviour.cpp:859)
 7  game-app                       0x100eeb920 Scripting::SendScriptingMessage(Unity::GameObject&, char const*, ScriptingObject*) (BaseObject.h:87)
 8  game-app                       0x101105784 GameObject_CUSTOM_SendMessage(ReadOnlyScriptingObjectOfType<Unity::GameObject>, ICallString, ScriptingObject*, int) (UnityEngineGameObjectBindings.gen.cpp:320)
 9  game-app                       0x100166628 OnboardingArrowInputBlocker_Message2dObjects_m1580627665 (Bulk_Assembly-CSharp_14.cpp:6437)
 10 game-app                       0x1001660ac OnboardingArrowInputBlocker_OnPointerClick_m3735897309 (Bulk_Assembly-CSharp_14.cpp:6148)
 11 game-app                       0x1009f6848 ExecuteEvents_Execute_TisObject_t_m1533897725_gshared (GenericMethods0.cpp:35043)
 12 game-app                       0x1007d90e4 StandaloneInputModule_ProcessTouchPress_m2953705401 (Bulk_UnityEngine.UI_0.cpp:8133)
 13 game-app                       0x1007d8d08 StandaloneInputModule_ProcessTouchEvents_m3567487943 (Bulk_UnityEngine.UI_0.cpp:7836)
 14 game-app                       0x1007d8684 StandaloneInputModule_Process_m3720469665 (Bulk_UnityEngine.UI_0.cpp:7775)
 15 game-app                       0x100cbfba4 RuntimeInvoker_Void_t2779279689(MethodInfo const*, void*, void**) (Il2CppInvokerTable.cpp:1072)
 16 game-app                       0x1016136b0 il2cpp::vm::Runtime::Invoke(MethodInfo const*, void*, void**, Il2CppObject**) (Runtime.cpp:350)
 17 game-app                       0x100ee7128 ScriptingInvocationNoArgs::Invoke(ScriptingException**) (ScriptingInvocationNoArgs.cpp:111)
 18 game-app                       0x100ee70e0 ScriptingInvocationNoArgs::Invoke() (ScriptingInvocationNoArgs.cpp:95)
 19 game-app                       0x100edc670 MonoBehaviour::CallUpdateMethod(int) (MonoBehaviour.cpp:456)
 20 game-app                       0x100dafb38 void BaseBehaviourManager::CommonUpdate<BehaviourManager>() (Behaviour.cpp:169)
 21 game-app                       0x100e97d24 PlayerLoop(bool, bool, IHookEvent*) (Player.cpp:1727)
 22 game-app                       0x10110e2b0 UnityPlayerLoopImpl(bool) (LibEntryPoint.mm:239)
 23 game-app                       0x10002a41c UnityRepaint (UnityAppController+Rendering.mm:236)
 24 game-app                       0x10002a25c -[UnityAppController(Rendering) repaintDisplayLink] (UnityAppController+Rendering.mm:52)
 25 QuartzCore                     0x186933814 CA::Display::DisplayLinkItem::dispatch() + 40
 26 QuartzCore                     0x1869336c8 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 424
 27 IOKit                          0x18445e1e8 IODispatchCalloutFromCFMessage + 372
 28 CoreFoundation                 0x18418b1f8 __CFMachPortPerform + 180
 29 CoreFoundation                 0x1841a1634 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56
 30 CoreFoundation                 0x1841a0d6c __CFRunLoopDoSource1 + 436
 31 CoreFoundation                 0x18419eac4 __CFRunLoopRun + 1800
 32 CoreFoundation                 0x1840cd680 CFRunLoopRunSpecific + 384
 33 GraphicsServices               0x1855dc088 GSEventRunModal + 180
 34 UIKit                          0x188f44d90 UIApplicationMain + 204
 35 game-app                       0x10002455c main (main.mm:32)
 36 libdyld.dylib                  0x183c6e8b8 start + 4
Comment
Add comment · Show 1
10 |3000 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 JamesJLinden · Feb 22, 2016 at 11:28 PM 0
Share

Hopefully it's readable, I tried to format my stack trace as neatly as I could.

0 Replies

· Add your reply
  • Sort: 

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.

Follow this Question

Answers Answers and Comments

41 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Problem when building to development iPhone 1 Answer

Interlocked methods crashing with IL2CPP 3 Answers

Several Memory Optimization Questions 0 Answers

iOS build of game crashes on splash screen after a few days 3 Answers

WWW IOS Crash 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges