-
Notifications
You must be signed in to change notification settings - Fork 75
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]: If you open and close the editor like CropRotateEditor many times it will eventually bug out and the next times you open it it will always bug #236
Comments
Could you try using the latest version of the package, |
Thanks for fast response. I will try now to update and test but, other user opened one issue about the same problem and he is at the latest version. |
Same error with version: 5.4.1
|
#237 This is probably related. |
Thank you for sharing that information. When you try the web demo under "Standalone Sub-Editor => Crop-Rotate-Editor", do you experience the same issue? I am currently unable to reproduce the problem, even when using your code. If the issue does occur for you in the demo, could you let me know your browser version? Additionally, have you noticed this behavior across multiple browser versions or different browsers? To clarify, are you using the canvas renderer for the web? Also, do you bootstrap Flutter in the same way shown in the web example? If you are using a different method for bootstrapping, could you share your approach? Finally, do you also precache the image before opening the editor? |
About the web demo, yes it work normal but i dont know what flutter version you are using, i thought that was a problem with .network or .memory constructor but the same error occurs with asset testing in my Flutter Version About the bootstrap, yes its the same as your example. I tried using precache but the problem continues. |
I just created a blank project, just to test this and the problem still continue. main.dart
pubspec.yaml
|
The This means that if the Additionally, we know that when the crop-rotate editor is accessed from the main editor, there is no issue. The problem only arises when the standalone editor is opened. The key difference with the standalone version lies within the Our next steps will be to confirm whether the issue is inside the initConfigs: CropRotateEditorInitConfigs(
mainImageSize: sizesManager.decodedImageSize,
mainBodySize: sizesManager.bodySize, FYI: The Flutter version used for the demo can be seen in the workflow here. |
Package Version
5.1.1
Flutter Version
3.24.3
Platforms
Web
How to reproduce?
create the CropRotateEditor like:
I know that this bug happened in another Issue that has already been "resolved", but I'm on the Web platform and it happened to me, I've tried to resolve it in several ways but I don't know what's happening.
The first time it never bugs, but if you keep closing and opening fast you will throw exceptions.
I have test with memory and network constructors all give me exceptions eventually.
If you test in --release version, the exception happens faster.
Logs (optional)
Example code (optional)
No response
Device Model (optional)
Chrome
The text was updated successfully, but these errors were encountered: