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
1
Question by Santa · Jan 24, 2011 at 01:38 AM · crashiphonesoundlaunchopenfeint

Crash at first launch with OpenFeint

When I launch game first time after build and install it crashes. It happens when I'm trying to play sound. The reason is that at first launch OpenFeint shows it's window with offer to login. All the next launches are OK (and without OpenFeint window at launch). That's how it looks in console: after this string: "-> applicationDidBecomeActive()" OpenFeint appears at first time. And after it's closed appears this: "Error initializing AudioSession(errNO:1768843636)"

All the next launches string "Error initializing AudioSession(errNO:1768843636)" is not present and everithing is OK. One more detail. Crash happens when I'm trying to play looped sound. If sound is not looped everithing is OK again.

Looks strange :) What could it be? How it can be solved?

UPD: May be there is way to reinitialize AudioSession manually? And one more. It begins when I moved project prom iOS Basic license to iOS Pro.

Comment
Add comment · Show 2
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 fireDude67 · Jan 24, 2011 at 01:45 AM 0
Share

What is OpenFeint?

avatar image Peter G · Jan 24, 2011 at 02:19 AM 0
Share

http://www.openfeint.com/ It was GameCenter before GameCenter.

2 Replies

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

Answer by Santa · Jan 26, 2011 at 01:06 AM

The solution is easy but took time as it happens :)

In "Editor\OpenFeint\XCode\Appcontroller+OpenFeint.mm" You must remove "UnitySetAudioSessionActive()" in functions "dashboardDidDisappear()" and "dashboardWillDisappear()".

And everything becomes OK. Don't understand why it is there at all when UnityPause() is there?

UPDATED: You must remove "UnitySetAudioSessionActive()" ONLY in functions "dashboardWillAppear()" and "dashboardDidDisappear()" (or sound will stop playing after disabling device through the hold button on older models (iPhone 2G for example)).

UPD 2: After release have happened several crashes on user devices. It was OF 2.7.5. Now it is 2.10 and it's still not working. Don't use it with Unity yet at all.

Comment
Add comment · Show 1 · 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 Bampf · Jun 27, 2011 at 01:24 AM 0
Share

FYI, in my case, commenting out those lines solved a crash I was getting with OpenFeint 2.7.5, running my game on an iPhone 2G (3.1.3). Crash ocurred when dismissing the OpenFeint dashboard.

This problem has been reported with later versions of OpenFeint as well. For me, it started when I tried to update my previously stable working project to Unity 3.2+ and iOS SD$$anonymous$$ 4.2.

avatar image
0

Answer by Qamar · Apr 21, 2011 at 02:16 PM

this problem is happening with me,

in my case i am not playing any sound and my application is crashing while loading. I am not even able to see first screen.

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

No one has followed this question yet.

Related Questions

[URGENT] OpenFeint integration problems 0 Answers

iPhone Unity Simulator Crashes 1 Answer

Lost sound on iphone after alarm clock goes off 0 Answers

Iphone sound behaving strange 0 Answers

FMOD failed to initialize ... A call to a standard soundcard driver failed, which could possibly mean a bug in the driver or resources were missing or exhausted. 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