Skip to content

Crashed: com.google.iid-token-operations (QOS: UTILITY) #402

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Ekko-System opened this issue Oct 23, 2017 · 42 comments
Closed

Crashed: com.google.iid-token-operations (QOS: UTILITY) #402

Ekko-System opened this issue Oct 23, 2017 · 42 comments

Comments

@Ekko-System
Copy link

Environment

  • Xcode version: 8.3.3
  • Firebase SDK version: 4.4.0

POD file

    pod 'Google-Mobile-Ads-SDK', '7.17.0'
    pod 'Firebase', '~> 4.4'
    pod 'FirebaseAnalytics', '~> 4.0'
    pod 'FirebaseRemoteConfig', '~> 2.0'
    pod 'ATInternet-iOS-ObjC-SDK', '~> 2.2'
    pod 'GoogleTagManager', '~> 6.0'

Resuted pod file Lock

- Firebase (4.4.0):
    - Firebase/Core (= 4.4.0)
  - Firebase/Core (4.4.0):
    - FirebaseAnalytics (= 4.0.4)
    - FirebaseCore (= 4.0.9)
  - FirebaseAnalytics (4.0.4):
    - FirebaseCore (~> 4.0)
    - FirebaseInstanceID (~> 2.0)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - nanopb (~> 0.3)
  - FirebaseCore (4.0.9):
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - nanopb (~> 0.3)
  - FirebaseInstanceID (2.0.5)
  - FirebaseRemoteConfig (2.0.3):
    - FirebaseAnalytics (~> 4.0)
    - FirebaseInstanceID (~> 2.0)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - Protobuf (~> 3.1)

The problem

It append on few of my user since, I have this crash on crashlytics.

Crashlytics indicate :
The stack trace indicates that heap corruption may have caused your app to crash. Memory corruption can occur pretty easily from freeing a dangling pointer, a thread race, or bad pointer arithmetic. The important thing to keep in mind is that the resulting crash may happen long after the initial corruption. As a result, the stack trace for this crash might not provide any clues to the location of the bug in your code. However, you can still fix memory issues with tools from Apple. For speedy resolution of memory corruption issues, we recommend regularly auditing your app with Xcode’s memory debugging facilities: Visual Memory Debugger, Zombies Instrument, Address Sanitizer, Thread Sanitizer and malloc diagnostics.

LOGS

Crashed: com.google.iid-token-operations (QOS: UTILITY)
0  libobjc.A.dylib                0x184dfc1a0 objc_retain + 16
1  Myapp                  0x101378534 +[FIRLoggerWrapper logWithLevel:withService:withCode:withMessage:withArgs:] + 4281264
2  CoreFoundation                 0x1858d36a0 __invoking___ + 144
3  CoreFoundation                 0x1857b2820 -[NSInvocation invoke] + 292
4  Myapp                  0x101398038 +[FIRInstanceIDLogger logWithLevel:withService:withCode:withMessage:withArgs:] + 4411060
5  Myapp                  0x1013981ec -[FIRInstanceIDLogger logFuncDebug:messageCode:msg:] + 4411496
6  Myapp                  0x10139a97c -[FIRInstanceIDTokenFetchOperation performTokenOperation] + 4421624
7  Foundation                     0x186298004 __NSOQSchedule_f + 404
8  libdispatch.dylib              0x185251048 _dispatch_client_callout + 16
9  libdispatch.dylib              0x1852593d4 _dispatch_continuation_pop$VARIANT$mp + 428
10 libdispatch.dylib              0x185257cd4 _dispatch_async_redirect_invoke$VARIANT$mp + 604
11 libdispatch.dylib              0x18525e1c8 _dispatch_root_queue_drain + 596
12 libdispatch.dylib              0x18525df10 _dispatch_worker_thread3 + 120
13 libsystem_pthread.dylib        0x1854f7130 _pthread_wqthread + 1268
14 libsystem_pthread.dylib        0x1854f6c30 start_wqthread + 4

Relevant Code:

I'm using a subclasse of NSOperation to execute this code:

- (void)main {
    @try {
      
        // Add test for min version
        self.remoteConfig = [FIRRemoteConfig remoteConfig];
        FIRRemoteConfigSettings *remoteConfigSettings = [[FIRRemoteConfigSettings alloc] initWithDeveloperModeEnabled:NO];
        self.remoteConfig.configSettings = remoteConfigSettings;
        
        [self.remoteConfig fetchWithExpirationDuration:5 completionHandler:^(FIRRemoteConfigFetchStatus status, NSError *error) {
            if (status == FIRRemoteConfigFetchStatusSuccess) {
                [self.remoteConfig activateFetched];
            }
            [self completeOperation];
        }];
        
    }
    @catch(...) {
        // Do not rethrow exceptions.
    }
}

I'm also using FirebaseAnalytics but I can't found in the logs witch part of my code generate this crash. Which seems to be internal.

@charlotteliang
Copy link
Contributor

charlotteliang commented Oct 23, 2017

Can you give more details how you set up the NSOperation to execute the RemoteConfig code? Is it a background operation? Are you running it on main queue?

It seems like that conflicts with what's inside InstanceID, which also uses NSOperation. But if you can provide more details that will help us to repo the case. Thank you!

@Ekko-System
Copy link
Author

Thanks for your reactivity,
The quality of service of the background operation is set to NSQualityOfServiceBackground
I don't run this on main queue, because I execute multiple operation in background.
Is it the problem ?

Here is the full class:

@interface OFMinumumVersionCheckOperation : NSOperation {
    BOOL executing;
    BOOL finished;
}

@property (nonatomic, strong) FIRRemoteConfig* remoteConfig;

@end
#import "OFMinumumVersionCheckOperation.h"

@implementation OFMinumumVersionCheckOperation

- (id)init {
    self = [super init];
    if (self) {
        executing = NO;
        finished = NO;
    }
    return self;
}

- (BOOL)isConcurrent {
    return YES;
}

- (BOOL)isExecuting {
    return executing;
}

- (BOOL)isFinished {
    return finished;
}

- (void)start {
    // Always check for cancellation before launching the task.
    if ([self isCancelled])
    {
        // Must move the operation to the finished state if it is canceled.
        [self willChangeValueForKey:@"isFinished"];
        finished = YES;
        [self didChangeValueForKey:@"isFinished"];
        return;
    }
    
    // If the operation is not canceled, begin executing the task.
    [self willChangeValueForKey:@"isExecuting"];
    [NSThread detachNewThreadSelector:@selector(main) toTarget:self withObject:nil];
    executing = YES;
    [self didChangeValueForKey:@"isExecuting"];
}


- (void)main {
    @try {
      
        // Add test for min version
        self.remoteConfig = [FIRRemoteConfig remoteConfig];
        FIRRemoteConfigSettings *remoteConfigSettings = [[FIRRemoteConfigSettings alloc] initWithDeveloperModeEnabled:NO];
        self.remoteConfig.configSettings = remoteConfigSettings;
      
        [self.remoteConfig fetchWithExpirationDuration:5 completionHandler:^(FIRRemoteConfigFetchStatus status, NSError *error) {
            if (status == FIRRemoteConfigFetchStatusSuccess) {
                [self.remoteConfig activateFetched];
            }
            [self completeOperation];
        }];
        
    }
    @catch(...) {
        // Do not rethrow exceptions.
    }
}

- (void)completeOperation {
    [self willChangeValueForKey:@"isFinished"];
    [self willChangeValueForKey:@"isExecuting"];
    
    executing = NO;
    finished = YES;
    
    [self didChangeValueForKey:@"isExecuting"];
    [self didChangeValueForKey:@"isFinished"];
}


@end

I have a manager with configure the nsoperationqueue like this:

self.migrationQueue = [[NSOperationQueue alloc] init];
        if ([self.migrationQueue respondsToSelector:@selector(setQualityOfService:)]) {
             self.migrationQueue.qualityOfService = NSQualityOfServiceBackground;
        }
        self.migrationQueue.maxConcurrentOperationCount = 1;

I had the operation this way:

 OFMinumumVersionCheckOperation* operation = [[OFMinumumVersionCheckOperation alloc] init];
               [self.migrationQueue addOperation:operation];

@lmdjj
Copy link

lmdjj commented Oct 24, 2017

This crash happened to me on Firebase/Core (4.3.0).

podfile.lock:

- Firebase/Core (4.3.0):
    - FirebaseAnalytics (= 4.0.4)
    - FirebaseCore (= 4.0.8)
  - Firebase/Crash (4.3.0):
    - Firebase/Core
    - FirebaseCrash (= 2.0.2)
  - Firebase/Performance (4.3.0):
    - Firebase/Core
    - FirebasePerformance (= 1.0.6)
  - Firebase/RemoteConfig (4.3.0):
    - Firebase/Core
    - FirebaseRemoteConfig (= 2.0.3)
  - FirebaseAnalytics (4.0.4):
    - FirebaseCore (~> 4.0)
    - FirebaseInstanceID (~> 2.0)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - nanopb (~> 0.3)
  - FirebaseCore (4.0.8):
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - nanopb (~> 0.3)
  - FirebaseCrash (2.0.2):
    - FirebaseAnalytics (~> 4.0)
    - FirebaseInstanceID (~> 2.0)
    - GoogleToolboxForMac/Logger (~> 2.1)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - Protobuf (~> 3.1)
  - FirebaseInstanceID (2.0.4)
  - FirebasePerformance (1.0.6):
    - FirebaseAnalytics (~> 4.0)
    - FirebaseInstanceID (~> 2.0)
    - GoogleToolboxForMac/Logger (~> 2.1)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - GTMSessionFetcher/Core (~> 1.1)
    - Protobuf (~> 3.1)
  - FirebaseRemoteConfig (2.0.3):
    - FirebaseAnalytics (~> 4.0)
    - FirebaseInstanceID (~> 2.0)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - Protobuf (~> 3.1)

Edit:
Sorry I can not post a stacktrace, but I am not writing to the RemoteConfig from a background thread. The call to FIRLoggerWrapper logWithLevel:withService:withCode:withMessage:withArgs: thats crashing is called from a background thread tho.

@ogres
Copy link

ogres commented Oct 24, 2017

I have the same issue, but I am using Firebase only from main queue.

@morganchen12
Copy link
Contributor

If you're having the same issue, please post stack traces as well--the nature of this crash means we won't necessarily be able to diagnose it from a single stack trace. If you're able to reproduce it locally, please try running your project with Xcode's built-in diagnostic tools enabled (NSZombies, asan, tsan), and post any traces here as well.

Also note it's not safe to write to the FIRRemoteConfig shared instance from a background thread, as the FIRRemoteConfig class is not thread-safe.

@ogres
Copy link

ogres commented Oct 24, 2017

I cannot reproduce it locally, but here is a stack-trace of threads.

Crashed: com.google.iid-token-operations (QOS: UTILITY)
0  libobjc.A.dylib                0x1843201a0 objc_retain + 16
1  App                            0x10489b6cc +[FIRLoggerWrapper logWithLevel:withService:withCode:withMessage:withArgs:] + 4304500428
2  CoreFoundation                 0x184df76a0 __invoking___ + 144
3  CoreFoundation                 0x184cd6820 -[NSInvocation invoke] + 292
4  App                            0x1048bb1d0 +[FIRInstanceIDLogger logWithLevel:withService:withCode:withMessage:withArgs:] + 4304630224
5  App                            0x1048bb384 -[FIRInstanceIDLogger logFuncDebug:messageCode:msg:] + 4304630660
6  App                            0x1048bdb14 -[FIRInstanceIDTokenFetchOperation performTokenOperation] + 4304640788
7  Foundation                     0x1857bc004 __NSOQSchedule_f + 404
8  libdispatch.dylib              0x184775048 _dispatch_client_callout + 16
9  libdispatch.dylib              0x18477d3d4 _dispatch_continuation_pop$VARIANT$mp + 428
10 libdispatch.dylib              0x18477bcd4 _dispatch_async_redirect_invoke$VARIANT$mp + 604
11 libdispatch.dylib              0x1847821c8 _dispatch_root_queue_drain + 596
12 libdispatch.dylib              0x184781f10 _dispatch_worker_thread3 + 120
13 libsystem_pthread.dylib        0x184a1b130 _pthread_wqthread + 1268
14 libsystem_pthread.dylib        0x184a1ac30 start_wqthread + 4
com.apple.main-thread
0  libsystem_kernel.dylib         0x1848e8bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x1848e8a3c mach_msg + 72
2  CoreFoundation                 0x184d97ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x184d958b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x184cb62d8 CFRunLoopRunSpecific + 436
5  GraphicsServices               0x186b47f84 GSEventRunModal + 100
6  UIKit                          0x18e262880 UIApplicationMain + 208
7  App                            0x1043e2d08 main (main.m:13)
8  libdyld.dylib                  0x1847da56c start + 4
com.google.GoogleConfigService.analytics
0  libsystem_kernel.dylib         0x1848e8bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x1848e8a3c mach_msg + 72
2  libdispatch.dylib              0x18477502c _dispatch_send_wakeup_runloop_thread + 68
3  libdispatch.dylib              0x18477e934 _dispatch_runloop_queue_poke + 228
4  App                            0x1048d1fb4 FIRRemoteConfigCompleteUserProperties + 4304723892
5  libdispatch.dylib              0x184775088 _dispatch_call_block_and_release + 24
6  libdispatch.dylib              0x184775048 _dispatch_client_callout + 16
7  libdispatch.dylib              0x18477ee48 _dispatch_queue_serial_drain$VARIANT$mp + 528
8  libdispatch.dylib              0x18477f7d8 _dispatch_queue_invoke$VARIANT$mp + 340
9  libdispatch.dylib              0x184780200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 400
10 libdispatch.dylib              0x1847884a0 _dispatch_workloop_worker_thread$VARIANT$mp + 644
11 libsystem_pthread.dylib        0x184a1afe0 _pthread_wqthread + 932
12 libsystem_pthread.dylib        0x184a1ac30 start_wqthread + 4
com.google.GoogleConfigService.FIRRemoteConfig
0  Protobuf                       0x10604a4a0 -[GPBFileDescriptor initWithPackage:objcPrefix:syntax:] + 170
1  Protobuf                       0x10607790c +[GPBMessage initialize] + 124
2  libobjc.A.dylib                0x18430543c CALLING_SOME_+initialize_METHOD + 24
3  libobjc.A.dylib                0x184305804 _class_initialize + 296
4  libobjc.A.dylib                0x184305730 _class_initialize + 84
5  libobjc.A.dylib                0x18430d744 lookUpImpOrForward + 228
6  libobjc.A.dylib                0x184318758 _objc_msgSend_uncached + 56
7  App                            0x1048dcac8 -[RCNConfigSettings nextRequestWithUserProperties:fetchedConfig:] + 4304767688
8  App                            0x1048daa7c -[RCNConfigFetch fetchWithUserProperties:completionHandler:] + 4304759420
9  libdispatch.dylib              0x184775088 _dispatch_call_block_and_release + 24
10 libdispatch.dylib              0x184775048 _dispatch_client_callout + 16
11 libdispatch.dylib              0x18477ee48 _dispatch_queue_serial_drain$VARIANT$mp + 528
12 libdispatch.dylib              0x18477f7d8 _dispatch_queue_invoke$VARIANT$mp + 340
13 libdispatch.dylib              0x184780200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 400
14 libdispatch.dylib              0x1847884a0 _dispatch_workloop_worker_thread$VARIANT$mp + 644
15 libsystem_pthread.dylib        0x184a1afe0 _pthread_wqthread + 932
16 libsystem_pthread.dylib        0x184a1ac30 start_wqthread + 4
GAIThread
0  libsystem_kernel.dylib         0x1848e8bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x1848e8a3c mach_msg + 72
2  CoreFoundation                 0x184d97ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x184d958b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x184cb62d8 CFRunLoopRunSpecific + 436
5  Foundation                     0x1856de6e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6  Foundation                     0x18573062c -[NSRunLoop(NSRunLoop) run] + 88
7  App                            0x104689ebc +[GAI threadMain:] + 4302331580
8  Foundation                     0x1857df860 __NSThread__start__ + 996
9  libsystem_pthread.dylib        0x184a1c32c _pthread_body + 308
10 libsystem_pthread.dylib        0x184a1c1f8 _pthread_body + 310
11 libsystem_pthread.dylib        0x184a1ac38 thread_start + 4

@Formerly
Copy link

I also have this problem, would like to know when to repair?

@Ekko-System
Copy link
Author

I can change the main of the operation like this :
But i'm not sure that the completion operation will be on the good thread can't find a way to be back on the thread of the operation... Any advise ?

- (void)main {
    @try {
        dispatch_async(dispatch_get_main_queue(), ^{
            // Add test for min version
            self.remoteConfig = [FIRRemoteConfig remoteConfig];
            FIRRemoteConfigSettings *remoteConfigSettings = [[FIRRemoteConfigSettings alloc] initWithDeveloperModeEnabled:NO];
            self.remoteConfig.configSettings = remoteConfigSettings;
           
            [self.remoteConfig fetchWithExpirationDuration:5 completionHandler:^(FIRRemoteConfigFetchStatus status, NSError *error) {
                if (status == FIRRemoteConfigFetchStatusSuccess) {
                    [self.remoteConfig activateFetched];
                }
                [self completeOperation];
            }];
        });
        
    }
    @catch(...) {
        // Do not rethrow exceptions.
    }
}

@morganchen12
Copy link
Contributor

@mgstudio the completion handler is always executed on the main queue, even if you call one of the fetch methods from a background queue.

@Ekko-System
Copy link
Author

@morganchen12 does this solution to use GCD seems the correct solution for you ?

@charlotteliang
Copy link
Contributor

@mgstudio Can you provide the full stack trace logs? I'm trying to figure out whether it's exactly the same as @ogres.

@morganchen12
Copy link
Contributor

@mgstudio Yes, that looks correct.

@Ekko-System
Copy link
Author

Hi,

Here is an example of full logs from crash, I hope this will help ;) :

#7. Crashed: com.google.iid-token-operations (QOS: UTILITY)
0  libobjc.A.dylib                0x1851c01a0 objc_retain + 16
1  AppID                  0x10176b940 +[FIRLoggerWrapper logWithLevel:withService:withCode:withMessage:withArgs:] + 4281264
2  CoreFoundation                 0x185c976a0 __invoking___ + 144
3  CoreFoundation                 0x185b76820 -[NSInvocation invoke] + 292
4  AppID                  0x10178bc1c +[FIRInstanceIDLogger logWithLevel:withService:withCode:withMessage:withArgs:] + 4413068
5  AppID                  0x10178bdd0 -[FIRInstanceIDLogger logFuncDebug:messageCode:msg:] + 4413504
6  AppID                  0x10178e560 -[FIRInstanceIDTokenFetchOperation performTokenOperation] + 4423632
7  Foundation                     0x18665c004 __NSOQSchedule_f + 404
8  libdispatch.dylib              0x185615048 _dispatch_client_callout + 16
9  libdispatch.dylib              0x18561d3d4 _dispatch_continuation_pop$VARIANT$mp + 428
10 libdispatch.dylib              0x18561bcd4 _dispatch_async_redirect_invoke$VARIANT$mp + 604
11 libdispatch.dylib              0x1856221c8 _dispatch_root_queue_drain + 596
12 libdispatch.dylib              0x185621f10 _dispatch_worker_thread3 + 120
13 libsystem_pthread.dylib        0x1858bb130 _pthread_wqthread + 1268
14 libsystem_pthread.dylib        0x1858bac30 start_wqthread + 4

--

#0. com.apple.main-thread
0  libsystem_kernel.dylib         0x185788bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x185788a3c mach_msg + 72
2  CoreFoundation                 0x185c37ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x185c358b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x185b562d8 CFRunLoopRunSpecific + 436
5  GraphicsServices               0x1879e7f84 GSEventRunModal + 100
6  UIKit                          0x18f103880 UIApplicationMain + 208
7  AppID                  0x10104f6b8 main (main.m:15)
8  libdyld.dylib                  0x18567a56c start + 4
#1. Thread
0  libsystem_kernel.dylib         0x1857a9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1858bafb0 _pthread_wqthread + 884
2  libsystem_pthread.dylib        0x1858bac30 start_wqthread + 4
#2. com.google.fira.worker
0  libsqlite3.dylib               0x18610edec (null) + 7056
1  libsqlite3.dylib               0x1860e1ae4 (null) + 25228
2  libsqlite3.dylib               0x1860e1ae4 (null) + 25228
3  libsqlite3.dylib               0x1860e1194 (null) + 22844
4  libsqlite3.dylib               0x1860ae204 (null) + 3556
5  libsqlite3.dylib               0x1860d9f74 (null) + 62092
6  libsqlite3.dylib               0x1860cbb7c sqlite3_step + 3732
7  libsqlite3.dylib               0x186095d68 sqlite3_exec + 536
8  AppID                  0x1017195dc -[FIRASqliteStore endTransaction] + 3944524
9  AppID                  0x10171929c -[FIRASqliteStore performTransaction:] + 3943692
10 AppID                  0x1017359d0 -[FIRAMeasurement writeEventOnWorkerQueue:] + 4060224
11 AppID                  0x1017352cc -[FIRAMeasurement handleEventOnWorkerQueue:] + 4058428
12 AppID                  0x101746fc4 __52-[FIRAScheduler scheduleOnWorkerQueueBlockID:block:]_block_invoke + 4131380
13 libdispatch.dylib              0x185615088 _dispatch_call_block_and_release + 24
14 libdispatch.dylib              0x185615048 _dispatch_client_callout + 16
15 libdispatch.dylib              0x18561ee48 _dispatch_queue_serial_drain$VARIANT$mp + 528
16 libdispatch.dylib              0x18561f7d8 _dispatch_queue_invoke$VARIANT$mp + 340
17 libdispatch.dylib              0x185620200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp + 400
18 libdispatch.dylib              0x1856284a0 _dispatch_workloop_worker_thread$VARIANT$mp + 644
19 libsystem_pthread.dylib        0x1858bafe0 _pthread_wqthread + 932
20 libsystem_pthread.dylib        0x1858bac30 start_wqthread + 4
#3. Thread
0  libsystem_kernel.dylib         0x1857a9150 __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1858bed40 _pthread_cond_wait$VARIANT$mp + 640
2  libc++.1.dylib                 0x185126f34 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 96
3  JavaScriptCore                 0x18ced4d6c std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 124
4  JavaScriptCore                 0x18ced4c40 std::__1::cv_status std::__1::condition_variable_any::wait_until<std::__1::unique_lock<bmalloc::Mutex>, std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<bmalloc::Mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 108
5  JavaScriptCore                 0x18ced4ac4 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 280
6  JavaScriptCore                 0x18ced4dbc void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 44
7  libsystem_pthread.dylib        0x1858bc32c _pthread_body + 308
8  libsystem_pthread.dylib        0x1858bc1f8 _pthread_body + 310
9  libsystem_pthread.dylib        0x1858bac38 thread_start + 4
#4. Thread
0  libsystem_kernel.dylib         0x1857a9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1858bafb0 _pthread_wqthread + 884
2  libsystem_pthread.dylib        0x1858bac30 start_wqthread + 4
#5. com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x185788bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x185788a3c mach_msg + 72
2  CoreFoundation                 0x185c37ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x185c358b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x185b562d8 CFRunLoopRunSpecific + 436
5  Foundation                     0x18657e6e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6  Foundation                     0x18659dafc -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7  UIKit                          0x18fc4f02c -[UIEventFetcher threadMain] + 136
8  Foundation                     0x18667f860 __NSThread__start__ + 996
9  libsystem_pthread.dylib        0x1858bc32c _pthread_body + 308
10 libsystem_pthread.dylib        0x1858bc1f8 _pthread_body + 310
11 libsystem_pthread.dylib        0x1858bac38 thread_start + 4
#6. Thread
0  libsystem_kernel.dylib         0x1857a9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1858bafb0 _pthread_wqthread + 884
2  libsystem_pthread.dylib        0x1858bac30 start_wqthread + 4
#7. Crashed: com.google.iid-token-operations (QOS: UTILITY)
0  libobjc.A.dylib                0x1851c01a0 objc_retain + 16
1  AppID                  0x10176b940 +[FIRLoggerWrapper logWithLevel:withService:withCode:withMessage:withArgs:] + 4281264
2  CoreFoundation                 0x185c976a0 __invoking___ + 144
3  CoreFoundation                 0x185b76820 -[NSInvocation invoke] + 292
4  AppID                  0x10178bc1c +[FIRInstanceIDLogger logWithLevel:withService:withCode:withMessage:withArgs:] + 4413068
5  AppID                  0x10178bdd0 -[FIRInstanceIDLogger logFuncDebug:messageCode:msg:] + 4413504
6  AppID                  0x10178e560 -[FIRInstanceIDTokenFetchOperation performTokenOperation] + 4423632
7  Foundation                     0x18665c004 __NSOQSchedule_f + 404
8  libdispatch.dylib              0x185615048 _dispatch_client_callout + 16
9  libdispatch.dylib              0x18561d3d4 _dispatch_continuation_pop$VARIANT$mp + 428
10 libdispatch.dylib              0x18561bcd4 _dispatch_async_redirect_invoke$VARIANT$mp + 604
11 libdispatch.dylib              0x1856221c8 _dispatch_root_queue_drain + 596
12 libdispatch.dylib              0x185621f10 _dispatch_worker_thread3 + 120
13 libsystem_pthread.dylib        0x1858bb130 _pthread_wqthread + 1268
14 libsystem_pthread.dylib        0x1858bac30 start_wqthread + 4
#8. com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x185788bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x185788a3c mach_msg + 72
2  CoreFoundation                 0x185c37ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x185c358b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x185b562d8 CFRunLoopRunSpecific + 436
5  CFNetwork                      0x1862bfb40 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404
6  Foundation                     0x18667f860 __NSThread__start__ + 996
7  libsystem_pthread.dylib        0x1858bc32c _pthread_body + 308
8  libsystem_pthread.dylib        0x1858bc1f8 _pthread_body + 310
9  libsystem_pthread.dylib        0x1858bac38 thread_start + 4
#9. Thread
0  libsystem_kernel.dylib         0x1857a9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1858bafb0 _pthread_wqthread + 884
2  libsystem_pthread.dylib        0x1858bac30 start_wqthread + 4
#10. Thread
0  libsystem_kernel.dylib         0x1857a9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1858bafb0 _pthread_wqthread + 884
2  libsystem_pthread.dylib        0x1858bac30 start_wqthread + 4
#11. com.twitter.crashlytics.ios.MachExceptionServer
0  AppID                  0x1015e7e90 CLSProcessRecordAllThreads + 2693376
1  AppID                  0x1015e7e90 CLSProcessRecordAllThreads + 2693376
2  AppID                  0x1015e7d4c CLSProcessRecordAllThreads + 2693052
3  AppID                  0x1015d850c CLSHandler + 2629500
4  AppID                  0x1015d34b0 CLSMachExceptionServer + 2608928
5  libsystem_pthread.dylib        0x1858bc32c _pthread_body + 308
6  libsystem_pthread.dylib        0x1858bc1f8 _pthread_body + 310
7  libsystem_pthread.dylib        0x1858bac38 thread_start + 4
#12. Thread
0  libsystem_pthread.dylib        0x1858bac2c start_wqthread + 122
#13. Thread
0  libsystem_kernel.dylib         0x1857a9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1858bafb0 _pthread_wqthread + 884
2  libsystem_pthread.dylib        0x1858bac30 start_wqthread + 4
#14. Thread
0  libsystem_kernel.dylib         0x1857a9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1858bb144 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x1858bac30 start_wqthread + 4
#15. AVAudioSession Notify Thread
0  libsystem_kernel.dylib         0x185788bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x185788a3c mach_msg + 72
2  CoreFoundation                 0x185c37ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x185c358b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x185b562d8 CFRunLoopRunSpecific + 436
5  AVFAudio                       0x18b41f774 GenericRunLoopThread::Entry(void*) + 164
6  AVFAudio                       0x18b44a018 CAPThread::Entry(CAPThread*) + 84
7  libsystem_pthread.dylib        0x1858bc32c _pthread_body + 308
8  libsystem_pthread.dylib        0x1858bc1f8 _pthread_body + 310
9  libsystem_pthread.dylib        0x1858bac38 thread_start + 4
#16. WTF::AutomaticThread
0  libsystem_kernel.dylib         0x1857a9150 __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1858bed40 _pthread_cond_wait$VARIANT$mp + 640
2  JavaScriptCore                 0x18c59c91c WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 148
3  JavaScriptCore                 0x18ceba834 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2208
4  JavaScriptCore                 0x18ca575c8 bool WTF::ConditionBase::waitUntil<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 172
5  JavaScriptCore                 0x18cea7b38 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 204
6  JavaScriptCore                 0x18c598ed0 WTF::threadEntryPoint(void*) + 120
7  JavaScriptCore                 0x18c598e10 WTF::wtfThreadEntryPoint(void*) + 84
8  libsystem_pthread.dylib        0x1858bc32c _pthread_body + 308
9  libsystem_pthread.dylib        0x1858bc1f8 _pthread_body + 310
10 libsystem_pthread.dylib        0x1858bac38 thread_start + 4
#17. GAIThread
0  libsystem_kernel.dylib         0x185788bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x185788a3c mach_msg + 72
2  CoreFoundation                 0x185c37ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x185c358b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x185b562d8 CFRunLoopRunSpecific + 436
5  Foundation                     0x18657e6e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6  Foundation                     0x1865d062c -[NSRunLoop(NSRunLoop) run] + 88
7  AppID                  0x10135c704 +[GAI threadMain:] + 24948
8  Foundation                     0x18667f860 __NSThread__start__ + 996
9  libsystem_pthread.dylib        0x1858bc32c _pthread_body + 308
10 libsystem_pthread.dylib        0x1858bc1f8 _pthread_body + 310
11 libsystem_pthread.dylib        0x1858bac38 thread_start + 4

@eduarenas
Copy link

Getting same error. Here's my stack trace in case that helps:

#13. Crashed: com.google.iid-token-operations (QOS: UTILITY)
0  libobjc.A.dylib                0x1810d01a0 objc_retain + 16
1  GC                             0x100d30fd4 +[FIRLoggerWrapper logWithLevel:withService:withCode:withMessage:withArgs:] + 4320399316
2  CoreFoundation                 0x181ba76a0 __invoking___ + 144
3  CoreFoundation                 0x181a86820 -[NSInvocation invoke] + 292
4  GC                             0x100d512b0 +[FIRInstanceIDLogger logWithLevel:withService:withCode:withMessage:withArgs:] + 4320531120
5  GC                             0x100d51464 -[FIRInstanceIDLogger logFuncDebug:messageCode:msg:] + 4320531556
6  GC                             0x100d53bf4 -[FIRInstanceIDTokenFetchOperation performTokenOperation] + 4320541684
7  Foundation                     0x18256c004 __NSOQSchedule_f + 404
8  libdispatch.dylib              0x181525048 _dispatch_client_callout + 16
9  libdispatch.dylib              0x18152d3d4 _dispatch_continuation_pop$VARIANT$mp + 428
10 libdispatch.dylib              0x18152bcd4 _dispatch_async_redirect_invoke$VARIANT$mp + 604
11 libdispatch.dylib              0x1815321c8 _dispatch_root_queue_drain + 596
12 libdispatch.dylib              0x181531f10 _dispatch_worker_thread3 + 120
13 libsystem_pthread.dylib        0x1817cb130 _pthread_wqthread + 1268
14 libsystem_pthread.dylib        0x1817cac30 start_wqthread + 4

--

#0. com.apple.main-thread
0  libsystem_kernel.dylib         0x181698bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x181698a3c mach_msg + 72
2  CoreFoundation                 0x181b47ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x181b458b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x181a662d8 CFRunLoopRunSpecific + 436
5  GraphicsServices               0x1838f7f84 GSEventRunModal + 100
6  UIKit                          0x18b013880 UIApplicationMain + 208
7  GC                             0x100603b28 main (main.m:17)
8  libdyld.dylib                  0x18158a56c start + 4

#1. Thread
0  libsystem_kernel.dylib         0x1816b9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1817cafb0 _pthread_wqthread + 884
2  libsystem_pthread.dylib        0x1817cac30 start_wqthread + 4

#2. Thread
0  libsystem_kernel.dylib         0x1816b9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1817cafb0 _pthread_wqthread + 884
2  libsystem_pthread.dylib        0x1817cac30 start_wqthread + 4

#3. Thread
0  libsystem_pthread.dylib        0x1817cac2c start_wqthread + 122

#4. com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x181698bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x181698a3c mach_msg + 72
2  CoreFoundation                 0x181b47ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x181b458b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x181a662d8 CFRunLoopRunSpecific + 436
5  Foundation                     0x18248e6e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6  Foundation                     0x1824adafc -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7  UIKit                          0x18bb5f02c -[UIEventFetcher threadMain] + 136
8  Foundation                     0x18258f860 __NSThread__start__ + 996
9  libsystem_pthread.dylib        0x1817cc32c _pthread_body + 308
10 libsystem_pthread.dylib        0x1817cc1f8 _pthread_body + 310
11 libsystem_pthread.dylib        0x1817cac38 thread_start + 4

#5. com.twitter.crashlytics.ios.MachExceptionServer
0  GC                             0x100c9d5e8 CLSProcessRecordAllThreads + 4319794664
1  GC                             0x100c9d5e8 CLSProcessRecordAllThreads + 4319794664
2  GC                             0x100c9d4a4 CLSProcessRecordAllThreads + 4319794340
3  GC                             0x100c8d270 CLSHandler + 4319728240
4  GC                             0x100c88284 CLSMachExceptionServer + 4319707780
5  libsystem_pthread.dylib        0x1817cc32c _pthread_body + 308
6  libsystem_pthread.dylib        0x1817cc1f8 _pthread_body + 310
7  libsystem_pthread.dylib        0x1817cac38 thread_start + 4

#6. Thread
0  libsystem_kernel.dylib         0x1816b9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1817cb144 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x1817cac30 start_wqthread + 4

#7. Thread
0  libsystem_kernel.dylib         0x1816b9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1817cb144 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x1817cac30 start_wqthread + 4

#8. Thread
0  libsystem_pthread.dylib        0x1817cac2c start_wqthread + 122

#9. Thread
0  libsystem_kernel.dylib         0x181698bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x181698a3c mach_msg + 72
2  CoreFoundation                 0x181b47ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x181b458b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x181a662d8 CFRunLoopRunSpecific + 436
5  Foundation                     0x18248e6e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6  Rollbar                        0x1028df700 -[RollbarThread run] + 252
7  Foundation                     0x18258f860 __NSThread__start__ + 996
8  libsystem_pthread.dylib        0x1817cc32c _pthread_body + 308
9  libsystem_pthread.dylib        0x1817cc1f8 _pthread_body + 310
10 libsystem_pthread.dylib        0x1817cac38 thread_start + 4

#10. com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x181698bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x181698a3c mach_msg + 72
2  CoreFoundation                 0x181b47ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x181b458b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x181a662d8 CFRunLoopRunSpecific + 436
5  CFNetwork                      0x1821cfb40 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404
6  Foundation                     0x18258f860 __NSThread__start__ + 996
7  libsystem_pthread.dylib        0x1817cc32c _pthread_body + 308
8  libsystem_pthread.dylib        0x1817cc1f8 _pthread_body + 310
9  libsystem_pthread.dylib        0x1817cac38 thread_start + 4

#11. Thread
0  libsystem_kernel.dylib         0x1816b9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1817cb144 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x1817cac30 start_wqthread + 4

#12. Thread
0  libsystem_kernel.dylib         0x1816b9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1817cafb0 _pthread_wqthread + 884
2  libsystem_pthread.dylib        0x1817cac30 start_wqthread + 4

#13. Crashed: com.google.iid-token-operations (QOS: UTILITY)
0  libobjc.A.dylib                0x1810d01a0 objc_retain + 16
1  GC                             0x100d30fd4 +[FIRLoggerWrapper logWithLevel:withService:withCode:withMessage:withArgs:] + 4320399316
2  CoreFoundation                 0x181ba76a0 __invoking___ + 144
3  CoreFoundation                 0x181a86820 -[NSInvocation invoke] + 292
4  GC                             0x100d512b0 +[FIRInstanceIDLogger logWithLevel:withService:withCode:withMessage:withArgs:] + 4320531120
5  GC                             0x100d51464 -[FIRInstanceIDLogger logFuncDebug:messageCode:msg:] + 4320531556
6  GC                             0x100d53bf4 -[FIRInstanceIDTokenFetchOperation performTokenOperation] + 4320541684
7  Foundation                     0x18256c004 __NSOQSchedule_f + 404
8  libdispatch.dylib              0x181525048 _dispatch_client_callout + 16
9  libdispatch.dylib              0x18152d3d4 _dispatch_continuation_pop$VARIANT$mp + 428
10 libdispatch.dylib              0x18152bcd4 _dispatch_async_redirect_invoke$VARIANT$mp + 604
11 libdispatch.dylib              0x1815321c8 _dispatch_root_queue_drain + 596
12 libdispatch.dylib              0x181531f10 _dispatch_worker_thread3 + 120
13 libsystem_pthread.dylib        0x1817cb130 _pthread_wqthread + 1268
14 libsystem_pthread.dylib        0x1817cac30 start_wqthread + 4

#14. Thread
0  libsystem_kernel.dylib         0x1816b9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1817cb144 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x1817cac30 start_wqthread + 4

#15. com.apple.CFStream.LegacyThread
0  libsystem_kernel.dylib         0x181698bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x181698a3c mach_msg + 72
2  CoreFoundation                 0x181b47ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x181b458b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x181a662d8 CFRunLoopRunSpecific + 436
5  CoreFoundation                 0x181b56f28 _legacyStreamRunLoop_workThread + 272
6  libsystem_pthread.dylib        0x1817cc32c _pthread_body + 308
7  libsystem_pthread.dylib        0x1817cc1f8 _pthread_body + 310
8  libsystem_pthread.dylib        0x1817cac38 thread_start + 4

#16. GAIThread
0  libsystem_kernel.dylib         0x181698bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x181698a3c mach_msg + 72
2  CoreFoundation                 0x181b47ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x181b458b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x181a662d8 CFRunLoopRunSpecific + 436
5  Foundation                     0x18248e6e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6  Foundation                     0x1824e062c -[NSRunLoop(NSRunLoop) run] + 88
7  GC                             0x100c681e8 +[GAI threadMain:] + 4319576552
8  Foundation                     0x18258f860 __NSThread__start__ + 996
9  libsystem_pthread.dylib        0x1817cc32c _pthread_body + 308
10 libsystem_pthread.dylib        0x1817cc1f8 _pthread_body + 310
11 libsystem_pthread.dylib        0x1817cac38 thread_start + 4

#17. com.apple.CFSocket.private
0  libsystem_kernel.dylib         0x1816b9570 __select + 8
1  CoreFoundation                 0x181b5021c __CFSocketManager + 644
2  libsystem_pthread.dylib        0x1817cc32c _pthread_body + 308
3  libsystem_pthread.dylib        0x1817cc1f8 _pthread_body + 310
4  libsystem_pthread.dylib        0x1817cac38 thread_start + 4

#18. writeSync
0  libsystem_kernel.dylib         0x181698bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x181698a3c mach_msg + 72
2  CoreFoundation                 0x181b47ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x181b458b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x181a662d8 CFRunLoopRunSpecific + 436
5  Foundation                     0x18248e6e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6  Foundation                     0x1824e062c -[NSRunLoop(NSRunLoop) run] + 88
7  GC                             0x10074b8fc -[GCAPISynchronizer runSynchronizerThread] (GCAPISynchronizer.m:902)
8  CoreFoundation                 0x181ba76a0 __invoking___ + 144
9  CoreFoundation                 0x181a86820 -[NSInvocation invoke] + 292
10 GC                             0x100774500 -[Threadable runInAutorelease] (GCThreadUtil.m:84)
11 Foundation                     0x18258f860 __NSThread__start__ + 996
12 libsystem_pthread.dylib        0x1817cc32c _pthread_body + 308
13 libsystem_pthread.dylib        0x1817cc1f8 _pthread_body + 310
14 libsystem_pthread.dylib        0x1817cac38 thread_start + 4

#19. Thread
0  libsystem_kernel.dylib         0x1816b9150 __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x1817ced40 _pthread_cond_wait$VARIANT$mp + 640
2  libc++.1.dylib                 0x181037f34 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 96
3  JavaScriptCore                 0x188de4d6c std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 124
4  JavaScriptCore                 0x188de4c40 std::__1::cv_status std::__1::condition_variable_any::wait_until<std::__1::unique_lock<bmalloc::Mutex>, std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<bmalloc::Mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 108
5  JavaScriptCore                 0x188de4ac4 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 280
6  JavaScriptCore                 0x188de4dbc void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 44
7  libsystem_pthread.dylib        0x1817cc32c _pthread_body + 308
8  libsystem_pthread.dylib        0x1817cc1f8 _pthread_body + 310
9  libsystem_pthread.dylib        0x1817cac38 thread_start + 4

#20. WebThread
0  libsystem_kernel.dylib         0x181698bc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x181698a3c mach_msg + 72
2  CoreFoundation                 0x181b47ce4 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x181b458b0 __CFRunLoopRun + 1424
4  CoreFoundation                 0x181a662d8 CFRunLoopRunSpecific + 436
5  WebCore                        0x1898b5ac4 RunWebThread(void*) + 456
6  libsystem_pthread.dylib        0x1817cc32c _pthread_body + 308
7  libsystem_pthread.dylib        0x1817cc1f8 _pthread_body + 310
8  libsystem_pthread.dylib        0x1817cac38 thread_start + 4

#21. Thread
0  libsystem_pthread.dylib        0x1817cac2c start_wqthread + 122

#22. Thread
0  libsystem_kernel.dylib         0x1816b9dbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x1817cb144 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x1817cac30 start_wqthread + 4

@charlotteliang
Copy link
Contributor

Thanks everyone. We have a fix in next release that is coming out soon.

@vgorloff
Copy link

vgorloff commented Nov 9, 2017

Same on my side :0. Wasn't doing anything special.

# Date: 2017-10-31T04:37:00Z
# OS Version: 11.0.3 (15A432)
# Device: iPhone 7
# RAM Free: 5.9%
# Disk Free: 79.2%

#7. Crashed: com.google.iid-token-operations (QOS: UTILITY)
0  libobjc.A.dylib                0x1813401a0 objc_retain
1  Nebenan3P                      0x1048494ec +[FIRLoggerWrapper logWithLevel:withService:withCode:withMessage:withArgs:]
2  CoreFoundation                 0x181e176a0 __invoking___
3  CoreFoundation                 0x181cf6820 -[NSInvocation invoke]
4  Nebenan3P                      0x10485f95c +[FIRInstanceIDLogger logWithLevel:withService:withCode:withMessage:withArgs:]
5  Nebenan3P                      0x10485fb10 -[FIRInstanceIDLogger logFuncDebug:messageCode:msg:]
6  Nebenan3P                      0x1048622a0 -[FIRInstanceIDTokenFetchOperation performTokenOperation]
7  Foundation                     0x1827dc004 __NSOQSchedule_f
8  libdispatch.dylib              0x181795048 _dispatch_client_callout
9  libdispatch.dylib              0x18179d3d4 _dispatch_continuation_pop$VARIANT$mp
10 libdispatch.dylib              0x18179bcd4 _dispatch_async_redirect_invoke$VARIANT$mp
11 libdispatch.dylib              0x1817a21c8 _dispatch_root_queue_drain
12 libdispatch.dylib              0x1817a1f10 _dispatch_worker_thread3
13 libsystem_pthread.dylib        0x181a3b130 _pthread_wqthread
14 libsystem_pthread.dylib        0x181a3ac30 start_wqthread

--

#0. com.apple.main-thread
0  NebenanCore                    0x105155f40 type metadata accessor for LocationVO (LocationVO.swift)
1  NebenanCore                    0x1050da114 specialized FeedDataModel.parseCurrentUser(_:) (FeedDataModel.swift)
2  NebenanCore                    0x1050db5f0 specialized closure #1 in FeedDataModel.loadStartFeed(_:) (FeedDataModel.swift:85)
3  NebenanCore                    0x1050d5284 closure #1 in FeedDataModel.loadStartFeed(_:)
4  NebenanCore                    0x1050dc000 partial apply for closure #1 in FeedDataModel.loadStartFeed(_:)
5  NebenanCore                    0x1051b8e98 specialized closure #2 in closure #1 in static APIProvider.start(service:completion:) (APIProvider.swift:76)
6  NebenanCore                    0x1051b8584 partial apply for closure #2 in closure #1 in static APIProvider.start(service:completion:) (APIProvider.swift)
7  NebenanCore                    0x1051b7778 thunk for @callee_owned () -> () (APIProvider.swift)
8  libdispatch.dylib              0x181795088 _dispatch_call_block_and_release
9  libdispatch.dylib              0x181795048 _dispatch_client_callout
10 libdispatch.dylib              0x1817a1b74 _dispatch_main_queue_callback_4CF$VARIANT$mp
11 CoreFoundation                 0x181db7f20 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__
12 CoreFoundation                 0x181db5afc __CFRunLoopRun
13 CoreFoundation                 0x181cd62d8 CFRunLoopRunSpecific
14 GraphicsServices               0x183b67f84 GSEventRunModal
15 UIKit                          0x18b283880 UIApplicationMain
16 nebenan                        0x1043cfd58 main (main.swift:31)
17 libdyld.dylib                  0x1817fa56c start

#1. Thread
0  libsystem_pthread.dylib        0x181a3ac2c start_wqthread

#2. com.google.fira.worker
0  libsystem_kernel.dylib         0x18192a770 guarded_pwrite_np
1  libsqlite3.dylib               0x1822b1de0 (null)
2  libsqlite3.dylib               0x1822749ec (null)
3  libsqlite3.dylib               0x1822bbae0 (null)
4  libsqlite3.dylib               0x182270160 (null)
5  libsqlite3.dylib               0x182274620 (null)
6  libsqlite3.dylib               0x182260ddc (null)
7  libsqlite3.dylib               0x18222e1b0 (null)
8  libsqlite3.dylib               0x182259f74 (null)
9  libsqlite3.dylib               0x18224bb7c sqlite3_step
10 libsqlite3.dylib               0x182215d68 sqlite3_exec
11 Nebenan3P                      0x1047f6500 -[FIRASqliteStore endTransaction]
12 Nebenan3P                      0x1047f61c0 -[FIRASqliteStore performTransaction:]
13 Nebenan3P                      0x104819b70 -[FIRAMeasurement networkRemoteConfigFetchCompletionHandler:data:error:]
14 Nebenan3P                      0x104819548 __36-[FIRAMeasurement fetchRemoteConfig]_block_invoke
15 libdispatch.dylib              0x181795088 _dispatch_call_block_and_release
16 libdispatch.dylib              0x181795048 _dispatch_client_callout
17 libdispatch.dylib              0x18179ee48 _dispatch_queue_serial_drain$VARIANT$mp
18 libdispatch.dylib              0x18179f7d8 _dispatch_queue_invoke$VARIANT$mp
19 libdispatch.dylib              0x1817a0200 _dispatch_root_queue_drain_deferred_wlh$VARIANT$mp
20 libdispatch.dylib              0x1817a84a0 _dispatch_workloop_worker_thread$VARIANT$mp
21 libsystem_pthread.dylib        0x181a3afe0 _pthread_wqthread
22 libsystem_pthread.dylib        0x181a3ac30 start_wqthread

#3. com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x181908bc4 mach_msg_trap
1  libsystem_kernel.dylib         0x181908a3c mach_msg
2  CoreFoundation                 0x181db7ce4 __CFRunLoopServiceMachPort
3  CoreFoundation                 0x181db58b0 __CFRunLoopRun
4  CoreFoundation                 0x181cd62d8 CFRunLoopRunSpecific
5  Foundation                     0x1826fe6e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
6  Foundation                     0x18271dafc -[NSRunLoop(NSRunLoop) runUntilDate:]
7  UIKit                          0x18bdcf02c -[UIEventFetcher threadMain]
8  Foundation                     0x1827ff860 __NSThread__start__
9  libsystem_pthread.dylib        0x181a3c32c _pthread_body
10 libsystem_pthread.dylib        0x181a3c1f8 _pthread_body
11 libsystem_pthread.dylib        0x181a3ac38 thread_start

#4. Thread
0  libsystem_pthread.dylib        0x181a3ac2c start_wqthread

#5. Thread
0  libsystem_pthread.dylib        0x181a3ac2c start_wqthread

#6. com.twitter.crashlytics.ios.MachExceptionServer
0  Nebenan3P                      0x1047c972c CLSProcessRecordAllThreads
1  Nebenan3P                      0x1047c972c CLSProcessRecordAllThreads
2  Nebenan3P                      0x1047c95e8 CLSProcessRecordAllThreads
3  Nebenan3P                      0x1047b8ea0 CLSHandler
4  Nebenan3P                      0x1047b3b50 CLSMachExceptionServer
5  libsystem_pthread.dylib        0x181a3c32c _pthread_body
6  libsystem_pthread.dylib        0x181a3c1f8 _pthread_body
7  libsystem_pthread.dylib        0x181a3ac38 thread_start

#7. Crashed: com.google.iid-token-operations (QOS: UTILITY)
0  libobjc.A.dylib                0x1813401a0 objc_retain
1  Nebenan3P                      0x1048494ec +[FIRLoggerWrapper logWithLevel:withService:withCode:withMessage:withArgs:]
2  CoreFoundation                 0x181e176a0 __invoking___
3  CoreFoundation                 0x181cf6820 -[NSInvocation invoke]
4  Nebenan3P                      0x10485f95c +[FIRInstanceIDLogger logWithLevel:withService:withCode:withMessage:withArgs:]
5  Nebenan3P                      0x10485fb10 -[FIRInstanceIDLogger logFuncDebug:messageCode:msg:]
6  Nebenan3P                      0x1048622a0 -[FIRInstanceIDTokenFetchOperation performTokenOperation]
7  Foundation                     0x1827dc004 __NSOQSchedule_f
8  libdispatch.dylib              0x181795048 _dispatch_client_callout
9  libdispatch.dylib              0x18179d3d4 _dispatch_continuation_pop$VARIANT$mp
10 libdispatch.dylib              0x18179bcd4 _dispatch_async_redirect_invoke$VARIANT$mp
11 libdispatch.dylib              0x1817a21c8 _dispatch_root_queue_drain
12 libdispatch.dylib              0x1817a1f10 _dispatch_worker_thread3
13 libsystem_pthread.dylib        0x181a3b130 _pthread_wqthread
14 libsystem_pthread.dylib        0x181a3ac30 start_wqthread

#8. Thread
0  libsystem_pthread.dylib        0x181a3ac2c start_wqthread

#9. com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x181908bc4 mach_msg_trap
1  libsystem_kernel.dylib         0x181908a3c mach_msg
2  CoreFoundation                 0x181db7ce4 __CFRunLoopServiceMachPort
3  CoreFoundation                 0x181db58b0 __CFRunLoopRun
4  CoreFoundation                 0x181cd62d8 CFRunLoopRunSpecific
5  CFNetwork                      0x18243fb40 +[NSURLConnection(Loader) _resourceLoadLoop:]
6  Foundation                     0x1827ff860 __NSThread__start__
7  libsystem_pthread.dylib        0x181a3c32c _pthread_body
8  libsystem_pthread.dylib        0x181a3c1f8 _pthread_body
9  libsystem_pthread.dylib        0x181a3ac38 thread_start

#10. Thread
0  libsystem_pthread.dylib        0x181a3ac2c start_wqthread

#11. Thread
0  libsystem_pthread.dylib        0x181a3ac2c start_wqthread

#12. com.apple.CFNetwork.CustomProtocols
0  libsystem_kernel.dylib         0x181908bc4 mach_msg_trap
1  libsystem_kernel.dylib         0x181908a3c mach_msg
2  CoreFoundation                 0x181db7ce4 __CFRunLoopServiceMachPort
3  CoreFoundation                 0x181db58b0 __CFRunLoopRun
4  CoreFoundation                 0x181cd62d8 CFRunLoopRunSpecific
5  CFNetwork                      0x1825be928 _privateRunloopEmulationSet(void*)
6  libsystem_pthread.dylib        0x181a3c32c _pthread_body
7  libsystem_pthread.dylib        0x181a3c1f8 _pthread_body
8  libsystem_pthread.dylib        0x181a3ac38 thread_start

#13. Thread
0  libsystem_kernel.dylib         0x181929150 __psynch_cvwait
1  libsystem_pthread.dylib        0x181a3ed40 _pthread_cond_wait$VARIANT$mp
2  libc++.1.dylib                 0x1812a7f34 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >)
3  JavaScriptCore                 0x189054d6c std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&)
4  JavaScriptCore                 0x189054c40 std::__1::cv_status std::__1::condition_variable_any::wait_until<std::__1::unique_lock<bmalloc::Mutex>, std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<bmalloc::Mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&)
5  JavaScriptCore                 0x189054ac4 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop()
6  JavaScriptCore                 0x189054dbc void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*)
7  libsystem_pthread.dylib        0x181a3c32c _pthread_body
8  libsystem_pthread.dylib        0x181a3c1f8 _pthread_body
9  libsystem_pthread.dylib        0x181a3ac38 thread_start

@tomaskraina
Copy link

Thanks @chliangGoogle, as my app is crashing due to Firebase too, I was wondering when are you planning to make a release with this fix in it? I would like to plan a release of my app with updated Firebase SDK.

@paulb777
Copy link
Member

The fix is planned for the next release, but we don't pre-announce dates. We'll update this issue when the fix is available.

@robinkunde
Copy link

4.6.0 was just released (https://firebase.google.com/support/release-notes/ios). Looks like it contains the fix.

@morganchen12
Copy link
Contributor

Yep, this was fixed in the latest release. Feel free to reopen or file a new issue if this regresses.

@tomaskraina
Copy link

Great news, thanks!

@orakaro
Copy link

orakaro commented Nov 15, 2017

👍

@jegnux
Copy link

jegnux commented Nov 17, 2017

I still have this issue with latest release :(

Crashed: com.google.iid-token-operations :: NSOperation 0x1742f5300 (QOS: UTILITY)
0  libobjc.A.dylib                0x18e1981a0 objc_retain
1  Heetch                         0x10054db70 +[FIRLoggerWrapper logWithLevel:withService:withCode:withMessage:withArgs:]
2  CoreFoundation                 0x18f720e80 __invoking___
3  CoreFoundation                 0x18f6162c4 -[NSInvocation invoke]
4  Heetch                         0x10056eb48 +[FIRInstanceIDLogger logWithLevel:withService:withCode:withMessage:withArgs:]
5  Heetch                         0x10056ecfc -[FIRInstanceIDLogger logFuncDebug:messageCode:msg:]
6  Heetch                         0x10057148c -[FIRInstanceIDTokenFetchOperation performTokenOperation]
7  Foundation                     0x1901ebbb0 __NSOQSchedule_f
8  libdispatch.dylib              0x18e5d29a0 _dispatch_client_callout
9  libdispatch.dylib              0x18e5e0ad4 _dispatch_queue_serial_drain
10 libdispatch.dylib              0x18e5d62cc _dispatch_queue_invoke
11 libdispatch.dylib              0x18e5e2a50 _dispatch_root_queue_drain
12 libdispatch.dylib              0x18e5e27d0 _dispatch_worker_thread3
13 libsystem_pthread.dylib        0x18e7db100 _pthread_wqthread
14 libsystem_pthread.dylib        0x18e7dacac start_wqthread

Podfile.lock

- Firebase/Core (4.6.0):
  - FirebaseAnalytics (= 4.0.5)
  - FirebaseCore (= 4.0.11)
- Firebase/RemoteConfig (4.6.0):
  - Firebase/Core
  - FirebaseRemoteConfig (= 2.1.0)
- FirebaseABTesting (1.0.0):
  - FirebaseCore (~> 4.0)
  - Protobuf (~> 3.1)
- FirebaseAnalytics (4.0.5):
  - FirebaseCore (~> 4.0)
  - FirebaseInstanceID (~> 2.0)
  - GoogleToolboxForMac/NSData+zlib (~> 2.1)
  - nanopb (~> 0.3)
- FirebaseCore (4.0.11):
  - GoogleToolboxForMac/NSData+zlib (~> 2.1)
- FirebaseInstanceID (2.0.6)
- FirebaseRemoteConfig (2.1.0):
  - FirebaseABTesting (~> 1.0)
  - FirebaseAnalytics (~> 4.0)
  - FirebaseInstanceID (~> 2.0)
  - GoogleToolboxForMac/NSData+zlib (~> 2.1)
  - Protobuf (~> 3.1)

@paulb777
Copy link
Member

With the upcoming #444 PR and CocoaPods 1.4.0, we can eliminate the calls via reflection in InstanceID to FirebaseCore. It's not clear why the reflection based calls would cause this crash, but making the change could either eliminate the crash or provide more clarity about it.

@DarkoDamjanovic
Copy link

Also still happens for me:

http://crashes.to/s/69c3aaca02d

- Firebase (4.6.0):
    - Firebase/Core (= 4.6.0)
  - Firebase/Core (4.6.0):
    - FirebaseAnalytics (= 4.0.5)
    - FirebaseCore (= 4.0.11)
  - Firebase/Performance (4.6.0):
    - Firebase/Core
    - FirebasePerformance (= 1.0.6)
  - Firebase/RemoteConfig (4.6.0):
    - Firebase/Core
    - FirebaseRemoteConfig (= 2.1.0)
  - FirebaseABTesting (1.0.0):
    - FirebaseCore (~> 4.0)
    - Protobuf (~> 3.1)
  - FirebaseAnalytics (4.0.5):
    - FirebaseCore (~> 4.0)
    - FirebaseInstanceID (~> 2.0)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - nanopb (~> 0.3)
  - FirebaseCore (4.0.11):
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
  - FirebaseInstanceID (2.0.6)
  - FirebasePerformance (1.0.6):
    - FirebaseAnalytics (~> 4.0)
    - FirebaseInstanceID (~> 2.0)
    - GoogleToolboxForMac/Logger (~> 2.1)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - GTMSessionFetcher/Core (~> 1.1)
    - Protobuf (~> 3.1)
  - FirebaseRemoteConfig (2.1.0):
    - FirebaseABTesting (~> 1.0)
    - FirebaseAnalytics (~> 4.0)
    - FirebaseInstanceID (~> 2.0)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - Protobuf (~> 3.1)
func appOpened() {
    // This needs to be done before FirebaseApp.configure(). Otherwise it wont work.
    let performanceEnabled = remoteConfig[performanceMeasuringEnabledKey].boolValue
    Performance.sharedInstance().isInstrumentationEnabled = performanceEnabled
    Performance.sharedInstance().isDataCollectionEnabled = performanceEnabled
    
    NotificationCenter.default.addObserver(forName: NSNotification.Name.UIApplicationWillEnterForeground, object: nil, queue: OperationQueue.main) { (notification) in
        self.fetchRemoteConfiguration()
    }
}

func fetchRemoteConfiguration() {
    #if DEBUG
        let expirationDuration: TimeInterval = 10 // every 10 seconds
    #else
        let expirationDuration: TimeInterval = 43200 // every 12 hours
    #endif
    self.remoteConfig.fetch(withExpirationDuration: expirationDuration) { (status, error) in
        switch status {
        case .success:
            self.remoteConfig.activateFetched()
            self.processAllConfigs()
            self.log.info("Remote config succesfully fetched")
        default:
            if let error = error {
                self.log.warning("Could not fetch remote config. Error: \(error.localizedDescription)")
            } else {
                self.log.warning("Could not fetch remote config.")
            }
        }
        self.applyAllConfigs()
    }
}

@Urtaq
Copy link

Urtaq commented Dec 4, 2017

This case is still occurred with 4.6.0!!

Are you doing something about this in progress or not?

In my opinion, exchanging the deprecated FIRInstanceID to the Messaging might be related with this case..
How about this?

@charlotteliang
Copy link
Contributor

charlotteliang commented Dec 4, 2017

@paulb777 now that we deprecated FirebaseCommunity, should we revert the reflection code?

@paulb777
Copy link
Member

paulb777 commented Dec 4, 2017

@chliangGoogle Yes, reflection code is no longer needed for FirebaseInstanceID to make calls into FirebaseCore.

@ernesto
Copy link

ernesto commented Dec 5, 2017

v4.6.0 is still occurred for me too
http://crashes.to/s/48c1191dd3b

@charlotteliang
Copy link
Contributor

We are removing the reflection calls that causing the crash. Should be out for the next release.

@zotvent
Copy link

zotvent commented Dec 13, 2017

I still have this issue with latest release (4.7.0)

Crashed: NSOperationQueue 0x1c0223f60 (QOS: UNSPECIFIED)
0  libobjc.A.dylib                0x1819241a0 objc_retain + 16
1  MyApplication                  0x100894164 +[FIRLoggerWrapper logWithLevel:withService:withCode:withMessage:withArgs:] + 4378673508
2  CoreFoundation                 0x1826c9cd0 __invoking___ + 144
3  CoreFoundation                 0x1825a856c -[NSInvocation invoke] + 292
4  MyApplication                  0x1008c0070 +[FIRInstanceIDLogger logWithLevel:withService:withCode:withMessage:withArgs:] + 4378853488
5  MyApplication                  0x1008c0224 -[FIRInstanceIDLogger logFuncDebug:messageCode:msg:] + 4378853924
6  MyApplication                  0x1008b9060 __51-[FIRInstanceIDAuthService performScheduledCheckin]_block_invoke + 4378824800
7  MyApplication                  0x1008b9878 -[FIRInstanceIDAuthService notifyCheckinHandlersWithCheckin:error:] + 4378826872
8  MyApplication                  0x1008b9590 __56-[FIRInstanceIDAuthService fetchCheckinInfoWithHandler:]_block_invoke + 4378826128
9  MyApplication                  0x1008bc158 __69-[FIRInstanceIDCheckinService checkinWithExistingCheckin:completion:]_block_invoke + 4378837336
10 MyApplication                  0x1008de1dc __InstrumentDataTaskWithRequestCompletionHandler_block_invoke_2 + 4378976732
11 CFNetwork                      0x182c4d38c __75-[__NSURLSessionLocal taskForClass:request:uploadFile:bodyData:completion:]_block_invoke + 32
12 CFNetwork                      0x182c65ce0 __49-[__NSCFLocalSessionTask _task_onqueue_didFinish]_block_invoke + 152
13 Foundation                     0x183099ba0 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
14 Foundation                     0x182fd9894 -[NSBlockOperation main] + 72
15 Foundation                     0x182fc94c4 -[__NSOperationInternal _start:] + 848
16 libdispatch.dylib              0x18203ea14 _dispatch_client_callout + 16
17 libdispatch.dylib              0x182046200 _dispatch_block_invoke_direct$VARIANT$mp + 288
18 libdispatch.dylib              0x18203ea14 _dispatch_client_callout + 16
19 libdispatch.dylib              0x182046200 _dispatch_block_invoke_direct$VARIANT$mp + 288
20 libdispatch.dylib              0x1820460ac dispatch_block_perform$VARIANT$mp + 104
21 Foundation                     0x18309b878 __NSOQSchedule_f + 376
22 libdispatch.dylib              0x18203ea14 _dispatch_client_callout + 16
23 libdispatch.dylib              0x182046f08 _dispatch_continuation_pop$VARIANT$mp + 428
24 libdispatch.dylib              0x18204580c _dispatch_async_redirect_invoke$VARIANT$mp + 604
25 libdispatch.dylib              0x18204bcf4 _dispatch_root_queue_drain + 600
26 libdispatch.dylib              0x18204ba38 _dispatch_worker_thread3 + 120
27 libsystem_pthread.dylib        0x1822e706c _pthread_wqthread + 1268
28 libsystem_pthread.dylib        0x1822e6b6c start_wqthread + 4

@morganchen12
Copy link
Contributor

The fix hasn't been released yet.

@insidegui
Copy link

I'm having the same issue, here's the crash log:

# Date: 2017-12-18T12:50:00Z
# OS Version: 11.1.1 (15B150)
# Device: iPhone 6s
# RAM Free: 2.6%
# Disk Free: 5%

#1. Crashed: com.google.iid-token-operations (QOS: UTILITY)
0  libobjc.A.dylib                0x1842201a0 objc_retain + 16
1  Teresa                         0x105548aa0 +[FIRLoggerWrapper logWithLevel:withService:withCode:withMessage:withArgs:] + 4311337632
2  CoreFoundation                 0x184fbd670 __invoking___ + 144
3  CoreFoundation                 0x184e9c6cc -[NSInvocation invoke] + 292
4  Teresa                         0x105569a0c +[FIRInstanceIDLogger logWithLevel:withService:withCode:withMessage:withArgs:] + 4311472652
5  Teresa                         0x105569bc0 -[FIRInstanceIDLogger logFuncDebug:messageCode:msg:] + 4311473088
6  Teresa                         0x10556c360 -[FIRInstanceIDTokenFetchOperation performTokenOperation] + 4311483232
7  Foundation                     0x185983004 __NSOQSchedule_f + 404
8  libdispatch.dylib              0x184939048 _dispatch_client_callout + 16
9  libdispatch.dylib              0x1849413d4 _dispatch_continuation_pop$VARIANT$mp + 428
10 libdispatch.dylib              0x18493fd88 _dispatch_async_redirect_invoke$VARIANT$mp + 784
11 libdispatch.dylib              0x1849461c8 _dispatch_root_queue_drain + 596
12 libdispatch.dylib              0x184945f10 _dispatch_worker_thread3 + 120
13 libsystem_pthread.dylib        0x184bdf120 _pthread_wqthread + 1268
14 libsystem_pthread.dylib        0x184bdec20 start_wqthread + 4

--

#0. com.apple.main-thread
0  libsystem_kernel.dylib         0x184aacbc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x184aaca3c mach_msg + 72
2  CoreFoundation                 0x184f5dc74 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x184f5b840 __CFRunLoopRun + 1424
4  CoreFoundation                 0x184e7bfb8 CFRunLoopRunSpecific + 436
5  GraphicsServices               0x186d13f84 GSEventRunModal + 100
6  UIKit                          0x18e4502f4 UIApplicationMain + 208
7  Teresa                         0x104d09f78 main (main.m:15)
8  libdyld.dylib                  0x18499e56c start + 4

#1. Crashed: com.google.iid-token-operations (QOS: UTILITY)
0  libobjc.A.dylib                0x1842201a0 objc_retain + 16
1  Teresa                         0x105548aa0 +[FIRLoggerWrapper logWithLevel:withService:withCode:withMessage:withArgs:] + 4311337632
2  CoreFoundation                 0x184fbd670 __invoking___ + 144
3  CoreFoundation                 0x184e9c6cc -[NSInvocation invoke] + 292
4  Teresa                         0x105569a0c +[FIRInstanceIDLogger logWithLevel:withService:withCode:withMessage:withArgs:] + 4311472652
5  Teresa                         0x105569bc0 -[FIRInstanceIDLogger logFuncDebug:messageCode:msg:] + 4311473088
6  Teresa                         0x10556c360 -[FIRInstanceIDTokenFetchOperation performTokenOperation] + 4311483232
7  Foundation                     0x185983004 __NSOQSchedule_f + 404
8  libdispatch.dylib              0x184939048 _dispatch_client_callout + 16
9  libdispatch.dylib              0x1849413d4 _dispatch_continuation_pop$VARIANT$mp + 428
10 libdispatch.dylib              0x18493fd88 _dispatch_async_redirect_invoke$VARIANT$mp + 784
11 libdispatch.dylib              0x1849461c8 _dispatch_root_queue_drain + 596
12 libdispatch.dylib              0x184945f10 _dispatch_worker_thread3 + 120
13 libsystem_pthread.dylib        0x184bdf120 _pthread_wqthread + 1268
14 libsystem_pthread.dylib        0x184bdec20 start_wqthread + 4

#2. Thread
0  libsystem_kernel.dylib         0x184acddbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x184bdefa0 _pthread_wqthread + 884
2  libsystem_pthread.dylib        0x184bdec20 start_wqthread + 4

#3. Thread
0  libsystem_kernel.dylib         0x184acddbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x184bdf134 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x184bdec20 start_wqthread + 4

#4. com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x184aacbc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x184aaca3c mach_msg + 72
2  CoreFoundation                 0x184f5dc74 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x184f5b840 __CFRunLoopRun + 1424
4  CoreFoundation                 0x184e7bfb8 CFRunLoopRunSpecific + 436
5  Foundation                     0x1858a56e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6  Foundation                     0x1858c4afc -[NSRunLoop(NSRunLoop) runUntilDate:] + 96
7  UIKit                          0x18efaf2f4 -[UIEventFetcher threadMain] + 136
8  Foundation                     0x1859a6860 __NSThread__start__ + 996
9  libsystem_pthread.dylib        0x184be031c _pthread_body + 308
10 libsystem_pthread.dylib        0x184be01e8 _pthread_body + 310
11 libsystem_pthread.dylib        0x184bdec28 thread_start + 4

#5. Thread
0  libsystem_kernel.dylib         0x184acddbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x184bdefa0 _pthread_wqthread + 884
2  libsystem_pthread.dylib        0x184bdec20 start_wqthread + 4

#6. Thread
0  libsystem_kernel.dylib         0x184acddbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x184bdf134 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x184bdec20 start_wqthread + 4

#7. com.twitter.crashlytics.ios.MachExceptionServer
0  Teresa                         0x1054892cc CLSProcessRecordAllThreads (CLSProcess.c:376)
1  Teresa                         0x1054892cc CLSProcessRecordAllThreads (CLSProcess.c:376)
2  Teresa                         0x10548917c CLSProcessRecordAllThreads (CLSProcess.c:407)
3  Teresa                         0x105478bc4 CLSHandler (CLSHandler.m:26)
4  Teresa                         0x105473834 CLSMachExceptionServer (CLSMachException.c:446)
5  libsystem_pthread.dylib        0x184be031c _pthread_body + 308
6  libsystem_pthread.dylib        0x184be01e8 _pthread_body + 310
7  libsystem_pthread.dylib        0x184bdec28 thread_start + 4

#8. Thread
0  libsystem_pthread.dylib        0x184bdec1c start_wqthread + 122

#9. trust
0  libsystem_kernel.dylib         0x184aacbc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x184aaca3c mach_msg + 72
2  libdispatch.dylib              0x18494ecf4 _dispatch_mach_send_and_wait_for_reply + 644
3  libdispatch.dylib              0x18494f19c dispatch_mach_send_with_result_and_wait_for_reply$VARIANT$mp + 56
4  libxpc.dylib                   0x184c1bef0 xpc_connection_send_message_with_reply_sync + 196
5  Security                       0x185b96c9c securityd_message_with_reply_sync + 176
6  Security                       0x185b96fdc securityd_send_sync_and_do + 80
7  Security                       0x185c27f54 __SecTrustEvaluateIfNecessary_block_invoke_3 + 432
8  Security                       0x185bf65c0 SecOSStatusWith + 52
9  Security                       0x185c27d88 __SecTrustEvaluateIfNecessary_block_invoke_2 + 96
10 libsystem_trace.dylib          0x184bfcb68 _os_activity_initiate_impl + 60
11 Security                       0x185c27d18 __SecTrustEvaluateIfNecessary_block_invoke + 260
12 libdispatch.dylib              0x184939048 _dispatch_client_callout + 16
13 libdispatch.dylib              0x184941ae8 _dispatch_queue_barrier_sync_invoke_and_complete + 56
14 Security                       0x185c24e0c SecTrustEvaluateIfNecessary + 520
15 Security                       0x185c25134 SecTrustEvaluate + 64
16 Teresa                         0x1054a5330 -[FABCertificatePinner evaluateTrust:result:] (FABCertificatePinner.m:52)
17 Teresa                         0x1054a53d4 -[FABCertificatePinner handleChallenge:fromURLSession:completionHandler:] (FABCertificatePinner.m:76)
18 Teresa                         0x1054ac048 -[FABNetworkClient URLSession:didReceiveChallenge:completionHandler:] (FABNetworkClient.m:191)
19 Foundation                     0x185981310 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 16
20 Foundation                     0x1858c19e4 -[NSBlockOperation main] + 72
21 Foundation                     0x1858b1620 -[__NSOperationInternal _start:] + 848
22 libdispatch.dylib              0x184939048 _dispatch_client_callout + 16
23 libdispatch.dylib              0x1849406c8 _dispatch_block_invoke_direct$VARIANT$mp + 288
24 libdispatch.dylib              0x184939048 _dispatch_client_callout + 16
25 libdispatch.dylib              0x1849406c8 _dispatch_block_invoke_direct$VARIANT$mp + 288
26 libdispatch.dylib              0x184940574 dispatch_block_perform$VARIANT$mp + 104
27 Foundation                     0x185982fe8 __NSOQSchedule_f + 376
28 libdispatch.dylib              0x184939048 _dispatch_client_callout + 16
29 libdispatch.dylib              0x1849413d4 _dispatch_continuation_pop$VARIANT$mp + 428
30 libdispatch.dylib              0x18493fcd4 _dispatch_async_redirect_invoke$VARIANT$mp + 604
31 libdispatch.dylib              0x1849461c8 _dispatch_root_queue_drain + 596
32 libdispatch.dylib              0x184945f10 _dispatch_worker_thread3 + 120
33 libsystem_pthread.dylib        0x184bdf120 _pthread_wqthread + 1268
34 libsystem_pthread.dylib        0x184bdec20 start_wqthread + 4

#10. com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x184aacbc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x184aaca3c mach_msg + 72
2  CoreFoundation                 0x184f5dc74 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x184f5b840 __CFRunLoopRun + 1424
4  CoreFoundation                 0x184e7bfb8 CFRunLoopRunSpecific + 436
5  CFNetwork                      0x1855e6264 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404
6  Foundation                     0x1859a6860 __NSThread__start__ + 996
7  libsystem_pthread.dylib        0x184be031c _pthread_body + 308
8  libsystem_pthread.dylib        0x184be01e8 _pthread_body + 310
9  libsystem_pthread.dylib        0x184bdec28 thread_start + 4

#11. Thread
0  libsystem_kernel.dylib         0x184acd150 __psynch_cvwait + 8
1  libsystem_pthread.dylib        0x184be2d30 _pthread_cond_wait$VARIANT$mp + 640
2  libc++.1.dylib                 0x184187f34 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 96
3  JavaScriptCore                 0x18c229dd0 std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 124
4  JavaScriptCore                 0x18c229ca4 std::__1::cv_status std::__1::condition_variable_any::wait_until<std::__1::unique_lock<bmalloc::Mutex>, std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<bmalloc::Mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 108
5  JavaScriptCore                 0x18c229b28 bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 280
6  JavaScriptCore                 0x18c229e20 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 44
7  libsystem_pthread.dylib        0x184be031c _pthread_body + 308
8  libsystem_pthread.dylib        0x184be01e8 _pthread_body + 310
9  libsystem_pthread.dylib        0x184bdec28 thread_start + 4

#12. WebThread
0  libsystem_kernel.dylib         0x184aacbc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x184aaca3c mach_msg + 72
2  CoreFoundation                 0x184f5dc74 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x184f5b840 __CFRunLoopRun + 1424
4  CoreFoundation                 0x184e7bfb8 CFRunLoopRunSpecific + 436
5  WebCore                        0x18ccefe04 RunWebThread(void*) + 456
6  libsystem_pthread.dylib        0x184be031c _pthread_body + 308
7  libsystem_pthread.dylib        0x184be01e8 _pthread_body + 310
8  libsystem_pthread.dylib        0x184bdec28 thread_start + 4

#13. Thread
0  libsystem_pthread.dylib        0x184bdec1c start_wqthread + 122

#14. Thread
0  libsystem_pthread.dylib        0x184bdec1c start_wqthread + 122

#15. Thread
0  libsystem_pthread.dylib        0x184bdec1c start_wqthread + 122

#16. Thread
0  libsystem_kernel.dylib         0x184acddbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x184bdefa0 _pthread_wqthread + 884
2  libsystem_pthread.dylib        0x184bdec20 start_wqthread + 4

#17. Thread
0  libsystem_pthread.dylib        0x184bdec1c start_wqthread + 122

#18. Thread
0  libsystem_kernel.dylib         0x184acddbc __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x184bdf134 _pthread_wqthread + 1288
2  libsystem_pthread.dylib        0x184bdec20 start_wqthread + 4

#19. GAIThread
0  libsystem_kernel.dylib         0x184aacbc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x184aaca3c mach_msg + 72
2  CoreFoundation                 0x184f5dc74 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x184f5b840 __CFRunLoopRun + 1424
4  CoreFoundation                 0x184e7bfb8 CFRunLoopRunSpecific + 436
5  Foundation                     0x1858a56e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304
6  Foundation                     0x1858f762c -[NSRunLoop(NSRunLoop) run] + 88
7  Teresa                         0x10572d2d4 +[GAI threadMain:] (GAI.m:241)
8  Foundation                     0x1859a6860 __NSThread__start__ + 996
9  libsystem_pthread.dylib        0x184be031c _pthread_body + 308
10 libsystem_pthread.dylib        0x184be01e8 _pthread_body + 310
11 libsystem_pthread.dylib        0x184bdec28 thread_start + 4

#20. com.apple.CoreMotion.MotionThread
0  libsystem_kernel.dylib         0x184aacbc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x184aaca3c mach_msg + 72
2  CoreFoundation                 0x184f5dc74 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x184f5b840 __CFRunLoopRun + 1424
4  CoreFoundation                 0x184e7bfb8 CFRunLoopRunSpecific + 436
5  CoreFoundation                 0x184ecb098 CFRunLoopRun + 116
6  CoreMotion                     0x18a276298 (null) + 226408
7  libsystem_pthread.dylib        0x184be031c _pthread_body + 308
8  libsystem_pthread.dylib        0x184be01e8 _pthread_body + 310
9  libsystem_pthread.dylib        0x184bdec28 thread_start + 4

#21. AVAudioSession Notify Thread
0  libsystem_kernel.dylib         0x184aacbc4 mach_msg_trap + 8
1  libsystem_kernel.dylib         0x184aaca3c mach_msg + 72
2  CoreFoundation                 0x184f5dc74 __CFRunLoopServiceMachPort + 196
3  CoreFoundation                 0x184f5b840 __CFRunLoopRun + 1424
4  CoreFoundation                 0x184e7bfb8 CFRunLoopRunSpecific + 436
5  AVFAudio                       0x18a764774 GenericRunLoopThread::Entry(void*) + 164
6  AVFAudio                       0x18a78f018 CAPThread::Entry(CAPThread*) + 84
7  libsystem_pthread.dylib        0x184be031c _pthread_body + 308
8  libsystem_pthread.dylib        0x184be01e8 _pthread_body + 310
9  libsystem_pthread.dylib        0x184bdec28 thread_start + 4

#22. Thread
0  libsystem_kernel.dylib         0x184aacc18 semaphore_timedwait_trap + 8
1  libdispatch.dylib              0x18493b4d0 _dispatch_sema4_timedwait$VARIANT$mp + 84
2  libdispatch.dylib              0x18493bd40 _dispatch_semaphore_wait_slow + 72
3  libdispatch.dylib              0x1849476ac _dispatch_worker_thread + 256
4  libsystem_pthread.dylib        0x184be031c _pthread_body + 308
5  libsystem_pthread.dylib        0x184be01e8 _pthread_body + 310
6  libsystem_pthread.dylib        0x184bdec28 thread_start + 4

#23. Thread
0  libsystem_kernel.dylib         0x184aacc18 semaphore_timedwait_trap + 8
1  libdispatch.dylib              0x18493b4d0 _dispatch_sema4_timedwait$VARIANT$mp + 84
2  libdispatch.dylib              0x18493bd40 _dispatch_semaphore_wait_slow + 72
3  libdispatch.dylib              0x1849476ac _dispatch_worker_thread + 256
4  libsystem_pthread.dylib        0x184be031c _pthread_body + 308
5  libsystem_pthread.dylib        0x184be01e8 _pthread_body + 310
6  libsystem_pthread.dylib        0x184bdec28 thread_start + 4

#24. Thread
0  libsystem_kernel.dylib         0x184aacc18 semaphore_timedwait_trap + 8
1  libdispatch.dylib              0x18493b4d0 _dispatch_sema4_timedwait$VARIANT$mp + 84
2  libdispatch.dylib              0x18493bd40 _dispatch_semaphore_wait_slow + 72
3  libdispatch.dylib              0x1849476ac _dispatch_worker_thread + 256
4  libsystem_pthread.dylib        0x184be031c _pthread_body + 308
5  libsystem_pthread.dylib        0x184be01e8 _pthread_body + 310
6  libsystem_pthread.dylib        0x184bdec28 thread_start + 4

@DarkoDamjanovic
Copy link

Just so that you are aware of the severity: this bug is the Nr.1 reason for all the crashes in our App. It's high above any other source of crashes.

@insidegui
Copy link

this bug is the Nr.1 reason for all the crashes in our Ap

Same here

@naftaly
Copy link
Contributor

naftaly commented Dec 18, 2017

I'm seeing the same here. #1 crash in our app. When I see it in our app, there is always one or two threads waiting or executing sqlite ( ours or firebases ). Could be somehow related.

@TheLoombot
Copy link

Likewise, this has taken over the number one spot in Crashlytics for our app.

@techee
Copy link

techee commented Dec 18, 2017

This seems to be a "me too" day so if it helps, I can also confirm this crash happens frequently (unfortunately not frequently enough to be reproducible on my side) and has been the number one crash in my 4 apps.

@morganchen12
Copy link
Contributor

This should be fixed in the 4.8.0 release of Firebase, feel free to reopen if that's not the case.

@jereator
Copy link

jereator commented Jan 4, 2018

This crash is still occurred with 4.8.0!! :(

Crashed: com.google.iid-token-operations :: NSOperation 0x1700e9200 (QOS: UTILITY)
0  libobjc.A.dylib                0x183d001a0 objc_retain + 16
1  my_app                         0x100710ee8 +[FIRLoggerWrapper logWithLevel:withService:withCode:withMessage:withArgs:] + 1184628
2  CoreFoundation                 0x185288e80 __invoking___ + 144
3  CoreFoundation                 0x18517e2c4 -[NSInvocation invoke] + 292
4  my_app                         0x1007599cc +[FIRInstanceIDLogger logWithLevel:withService:withCode:withMessage:withArgs:] + 1482328
5  my_app                         0x100759b80 -[FIRInstanceIDLogger logFuncDebug:messageCode:msg:] + 1482764
6  my_app                         0x10075c310 -[FIRInstanceIDTokenFetchOperation performTokenOperation] + 1492892
7  Foundation                     0x185d53bb0 __NSOQSchedule_f + 228
8  libdispatch.dylib              0x18413a9a0 _dispatch_client_callout + 16
9  libdispatch.dylib              0x184148ad4 _dispatch_queue_serial_drain + 928
10 libdispatch.dylib              0x18413e2cc _dispatch_queue_invoke + 884
11 libdispatch.dylib              0x18414aa50 _dispatch_root_queue_drain + 540
12 libdispatch.dylib              0x18414a7d0 _dispatch_worker_thread3 + 124
13 libsystem_pthread.dylib        0x184343100 _pthread_wqthread + 1096
14 libsystem_pthread.dylib        0x184342cac start_wqthread + 4

Podfile.lock

  - Firebase (4.8.0):
    - Firebase/Core (= 4.8.0)
  - Firebase/Core (4.8.0):
    - FirebaseAnalytics (= 4.0.5)
    - FirebaseCore (= 4.0.13)
  - Firebase/Crash (4.8.0):
    - Firebase/Core
    - FirebaseCrash (= 2.0.2)
  - Firebase/DynamicLinks (4.8.0):
    - Firebase/Core
    - FirebaseDynamicLinks (= 2.3.1)
  - Firebase/Messaging (4.8.0):
    - Firebase/Core
    - FirebaseMessaging (= 2.0.8)
  - Firebase/RemoteConfig (4.8.0):
    - Firebase/Core
    - FirebaseRemoteConfig (= 2.1.0)
  - FirebaseABTesting (1.0.0):
    - FirebaseCore (~> 4.0)
    - Protobuf (~> 3.1)
  - FirebaseAnalytics (4.0.5):
    - FirebaseCore (~> 4.0)
    - FirebaseInstanceID (~> 2.0)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - nanopb (~> 0.3)
  - FirebaseCore (4.0.13):
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
  - FirebaseCrash (2.0.2):
    - FirebaseAnalytics (~> 4.0)
    - FirebaseInstanceID (~> 2.0)
    - GoogleToolboxForMac/Logger (~> 2.1)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - Protobuf (~> 3.1)
  - FirebaseDynamicLinks (2.3.1):
    - FirebaseAnalytics (~> 4.0)
  - FirebaseInstanceID (2.0.6)
  - FirebaseMessaging (2.0.8):
    - FirebaseAnalytics (~> 4.0)
    - FirebaseCore (~> 4.0)
    - FirebaseInstanceID (~> 2.0)
    - GoogleToolboxForMac/Logger (~> 2.1)
    - Protobuf (~> 3.1)
  - FirebaseRemoteConfig (2.1.0):
    - FirebaseABTesting (~> 1.0)
    - FirebaseAnalytics (~> 4.0)
    - FirebaseInstanceID (~> 2.0)
    - GoogleToolboxForMac/NSData+zlib (~> 2.1)
    - Protobuf (~> 3.1)

@DarkoDamjanovic
Copy link

Thanks for the fix, I do not experience this bug anymore in 4.8.0. But I got some other:

http://crashes.to/s/a8fa82e0118
http://crashes.to/s/b4162fade4d
http://crashes.to/s/48bb2b13d6f

But this are happening very rare, nothing severe like the FIRLoggerWrapper issue.

@paulb777
Copy link
Member

paulb777 commented Jan 4, 2018

@Jeheonjeol The fix is actually in FirebaseInstanceID 2.0.8 which is the default for Firebase 4.8.0. It looks like you may be overriding the InstanceID pod version, since your Podfile.lock shows FirebaseInstanceID 2.0.6.

@DarkoDamjanovic Thanks for the feedback. One of the other crashes you're seeing is being tracked in #431.

I'm going to lock this issue for comments. If you see additional crashes, please open a new issue with the backtrace.

@firebase firebase locked as resolved and limited conversation to collaborators Jan 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests