Open 9viz opened 1 month ago
Update: I am 95% sure that this happens when Emacs does not have the chance to exit cleanly. Happened earlier this day and some of the images created by the segfaulted process look smaller in a fresh new Emacs process I started afterwards.
Sometimes the cached images do not have the :height attribute anymore when Emacs is opened the next time. It does not matter if the fragment is inline or display math. I have org-latex-preview-persist-expiry set to 'never. To make the attribute appear again, I need to say M-x org-latex-preview-clear-cache RET when the point is on the fragment. As an example, consider the cached entry before
and the image is attached as before_cache_clear.svg, and after clearing the cache
and the image attached is after_cache_clear.svg. The height attribute in the image is the same.
I believe the problem happens when Emacs does not exit cleanly (because it got OOM'd or it segfaulted), etc. since I seem to witness this only after Emacs gets killed.
after_cache_clear before_cache_clear