Exception thrown when web sign-in screen is shown for ~30 seconds.
When the web sign-in screen is visible for a certain amount of time, the SDK tries to access com.facebook.katana. This exception is never caught.
A quick search through the code reveals that both instances of getPackageInfo are in a proper Try/Catch - maybe somewhere else a line of code that the Facebook SDK calls uses getPackageInfo internally?
02-13 11:02:56.347 30977-30977/? E/InstalledAppDetails﹕ Exception when retrieving package:com.facebook.katana
android.content.pm.PackageManager$NameNotFoundException: com.facebook.katana
at android.app.ApplicationPackageManager.getPackageInfo(ApplicationPackageManager.java:82)
at com.android.settings.applications.InstalledAppDetails.retrieveAppEntry(InstalledAppDetails.java:620)
at com.android.settings.applications.InstalledAppDetails.refreshUi(InstalledAppDetails.java:654)
at com.android.settings.applications.InstalledAppDetails.onActivityResult(InstalledAppDetails.java:533)
at android.app.Activity.dispatchActivityResult(Activity.java:5439)
at android.app.ActivityThread.deliverResults(ActivityThread.java:3342)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:3389)
at android.app.ActivityThread.access$1200(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1445)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4998)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
at dalvik.system.NativeStart.main(Native Method)
Can you give more details on why you suspect the SDK is making this call? Based on this stack trace, it appears to be the Android Settings application that is making the call and logging the exception.
It only happens when the web login screen for Facebook is visible (When Facebook is not installed). It doesn't happen any other time.
All I'm doing is requesting the login screen and letting the SDK handle which one gets shown and so on. In none of my code do I check for the com.facebook.katana package (But the SDK does).
I can't see why the Android Settings app would be doing this.
I tried removing the Facebook App from my device and running an app that launches the Log in via the web dialog and left it sitting for a bit. I am unable to crash it. Can you give more details perhaps that might help us track it down?
I wish I could provide more details, but when I searched through the SDK the only place I can think of the crash occurring is in a try/catch block - so it should be getting caught.
I was however, able to reproduce this - it happened for me with the MeetUp app. The internet was going slow so it took awhile for the page to load - half way through entering my password, the entire app restarted. Tapped "Sign in" again and waited and surely enough, around 30 seconds, same as before, the app crashed again.
There has to be something going on I have no clue about, as the only mention of "com.facebook.katana" that I noticed was the one in the try/catch block - I believe used to detect if Facebook is installed.
I haven't been able to reproduce this either. Looking at the stack trace, this must be handling a result where the package name is com.facebook.katana. There is no place in the SDK that I see which sets a result. LoginActivity certainly doesn't do it. We can't act on this without more information or a consistent repro. If you have any more information, or if this is a very high occurring event (in which case, it would repro somewhat consistently), please open a bug in: https://developers.facebook.com/bugs