ResizeObserver loop limit exceeded

1,763 views
Skip to first unread message

Kalcifer Kandari

unread,
Jan 21, 2019, 5:52:46 PM1/21/19
to TiddlyWiki
Keep getting a big red "ResizeObserver loop limit exceeded" error message every time a tiddler with a <video> tag is opened. The video otherwise plays and resizes fine. Is there a way to avoid it?

Kalcifer Kandari

unread,
Jan 22, 2019, 2:52:14 AM1/22/19
to TiddlyWiki
I'm getting the error on this link http://kalcifer.net/#Nodius, I'm using up-to-date Chrome (71.0.3578.98) if that makes a difference. Just to clarify, I am referring to the HTML <video> tag as the source of the problem, not a tiddler tag.

PMario

unread,
Jan 22, 2019, 4:12:15 AM1/22/19
to TiddlyWiki
hi,
which plugins do you use?
-m
Message has been deleted

Kalcifer Kandari

unread,
Jan 22, 2019, 4:52:38 AM1/22/19
to tiddl...@googlegroups.com
I already replied to this, but I think my message was deleted?

I don't use any plugins. Also, not sure if it will change be useful, but here is a link to the custom CSS tiddler. The relevant styles are under 'video {}'.

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/vXVLQD58yPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9bf713bc-28a7-468b-a689-f6f33df553ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jeremy Ruston

unread,
Jan 22, 2019, 6:50:49 AM1/22/19
to tiddl...@googlegroups.com
This error appears to be common, and the consensus is that it is harmless. See this StackOverflow answer for instance:


But, of course, it’s not harmless for TW5 since we have a global error trap that reports it to the user; without that error trap it would just be another red message visible in the developer console.

I think we need more investigation to see whether the problem is triggered by some specific CSS on your site, or if the problem occurs with the standard TW5 theme. That may show a way to avoid it through rephrasing your CSS.

Otherwise, we’ll have to investigate ways of suppressing the error. Perhaps by adding support for a safelist of errors that should be ignored.

Best wishes

Jeremy

On 22 Jan 2019, at 09:29, Kalcifer Kandari <kalcife...@gmail.com> wrote:

I don't use any plugins. You can see the configuration of the wiki using the link I posted, nothing is hidden. I don't think it is caused by CSS, but that's at http://kalcifer.net/#Custom%20CSS, the relevant style is under 'video' near the top.

--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Kalcifer Kandari

unread,
Jan 22, 2019, 7:23:00 AM1/22/19
to tiddl...@googlegroups.com
I tried all sorts of different things, including using an <iframe> tag instead of <video>. The <iframe> did not generate any error message, but height of the <iframe> did not adapt when the tiddler got thinner, whereas the <video> tag does. I also tried creating a HTML file with a <video> tag inside, then including that file in an <iframe> within the tiddler, that also did not generate any errors, but that still had the fixed height issue.

Here is the HTML for the video, which is inside the tiddler http://kalcifer.net/#Nodius:

<video width="100%" height="100%" controls loop autoplay>  
  <source src="2019_01_22_07_34_06_2.mp4" type="video/mp4">  
  Your browser does not support the video tag.
</video>

Here is the CSS for that tag from the custom CSS tiddler http://kalcifer.net/#Custom%20CSS:

video { 
    width: 100% !important; 
    max-width: 960px !important; 
    display: block; 
    margin-left: auto; 
    margin-right: auto; 
}

Go ahead and edit the tiddlers in your browser and see what changes.

Kalcifer



You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/vXVLQD58yPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.

Kalcifer Kandari

unread,
Jan 23, 2019, 3:27:02 AM1/23/19
to tiddl...@googlegroups.com
The error is caused by adding the 'controls' attribute to the <video> HTML tag.

A workaround is to just remove it because without the tag users can 'right click -> Show controls'. Of course if autoplay is not enabled it might be easy to miss that it is actually a video and not an image.

Kalcifer

Kalcifer Kandari

unread,
Mar 12, 2019, 2:37:37 PM3/12/19
to tiddl...@googlegroups.com
Any progress on this bug? I'm planning to have a lot of video content on my site and the lack of controls will obviously be a big problem.

To emphasise my last post, this happens with the default theme with no adjustments to the custom CSS. The error is caused by the 'controls' attribute of the <video> HTML tag, and shows up when the Tiddler is opened. It happens with any story view as well.

Example code within a normal Tiddler:

<video autoplay controls>  
  <source src="path/to/video.mp4" type="video/mp4">  
  Your browser does not support the video tag.
</video>

I was tempted to use CSS to hide all error messages entirely, but even though the message is not visible, HTML gets added over and over. This could be considered a memory leak because there would not be any ability to close them, eventually causing a slow browser for extended sessions with a lot of video content.

Some way to suppress that specific error would be nice.

Kalcifer

Chris Fischer

unread,
Mar 16, 2020, 5:35:05 PM3/16/20
to TiddlyWiki
Still a bug a year later
Jeremy

To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/vXVLQD58yPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddl...@googlegroups.com.

A Gloom

unread,
Mar 18, 2020, 5:12:19 AM3/18/20
to TiddlyWiki

I'm getting the error on this link http://kalcifer.net/#Nodius, I'm using up-to-date Chrome (71.0.3578.98) if that makes a difference. Just to clarify, I am referring to the HTML <video> tag as the source of the problem, not a tiddler tag.

On Monday, January 21, 2019 at 10:52:46 PM UTC, Kalcifer Kandari wrote:
Keep getting a big red "ResizeObserver loop limit exceeded" error message every time a tiddler with a <video> tag is opened. The video otherwise plays and resizes fine. Is there a way to avoid it?

Is the error a popup window error?  Viewing the link, opeining & closing the Nodius tiddler, hiding/revealing sidebar to force video in the Nodius tiddler to resize is not producing any noticeable error messages (outside of dev console) in FF74

Kalcifer Kandari

unread,
Mar 18, 2020, 1:53:52 PM3/18/20
to TiddlyWiki
I stopped using the 'controls' attribute so the error didn't show. I just updated the site so it uses that attribute once again and I can't reproduce the bug anymore either, must have been fixed. See for yourself http://kalcifer.net/#Nodius. I did recently upgraded the site to tiddlywiki 5.1.21, so maybe that did the job.

Kalcifer

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/vXVLQD58yPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/263a74e0-0633-4018-a3d1-379238ddf356%40googlegroups.com.

A Gloom

unread,
Mar 19, 2020, 7:18:06 AM3/19/20
to TiddlyWiki
Kalcifer

I stopped using the 'controls' attribute so the error didn't show. I just updated the site so it uses that attribute once again and I can't reproduce the bug anymore either, must have been fixed. See for yourself http://kalcifer.net/#Nodius. I did recently upgraded the site to tiddlywiki 5.1.21, so maybe that did the job

Good that it cleared.  Could be TW version but I believe it may been a browser issur-- it the html video container/UI is like the html audio, each type of browser, i believe have their own implementation/design of the container/ui-- none of them are identiical-- and if thats true then it could cause incompatibilities..

Kalcifer Kandari

unread,
Mar 19, 2020, 6:30:30 PM3/19/20
to TiddlyWiki
I just opened it in Chrome and Firefox with no issue.

Kalcifer

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/vXVLQD58yPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages