typora-issues icon indicating copy to clipboard operation
typora-issues copied to clipboard

unstable images and preview flicker

Open keitasumiya opened this issue 3 years ago • 8 comments

Problem

The size of inserted images are unstable freaquently. At that time, the preview shows with a flicker lite an attached video.

Reproduction

  1. launch typora
  2. write some sentences
  3. insert some images
  4. repeat above writing and inserting
  5. image size and preview change to unstable

It looks like this flicker occurs at the time when images exist on the top of the preview area.

Environment

  • macOS Monterey, version 12.3.1
  • MacBook Air (M1, 2020)
  • 16GB memory
  • 2TB SSD
  • typora 1.2.4 (6304)

https://user-images.githubusercontent.com/15891018/171991986-b0f88117-f289-4e4a-9a73-877f93ca3426.mp4

keitasumiya avatar Jun 04 '22 08:06 keitasumiya

Possible to send us the sample md file? And what about 1.3.3-dev?

abnerlee avatar Jun 08 '22 07:06 abnerlee

Thanks!! This is the sample file: preview-flicker.zip

keitasumiya avatar Jun 08 '22 08:06 keitasumiya

Now I tested this sample file on 1.3.3-dev, but same problem was occured...

keitasumiya avatar Jun 08 '22 08:06 keitasumiya

I tested this sample file on 1.3.7, then it looks like that works stably!! Thanks!!

HOWEVER, Typora works too much slowly. This is a new problem and this occurs on 1.3.3-dev, 1.3.6 and 1.3.7. 1.2.4 is no problem.

These following videos are the differeces about this new problem. And, it occurs when I open another markdown files including lots of images and videos with Typora. (These other markdown files are different from the above sample file [preview-flicker.zip])

  • (OK) 1.2.4

https://user-images.githubusercontent.com/15891018/176470300-4882c3b2-474c-4748-b924-30c1cc36a908.mp4

  • (NG) 1.3.7

https://user-images.githubusercontent.com/15891018/176470443-b1b84b9a-a645-4c47-ae09-9e9bff9850e1.mp4

If you think I should make a new issue page, I'll do it.

Thanks,

keitasumiya avatar Jun 29 '22 15:06 keitasumiya

Possible to provide the sample file for the new issue?

abnerlee avatar Jul 23 '22 08:07 abnerlee

Thanks so much!! The file size is so large (115MB), so I put my dropbox link here. https://www.dropbox.com/s/u6268zipuxukgd6/sample.zip?dl=0

keitasumiya avatar Jul 24 '22 10:07 keitasumiya

@keitasumiya Hi, which theme do you use? How about built-in themes? I tested with Github theme, all seems ok so far...

abnerlee avatar Jul 28 '22 14:07 abnerlee

@abnerlee I usually use my special theme that I made from a built-in github theme. I also tested all built-in themes but all themes had been slow... Therefore I think this problem doesn't depend on theme.

keitasumiya avatar Jul 28 '22 19:07 keitasumiya

You can preview the fix on https://typora.io/releases/dev

abnerlee avatar Aug 23 '22 12:08 abnerlee

fixed in 1.4.4

abnerlee avatar Sep 06 '22 02:09 abnerlee