Closed VladimirFokow closed 1 day ago
Mmh, ok that's weird, for me it works just fine even for the first scene.
https://github.com/user-attachments/assets/8ada6b3b-5c41-4457-82ba-ae6b7df7852a
You know what: this is now a good time to introduce some logging to the extension (not just debugging console, but a proper file). This way, for future issues, we can ask users to send us the log, otherwise issues like these are really hard to debug as I don't have any MacOS system.
I can confirm with @VladimirFokow the hanging on MacOS. Must fix for v0.1.0. Good find!
looks like the commands DO execute, BUT just: the "Previewing Manim" info box doesn't go away until the user presses Enter
Interestingly:
If we do NOT have sleep
-
if we HAVE sleep
To show that:
from manimlib import *
import time
class SquareToCircle(Scene):
def construct(self):
#
## Test
print('1')
# time.sleep(1)
print('2')
To show that:
same as above (version 1)
To show that:
uncommented sleep:
from manimlib import *
import time
class SquareToCircle(Scene):
def construct(self):
#
## Test
print('1')
time.sleep(1)
print('2')
To show that:
same as version 1
from manimlib import *
import time
class SquareToCircle(Scene):
def construct(self):
#
## Test
print('1')
# time.sleep(1)
print('2')
print('hi')
hm.. considering this looks very weird, @Splines I certainly don't expect you to solve this without even having a MacOS system.
I would be able to see how your ManimShell class works in the coming 1-2 months, and then debug this from the ground up
Example:
start scene on line 17
click "Preview Manim Cell" on line 7
Hangs:
It doesn't matter where you start the scene.
The problem is: "Preview Manim Cell" just always hangs.. - for the First cell only. (2nd cell works!!)
What solved it: pressing "Enter" in the terminal.
Hypothesis of what could be the reason:
is execution triggered by progress bars?
@Splines reproducible on linux?