-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Write seems to be highly dependent from the OS making it untestable #157
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
Comments
Sometimes the creation/addition/removal isn't completed fully at the end of the animation. Ive had this happen sometimes, with my own animations and to solve it I add a You can see this here, where I've used an The GIF keeps looping but you can see that the word "The" is only partially uncreated. Adding a Perhaps this is a similar problem? |
@Aathish04 Thank you very much for that, but sadly it does not work either. So for the moment, I will just remove this test. I'll put a comment referring to this issue instead. |
@Aathish04 This sounds like a bug, doesn't it? Could you pretty please create a new issue about this and attach the same gif? Thanks :) |
@huguesdevimeux where is |
Will do, but is just demonstrating it with |
Thanks. The problem of using
I mean just posting the exat same gif will do if you're in a hurry. If you have a bit more time, then I'd ask you to post a small code example that also exhibits the same problem (and perhaps a gif of it while you're at it) :) |
Have you tried to I think it may be because different machines (or different systems) generate different svg problems, not So I suggest you compare the performance of |
And it's not just |
Yes it would appear that the problem is the parent class, |
An update : It appears that the last letter is slightly more transparent in some os. For example : Since the code of Write is very basic, the issue comes presumably from My hypothesis is that this whole issue comes from the
the t values used to update objects during the animations are taken from I will try this asap. |
I've never used It'd be much more reasonable I think for manim to determine its own course of action and then tell the progress bar to reflect that, instead of the other way around. Or am I missing something? |
REMINDER : Do not close this issue until a test is set up for Write. For the moment, in #133 , WriteTest has been ommitted. |
@leotrs Tbh I didn't use it either, but like that this does seem very orthodox. I agree with your idea. An update: It appears that my hypothesis is seemingly untrue. The t values are the same on every system. If someone wants to conduct a deeper investigation, feel free! |
@leotrs Well I don't really know. (and btw if you choose to fix 698 by adding a new frame at the end of the video (whoch I don't really mind), it won't definitely solve this issue). |
I see. I think this (and possibly many other bugs) will be revealed once we have video tests (#618 ). We're not too far away from getting those. |
I'm facing an incomprehensible issue with
Write
function.To give a little bit of context, I'm building tests (yes, still ... ) and so those tests are run on different OS (Linux - MacOs - Windows).
To test
Write
, I just compare the last frame generated with a pre-generated one: if it matches, all good, if not, something has been modified/broken.BUT The
Write
test passes only on windows (see, for example, https://github.com/ManimCommunity/manim/runs/772124858). So I first thought "Well, it's normal, since myWrite
test works with aText
object, it must be a font-related issue since the fonts are different from a system to another, and I generated the pre-rendered frames on windows so it's logic. But no, because the Text test (that just testText
object, no animation (seemanim/tests/test_writing.py
Line 13 in b38d00a
So my guess is that the issue comes from
Write
directly. I tried to implement something that changes the data depending on the system we are testing on (i.e if on Linux, take the pre-rendered frame from Linux, etc) but nah, it didn't work on both macOS and Ubuntu. (But worked on windows).So I think I will purely remove this test. (If you agree, of course)
But my question is: Does anyone knows why does that happen?
The text was updated successfully, but these errors were encountered: