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] LateInitializationError: Field 'cameras' has already been initialized #174

Closed
HongZhiQing opened this issue May 26, 2023 · 2 comments
Labels
i: lack of information Further information is requested

Comments

@HongZhiQing
Copy link

Describe the bug
A black screen appears when you press the shoot button on the shooting page.

How to reproduce
Using example project

Steps to reproduce the behavior:
Press and hold the shooting button and release the button immediately when the recording progress bar appears. Huawei mate40 is easy to reproduce.

Expected behavior
Prompt that the recording time is less than minimumRecordingDuration

Screenshots (If contains)
21685106216_ pic

Version information

  • Device: Huawei mate 40
  • OS: HarmonyOS 3.0.0
  • Package Version: 3.8.0
  • Flutter Version: v3.7.6

Additional context

  • error:
    "LateInitializationError: Field 'cameras' has already been initialized."

  • stack:
    "#0 LateError._throwFieldAlreadyInitialized (dart:_internal-patch/internal_patch.dart:195:5)
    [Contributors] Add contributors. #1 CameraPickerState.cameras= (package:wechat_camera_picker/src/states/camera_picker_state.dart:56:38)
    docs: add AlexV525 as a contributor #2 CameraPickerState.initCameras. (package:wechat_camera_picker/src/states/camera_picker_state.dart:274:9)

"
@HongZhiQing HongZhiQing added the await investigate The issue is waiting for further investigation. label May 26, 2023
@AlexV525
Copy link
Member

20230531_181757.mp4

I cannot reproduce the issue using the v3.8.0 of the plugin.

@AlexV525 AlexV525 added s: invalid i: lack of information Further information is requested await response Issue require customer's further response. and removed await investigate The issue is waiting for further investigation. labels May 31, 2023
@AlexV525 AlexV525 closed this as not planned Won't fix, can't repro, duplicate, stale Jul 5, 2023
@AlexV525 AlexV525 removed the await response Issue require customer's further response. label Jul 5, 2023
AlexV525 added a commit that referenced this issue Jul 24, 2023
@OnClickListener2048
Copy link

same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i: lack of information Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants