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

[Bug]- Exceptions occur when a user tries to logout #520

Closed
Jaideep-C opened this issue Mar 26, 2021 · 1 comment
Closed

[Bug]- Exceptions occur when a user tries to logout #520

Jaideep-C opened this issue Mar 26, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Jaideep-C
Copy link
Contributor

Issue Description:

There are two exceptions in the app which are occurring when a user tries to logout.

  1. PersistentTabController was used after being disposed

    ════════ Exception caught by widgets library ═══════════════════════════════════
    The following assertion was thrown while finalizing the widget tree:
    A PersistentTabController was used after being disposed.
    Once you have called dispose() on a PersistentTabController, it can no longer be used.
    When the exception was thrown, this was the stack
    #0      ChangeNotifier._debugAssertNotDisposed.<anonymous closure>
    package:flutter//foundation/change_notifier.dart:117
    #1      ChangeNotifier._debugAssertNotDisposed
    package:flutter//foundation/change_notifier.dart:123
    #2      ChangeNotifier.dispose
    package:flutter//foundation/change_notifier.dart:212
    #3      PersistentTabController.dispose
    package:persistent_bottom_nav_bar/models/persistent-nav-bar-scaffold.widget.dart:37
    #4      _HomePageState.dispose
    package:talawa//pages/home_page.dart:50
    ...
    ════════════════════════════════════════════════════════════════════════════════
  2. Tickers used by AnimationControllers are not disposed

    ════════ Exception caught by widgets library ═══════════════════════════════════
    The following assertion was thrown while finalizing the widget tree:
    _UrlPageState#45fca(tickers: tracking 21 tickers) was disposed with an active Ticker.
    _UrlPageState created a Ticker via its TickerProviderStateMixin, but at the time dispose() was called on the mixin, that Ticker was still active. All Tickers must be disposed before calling super.dispose().
    Tickers used by AnimationControllers should be disposed by calling dispose() on the AnimationController itself. Otherwise, the ticker will leak.

Issue Severity:

High, as these exceptions cause memory leaks.

Environment Details:

Mobile Device(Android-arm64)

$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.0.3, on Microsoft Windows [Version 10.0.19042.870], locale en-IN)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web  
[√] Android Studio (version 4.1.0)
[√] Connected device (3 available)

• No issues found!

Steps to reproduce issue:

To reproduce the issue follow these

  1. log in to the App
  2. navigate to the profilePage
  3. click on Logout btn, then yes.

Snapshots/Videos:

Persistenttabcontroller-1.mp4
Tickerexception-1.mp4

Does this issue need immediate attention?

Yes!

Are you willing to work on this issue:

I am happy to fix the issue😊

@github-actions github-actions bot added the unapproved Unapproved, needs to be triaged label Mar 26, 2021
@Jaideep-C
Copy link
Contributor Author

The first exception of the issue is solved at #523 and the second part is solved at #521.
Thanks, @utkarshshendge for helping out 😊

@Sagar2366 Sagar2366 added bug Something isn't working and removed unapproved Unapproved, needs to be triaged labels Mar 27, 2021
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