Skip to content
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

App crashes after back press #59

Open
joneskm opened this issue Apr 2, 2020 · 1 comment
Open

App crashes after back press #59

joneskm opened this issue Apr 2, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@joneskm
Copy link
Contributor

joneskm commented Apr 2, 2020

When restarting the app after pressing the back button, the app crashes. Stacktrace:

Caused by: java.lang.RuntimeException: BabbleConstants already initialised
        at io.mosaicnetworks.babble.node.BabbleConstants.initialise(BabbleConstants.java:120)
        at io.mosaicnetworks.babble.configure.BaseConfigActivity.onCreate(BaseConfigActivity.java:137)
        at io.mosaicnetworks.sample.MainActivity.onCreate(MainActivity.java:55)
        at android.app.Activity.performCreate(Activity.java:6855)
        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2656)

The underlying issue is that the activities are re-created when the app is re-started however static variables persist.

@joneskm joneskm added the bug Something isn't working label Apr 2, 2020
@jonknight73
Copy link
Contributor

Hold off this, there are some changes in the workflow pending.

There is a TODO: comment highlighting a similar issue, but it makes sense to fix the refactored version rather that do it twice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants