Live data from Hacker News

App suddenly crashing on startup due to FBSDKRestrictiveDataFilterManager.m

github.com

41–50 of 446 posts

Re: App suddenly crashing on startup due to FBSDKRestrictiveDataFilterManager.m

#41

Earlier quoted context omitted.

Well, how do you get consistent tracking then? Obs: I'm being sarcastic but since it's either this or developer laziness, I'm betting on tracking since I always start from the principle that the developers analysed the situation and made an explicit choice.

Except, you know, when does a developer ever have a choice? You are asked to put the SDK in and you do it...

this, combined with a wrong past technical decision that we can not change it instantly. unfortunately it's not as easy to fix mobile bugs as it is on the web, as you have to both pass the approval process and wait for the full rollout to clients.

in our case, it's just a wrong decision, we don't use it for tracking.

also, if you use facebook login, the terms and conditions force you to use their SDK (which automatically initialises when included and does this crap).

https://developers.facebook.com/policy/ - 8.2

"Native iOS and Android apps that implement Facebook Login must use our official SDKs for login. "

Re: App suddenly crashing on startup due to FBSDKRestrictiveDataFilterManager.m

#43
post #29

Would a type safe language solve this kind of crash? What caused it?

Seems like they’re no longer returning a string that older sdks expect and they haven’t handled the case properly back then.

The crash is:

Crash information

-[NSNull count]: unrecognized selector sent to instance 0x1cd6fe1e0 2020-07-10 17:24:26.052924+0800 OSDemo[4198:604792] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull count]: unrecognized selector sent to instance 0x1cd6fe1e0'

Re: App suddenly crashing on startup due to FBSDKRestrictiveDataFilterManager.m

#44

How is it that a third party SDK is consistently causing apps to completely crash rather than, for example, displaying an error message? Is this a failure that cannot be caught? Sorry, just trying to understand. The dependency relationship just seems to be extreme.

Well SDKs may do their own initialization upon being loaded into the app which might be the cause here as the crash occurs on launch.

Re: App suddenly crashing on startup due to FBSDKRestrictiveDataFilterManager.m

#46

How is it that a third party SDK is consistently causing apps to completely crash rather than, for example, displaying an error message? Is this a failure that cannot be caught? Sorry, just trying to understand. The dependency relationship just seems to be extreme.

I'm curious about this as well. I've always written frameworks to be used with a 'Policy Layer -> Mechanism Layer -> Utility Layer' general architecture. Each layer captures and does its best to handle errors in a way you would expect that layer to. The only time errors move up towards the policy layer is explicitly because the next layer up will handle it.

Re: App suddenly crashing on startup due to FBSDKRestrictiveDataFilterManager.m

#47

How/why does Spotify app use Facebook iOS SDK?

You can login to Spotify via Facebook as you can see in the web version: https://accounts.spotify.com/en/login/ For doing that in a app they require the SDK, which then does all the spying for Facebook.
Post reply on HN