Log in or register to post comments

[4.2.3] "app failed to initialize" first time + crash

May 21, 2015 - 2:38am #1

Hello,

Since I've upgraded to SDK 4.2.3 (previously on v4 beta), my app shows a popup "app failed to initizlize", followed by a crash of the app. When relaunching the app, and relaunching the AR, it works this time, this is weird. Please help, this is really blocking for us.

Tested on iPhone 6 iOS 8.0.1

 

[4.2.3] "app failed to initialize" first time + crash

October 29, 2015 - 7:58am #25

Thank you for your help!

[4.2.3] "app failed to initialize" first time + crash

October 29, 2015 - 7:42am #24

Glad to hear it's working for you, I don't see anything immediatly wrong with the key you sent, but I will investigate today and see if I can find a problem.

[4.2.3] "app failed to initialize" first time + crash

October 29, 2015 - 7:40am #23

I've ceated another project and another key, and it seems to work now. So I think it was some weird problem with the previous key (the one I've sent you in PM)...

[4.2.3] "app failed to initialize" first time + crash

October 29, 2015 - 7:32am #22

It seems identical, but I've sent a PM with the line of code I'm using.

[4.2.3] "app failed to initialize" first time + crash

October 29, 2015 - 7:26am #21

You should be able to go to your project and retreive the key from there and validate it against your local copy.  It's possible that your missed some of it when copy/pasting it over.

 

You can also send me the key in question over private message (please don't post it in this thread), I'll be happy to validate it for you.

 

[4.2.3] "app failed to initialize" first time + crash

October 29, 2015 - 7:17am #20

Yes I still ge the error. I've used the new key format 4.2. Maybe I should try to generate a new key (if possible)? I'll let you know.

[4.2.3] "app failed to initialize" first time + crash

October 29, 2015 - 7:13am #19

Please try this:

1) Uninstall your app from the device 

2) Install your app from scratch

3) Set your device in Airplane mode

 

If you still get the error at this point, then your key is probably invalid. 

 

Also, make sure you are using the new key format that was released in 4.2.  The old keys in 4.0 will no longer work with 4.2+ SDKs

 

[4.2.3] "app failed to initialize" first time + crash

October 29, 2015 - 6:00am #18

So I've tried to delay the data loading by 1 second but I still have the "failed to initialize" problem. The SDK tells me it's an invalid key, but the key IS valid. It makes the error only the first time using the app after installing it. When I relaunch the app after it crashed, it works perfectly.

 

These are the traces I get :

 

2015-10-29 12:03:11.304 JeuDePiste[6426:2883288] QCARutils onCreate()

2015-10-29 12:03:11.304 JeuDePiste[6426:2883288] APPSTATUS_INIT_APP

2015-10-29 12:03:11.304 JeuDePiste[6426:2883288] APPSTATUS_INIT_QCAR

2015-10-29 12:03:11.305 JeuDePiste[6426:2883821] QCAR::setInitParameters

2015-10-29 12:03:11.329 JeuDePiste[6426:2883288] autofocus: 1, autofocusContinuous: 1, torch 1

2015-10-29 12:03:11.331 JeuDePiste[6426:2883288] ARParentVC: appearing

2015-10-29 12:03:11.331 JeuDePiste[6426:2883288] ARVC: Rotating to Portrait

2015-10-29 12:03:11.331 JeuDePiste[6426:2883288] ARVC: viewWillAppear

2015-10-29 12:03:11.332 JeuDePiste[6426:2883288] ARVC: viewWillAppear

2015-10-29 12:03:11.342 JeuDePiste[6426:2883821] QCAR SDK version 5.0.5

2015-10-29 12:03:11.395 JeuDePiste[6426:2883821] Invalid Key used. Please make sure you are using a valid Vuforia App Key

 

[4.2.3] "app failed to initialize" first time + crash

October 23, 2015 - 10:19am #17

Nope I hadn't seen it, thx, I'll try that.

[4.2.3] "app failed to initialize" first time + crash

October 23, 2015 - 10:00am #16

Did you attempt the workround I mention in this thread?  Even a small delay of a few ms between init and loading the datasets should be sufficent.

 

The issue was mostly resolved in 5.0, however due to concurrency limitations in the iOS framework, there will always be a slight chance of this issue occuring.

[4.2.3] "app failed to initialize" first time + crash

October 23, 2015 - 9:31am #15

I'm on iOS 8.3 and iPhone 6.

[4.2.3] "app failed to initialize" first time + crash

October 23, 2015 - 8:51am #14

What iOS device and OS version are you using?

[4.2.3] "app failed to initialize" first time + crash

October 23, 2015 - 2:28am #13

I've updated to Vuforia 5 and I'm still seeing this problem. Was the fix embedded in the sdk 5?

[4.2.3] "app failed to initialize" first time + crash

July 14, 2015 - 11:39am #12

Thanks, appreciate the suggesiton, will try it out!

[4.2.3] "app failed to initialize" first time + crash

July 14, 2015 - 9:20am #11

Hi

Unfortunatly I cannot comment on our next release date, however it is something we are activly working towards.

However as the issue was a concurrency issue with the underlying iOS frameworks, you may try delaying after calling QCAR init a second or two before loading any datasets.  This may give you a work around until the new SDK is available

Thanks

//mike

[4.2.3] "app failed to initialize" first time + crash

July 14, 2015 - 9:10am #10

(repeated post)

[4.2.3] "app failed to initialize" first time + crash

July 14, 2015 - 9:09am #9

Can you provide any guidance on expected release date of the next version, or alternatively if there will be a beta release that includes the fix? We have app ready to be released, this bug is the only thing holding us back - 

[4.2.3] "app failed to initialize" first time + crash

July 13, 2015 - 7:22am #8

Hi

 

Thank you for your offer, however we have identified the issue and a resolution will be included in an upcoming version of the SDK.

 

Thanks

//mike

[4.2.3] "app failed to initialize" first time + crash

July 11, 2015 - 6:10am #7

Hi,

 

I've tested on the Sample apps with my keys, and it works perfectly.

I tried to understand what's happening with my app, but I can't understand, I seem to make the same things as the sample app. Note that I upgraded to iOS8.3 and Xcode 6.4 and I still see the same problem on my app.

 

Any progress on this issue? Do I need to provide an app to reproduce the problem?

 

Thank you!

[4.2.3] "app failed to initialize" first time + crash

June 24, 2015 - 2:33pm #6

Hi

Thank you for the bug report, we are working to resolve the issue.

//mike

[4.2.3] "app failed to initialize" first time + crash

June 18, 2015 - 4:40pm #5

To compare against your app that was upgraded from 4.x beta, can you put your 4.2 key into an unmodified VuforiaSamples 4.2.3 sample app with 4.2.3 iOS SDK and see if the first run validates okay?

[4.2.3] "app failed to initialize" first time + crash

June 18, 2015 - 1:30am #4

In case that can help here are the exact traces I'm seeing.

Note that I made a test with a fake key (not valid), and I get the same error, but systematically (when I relaunch the app, it shows the same popup + crash), which makes sense.

When I'm using the valid key, I see this error only from time to time (and usually the first time I'm launching the app after a while (a day?)). If I'm relaunching the app just after the error, it always work. It looks to me like there's a cache involved in this error, maybe something is cached the first time the app crashes, and reused on the second launch, which allows the app to work this time. What I don't understand is that it looks like I'm the only one to have this problem.

Is there a way to turn on more debug traces on the SDK? I'm ready to help as much as I can, I can install debug SDK, or whatever is necesary to understand what's happening.

 

 

 

2015-06-18 10:12:21.066 JeuDePiste[2412:694523] Flurry: Starting session on Agent Version [Flurry_iOS_142_6.0.0] 

2015-06-18 10:12:29.379 JeuDePiste[2412:694523] initQCARParameters start

2015-06-18 10:12:29.380 JeuDePiste[2412:694523] initQCARParameters end

2015-06-18 10:12:29.388 JeuDePiste[2412:694523] ARParentVC: creating

2015-06-18 10:12:29.389 JeuDePiste[2412:694523] ARVC: loadView

2015-06-18 10:12:29.395 JeuDePiste[2412:694523] QCAR OpenGL flag: 2

2015-06-18 10:12:29.395 JeuDePiste[2412:694523] [EAGLContext setCurrentContext:context];

2015-06-18 10:12:29.395 JeuDePiste[2412:694523] ARVC: viewDidLoad

2015-06-18 10:12:29.588 JeuDePiste[2412:694523] QCARutils onCreate()

2015-06-18 10:12:29.588 JeuDePiste[2412:694523] APPSTATUS_INIT_APP

2015-06-18 10:12:29.589 JeuDePiste[2412:694523] APPSTATUS_INIT_QCAR

2015-06-18 10:12:29.589 JeuDePiste[2412:694523] initQCARParameters start

2015-06-18 10:12:29.589 JeuDePiste[2412:694523] initQCARParameters end

2015-06-18 10:12:29.618 JeuDePiste[2412:694523] autofocus: 1, autofocusContinuous: 1, torch 1

2015-06-18 10:12:29.619 JeuDePiste[2412:694523] ARParentVC: appearing

2015-06-18 10:12:29.619 JeuDePiste[2412:694523] ARVC: Rotating to Portrait

2015-06-18 10:12:29.620 JeuDePiste[2412:694523] ARVC: viewWillAppear

2015-06-18 10:12:29.620 JeuDePiste[2412:694523] ARVC: viewWillAppear

2015-06-18 10:12:29.671 JeuDePiste[2412:694981] INFO/AR(2412) 2015-06-18 10:12:29: QCAR SDK version 4.2.3

2015-06-18 10:12:29.687 JeuDePiste[2412:694523] EAGLView: layoutSubviews

2015-06-18 10:12:29.688 JeuDePiste[2412:694523] EAGLView: layoutSubviews

2015-06-18 10:12:29.694 JeuDePiste[2412:694523] ARVC: viewDidAppear

2015-06-18 10:12:29.694 JeuDePiste[2412:694523] QCARutils onResume()

2015-06-18 10:12:29.694 JeuDePiste[2412:694523] initQCARParameters start

2015-06-18 10:12:29.695 JeuDePiste[2412:694523] initQCARParameters end

2015-06-18 10:12:29.695 JeuDePiste[2412:694523] ARParentVC: appeared

2015-06-18 10:12:29.695 JeuDePiste[2412:694523] ARVC: viewDidAppear

2015-06-18 10:12:29.729 JeuDePiste[2412:694981] ERROR/AR(2412) 2015-06-18 10:12:29: Invalid Key used. Please make sure you are using a valid Vuforia App Key

[4.2.3] "app failed to initialize" first time + crash

June 18, 2015 - 1:05am #3

Hi, sorry for the delay, I didn't receive (or missed) the notification.

Yes I'm using the longer 4.2 key. This the line I'm calling (not exactly the same key) :

QCAR::setInitParameters(QCARFlags,"<key removed by moderator>"); //vuforia 4.2

[4.2.3] "app failed to initialize" first time + crash

May 21, 2015 - 6:55pm #2

The 4.0 keys are different than the 4.2 keys. Are you using the longer 4.2 license key in your app? You can find both keys in the License Manager.

Log in or register to post comments