Log in or register to post comments

QCAR with Prime31 plugin, threading error

June 11, 2012 - 9:27am #1

Hi all,

Does anyone has the experience in working with Prime31 iOS plugin ([url]http://www.prime31.com/unity/)?[/url]

Both QCAR and Prime31 have a PostprocessBuildPlayer. I'm intended to using them together so I changed QCAR's PostprocessBuildPlayer to PostprocessBuildPlayer_AR and then import Prime31's plugin. And then build and run this unity project which contains both plugins.

With this method I can compile the generated Xcode project with no error. But the game pauses at splash screen. Xcode reports some strange threading errors. Please help!

QCAR with Prime31 plugin, threading error

February 7, 2014 - 2:59am #12

hey man i'm using QCAR with Prime31 Social Networking on android and when i remove the QCAR from the android manifest prime plugin works and when i add it prime doenst work do u have any idea why ?

QCAR with Prime31 plugin, threading error

August 3, 2012 - 2:03pm #11

I have used QCAR and Prime31 Social Networking and Etcetera plugins all in a single app on both platforms without issue.

You must do the following:

1. Import Vuforia plugin for your platform
2. Rename "PostProcessBuildPlayer" in the Editor folder in your Project view to "PostProcessBuildPlayer_VUFORIA"
3. Import your Prime31 plugins

Deviate from these steps in this order and you will most certainly get strange results, compile errors, build/linker errors, or just crashes.

Re: QCAR with Prime31 plugin, threading error

June 14, 2012 - 9:00am #10

It is probably worth searching the forums for Prime31 as it looks like other people may have had problems integrating some of their plugins with QCAR.

HTH

N

Re: QCAR with Prime31 plugin, threading error

June 13, 2012 - 5:38am #9

"If I remove QCAR from my project it will work again."

Ok - thanks. I will investigate further.

N

Re: QCAR with Prime31 plugin, threading error

June 13, 2012 - 2:11am #8

@dylanmalone
Which plugin are you combining with QCAR? I have problem with Prime31 StoreKit

@NalinS
If I remove QCAR from my project it will work again.

Re: QCAR with Prime31 plugin, threading error

June 12, 2012 - 5:22pm #7
tr1stan wrote:

Both QCAR and Prime31 have a PostprocessBuildPlayer. I'm intended to using them together so I changed QCAR's PostprocessBuildPlayer to PostprocessBuildPlayer_AR and then import Prime31's plugin. And then build and run this unity project which contains both plugins.

That's essentially what I did as well, although I called it PostprocessBuildPlayer_QCAR. This has been working for me, albeit with discouraging performance. Not sure yet if I'll be able to get usable projects from the combination or not. It's been a couple weeks since I've worked on that part of my project, so I'll update this thread if I see anything else useful to note when I look into it again.

Re: QCAR with Prime31 plugin, threading error

June 12, 2012 - 6:51am #6

Ok - did not know FMOD was the default engine

Does sound strange that it crashes on Prime31 being added.

Presumably when QCAR is removed it all starts up ok?

N

Re: QCAR with Prime31 plugin, threading error

June 12, 2012 - 6:12am #5

Fmod is the default sound engine of unity, how can I disable it?

I think my problem is not related to the splash screen issue in your link, because it just crash when the game starts, no matter if I choose a fixed orientation or not.

I will try to modify the AppController.mm and see what's going on. If I start with an empty project and then import both QCAR and Prime31 it won't crash. For my existing project there's QCAR added in the beginning and some other third party plugins they also works fine. But if I add Prime31 to this existing project then the problem occurs.

I'm pretty sure that Prime31's plugin won't modify anything in AppController.mm. And there's no method being called from Prime31 in the scene when it crashes.

Re: QCAR with Prime31 plugin, threading error

June 12, 2012 - 3:39am #4

Could it be anything related to the FMOD plug in?

Have you tried taking it out to see what happens?

Re splash screens I was referring to some of the topic mentioned in this thread:

http://ar.qualcomm.at/node/2002210

Essentially all the startup code is in AppController.mm so you could try to see what is going on under the hood if QCAR is not being initialised. In the orientation / bug case QCAR was not being initialised correctly, and maybe could be affecting one or more of your plugins - not sure but probably seems like a long shot.

Do you know, if you were to build up your app from scratch (i.e. using one of the sample Unity QCAR apps) at what point it would crash ?

N

Re: QCAR with Prime31 plugin, threading error

June 12, 2012 - 3:03am #3

NalinS,

The app crashed in FMOD::SystemI::createSoundInternal

FMOD::SystemI::createSoundInternal(char const, unsigned int, unsigned int, unsigned int, FMOD_CREATESOUNDEXINFO, FMOD::File, bool, FMOD::SoundI): Thread 1: EXC_BAD_ACCESS.

The strange thing is if I enable Development Build and Script Debugging in Unity's Build Settings it will be just fine.

Unity and Splash Screens which may or may not be related. What do you mean? Should I change the splash screen?

Re: QCAR with Prime31 plugin, threading error

June 12, 2012 - 1:03am #2

Hi tr1stan

What errors are you getting? can you post these up?

N

FWIW there are issues related to the latest version of Unity and Splash Screens which may or may not be related.

Log in or register to post comments