2011-08-14 17 views
3

ランダムなGoogleアナリティクスのクラッシュの問題が発生しました。 この問題は、アプリケーションが起動してGANTrackerを初期化しようとしたときに発生します。 ランダムに発生し、再現するのが非常に困難です。私が逃したものがあるのか​​、あるいはGA初期の実装を避けるべきなのかなと思います。ランダムに起動時にiOS Google Analyticsがクラッシュする

#define GAKey @“UA-xxxxxx-x" 

static const NSInteger kGANDispatchPeriodSec = 10; 
[[GANTracker sharedTracker] startTrackerWithAccountID:GAKey 
             dispatchPeriod:kGANDispatchPeriodSec 
              delegate:nil]; 

私はこれを起動していますが、私のコードは、メソッドを使用して別の二次スレッドでいくつかの同期ネットワーク活動を行っている。

は、ここに私のGANTracker初期のコードです。

[NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil] 

そしてここでは、クラッシュログで、それは任意の提案がいただければ幸いです

-[GANTracker startTrackerWithAccountID:dispatchPeriod:delegate:] 
-[GANPersistentEventStore init] 
-[GANPersistentEventStore initWithPath:] 
-[GANPersistentEventStore setupStatements] 
-[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] 
+[NSException raise:format:arguments:] 

役に立てば幸い!

答えて

0

UPDATE: http://code.google.com/p/analytics-issues/issues/detail?id=162 http://code.google.com/mobile/analytics/download.html


:Googleの問題DBによると、この容疑者はGANTrackerのV1.4に固定されています

:アサート(OPとは異なる方法)に

NSInternalInconsistencyException: Error: Failed to prepare select session statement NSInternalInconsistencyException: Error: Failed to prepare update timestamp statement

スタックトレース:私は、これら2つのエラーのいずれかでGANTracker起動時に同じクラッシュを取得しています

- [GANTracker startTrackerWithAccountID:dispatchPeriod:delegate:] 
- [GANPersistentEventStore init] 
- [GANPersistentEventStore initWithPath:] 
- [GANPersistentEventStore initializeSession] 
- [NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] 

googleanalytics.sqlファイルを作成するとき、それはsqlite3_prepare_v2

中にこれがIOS4.3.3に私のユーザーのいくつかのために繰り返しているとも、私は同じを持ってIOS4.2.1 のためにランダムに発生し、未処理のエラーのように見えますOPとしての発送期間。私自身のシミュレータ/デバイスでこれを再現することはできません。

Google Analyticsがソースコードを公開して、sqliteファイルが作成できないか、prepare文が失敗したときにエラー処理を追加してもらいたいと思います。

GAフォーラムに投稿が同じエラーでここにあります:http://www.google.com/support/forum/p/Google%20Analytics/thread?tid=20107fa00aae4f08&hl=en

これはsqlite3_prepare_v2を使用して、同じ問題がある可能性があります。詳細については、 http://www.iphonedevsdk.com/forum/iphone-sdk-development/2540-sqlite-method-sqlite3_prepare_v2-failing.html

+0

おかげで、私はまだ任意の手掛かりを得ることはありませんが。 ... – user268743

+1

同様のクラッシュが発生しています。***キャッチされない例外 'NSInternalInconsistencyException'のためにアプリケーションを終了しています。理由: 'エラー:選択したcustom_var_cache文を準備できませんでした:'試しにラップしようとしました。このエラーが発生したユーザをログに記録してください –

+0

試してみてくださいあなたはエモンですか? GANTracker IOS startTrackerWithAccountIDチェックsqlite3のエラーを必要と\t http://code.google.com/p/analytics-issues/issues/detail?id=:それでもIOS5 –

関連する問題