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] YoutubePlayerController was used after being disposed. #115

Closed
HiIamAlanOu opened this issue Nov 11, 2019 · 3 comments
Closed

[BUG] YoutubePlayerController was used after being disposed. #115

HiIamAlanOu opened this issue Nov 11, 2019 · 3 comments
Assignees
Labels
bug Something isn't working fixed

Comments

@HiIamAlanOu
Copy link
Contributor

Describe the bug
When i use live broadcast function on YoutubePlayerController, and pop to the previous page.

Navigator.of(context).pop();

Error

════════ Exception caught by widgets library ═══════════════════════════════════
The following assertion was thrown while finalizing the widget tree:
A YoutubePlayerController was used after being disposed.

Once you have called dispose() on a YoutubePlayerController, 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:105
#1      ChangeNotifier._debugAssertNotDisposed 
package:flutter/…/foundation/change_notifier.dart:111
#2      ChangeNotifier.removeListener 
package:flutter/…/foundation/change_notifier.dart:166
#3      _PlayPauseButtonState.dispose 
package:youtube_player_flutter/…/widgets/play_pause_button.dart:60
#4      StatefulElement.unmount 
package:flutter/…/widgets/framework.dart:4142
...
════════════════════════════════════════════════════════════════════════════════
@HiIamAlanOu HiIamAlanOu added the bug Something isn't working label Nov 11, 2019
@sarbagyastha
Copy link
Owner

@HiIamAlanOu Will publish with fix tonight.

@HiIamAlanOu
Copy link
Contributor Author

Thank u.

@sarbagyastha
Copy link
Owner

Fixed in Version 6.0.1

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

No branches or pull requests

2 participants