slidevjs / slidev

Presentation Slides for Developers
https://sli.dev
MIT License
33.49k stars 1.37k forks source link

Firefox crashing #1827

Closed schauppi closed 3 months ago

schauppi commented 3 months ago

I updated slidev to version 0.49.26 and suddenly it stopped working in Firefox (I don't know the previous version number). In Safari it works like a charm. I open Firefox, go to http://localhost:3030/ and it gets stuck on the loading screen and Firefox crashes.

Steps to reproduce the behavior:

  1. terminal command: slidev
  2. Open Firefox on http://localhost:3030/ (also with /presenter and /overview)

Environment

KermanX commented 3 months ago

1826?

schauppi commented 3 months ago

1826?

Firefox is not based on chromium?

KermanX commented 3 months ago

So it seems that this bug happens in MacOS + Chromium/Firefox🧐

twitwi commented 3 months ago

I tested on linux (firefox and chromium), with a fresh pnpm create, I got the issue. I could see the title slide but with a memory usage of around 1GB then I tried the slide overview and it froze my graphical session. This looked liked a memory issue but I checked and had a lot of remaining memory, maybe it is a kind of video memory issue.

I thought some slides of the demo were memory hungry, so I trimmed down the slide.md to a single slide, same issue.

I will be trying to manually bisect to get the first version for which it occurs (I'll be back after a few crashes :D).

twitwi commented 3 months ago

ok,

0.49.24: ok
0.49.25: crash
0.49.26: crash
KermanX commented 3 months ago

Let's track #1826. There is a minimal workaround in https://github.com/slidevjs/slidev/issues/1826#issuecomment-2299198069.