x


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.

more ▼

asked Jan 24 at 01:38 AM

Santa\'s gravatar image

Santa
327 16 21 35

What is OpenFeint?

Jan 24 at 01:45 AM fireDude67

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

Jan 24 at 02:19 AM Peter G
(comments are locked)
10|3000 characters needed characters left
 moderation talk

2 answers:

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.

more ▼

answered Jan 26 at 01:06 AM

Santa\'s gravatar image

Santa
327 16 21 35

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 SDK 4.2.

Jun 27 at 01:24 AM Bampf
(comments are locked)
10|3000 characters needed characters left
 moderation talk

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.

more ▼

answered Apr 21 at 02:16 PM

Qamar\'s gravatar image

Qamar
28 2 3 6

(comments are locked)
10|3000 characters needed characters left
 moderation talk
Your answer
toggle preview:

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

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x1650
x375
x278
x31
x23

Asked: Jan 24 at 01:38 AM

Seen: 1723 times

Last Updated: Jan 24 at 07:23 PM

powered by Qato - Enterprise Q&A