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 srimarc · Nov 25, 2013 at 07:00 PM · xcodekeyboardios7

Siri crashes Unity on ios7?

[EDIT] As JobeLloyd points out below, there is a ticket for this at the Unity Issue Tracker: http://issuetracker.unity3d.com/issues/ios7-tapping-the-dictation-button-on-the-keyboard-causes-a-crash

At the moment of this writing it is marked as fixed, but not yet released. [/EDIT]

Just posting to see if anyone has experience with this. We have a Unity3D app on ios that opens the keyboard and uses the results of what the user types. So far so good. But if the user hits the Siri key (the microphone on the keyboard), the app will crash. If I'm connected to XCode I get a EXC_BAD_ACCESS in SkinnedMeshRenderer.

As a workaround, I've tried calling down to the native layer and invoking PauseUnity(true), adding a handler and then PauseUnity(false) when the keyboard resigns, like so:

 - (void)pauseUnityForKeyboard
 {
     UnityPause(true);
     [[NSNotificationCenter defaultCenter]addObserver:self selector:@selector(onKeyboardHide:) name:UIKeyboardWillHideNotification object:nil];
 }
 - (void)onKeyboardHide:(NSNotification *)notification
 {
     UnityPause(false);
 }

This averts the crash, but Unity never really recovers...processing resumes, but none of my animations do: the app is effectively frozen.

Any thoughts? Thanks!

[EDIT] Two interesting details:

  • If I pause Unity for the keyboard, but DON'T CALL SIRI, then un-pause, everything resumes just fine.

  • I looked at the possibility of allowing microphone permission (although this shouldn't be necessary)...so far no luck there.

[/EDIT]

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 srimarc · Nov 26, 2013 at 10:48 PM 0
Share

After over a day struggling with this, I'm not noticeably closer to an answer. I've disabled virtually everything in the app without it helping. I've also noted that in an old app of ours which also uses the keyboard, we can use Siri in one case without crashing...though another keyboard instance in the same app does cause the crash (neither instance uses PauseUnity). I haven't been able to discern an important difference in the use cases and I've attempted to port code into the current app without it helping. The search continues...

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by JobeLloyd · Nov 27, 2013 at 12:53 AM

I can confirm we are seeing the same bug on ios7 as well. We already pause Unity while the keyboard is up, and it also fails to recover. If i disable to pause it crashes.

Unfortunately I dont have a fix for this yet here either.

Comment
Add comment · Show 5 · 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 srimarc · Nov 27, 2013 at 01:05 AM 0
Share

Thanks for that. I finally did what I probably should have done some while ago: I built a completely vanilla app with just the keyboard and a $$anonymous$$imal UI. I get the same crash. Reporting it to Unity now.

avatar image JobeLloyd · Nov 27, 2013 at 01:06 AM 0
Share

Looks like they are reporting it fixed?

http://issuetracker.unity3d.com/issues/ios7-tapping-the-dictation-button-on-the-keyboard-causes-a-crash

avatar image srimarc · Nov 27, 2013 at 01:15 AM 0
Share

Nice find, but it's definitely not fixed on 4.3.0f4. Do you think they're reporting that it's fixed for an upco$$anonymous$$g release?

avatar image Rao_Vadapalli · Dec 13, 2013 at 09:25 PM 0
Share

Any updates on this? We are nearing submission and this bug might fail us at QA. Also, we are on Unity 4.2.1, and upgrading to the latest version days before final submission involves a huge risk we would like to avoid.

So, if Unity can provide the fix as a patch to older versions, that would be great.

avatar image Voxel-Busters · May 27, 2015 at 09:51 AM 0
Share

Its still crashing on iOS 7 device while using dictation on any textfield. I'm on 4.6.5 unity version.

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

18 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

Related Questions

iOS Write image to app group container 0 Answers

iOS 7 .. Xcode5 .. now have error 0 Answers

Unsupported shader while building for ios 0 Answers

TestFlight SDK and Xcode Issues 3 Answers

What should be the options visible to me when doing an iOS build on Windows? 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