Skip to content
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

crash if ApolloClient released before GraphQLQueryWatcher #678

Open
RolandasRazma opened this issue Jul 29, 2019 · 2 comments
Open

crash if ApolloClient released before GraphQLQueryWatcher #678

RolandasRazma opened this issue Jul 29, 2019 · 2 comments
Labels
caching crash Issues which cause crashes
Milestone

Comments

@RolandasRazma
Copy link
Contributor

While trying to write better test for #552 I discovered that if ApolloClient released before GraphQLQueryWatcher app will crash with trace:

  • thread Is there Keypath support GraphQLMap #7, queue = 'com.apollographql.ApolloClient', stop reason = EXC_BAD_ACCESS (code=1, address=0x185fc44b4)
    • frame #0: 0x0000000106ca3657 libobjc.A.dylibobjc_msgSend + 23 frame #1: 0x00000001065b5e35 Foundation__NSOQSchedule_f + 145
      frame Removing JSON parsing #2: 0x000000010980fccf libdispatch.dylib_dispatch_call_block_and_release + 12 frame #3: 0x0000000109810d02 libdispatch.dylib_dispatch_client_callout + 8
      frame Use single argument completion handler #4: 0x0000000109817720 libdispatch.dylib_dispatch_lane_serial_drain + 705 frame #5: 0x0000000109818261 libdispatch.dylib_dispatch_lane_invoke + 398
      frame [WIP] Networktransport idea #6: 0x0000000109820fcb libdispatch.dylib_dispatch_workloop_worker_thread + 645 frame #7: 0x0000000109bf2611 libsystem_pthread.dylib_pthread_wqthread + 421
      frame Added SPM support #8: 0x0000000109bf23fd libsystem_pthread.dylib`start_wqthread + 13

This ticket is placeholder, will try to write test to replicate that more reliably. It could be that crash happens for different reasons. As far as I can tell its not same crash as #552

@designatednerd designatednerd added caching crash Issues which cause crashes labels Jul 29, 2019
@designatednerd
Copy link
Contributor

Good catch - I think in theory if a client hits dealloc we should probably kill all the query watchers, I'm just not sure how complex that will be in practice.

@AnthonyMDev
Copy link
Contributor

This is going to be related to #516. I'm going to try to find some time to look into how we can make this week at some point in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
caching crash Issues which cause crashes
Projects
Development

No branches or pull requests

4 participants