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] createDateTime range out of 8.64e15 #1185

Closed
PotouLi opened this issue Aug 26, 2024 · 0 comments · Fixed by #1186
Closed

[BUG] createDateTime range out of 8.64e15 #1185

PotouLi opened this issue Aug 26, 2024 · 0 comments · Fixed by #1186

Comments

@PotouLi
Copy link

PotouLi commented Aug 26, 2024

Describe the bug

RangeError (millisecondsSinceEpoch): Invalid value: Not in inclusive range -8640000000000000..8640000000000000: 68069651195501000

How to reproduce

这是一个线上问题,我们也没有复现。这是 iPhone 12 Pro Max 设备上的问题。下面是我们调用 AssetPicker 的代码。(线上的版本是 wechat_assets_picker: ^9.1.0)

final List<AssetEntity>? assets = await AssetPicker.pickAssets( context, pickerConfig: AssetPickerConfig(maxAssets: maxImages - _imageUrls.length, requestType: RequestType.image), );

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. Error occurred.

Expected behavior

The problem does not occur, or arguments can be provided so that the code that created the problem is not invoked.

Screenshots (If contains)

image

Version information

  • Device: iPhone 12 Pro Max
  • OS: [e.g. iOS 14.7.1]
  • Package Version: ^9.1.0
  • Flutter Version: 3.19.5

Additional context

@AlexV525 AlexV525 changed the title [BUG] Error with something [BUG] createDateTime range out of 8.64e15 Sep 15, 2024
@AlexV525 AlexV525 transferred this issue from fluttercandies/flutter_wechat_assets_picker Sep 15, 2024
AlexV525 added a commit that referenced this issue Sep 22, 2024
Fixes #841
Fixes
#1009
Fixes
#1180
Fixes
#1181
Fixes
#1185

1. Adds a detached state for managers. Callers with those managers will
first be aware of the detaching state before any actual calls to avoid
crashes.
2. Errors replied by the channel do not include detailed messages
before. Now the code will unwrap certain exceptions to extract details
from them.
3. `PHAssetResource` with the type `PHAssetResourceTypeFullSizeVideo`
does not count as a video type before, making the resource obtain ignore
them.
4. Fixes potential range exception when converting `NSTimeInterval` on
Darwin.
5. Fixes progress not being updated when getting the non-original video
file on iOS.
6. Fixes incorrect Live Photo resource being obtained which will result
in a wrong aspect ratio.
7. Fixes Live Photos saving exceptions with the paired video.
8. Expose `progressHandler` for `AssetEntity.getMediaUrl`.
9. Expose `withSubtype` for `AssetEntity.isLocallyAvailable` to request
if a Live Photo resource is available.
10. Other lints and type promotion fixes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants
@AlexV525 @PotouLi and others