firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.67k stars 1.49k forks source link

Xcode 13 - iOS 15 error message appears in Xcode console #8744

Closed anko37 closed 3 years ago

anko37 commented 3 years ago

[REQUIRED] Step 1: Describe your environment

[REQUIRED] Step 2: Describe the problem

Steps to reproduce:

When I bring my App in the foreground or background following error message appears in the Xcode console. Prior iOS 15 this error message wasn't shown. So I don't know if this can be ignored or it will cause a crash on the release version.

2021-10-06 14:49:31.495904+0200 App[953:381001] [] __nwlog_err_simulate_crash simulate crash already simulated "nw_hash_table_apply called with null table" 2021-10-06 14:49:31.497094+0200 App[953:381001] [] nw_hash_table_apply called with null table, dumping backtrace: [arm64] libnetcore-2736.12.1 0 libnetwork.dylib 0x00000001845ef2f0 __nw_create_backtrace_string + 116 1 libnetwork.dylib 0x0000000183dcd820 nw_hash_table_apply + 2676 2 libnetwork.dylib 0x0000000184318450 EE6D5599-5B6E-3AAC-ABC7-05F56B4EE2FB + 6030416 3 libnetwork.dylib 0x00000001842f4a9c EE6D5599-5B6E-3AAC-ABC7-05F56B4EE2FB + 5884572 4 CFNetwork 0x0000000183b0552c _CFURLStorageSessionCopyIdentifier + 14364 5 libnetwork.dylib 0x0000000183ee7eb8 EE6D5599-5B6E-3AAC-ABC7-05F56B4EE2FB + 1638072 6 libdispatch.dylib 0x00000001027a494c _dispatch_call_block_and_release + 24 7 libdispatch.dylib 0x00000001027a61c8 _dispatch_client_callout + 16 8 libdispatch.dylib 0x00000001027af560 _dispatch_workloop_invoke + 2448 9 libdispatch.dylib 0x00000001027b9630 _dispatch_workloop_worker_thread + 852 10 libsystem_pthread.dylib 0x00000001dcafef38 _pthread_wqthread + 284 11 libsystem_pthread.dylib 0x00000001dcafeaa4 start_wqthread + 8

Relevant Code:

FirebaseApp.configure()
google-oss-bot commented 3 years ago

I found a few problems with this issue:

paulb777 commented 3 years ago

Thanks for the report. Based on https://developer.apple.com/forums/thread/120104, this may be innocuous and may be related to Firebase Performance. Does removing Firebase Performance make a difference?

anko37 commented 3 years ago

Thanks for your reply, I don't use Firebase Performance.

anko37 commented 3 years ago

I have a second app and there it's exactly the same, starting a debug session on a iPhone 7 device and bringing the app into foreground or background shows these warnings.

anko37 commented 3 years ago

On a iPhone 11 I didn't get the warnings.

paulb777 commented 3 years ago

We'll likely need a reproducible example to help here. Since it's a warning from iOS, you might have more luck with resolution asking on an Apple forum.

anko37 commented 3 years ago

This warning only comes when FirebaseApp.configure() is called, if I don't use firebase the warning disappears.

lex910806 commented 3 years ago

I am also having the same problem. This issue occurs when testing on an actual device. (I am using iPhone 12 Pro, iOS 15.0.1)

The app works fine, but I'm worried that the Appstore will process it as a crash.

santieduardo commented 3 years ago

In my project I'm getting these logs too.

My specs: Xcode version: 13 Firebase SDK version: 8.8.0 Installation method: CocoaPods

Sunrise17 commented 3 years ago

I am also receiving same errors below in Xcode debug area.

Xcode version: 13.0 Firebase SDK version: 8.8.0 Installation method: CocoaPods

2021-10-17 23:19:48.575498+0300[3118:625776] Error: BSLogAddStateCaptureBlockWithTitle(EventDeferringState:FBB057E5-71EC-4527-9555-C4662E69F8F5) state data format error: <NSError: 0x282488810; domain: BSSharedStateCapturing; code: 1; reason: "Input generated no data"> {
    NSUnderlyingError = <__NSCFError: 0x282489b90; domain: NSCocoaErrorDomain; code: 3851>;
}
2021-10-17 23:19:48.753796+0300[3118:625964] [] nw_hash_table_apply called with null table

2021-10-17 23:19:48.754257+0300[3118:625964] [] nw_hash_table_apply called with null table, dumping backtrace:
        [arm64] libnetcore-2736.12.1
    0   libnetwork.dylib                    0x00000001846899c0 __nw_create_backtrace_string + 120
    1   libnetwork.dylib                    0x0000000183e0387c nw_hash_table_apply + 2808
    2   libnetwork.dylib                    0x000000018438b1e4 D810C689-1339-3FC6-96E8-196B9901E4DC + 6300132
    3   libnetwork.dylib                    0x0000000184388cc0 D810C689-1339-3FC6-96E8-196B9901E4DC + 6290624
    4   CFNetwork                           0x0000000183b34ff4 _CFURLStorageSessionCopyIdentifier + 20652
    5   libnetwork.dylib                    0x0000000183f28da4 D810C689-1339-3FC6-96E8-196B9901E4DC + 1703332
    6   libdispatch.dylib                   0x0000000105150a20 _dispatch_call_block_and_release + 32
    7   libdispatch.dylib                   0x0000000105152700 _dispatch_client_callout + 20
    8   libdispatch.dylib                   0x000000010515ce34 _dispatch_workloop_invoke + 2960
    9   libdispatch.dylib                   0x0000000105167fa0 _dispatch_workloop_worker_thread + 916
    10  libsystem_pthread.dylib             0x00000001f2c811b0 _pthread_wqthread + 288
    11  libsystem_pthread.dylib             0x00000001f2c80f50 start_wqthread + 8

2021-10-17 23:19:48.757347+0300[3118:625964] [] __nwlog_err_simulate_crash simulate crash already simulated "nw_hash_table_apply called with null table"

2021-10-17 23:19:48.757626+0300[3118:625964] [] nw_hash_table_apply called with null table, dumping backtrace:
        [arm64] libnetcore-2736.12.1
    0   libnetwork.dylib                    0x00000001846899c0 __nw_create_backtrace_string + 120
    1   libnetwork.dylib                    0x0000000183e0387c nw_hash_table_apply + 2808
    2   libnetwork.dylib                    0x000000018438b1e4 D810C689-1339-3FC6-96E8-196B9901E4DC + 6300132
    3   libnetwork.dylib                    0x0000000184388cc0 D810C689-1339-3FC6-96E8-196B9901E4DC + 6290624
    4   CFNetwork                           0x0000000183b34ff4 _CFURLStorageSessionCopyIdentifier + 20652
    5   libnetwork.dylib                    0x0000000183f28da4 D810C689-1339-3FC6-96E8-196B9901E4DC + 1703332
    6   libdispatch.dylib                   0x0000000105150a20 _dispatch_call_block_and_release + 32
    7   libdispatch.dylib                   0x0000000105152700 _dispatch_client_callout + 20
    8   libdispatch.dylib                   0x000000010515ce34 _dispatch_workloop_invoke + 2960
    9   libdispatch.dylib                   0x0000000105167fa0 _dispatch_workloop_worker_thread + 916
    10  libsystem_pthread.dylib             0x00000001f2c811b0 _pthread_wqthread + 288
    11  libsystem_pthread.dylib             0x00000001f2c80f50 start_wqthread + 8

2021-10-17 23:19:49.072634+0300[3118:626013] 8.8.0 - [Firebase/Analytics][I-ACS025026] Deferring to Firebase for event data collection

2021-10-17 23:19:49.105445+0300[3118:626014] [] __nwlog_err_simulate_crash simulate crash already simulated "nw_hash_table_apply called with null table"

2021-10-17 23:19:49.105580+0300[3118:626014] [] nw_hash_table_apply called with null table, dumping backtrace:
        [arm64] libnetcore-2736.12.1
    0   libnetwork.dylib                    0x00000001846899c0 __nw_create_backtrace_string + 120
    1   libnetwork.dylib                    0x0000000183e0387c nw_hash_table_apply + 2808
    2   libnetwork.dylib                    0x000000018438b1e4 D810C689-1339-3FC6-96E8-196B9901E4DC + 6300132
    3   libnetwork.dylib                    0x0000000184388cc0 D810C689-1339-3FC6-96E8-196B9901E4DC + 6290624
    4   CFNetwork                           0x0000000183b34ff4 _CFURLStorageSessionCopyIdentifier + 20652
    5   libnetwork.dylib                    0x0000000183f28da4 D810C689-1339-3FC6-96E8-196B9901E4DC + 1703332
    6   libdispatch.dylib                   0x0000000105150a20 _dispatch_call_block_and_release + 32
    7   libdispatch.dylib                   0x0000000105152700 _dispatch_client_callout + 20
    8   libdispatch.dylib                   0x000000010515ce34 _dispatch_workloop_invoke + 2960
    9   libdispatch.dylib                   0x0000000105167fa0 _dispatch_workloop_worker_thread + 916
    10  libsystem_pthread.dylib             0x00000001f2c811b0 _pthread_wqthread + 288
    11  libsystem_pthread.dylib             0x00000001f2c80f50 start_wqthread + 8

2021-10-17 23:19:49.131941+0300[3118:626015] [] __nwlog_err_simulate_crash simulate crash already simulated "nw_hash_table_apply called with null table"

2021-10-17 23:19:49.132128+0300[3118:626015] [] nw_hash_table_apply called with null table, dumping backtrace:
        [arm64] libnetcore-2736.12.1
    0   libnetwork.dylib                    0x00000001846899c0 __nw_create_backtrace_string + 120
    1   libnetwork.dylib                    0x0000000183e0387c nw_hash_table_apply + 2808
    2   libnetwork.dylib                    0x000000018438b1e4 D810C689-1339-3FC6-96E8-196B9901E4DC + 6300132
    3   libnetwork.dylib                    0x0000000184388cc0 D810C689-1339-3FC6-96E8-196B9901E4DC + 6290624
    4   CFNetwork                           0x0000000183b34ff4 _CFURLStorageSessionCopyIdentifier + 20652
    5   libnetwork.dylib                    0x0000000183f28da4 D810C689-1339-3FC6-96E8-196B9901E4DC + 1703332
    6   libdispatch.dylib                   0x0000000105150a20 _dispatch_call_block_and_release + 32
    7   libdispatch.dylib                   0x0000000105152700 _dispatch_client_callout + 20
    8   libdispatch.dylib                   0x000000010515ce34 _dispatch_workloop_invoke + 2960
    9   libdispatch.dylib                   0x0000000105167fa0 _dispatch_workloop_worker_thread + 916
    10  libsystem_pthread.dylib             0x00000001f2c811b0 _pthread_wqthread + 288
    11  libsystem_pthread.dylib             0x00000001f2c80f50 start_wqthread + 8

2021-10-17 23:19:49.162382+0300[3118:625962] 8.8.0 - [Firebase/Analytics][I-ACS800023] No pending snapshot to activate. SDK name: app_measurement

2021-10-17 23:19:49.174912+0300[3118:625962] 8.8.0 - [Firebase/Analytics][I-ACS023012] Analytics collection enabled

2021-10-17 23:19:49.175298+0300[3118:625962] 8.8.0 - [Firebase/Analytics][I-ACS023220] Analytics screen reporting is enabled. Call +[FIRAnalytics logEventWithName:FIREventScreenView parameters:] to log a screen view event. To disable automatic screen reporting, set the flag FirebaseAutomaticScreenReportingEnabled to NO (boolean) in the Info.plist

2021-10-17 23:19:49.263117+0300[3118:625978] GTMSessionFetcher invoking fetch callbacks, data {length = 840, bytes = 0x7b0a2020 226b696e 64223a20 22696465 ... 7d0a2020 5d0a7d0a }, error (null)

2021-10-17 23:19:49.274697+0300[3118:626015] [] __nwlog_err_simulate_crash simulate crash already simulated "nw_hash_table_apply called with null table"

2021-10-17 23:19:49.274844+0300[3118:626015] [] nw_hash_table_apply called with null table, dumping backtrace:
        [arm64] libnetcore-2736.12.1
    0   libnetwork.dylib                    0x00000001846899c0 __nw_create_backtrace_string + 120
    1   libnetwork.dylib                    0x0000000183e0387c nw_hash_table_apply + 2808
    2   libnetwork.dylib                    0x000000018438b1e4 D810C689-1339-3FC6-96E8-196B9901E4DC + 6300132
    3   libnetwork.dylib                    0x0000000184388cc0 D810C689-1339-3FC6-96E8-196B9901E4DC + 6290624
    4   CFNetwork                           0x0000000183b34ff4 _CFURLStorageSessionCopyIdentifier + 20652
    5   libnetwork.dylib                    0x0000000183f28da4 D810C689-1339-3FC6-96E8-196B9901E4DC + 1703332
    6   libdispatch.dylib                   0x0000000105150a20 _dispatch_call_block_and_release + 32
    7   libdispatch.dylib                   0x0000000105152700 _dispatch_client_callout + 20
    8   libdispatch.dylib                   0x000000010515ce34 _dispatch_workloop_invoke + 2960
    9   libdispatch.dylib                   0x0000000105167fa0 _dispatch_workloop_worker_thread + 916
    10  libsystem_pthread.dylib             0x00000001f2c811b0 _pthread_wqthread + 288
    11  libsystem_pthread.dylib             0x00000001f2c80f50 start_wqthread + 8

2021-10-17 23:20:19.025483+0300[3118:625776] Could not signal service com.apple.WebKit.WebContent: 113: Could not find specified service

2021-10-17 23:20:47.659302+0300[3118:626457] [] __nwlog_err_simulate_crash simulate crash already simulated "nw_hash_table_apply called with null table"

2021-10-17 23:20:47.659898+0300[3118:626457] [] nw_hash_table_apply called with null table, dumping backtrace:
        [arm64] libnetcore-2736.12.1
    0   libnetwork.dylib                    0x00000001846899c0 __nw_create_backtrace_string + 120
    1   libnetwork.dylib                    0x0000000183e0387c nw_hash_table_apply + 2808
    2   libnetwork.dylib                    0x000000018438b1e4 D810C689-1339-3FC6-96E8-196B9901E4DC + 6300132
    3   libnetwork.dylib                    0x0000000184388cc0 D810C689-1339-3FC6-96E8-196B9901E4DC + 6290624
    4   CFNetwork                           0x0000000183b34ff4 _CFURLStorageSessionCopyIdentifier + 20652
    5   libnetwork.dylib                    0x0000000183f28da4 D810C689-1339-3FC6-96E8-196B9901E4DC + 1703332
    6   libdispatch.dylib                   0x0000000105150a20 _dispatch_call_block_and_release + 32
    7   libdispatch.dylib                   0x0000000105152700 _dispatch_client_callout + 20
    8   libdispatch.dylib                   0x000000010515ce34 _dispatch_workloop_invoke + 2960
    9   libdispatch.dylib                   0x0000000105167fa0 _dispatch_workloop_worker_thread + 916
    10  libsystem_pthread.dylib             0x00000001f2c811b0 _pthread_wqthread + 288
    11  libsystem_pthread.dylib             0x00000001f2c80f50 start_wqthread + 8

2021-10-17 23:20:53.851871+0300[3118:625986] [] __nwlog_err_simulate_crash simulate crash already simulated "nw_hash_table_apply called with null table"

2021-10-17 23:20:53.852677+0300[3118:625986] [] nw_hash_table_apply called with null table, dumping backtrace:
        [arm64] libnetcore-2736.12.1
    0   libnetwork.dylib                    0x00000001846899c0 __nw_create_backtrace_string + 120
    1   libnetwork.dylib                    0x0000000183e0387c nw_hash_table_apply + 2808
    2   libnetwork.dylib                    0x000000018438b1e4 D810C689-1339-3FC6-96E8-196B9901E4DC + 6300132
    3   libnetwork.dylib                    0x0000000184388cc0 D810C689-1339-3FC6-96E8-196B9901E4DC + 6290624
    4   CFNetwork                           0x0000000183b34ff4 _CFURLStorageSessionCopyIdentifier + 20652
    5   libnetwork.dylib                    0x0000000183f28da4 D810C689-1339-3FC6-96E8-196B9901E4DC + 1703332
    6   libdispatch.dylib                   0x0000000105150a20 _dispatch_call_block_and_release + 32
    7   libdispatch.dylib                   0x0000000105152700 _dispatch_client_callout + 20
    8   libdispatch.dylib                   0x000000010515ce34 _dispatch_workloop_invoke + 2960
    9   libdispatch.dylib                   0x0000000105167fa0 _dispatch_workloop_worker_thread + 916
    10  libsystem_pthread.dylib             0x00000001f2c811b0 _pthread_wqthread + 288
    11  libsystem_pthread.dylib             0x00000001f2c80f50 start_wqthread + 8

2021-10-17 23:20:54.287352+0300[3118:625986] [] __nwlog_err_simulate_crash simulate crash already simulated "nw_hash_table_apply called with null table"

2021-10-17 23:20:54.288571+0300[3118:625986] [] nw_hash_table_apply called with null table, dumping backtrace:
        [arm64] libnetcore-2736.12.1
    0   libnetwork.dylib                    0x00000001846899c0 __nw_create_backtrace_string + 120
    1   libnetwork.dylib                    0x0000000183e0387c nw_hash_table_apply + 2808
    2   libnetwork.dylib                    0x000000018438b1e4 D810C689-1339-3FC6-96E8-196B9901E4DC + 6300132
    3   libnetwork.dylib                    0x0000000184388cc0 D810C689-1339-3FC6-96E8-196B9901E4DC + 6290624
    4   CFNetwork                           0x0000000183b34ff4 _CFURLStorageSessionCopyIdentifier + 20652
    5   libnetwork.dylib                    0x0000000183f28da4 D810C689-1339-3FC6-96E8-196B9901E4DC + 1703332
    6   libdispatch.dylib                   0x0000000105150a20 _dispatch_call_block_and_release + 32
    7   libdispatch.dylib                   0x0000000105152700 _dispatch_client_callout + 20
    8   libdispatch.dylib                   0x000000010515ce34 _dispatch_workloop_invoke + 2960
    9   libdispatch.dylib                   0x0000000105167fa0 _dispatch_workloop_worker_thread + 916
    10  libsystem_pthread.dylib             0x00000001f2c811b0 _pthread_wqthread + 288
    11  libsystem_pthread.dylib             0x00000001f2c80f50 start_wqthread + 8
nazdream commented 3 years ago

I am experiencing the same problem with Xcode 13.0, iOS 15.0, flutter 2.5.1

paulb777 commented 3 years ago

Thanks for the reports. It would be helpful to get more detail including what Firebase libraries are installed, what package manager is used, and ideally a reproducible example.

Also, there have been similar issues in earlier iOS versions that were spurious logs that had no impact on the apps. Is this problem causing any crashes now? Is it related to slow startup?

DevTiago commented 3 years ago

Hey there,

Im experiencing the same problem:

Firebase libraries installed: firebase_messaging: ^10.0.0 firebase_core: ^1.2.0 firebase_analytics: ^8.1.0 firebase_auth: ^2.0.0 firebase_core_platform_interface: ^4.0.1

Package Manager: NPM

Error: [] __nwlog_err_simulate_crash simulate crash already simulated "nw_hash_table_apply called with null table" [] nw_hash_table_apply called with null table, dumping backtrace: [arm64] libnetcore-2736.12.1 0 libnetwork.dylib 0x000000018273d9c0 __nw_create_backtrace_string + 120 1 libnetwork.dylib 0x0000000181eb787c nw_hash_table_apply + 2808 2 libnetwork.dylib 0x000000018243f1e4 D810C689-1339-3FC6-96E8-196B9901E4DC + 6300132 3 libnetwork.dylib 0x000000018243ccc0 D810C689-1339-3FC6-96E8-196B9901E4DC + 6290624 4 CFNetwork 0x0000000181be8ff4 _CFURLStorageSessionCopyIdentifier + 20652 5 libnetwork.dylib 0x0000000181fdcda4 D810C689-1339-3FC6-96E8-196B9901E4DC + 1703332 6 libdispatch.dylib 0x0000000180e6bc04 959CD6E4-0CE7-3022-B73C-8B36F79F4745 + 7172 7 libdispatch.dylib 0x0000000180e6d950 959CD6E4-0CE7-3022-B73C-8B36F79F4745 + 14672 8 libdispatch.dylib 0x0000000180e77048 959CD6E4-0CE7-3022-B73C-8B36F79F4745 + 53320 9 libdispatch.dylib 0x0000000180e80318 959CD6E4-0CE7-3022-B73C-8B36F79F4745 + 90904 10 libsystem_pthread.dylib 0x00000001f0d3d1b0 _pthread_wqthread + 288 11 libsystem_pthread.dylib 0x00000001f0d3cf50 start_wqthread + 8

joseines commented 3 years ago

I'm also getting this error

2021-10-19 11:10:10.778755-0500 MyApp [1469:873403] [] __nwlog_err_simulate_crash simulate crash already simulated "nw_hash_table_apply called with null table"
2021-10-19 11:10:10.778891-0500 MyApp [1469:873403] [] nw_hash_table_apply called with null table, dumping backtrace:
        [arm64] libnetcore-2736.12.1
    0   libnetwork.dylib                    0x000000018662f9c0 __nw_create_backtrace_string + 120
    1   libnetwork.dylib                    0x0000000185da987c nw_hash_table_apply + 2808
    2   libnetwork.dylib                    0x00000001863311e4 D810C689-1339-3FC6-96E8-196B9901E4DC + 6300132
    3   libnetwork.dylib                    0x000000018632ecc0 D810C689-1339-3FC6-96E8-196B9901E4DC + 6290624
    4   CFNetwork                           0x0000000185adaff4 _CFURLStorageSessionCopyIdentifier + 20652
    5   libnetwork.dylib                    0x0000000185eceda4 D810C689-1339-3FC6-96E8-196B9901E4DC + 1703332
    6   libdispatch.dylib                   0x0000000106654a20 _dispatch_call_block_and_release + 32
    7   libdispatch.dylib                   0x0000000106656700 _dispatch_client_callout + 20
    8   libdispatch.dylib                   0x0000000106660e34 _dispatch_workloop_invoke + 2960
    9   libdispatch.dylib                   0x000000010666bfa0 _dispatch_workloop_worker_thread + 916
    10  libsystem_pthread.dylib             0x00000001f44251b0 _pthread_wqthread + 288
    11  libsystem_pthread.dylib             0x00000001f4424f50 start_wqthread + 8
Screen Shot 2021-10-19 at 11 14 02 AM
furkanvatandas commented 3 years ago

Same problem for my flutter project

] __nwlog_err_simulate_crash simulate crash already simulated "nw_hash_table_apply called with null table"
[] nw_hash_table_apply called with null table, dumping backtrace:
        [arm64] libnetcore-2736.12.1
    0   libnetwork.dylib                    0x00000001828132f0 __nw_create_backtrace_string + 116
    1   libnetwork.dylib                    0x0000000181ff1820 nw_hash_table_apply + 2676
    2   libnetwork.dylib                    0x000000018253c450 EE6D5599-5B6E-3AAC-ABC7-05F56B4EE2FB + 6030416
    3   libnetwork.dylib                    0x0000000182518a9c EE6D5599-5B6E-3AAC-ABC7-05F56B4EE2FB + 5884572
    4   CFNetwork                           0x0000000181d2952c _CFURLStorageSessionCopyIdentifier + 14364
    5   libnetwork.dylib                    0x000000018210beb8 EE6D5599-5B6E-3AAC-ABC7-05F56B4EE2FB + 1638072
    6   libdispatch.dylib                   0x00000001810712ec 5D722AFC-FB8C-3769-BF66-167BB94A6133 + 406252
    7   libdispatch.dylib                   0x00000001810722f0 5D722AFC-FB8C-3769-BF66-167BB94A6133 + 410352
    8   libdispatch.dylib                   0x000000018104f154 5D722AFC-FB8C-3769-BF66-167BB94A6133 + 266580
    9   libdispatch.dylib                   0x000000018105776c 5D722AFC-FB8C-3769-BF66-167BB94A6133 + 300908
    10  libsystem_pthread.dylib             0x00000001dad2af38 _pthread_wqthread + 284
    11  libsystem_pthread.dylib             0x00000001dad2aaa4 start_wqthread + 8
zeqinjie commented 3 years ago

我也有同样的问题。 在实际设备上进行测试时会出现此问题。(我使用的是 iPhone 12 Pro,iOS 15.0.1)

该应用程序运行良好,但我担心 Appstore 会将其作为崩溃处理。

@lex910806 is build in xcode13?

lex910806 commented 3 years ago

@zeqinjie Yes, I am using Xcode 13. And device is iPhone 12 Pro, iOS 15.0.2. Also I am testing both Swift Package Manager and Cocoapods. The result is still log messages comes out.

@paulb777 said that it could be a spurious error, so I'm going to distribute my app this week.

AlbertoMalavasi commented 3 years ago

Same problem here

2021-10-19 19:13:32.154472+0200 [] __nwlog_err_simulate_crash simulate crash already simulated "nw_hash_table_apply called with null table" 2021-10-19 19:13:32.154841+0200 [] nw_hash_table_apply called with null table, dumping backtrace: [arm64] libnetcore-2736.12.1 0 libnetwork.dylib 0x0000000182bba9c0 __nw_create_backtrace_string + 120 1 libnetwork.dylib 0x000000018233487c nw_hash_table_apply + 2808 2 libnetwork.dylib 0x00000001828bc1e4 D810C689-1339-3FC6-96E8-196B9901E4DC + 6300132 3 libnetwork.dylib 0x00000001828b9cc0 D810C689-1339-3FC6-96E8-196B9901E4DC + 6290624 4 CFNetwork 0x0000000182065ff4 _CFURLStorageSessionCopyIdentifier + 20652 5 libnetwork.dylib 0x0000000182459da4 D810C689-1339-3FC6-96E8-196B9901E4DC + 1703332 6 libdispatch.dylib 0x0000000108c20a20 _dispatch_call_block_and_release + 32 7 libdispatch.dylib 0x0000000108c22700 _dispatch_client_callout + 20 8 libdispatch.dylib 0x0000000108c2ce34 _dispatch_workloop_invoke + 2960 9 libdispatch.dylib 0x0000000108c37fa0 _dispatch_workloop_worker_thread + 916 10 libsystem_pthread.dylib 0x00000001f1ab51b0 _pthread_wqthread + 288 11 libsystem_pthread.dylib 0x00000001f1ab4f50 start_wqthread + 8 2021-10-19 19:13:34.007037+0200 [connection] nw_resolver_start_query_timer_block_invoke [C7.1] Query fired: did not receive all answers in time for app-measurement.com:443

icedice commented 3 years ago

I'm seeing this too, I spams my output... I'm using Carthage.

alexmuch commented 3 years ago

Please fix this. Doesn't crash but it makes debugging hard to follow because it spams it quite often.

Xcode version: 13 Firebase SDK version: 8.8.0 Installation method: Swift Package Manager iOS Version: 15.0.2 SwiftUI

2021-10-20 16:32:38.634472-0700 Anime Karma List[2363:477355] [] nw_hash_table_apply called with null table 2021-10-20 16:32:38.635213-0700 Anime Karma List[2363:477355] [] nw_hash_table_apply called with null table, dumping backtrace: [arm64] libnetcore-2736.12.1 0 libnetwork.dylib 0x00000001872cb2f0 __nw_create_backtrace_string + 116 1 libnetwork.dylib 0x0000000186aa9820 nw_hash_table_apply + 2676 2 libnetwork.dylib 0x0000000186ff4450 EE6D5599-5B6E-3AAC-ABC7-05F56B4EE2FB + 6030416 3 libnetwork.dylib 0x0000000186fd0a9c EE6D5599-5B6E-3AAC-ABC7-05F56B4EE2FB + 5884572 4 CFNetwork 0x00000001867e152c _CFURLStorageSessionCopyIdentifier + 14364 5 libnetwork.dylib 0x0000000186bc3eb8 EE6D5599-5B6E-3AAC-ABC7-05F56B4EE2FB + 1638072 6 libdispatch.dylib 0x00000001013c094c _dispatch_call_block_and_release + 24 7 libdispatch.dylib 0x00000001013c21c8 _dispatch_client_callout + 16 8 libdispatch.dylib 0x00000001013cb560 _dispatch_workloop_invoke + 2448 9 libdispatch.dylib 0x00000001013d5630 _dispatch_workloop_worker_thread + 852 10 libsystem_pthread.dylib 0x00000001df7e2f38 _pthread_wqthread + 284 11 libsystem_pthread.dylib 0x00000001df7e2aa4 start_wqthread + 8

eliasjtg commented 3 years ago

Same issue here!

ryanwilson commented 3 years ago

Thanks everyone for the report, and sorry for the extra logs you're seeing. It looks like this warning is printed when using a URLSessionUploadTask, even outside of Firebase. I was able to reproduce the issue on my iPhone 12 Pro running 15.0.2 from Xcode 13.0 with a simple SwiftUI application that didn't include Firebase:

struct ContentView: View {
  var body: some View {
    Button("Press me to observe the error") {
      let request = URLRequest(url: URL(string: "https://www.google.com")!)
      let uploadTask = URLSession.shared.uploadTask(with: request, from: Data()) { _, _, _ in
        print("The `nw_has_table_apply` error was logged.")
      }

      uploadTask.resume()
    }
  }
}

Given that it's being logged directly from using Apple's APIs and Firebase functionality doesn't seem affected, I'm going to close this issue. This should be filed as a Feedback/Radar for Apple instead. We can try to do so but likely won't get to it in the next week or two, if someone else wants to file a report and post an openradar link that would be very helpful.

pangia commented 3 years ago

Same issue. Updated to latest Firebase everything.

alexmuch commented 3 years ago

Opened a radar here https://feedbackassistant.apple.com/feedback/9717832

rahulvyas commented 3 years ago

Opened a radar here https://feedbackassistant.apple.com/feedback/9717832

Radar not found

rahulvyas commented 3 years ago

I am also having the same issue does anyone knows any fix?

icedice commented 3 years ago

Opened a radar here https://feedbackassistant.apple.com/feedback/9717832

Radar not found

Pretty sure feedback is private to the reporter (and potential team). Have no idea why people keeps posting those links like in the olden days.

KimiChiu commented 3 years ago

Same here. But a XCode 12.7 debug build. And it keeps showing up. Seems like a iOS 15 related issue.

rahulvyas commented 3 years ago

Same here. But a XCode 12.7 debug build. And it keeps showing up. Seems like a iOS 15 related issue.

I am getting the issue frequently in iOS 14.8

rahulvyas commented 3 years ago

Anyone knows what we can fix. I am getting a request timeout error frequently

KimiChiu commented 3 years ago

I am getting the issue frequently in iOS 14.8

Never saw this error log before and still using Firebase 7.10.0. The only thing I changed is to call ATTrackingManager.requestTrackingAuthorization after applicationState is active. A iOS 15 behavior change.

dangell7 commented 3 years ago

Same

mrinaljain commented 3 years ago

I am experiencing the same problem with Xcode 13.0, iOS 15.0.2, flutter 2.5.3

ojun9 commented 3 years ago

Same issue. XCode 13.0 iOS 15.0 Firebase SDK version 8.8.0

adiSmedia1 commented 3 years ago

Same issue here XCode 13 iOS 15.0 Firebase SDK 8.8.0

priore commented 3 years ago

Same issue Xcode 13.1 iOS 15.0 Firebase SDK 8.7.0

sherrygelato commented 3 years ago

XCode 13 iOS 15.0 Firebase SDK 8.8.0 same issue

santieduardo commented 3 years ago

@ncooke3 When will this fix be released?

paulb777 commented 3 years ago

As discussed above, this is an Apple issue so best to follow up on Apple forums about resolution timing. See https://github.com/firebase/firebase-ios-sdk/issues/8744#issuecomment-948866894.

I'm going to lock the issue for additional comments here.