{"action":"created","issue":{"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/2454","repository_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS","labels_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/2454/labels{/name}","comments_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/2454/comments","events_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/2454/events","html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-iOS/issues/2454","id":306392430,"node_id":"MDU6SXNzdWUzMDYzOTI0MzA=","number":2454,"title":"Excessive thread creation does the app gets frozen","user":{"login":"nuvolarmobileteam","id":24604564,"node_id":"MDQ6VXNlcjI0NjA0NTY0","avatar_url":"https://avatars2.githubusercontent.com/u/24604564?v=4","gravatar_id":"","url":"https://api.github.com/users/nuvolarmobileteam","html_url":"https://github.com/nuvolarmobileteam","followers_url":"https://api.github.com/users/nuvolarmobileteam/followers","following_url":"https://api.github.com/users/nuvolarmobileteam/following{/other_user}","gists_url":"https://api.github.com/users/nuvolarmobileteam/gists{/gist_id}","starred_url":"https://api.github.com/users/nuvolarmobileteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nuvolarmobileteam/subscriptions","organizations_url":"https://api.github.com/users/nuvolarmobileteam/orgs","repos_url":"https://api.github.com/users/nuvolarmobileteam/repos","events_url":"https://api.github.com/users/nuvolarmobileteam/events{/privacy}","received_events_url":"https://api.github.com/users/nuvolarmobileteam/received_events","type":"User","site_admin":false},"labels":[{"id":150152164,"node_id":"MDU6TGFiZWwxNTAxNTIxNjQ=","url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/labels/bug","name":"bug","color":"e11d21","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-19T09:46:36Z","updated_at":"2018-06-12T23:11:26Z","closed_at":"2018-06-12T23:11:26Z","author_association":"NONE","body":"Please fill out the following details:\r\n\r\nWe faced this issue after updating the SDK to version 6 for our app. It does weird stuff until the app gets frozen and we have to kill it. It didn't happen before updating Salesforce SDK. \r\n\r\n1. Version of Mobile SDK Used: 6.0.0\r\n2. Issue found in Native App or Hybrid App: Native App (Objective C)\r\n3. OS Version: iOS 11.2\r\n4. Device: All\r\n5. Steps to reproduce:\r\n 1. Run attached project on a device. It is SmartSyncExplorer sample project with a small piece of code which triggers a few requests after the app enters foreground coming from background.\r\n 2. Send the app to background and open it back. Repeat the process several times. \r\n 3. Pay attention to thread creation every time the app comes from background.  \r\n\r\n6. Actual behavior:\r\nDescribed process produces thread creation spirals out of control, which ends up getting the app frozen. \r\n\r\n7. Expected Behavior:\r\nControl thread creation due to NSURLSession, not to create threads unnecessarily. \r\n\r\n8. Error Log:\r\nWe attach the sample project and 2 videos with described issue. \r\nWe spotted that changing line 53 of file SFNetwork the app behaves much better, like before. \r\n`NSString *identifier = [NSString stringWithFormat:@\"com.salesforce.network\"];`\r\n\r\n\r\nThe project and videos are in next link:\r\nhttps://www.dropbox.com/s/epur0m8ju7uksdr/SalesforceSDK-Issue-Sample.zip?dl=0\r\n "},"comment":{"url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/comments/396763156","html_url":"https://github.com/forcedotcom/SalesforceMobileSDK-iOS/issues/2454#issuecomment-396763156","issue_url":"https://api.github.com/repos/forcedotcom/SalesforceMobileSDK-iOS/issues/2454","id":396763156,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Njc2MzE1Ng==","user":{"login":"bhariharan","id":1820287,"node_id":"MDQ6VXNlcjE4MjAyODc=","avatar_url":"https://avatars1.githubusercontent.com/u/1820287?v=4","gravatar_id":"","url":"https://api.github.com/users/bhariharan","html_url":"https://github.com/bhariharan","followers_url":"https://api.github.com/users/bhariharan/followers","following_url":"https://api.github.com/users/bhariharan/following{/other_user}","gists_url":"https://api.github.com/users/bhariharan/gists{/gist_id}","starred_url":"https://api.github.com/users/bhariharan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhariharan/subscriptions","organizations_url":"https://api.github.com/users/bhariharan/orgs","repos_url":"https://api.github.com/users/bhariharan/repos","events_url":"https://api.github.com/users/bhariharan/events{/privacy}","received_events_url":"https://api.github.com/users/bhariharan/received_events","type":"User","site_admin":false},"created_at":"2018-06-12T23:11:26Z","updated_at":"2018-06-12T23:11:26Z","author_association":"CONTRIBUTOR","body":"This will be a part of our next release."}}
{"actor":{"display_login":"bhariharan"}}