-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Fix NoClassDefFoundErrors logspam for missing providers #1201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix NoClassDefFoundErrors logspam for missing providers #1201
Conversation
Thanks @wojtek-kalicinski this makes a lot of sense. However we've got a PR going that totally removes the @SUPERCILEX can you work this into your PR? |
Sounds good, thanks Sam! |
Yeah, I can totally do that. However, I'd like to see some logcat errors: is it crashing? What do you mean by "spammed with NCDEs?" I have trouble seeing how we'll get those errors if we never load the provider classes... |
It's not crashing, as the classes are not loaded. But before that, ART tries to verify them eagerly and just logs all these ncdf errors and stack traces (I'm not at my computer now so can't paste them). |
Oh gotya, here's the stack trace:
|
Ohhhh, so you guys are pre-loading the classes to improve performance? |
#1189 just went in so closing this, look out for |
This moves the optional SDK callback implementations to inner classes, to prevent NoClassDefFoundErrors in logcat when ART verifies the outer classes.
Fixes issue #1200