Live data from Hacker News

App suddenly crashing on startup due to FBSDKRestrictiveDataFilterManager.m

github.com

331–340 of 446 posts

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

#331

The most popular apps on one of the most popular operating systems just plainly don't even open. What has this industry become? How are we so goddamn inept at writing software? This is an industry where we can automate testing - not many other industries have this capability - and we still don't have a simple test regime of "check if the app opens" for any of those apps. Somehow, at the most valuable software compani…

> I have always been afraid of software engineering becoming a trade similar to medicine or law or (regular) engineering where significant barriers will be put up before you can enter the industry, but this sort of shit makes me feel like it could be for the better.

There's a good chance that the one who wrote this bug had a degree.

Surgeries in medicine still get botched despite all of their degrees and barriers. Degrees don't produce good code, good developers produce good code.

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

#332

Earlier quoted context omitted.

You have to be technically competent enough to know how to dynamically load a framework, though.

For a tech company with a multi-billion dollar valuation this shouldn't be insurmountable

Facebook knows how dynamic loading works. (At least, I think so…) However, their many clients may not, as a lot are not multi-billion dollar companies.

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

#333

Earlier quoted context omitted.

You can't mock it, that is the entire point. Simply loading the shared library of the SDK will execute the broken code.

90% of people in this thread think “native code” is a react plugin

I don't, but I'm fairly sure there is a solution and others just don't want to try hard enough

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

#334

Earlier quoted context omitted.

Yes, but 1. it’s hard to inject that as the crash happens very early at launch and 2. Objective-C exceptions of this type are not intended to be caught.

That's not strictly true, and anyway it's different for the app developer versus a library provider. If you're making a 3rd party SDK that can throw, you need to make it can catch those throws.

NSInvalidArgumentException is not intended to be caught. You can, of course, but receiving one indicates a serious run-time error.

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

#336

Earlier quoted context omitted.

And then FB will ban your app.

Ban it from where? Using their API?

Yes, Facebook requires that any mobile app using Facebook login do so via their SDK. Presumably they will disable your Facebook app (breaking login) if you don’t comply.

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

#337
post #64

Waze, a google owned app for the past 4 years, crashes because of the FB app. WhatsApp, a Facebook owned app, will not give you read access to your own chat database - it’s encrypted. But they have an arrangement with Google where it’s will back up unencrypted to your Google account (though, Google won’t let you retrieve it ... only the WhatsApp app can) Everything about this duopoly, their cooperation and lack of co…

Yes, it's definitely time for some slightly enhanced armchair activism! Convert all active whatsapp contacts to signal? 80%? 50%? Same for Facebook messenger! It needs to be uncomfortable enough - if they want to communicate with us and are minimally tech savvy ("click link to install app") they have to switch to signal . That's it. I'm starting to send out messages over my morning coffee. Let's do this together: htt…

It's wild to me that

1. There are tons of replies in this thread. People have very strong feelings about signal.

2. Some people feel VERY STRONGLY that the pin numbers are stupid, and it has a terrible UX.

3. Some people feel VERY STRONGLY that the phone numbers are the simplest, most straightforward thing to use, and they would hate Signal if they didn't support it.

4. Some people feel VERY STRONGLY that they don't want their phone number used as an identifier, and it's a failure of Signal that they use them.

And it seems like many of these replies assume that their own position is the only possible one to take (or at least the only intelligent one!).

Imagine working on Signal and trying to create a product that pleases all these people, as well as even less technically minded folks, while having none of the usual analytics at your disposal to measure actual user interaction!

My hat's off to Signal. I admire their work but I don't envy their position.

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

#338

The most popular apps on one of the most popular operating systems just plainly don't even open. What has this industry become? How are we so goddamn inept at writing software? This is an industry where we can automate testing - not many other industries have this capability - and we still don't have a simple test regime of "check if the app opens" for any of those apps. Somehow, at the most valuable software compani…

I try to avoid software in general as much as possible.

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

#339

Earlier quoted context omitted.

You can't mock it, that is the entire point. Simply loading the shared library of the SDK will execute the broken code.

So an app (which you control), is told to load a shared library, and there's no way to handle that? Even by delaying the loading to only when it'll be used?

It's not "is told", it is "it is writen in the binary itself that the kernel/libc runtime should load the shared library".

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

#340
post #331

The most popular apps on one of the most popular operating systems just plainly don't even open. What has this industry become? How are we so goddamn inept at writing software? This is an industry where we can automate testing - not many other industries have this capability - and we still don't have a simple test regime of "check if the app opens" for any of those apps. Somehow, at the most valuable software compani…

> I have always been afraid of software engineering becoming a trade similar to medicine or law or (regular) engineering where significant barriers will be put up before you can enter the industry, but this sort of shit makes me feel like it could be for the better. There's a good chance that the one who wrote this bug had a degree. Surgeries in medicine still get botched despite all of their degrees and barriers. De…

There's no standardized process for producing a "good developer". Every company has a different process and different standards. I think that's a part of the problem and I agree that it's not one academia can solve, but I wonder if there could potentially be another way.
Post reply on HN