-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
controller.onDispose Not Working Properly #50
Comments
It sounds like you're dealing with an issue where the Here are a few things you could check or try to resolve the issue: 1. Ensure the
|
Hey, @glenn-jocher |
@timukasr thank you for pointing this out. Please ensure you're using the latest version of the package, as updates may address these issues. If the problem persists, consider opening a detailed issue on GitHub for further investigation by the team. |
Latest version cannot work if we can see from code that the feature is not implemented. There is already two issues, the current one and #21, don't see how creating a third one would help. |
@timukasr thank you for your feedback. We'll review the existing issues to address the missing implementations. Please stay tuned for updates. |
Hello,
I am experiencing an issue with controller.onDispose in the ultralytics_yolo package. Despite calling controller.dispose() in the dispose method of my widget, it seems that the onDispose callback does not execute as expected.
Here's the relevant part of my code:
@OverRide
void dispose() {
if (objectDetectorInstance != null) {
objectDetectorInstance.ultralyticsYoloPlatform.closeCamera();
objectDetectorInstance.ultralyticsYoloPlatform.pauseLivePrediction();
}
if (controller != null) {
controller.dispose();
}
_isControllerDisposed = true;
super.dispose();
}
void _disposeResources() {
if (!_isControllerDisposed) {
_isControllerDisposed = true;
controller.pauseLivePrediction();
controller.closeCamera();
objectDetectorInstance.ultralyticsYoloPlatform.closeCamera();
objectDetectorInstance.ultralyticsYoloPlatform.pauseLivePrediction();
}
}
The dispose method is supposed to clean up resources, but it appears that the controller.onDispose callback does not function as anticipated.
Has anyone encountered a similar issue or have suggestions on how to resolve this?
Thank you!
The text was updated successfully, but these errors were encountered: