Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 ElectricMonk · Feb 17, 2015 at 02:56 AM · iosiphonematerialsxcode

EXC_BAD_ACCESS from Unity::Material::CreateMaterial When running simple app on iPhone.

Hi There,

This is my first foray into iPhone dev from Unity and its not going well. I'm getting a EXC_BAD_ACCESS error when I try to run my ap on my testing iPhone. It would be great if anyone can help me figure out what is doing this, I've seen other people having issues with UI Materials but nothing that fits this. It freezes and hangs at the Unity logo screen when I try to run this. If you want more info just let me know what you'd like to see. I'm running Unity 4.6.1f1 . It runs without complaint in the editor. I'm new to the iPhone debugging process so even if you could point me in the right direction it would be helpful. Thanks so much,

Dylan

 Thread 1Queue : com.apple.main-thread (serial)
 #0    0x0143e5f0 in Unity::Material::CreateMaterial(Shader&, int, bool) at /Applications/buildAgent/work/d63dfc6385190b60/Runtime/Shaders/Material.cpp:280
 #1    0x014971fc in UI::GetDefaultUIMaterial() at /Applications/buildAgent/work/d63dfc6385190b60/Runtime/UI/Canvas.cpp:31
 #2    0x0149dc98 in Canvas_CUSTOM_GetDefaultCanvasMaterial() at /Applications/buildAgent/work/d63dfc6385190b60/artifacts/iPhonePlayer-armv7Generated/UICanvasBindings.cpp:190
 #3    0x006708a8 in m_wrapper_managed_to_native_UnityEngine_Canvas_GetDefaultCanvasMaterial at /Users/dylan/current_working/ARFishApp/Builds/iosBuild_0001-noAR/Libraries/UnityEngine.dll.s:67121
 #4    0x00562f78 in m_UnityEngine_UI_Graphic_get_defaultGraphicMaterial at /Users/dylan/current_working/ARFishApp/Builds/iosBuild_0001-noAR/Libraries/UnityEngine.UI.dll.s:7929
 #5    0x0056377c in m_19e at /Users/dylan/current_working/ARFishApp/Builds/iosBuild_0001-noAR/Libraries/UnityEngine.UI.dll.s:8211
 #6    0x005637e8 in m_19f at /Users/dylan/current_working/ARFishApp/Builds/iosBuild_0001-noAR/Libraries/UnityEngine.UI.dll.s:8223
 #7    0x0057dd7c in m_UnityEngine_UI_MaskableGraphic_get_material at /Users/dylan/current_working/ARFishApp/Builds/iosBuild_0001-noAR/Libraries/UnityEngine.UI.dll.s:17125
 #8    0x005638ec in m_1a1 at /Users/dylan/current_working/ARFishApp/Builds/iosBuild_0001-noAR/Libraries/UnityEngine.UI.dll.s:8261
 #9    0x005642a8 in m_UnityEngine_UI_Graphic_UpdateMaterial at /Users/dylan/current_working/ARFishApp/Builds/iosBuild_0001-noAR/Libraries/UnityEngine.UI.dll.s:8534
 #10    0x00563e90 in m_UnityEngine_UI_Graphic_Rebuild_UnityEngine_UI_CanvasUpdate ()
 #11    0x00560f54 in m_UnityEngine_UI_CanvasUpdateRegistry_PerformUpdate at /Users/dylan/current_working/ARFishApp/Builds/iosBuild_0001-noAR/Libraries/UnityEngine.UI.dll.s:6827
 #12    0x006709c8 in m_UnityEngine_Canvas_SendWillRenderCanvases ()
 #13    0x00bd6e58 in m_4515 at /Users/dylan/current_working/ARFishApp/Builds/iosBuild_0001-noAR/Libraries/mscorlib.dll.s:398737
 #14    0x01872b64 in mono_jit_runtime_invoke ()
 #15    0x01915da8 in mono_runtime_invoke ()
 #16    0x01348d64 in scripting_method_invoke(ScriptingMethod*, MonoObject*, ScriptingArguments&, MonoException**) at /Applications/buildAgent/work/d63dfc6385190b60/Runtime/Scripting/Backend/Mono/ScriptingBackendApi_Mono.cpp:199
 #17    0x013fa448 in ScriptingInvocation::Invoke(MonoException**, bool) at /Applications/buildAgent/work/d63dfc6385190b60/Runtime/Scripting/Backend/ScriptingInvocation.cpp:128
 #18    0x013fa3f8 in ScriptingInvocation::Invoke(MonoException**) at /Applications/buildAgent/work/d63dfc6385190b60/Runtime/Scripting/Backend/ScriptingInvocation.cpp:113
 #19    0x013fa37c in ScriptingInvocation::Invoke() at /Applications/buildAgent/work/d63dfc6385190b60/Runtime/Scripting/Backend/ScriptingInvocation.cpp:108
 #20    0x0149af80 in UI::CanvasManager::WillRenderCanvases() at /Applications/buildAgent/work/d63dfc6385190b60/Runtime/UI/CanvasManager.cpp:229
 #21    0x0149b148 in UI::InitializeCanvasManager()::WillRenderCanvases::Forward() at /Applications/buildAgent/work/d63dfc6385190b60/Runtime/UI/CanvasManager.cpp:242
 #22    0x013baa10 in PlayerLoop(bool, bool, IHookEvent*) at /Applications/buildAgent/work/d63dfc6385190b60/Runtime/Misc/Player.cpp:2016
 #23    0x011bdc08 in UnityPlayerLoop at /Applications/buildAgent/work/d63dfc6385190b60/PlatformDependent/iPhonePlayer/LibEntryPoint.mm:239
 #24    0x00d329b0 in -[UnityAppController(ViewHandling) showGameUI] at /Users/dylan/current_working/ARFishApp/Builds/iosBuild_0001-noAR/Classes/UI/UnityAppController+ViewHandling.mm:158
 #25    0x00d2f5d0 in -[UnityAppController startUnity:] at /Users/dylan/current_working/ARFishApp/Builds/iosBuild_0001-noAR/Classes/UnityAppController.mm:93
 #26    0x26673f98 in __NSFireDelayedPerform ()
 #27    0x25934c86 in __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ ()
 #28    0x25934802 in __CFRunLoopDoTimer ()
 #29    0x25932a52 in __CFRunLoopRun ()
 #30    0x258803c0 in CFRunLoopRunSpecific ()
 #31    0x258801d2 in CFRunLoopRunInMode ()
 #32    0x2cc7e0a8 in GSEventRunModal ()
 #33    0x28e8ffa0 in UIApplicationMain ()
 #34    0x00047a94 in main at /Users/dylan/current_working/ARFishApp/Builds/iosBuild_0001-noAR/Classes/main.mm:35
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 ElectricMonk · Feb 17, 2015 at 02:54 AM 0
Share

just to add, I'm using the new 4.6 UI system so I suspect its something from that. The scene has literally no scripts but is just a Canvas with some panels and buttons.

3 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by ElectricMonk · Feb 17, 2015 at 06:30 PM

Ok, I figured it out. Its actually a pretty simple solution, I just had an empty material in the UI panel and that won't throw an error until you get to trying to run it on iOS. A warning would be nice but at least its a simple solution.

Comment
Add comment · Show 2 · Share
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 zeimoter · Oct 14, 2015 at 04:19 PM 0
Share

hi. I got same error as you. could you share the detail of your solution with me? does empty material mean that just dummy material to skip error? and is UIpanel on NGUI? Please let me know.

avatar image kapyar · Jan 20, 2016 at 03:35 PM 0
Share

Could you please provide more information about material you changed. I have the same issue and can't solve it.

avatar image
0

Answer by hai4925 · Jun 21, 2016 at 09:28 PM

Maybe the you forget to point the default shader like the UIDefault.shader to loaded!!

Comment
Add comment · Share
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
0

Answer by flagshipdynamics · Nov 27, 2016 at 07:54 PM

I had this problem and traced it to using Unity's built in Lucida font. Changed to Aerial and no problems. Using NGUI.

The old font simply broke everything else visually.

Comment
Add comment · Share
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

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

6 People are following this question.

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

Related Questions

Stop Threads in Unity3d using C# 0 Answers

iphone sound disappearance - ios build or hardware issue? 2 Answers

The presence of 3rd party libraries in our Unity XCode project causes mono-land exceptions leading to a crash immediately after startup. 2 Answers

Unity 2019 iOS build problem 0 Answers

What does Mprotect remapping failed mean and how do I fix it? 1 Answer


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