Skip to content
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

"There is no bookmark" #75

Open
DoctorDinosaur opened this issue Nov 8, 2023 · 2 comments
Open

"There is no bookmark" #75

DoctorDinosaur opened this issue Nov 8, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@DoctorDinosaur
Copy link

DoctorDinosaur commented Nov 8, 2023

Description of bug / unexpected behavior

I keep getting Exception: There is no <bookmark mark='BookmarkName' /> with no obvious connection between when it happens.

Expected behavior

Bookmarks are properly picked up

How to reproduce the issue

I don't know why it happens sometimes but not other times.

Code for reproducing the problem
self.set_speech_service(GTTSService(lang="en", tld="com", transcription_model='base', global_speed=1.2))
with self.voiceover(text="""With <bookmark mark='A'/>this result, 
                                    we can now go <bookmark mark='B'/>back and derive our formula for updating the kernel weights.""") as tracker:
            self.wait_until_bookmark("A")
            self.play(Indicate(s1_text), Unwrite(s2_text), Unwrite(s3_text), Unwrite(s4_text))
            self.wait_until_bookmark("B")
            self.play(Write(new_weights), s1_text.animate.to_edge(UP).to_edge(RIGHT)), s1_text.animate.scale(0.5)
            self.wait_for_voiceover()

doesn't work but

self.set_speech_service(GTTSService(lang="en", tld="com", transcription_model='base', global_speed=1.2))
with self.voiceover(text="""The kernel weights are updated, or trained, using the following formula<bookmark mark='A'/>, 
                                    where <bookmark mark='B' />alpha is the learning rate hyperparameter 
                                    and <bookmark mark='C'/>W is the kernel weight matrix.""") as tracker:
            self.play(Write(new_weights), run_time=tracker.time_until_bookmark("A"))
            self.wait_until_bookmark("B")
            self.play(Indicate(new_weights[0][7]))
            self.wait_until_bookmark("C")
            self.play(Indicate(new_weights[0][0:3]), Indicate(new_weights[0][4:6]))

Does

Logs

Terminal output

Nothing useful/relevant in the debug log.

Here's the error traceback: https://pastebin.com/pUGT9LF2

System specifications

System Details
  • OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)): Windows 10
  • RAM: 16GB
  • Python version (python/py/python3 --version): 3.10.12
  • Installed modules (provide output from pip list): https://pastebin.com/0YZ0fC7m
LaTeX details
  • LaTeX distribution (e.g. TeX Live 2020): MikTex
  • Installed LaTeX packages: (A lot, don't wanna take hundreds of screenshots)
FFMPEG

Output of ffmpeg -version:

ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.3.1 (GCC) 20200523
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil      56. 31.100 / 56. 31.100
libavcodec     58. 54.100 / 58. 54.100
libavformat    58. 29.100 / 58. 29.100
libavdevice    58.  8.100 / 58.  8.100
libavfilter     7. 57.100 /  7. 57.100
libswscale      5.  5.100 /  5.  5.100
libswresample   3.  5.100 /  3.  5.100
libpostproc    55.  5.100 / 55.  5.100

Additional comments

@DoctorDinosaur DoctorDinosaur added the bug Something isn't working label Nov 8, 2023
@DoctorDinosaur
Copy link
Author

Deleting the media folder fixed it this time, but I shouldn't really have to do that, no?

@DoctorDinosaur
Copy link
Author

I think the issue boils down to it not updating if you add a bookmark, only if you change the spoken text?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants