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

Glide hungs browser (infinite loop) if no slides #385

Open
hheexx opened this issue Jul 11, 2019 · 4 comments
Open

Glide hungs browser (infinite loop) if no slides #385

hheexx opened this issue Jul 11, 2019 · 4 comments

Comments

@hheexx
Copy link

hheexx commented Jul 11, 2019

Hi,

I have a problem glide entering infinite loop and hunging whole browser.

this loop:

for (var r = 0; r < Math.max(1, Math.floor(perView / slides.length)); r++) {

If slides.length is 0, division returns Infinity and creates infinite loop.

@limonte
Copy link
Contributor

limonte commented Jul 14, 2019

Same issue here, looks quite critical to me. @jedrzejchalubek you might want to prioritize this issue and release a new version, it'll be a minor because there are some new features since v3.3.0

@hrvojepavlinovic
Copy link

Same here

@puremana
Copy link

We are experiencing the same issue, put a check to see if slides exist

@wlcx
Copy link

wlcx commented Sep 2, 2019

Duplicate of #337

Lucassifoni added a commit to documents-org/glide that referenced this issue Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants