-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
dispose() gives error: Cannot read property 'classList' of null #5706
Comments
👋 Thanks for opening your first issue here! 👋 If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
Unfortunately, I'm unable to reproduce locally or in browserstack on chrome 65 on win10 or macos. |
I'll test it on my phone this week, if it works - no problem really...
Thank you!
Dima
…On Wed, Dec 26, 2018 at 7:55 PM Gary Katsevman ***@***.***> wrote:
Unfortunately, I'm unable to reproduce locally or in browserstack on
chrome 65 on win10 or macos.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#5706 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Abs89BaKeDeLN4nsMsm96jy9Lq0WO3gNks5u87gEgaJpZM4ZfsEF>
.
|
I think i've seen this in a unit test before (so don't wait for |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Hi,
We instantiate the player like this:
As we cannot reproduce this exception, it is difficult to pinpoint why this is occurring in a very small number of instances ( n<0.01% of requests). I also cannot find any references to VideoJsDelegate MutationObserver in VideoJs release 6.6. Is there any specific behavior for autoplay that needs to be guarded against in chrome? Thanks! |
@gkatsev can this be re-opened? A check for if (element && element.classList) { |
I'm not seeing an error locally. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Can you re-open this ticket @gkatsev? |
Anyone have info on how to reproduce this issue? |
@gkatsev See above, there are steps to reproduce in the initial description. It appears to be related to disposing and re-creating video-js objects within a component |
As I mentioned above, I'm unable to reproduce with either the test page or locally. |
I wasn't able to reproduce it with that test page either, but while playing with it, I was able to break it using: videojs("my_video", {}, function ready() {
console.log("ready");
videojs("my_video").dispose();
}); I don't think it should throw this/any error: |
Looks like a different error but related to disposing. It probably should handle that case gracefully. Probably a timing issue with |
I agree. Wouldn't surprise me that fixing this issue reveals the other issue.. |
@gkatsev (Using videojs + videojsima plugin) |
We just merged #6967, hopefully that should fix some of the issues related to this. |
#6701 was merged and I think this can be closed. |
Thanks for following up. Forgot to close it as part of the commit. |
Fix is in 7.14.2. |
Still have this error :/ |
The issue demonstrated in the test case was fixed when this was closed. If you are seeing an issue in a different scenario, please open a new issue with steps to reproduce. |
Description
Hey guys, I've been going crazy for a full day over this bug, thinking i must be missing something (i still might be)
basically I get an error every time I use dispose, including this super simple reduced case:
https://codepen.io/dimam-bestreet/pen/GPmoxX
Steps to reproduce
VM76237:214 Uncaught TypeError: Cannot read property 'classList' of null
at VideojsDelegate (:214:46)
at add_element (:395:17)
at MutationObserver. (:419:17)
Results
Expected
no error..
Actual
error... ^^
Error output
If there are any errors at all, please include them here.
VM76237:214 Uncaught TypeError: Cannot read property 'classList' of null
at VideojsDelegate (:214:46)
at add_element (:395:17)
at MutationObserver. (:419:17)
Additional Information
I've checked in firefox - no error!
I am using crome (Chromium 65) on linux (if that has anything to do with anything)
versions
videojs
7.3.0
browsers
Chromium 65, firefox seems ok
OSes
I've checked only mine - linux mint 17.3
plugins
nope
Is this is only related to the fact im using Chromium 65??
The text was updated successfully, but these errors were encountered: