-
Notifications
You must be signed in to change notification settings - Fork 39
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
Crash with IllegalStateException - Apps may not schedule more than 100 distinct jobs #234
Comments
It appears all of these crashes are on Android versions 8.X and 9. It is not limited to any manufacturer or phone. |
Thanks for reporting this. We'll look into it! |
@benvonhandorf are you reinitializing ever time you get a datafile update? |
Currently I only call initialize as part of app startup. |
Thanks @benvonhandorf ! We are looking into it now. |
@benvonhandorf I'd like to know some more about what you are doing. Under normal circumstances, the OptimizelyManager.onDatafileDownloaded would only be called once. Are you doing anything special with the DefaultDatafileManager? Or, using the DatafileServiceConnetion in some other way? |
Here is all my interaction with the Optimizely in my code: As part of app startup:
I'm using callbacks for my own book-keeping around the state of optimizely (in onStart) and error logging, but the only other interactions I have is dumping the state of the world after initialization:
and tracking individual events, e.g.:
Currently we have no optimizely experiments running. I have taken optimizely out entirely in a point release and this crash stopped, so it definitely seems related to the SDK, even if there are aggravating factors from other SDKs or code, which is possible. |
@benvonhandorf Thanks for the feedback. Can the initialize happen while the app is backgrounded? Again, thanks for the help. |
Yes, we will attempt to initialized if the app is in the background. Our app startup is currently monolithic and Optimizely is started as part of it... so if a scheduled job fires it will do all our normal startup, including Optimizely. Unfortunately I haven't seen it in debug yet. |
@benvonhandorf Interesting. It sounds like we may just be the straw that broke the camels back. But, we can at least wrap that schedule in a try catch. We will add that today. Thanks! |
@benvonhandorf We released 2.1.1 which includes a fix for this. |
@benvonhandorf officially tagged in release 2.1.2. I'm going to close this for now. Please feel free to reopen if you find something else wrong. |
Optimizely is crashing on my android app with this error message java.lang.ExceptionInInitializerError caused by java.lang.IllegalStateException: FileLogger is not initialized, Forgot to call Log4O.init()? It seems that have another library in my project using this lib 'com.noveogroup.android:android-logger:1.3.5' |
@ingridswiftconnect it looks like not related to the original issue here. Can you file a new one with your issue? It'll be helpful if you can share the full stack trace as well. Thanks. |
Hello,
Could you tell me where to file the issue? Thank you!
…On Fri, Feb 17, 2023 at 12:21 PM Jae Kim ***@***.***> wrote:
@ingridswiftconnect <https://github.com/ingridswiftconnect> it looks like
not related to the original issue here. Can you file a new one with your
issue? It'll be helpful if you can share the full stack trace as well.
Thanks.
—
Reply to this email directly, view it on GitHub
<#234 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AYDUJUUG7U6QMKZ2LEU5QKLWX6XRBANCNFSM4GACTRNA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
We're seeing a crash in the Optimizely stack around scheduling jobs with the JobScheduler. The app also makes use of JobScheduler, via the WorkManager library, but the app currently only schedules 3-5 jobs, maximum.
These crashes are mostly happening in the background, according to fabric.
Relevant library versions:
implementation('com.optimizely.ab:android-sdk:2.1.0')
android.arch.work:work-runtime: 1.0.0-alpha10
android.arch.work:work-firebase: 1.0.0-alpha10
com.firebase:firebase-jobdispatcher:0.8.5
The text was updated successfully, but these errors were encountered: