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] Exception when closing the picker before it has had time to load the assets #492

Closed
LeGoffMael opened this issue Sep 13, 2023 · 0 comments · Fixed by #493
Closed
Assignees
Labels
s: bug Something isn't working. ⏳WEEK This issue is scheduled to be solved within one week.

Comments

@LeGoffMael
Copy link
Collaborator

Describe the bug
Reproducible on the current example application.
When the picker is closed before it has had time to load the assets, an exception is thrown.

[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: A DefaultAssetPickerProvider was used after being disposed.
Once you have called dispose() on a DefaultAssetPickerProvider, it can no longer be used.
#0      ChangeNotifier.debugAssertNotDisposed.<anonymous closure>
change_notifier.dart:179
#1      ChangeNotifier.debugAssertNotDisposed
change_notifier.dart:186
#2      ChangeNotifier.notifyListeners
change_notifier.dart:382
#3      DefaultAssetPickerProvider.getAssetsFromPath.run
asset_picker_provider.dart:374
<asynchronous suspension>

How to reproduce

Steps to reproduce the behavior:

  1. Run the example app
  2. Click on 'Common Picker'
  3. Close it immediately after opening
  4. Error occurred.

Expected behavior
There should be no exceptions.

Screenshots (If contains)

RPReplay_Final1694591427.mov

Version information

  • Device: iPhone 11 pro
  • OS: iOS 16.2
  • Package Version: 8.7.1
  • Flutter Version: 3.13.3
@LeGoffMael LeGoffMael added the await investigate The issue is waiting for further investigation. label Sep 13, 2023
@LeGoffMael LeGoffMael self-assigned this Sep 13, 2023
@github-actions github-actions bot added the await triage The issue is waiting for triage. label Sep 13, 2023
@AlexV525 AlexV525 added s: bug Something isn't working. ⏳WEEK This issue is scheduled to be solved within one week. and removed await triage The issue is waiting for triage. await investigate The issue is waiting for further investigation. labels Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
s: bug Something isn't working. ⏳WEEK This issue is scheduled to be solved within one week.
Projects
None yet
2 participants