Live data from Hacker News

App suddenly crashing on startup due to FBSDKRestrictiveDataFilterManager.m

github.com

51–60 of 446 posts

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

#53
post #30

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.

>To stop crashes from the Facebook SDK, some devs tried commenting out any code that calls Facebook. Nothing worked. >It turns out that by just including the SDK with your app, Facebook runs hidden code on launch. (FBSDKApplicationDelegate.m) [0] https://twitter.com/sandofsky/status/1258288056399847425

... so if the app including the SDK has permission to access location data, the SDK could be passing that location data to Facebook?

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

#54
post #53
post #30

Earlier quoted context omitted.

>To stop crashes from the Facebook SDK, some devs tried commenting out any code that calls Facebook. Nothing worked. >It turns out that by just including the SDK with your app, Facebook runs hidden code on launch. (FBSDKApplicationDelegate.m) [0] https://twitter.com/sandofsky/status/1258288056399847425

... so if the app including the SDK has permission to access location data, the SDK could be passing that location data to Facebook?

Yes.

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

#55
post #53
post #30

Earlier quoted context omitted.

>To stop crashes from the Facebook SDK, some devs tried commenting out any code that calls Facebook. Nothing worked. >It turns out that by just including the SDK with your app, Facebook runs hidden code on launch. (FBSDKApplicationDelegate.m) [0] https://twitter.com/sandofsky/status/1258288056399847425

... so if the app including the SDK has permission to access location data, the SDK could be passing that location data to Facebook?

Not only could it do that, but it also totally does do that

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

#56

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.

My guess in this particular instance is that it seems like the Facebook SDK is fetching some sort of remote serialized configuration, calling “count” on what it expects to be an array, and instead is calling it on NSNull (an object representing “null”) which is throwing an exception. There are some intricacies on iOS surrounding null values and serialization, and as a developer it is important to understand that you…

Could also be a string that’s no longer there

Source: have had that issue before

Also maybe it’s time for them to start rewriting things in Swift, where this would be much less likely to happen

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

#60
post #27

I use a non-Facebook login on Spotify and the app crashes right there. How is this even possible, even less acceptable from Spotify point of view?

It's not acceptable.

None of the apps broken on my phone require Facebook features for core functionality. Downtime happens, but downtime due to your non-essential & user-hostile ads/tracking/social SDK? These companies deserve every single cent of lost revenue.

Post reply on HN