-
Notifications
You must be signed in to change notification settings - Fork 500
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
djitellopy crashes randomly when trying to join the frame capture thread #154
Comments
Hey, in fact it seems like a bug in DJITelloPy. When the library does not retrieve frames anymore (i.e. the video stream stops) the worker thread tries to stop and join itself. However this also means for some reason your tello is stopping to send images, i.e. this if condition becomes True. Maybe this is caused by you sending |
Actually if I send an rc 0 0 0 0 it will stop the rotation, so it there a way to keep it hovering? i tried using battery? instead of "command" and it still crashed, i think this is a pure bug in the library. |
Actually, forgot to mention in the above reply: It works well sometimes which is weird, but also it works when i read the raw video using opencv which implies the video capture does not stop? |
I try to re-open cap stream instead of stop the thread, so change to this code solve my problem:
|
Hello,
I've been using this library for a project of mine, i've been having a lot of problems of djitellopy crashing, so i was trying to test the library all by itself without my code, and i've written this code:
This code is supposed to to takeoff and stream a video of two rotations which last 140 seconds, using rc 0 0 0 8,
and then wait in the air for 3 minutes simulating my system which is irrelevant for this issue.
But for some reasons, it crashes at random parts of the code, and not all the time, but most times.
the thread i'm creating just keeps the drone in the air so it wont land.
I've tried multiple different Tello drones (the basic white one) and it happend at least once in all of them.
The error is as follows:
Happens randomly, could be while doing a rotation, after the rotations, while doing the rotation after the 3 minute wait, so i can't really estimate even where it originates, if the problem is in my way of working with Tello i will be glad to get some help.
Tried Python 3.8/3.8.13/3.9.
Also happens on my regular ZBook and also on a raspberry pi.
This happend a minute or two after streamoff was called as well, if this helps in any way.
Will also list versions of packages in pip (using Python3.8.13):
The text was updated successfully, but these errors were encountered: