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

Spam into log when error occured with text tracks #1903

Closed
Globulopolis opened this issue Feb 27, 2015 · 8 comments
Closed

Spam into log when error occured with text tracks #1903

Globulopolis opened this issue Feb 27, 2015 · 8 comments

Comments

@Globulopolis
Copy link

Hi!
Somewhere I saw an opened(or closed) issue with this error. At least for FF 35.0 and VJS 4.12.1 I see more than 6000 rows in log that cause big lags in browser.

I cannot understand why... I see in logs

VIDEOJS: ERROR: b { name="ParsingError", code=1, message="Malformed timestamp: 00:59:21,160 --> 00:59:22,191", more...}

Chapters worked fine in the previous VJS 4.11 release.

PS! I'm use video.js with included vtt script.
If need demo please leave comment.

@gkatsev
Copy link
Member

gkatsev commented Feb 27, 2015

This is probably comes from the fact that our new vtt parsing is much more strict and spec compliant. According to the spec, the separator between seconds and second-fractions is a U+002E FULL STOP character (.) [step 5]

@Globulopolis
Copy link
Author

Thank you! Found that in subtitles separator isn't spec compliant.
But how about spam into log? Or it's not a VJS spam?

@gkatsev
Copy link
Member

gkatsev commented Feb 27, 2015

We print out the parsing errors from vttjs into the log.
We definitely do want to print out the errors, but if it's happening too much, we might want to collapse multiple print outs into one, or something.
Do you have the full log? Also, if you have any ideas of how to handle too many errors in this case.

@Globulopolis
Copy link
Author

clipboard01
Can't provide full log, but you can see screenshot.

Emm... Unfortunately I'm not JS guru. But I think we need something like "type error", so we can detect which type of error raised, and if more than n+1 errors happened - suppress them. At least for text tracks, I think, because for each track(can be several) logger throw error.

@gkatsev
Copy link
Member

gkatsev commented Feb 27, 2015

The screenshot is good. Yeah, we're currently print each error into the console.
What about print all the errors at the same time after the parsing as happened?

@Globulopolis
Copy link
Author

@gkatsev sounds good as temporary solution. But what happens when VJS will throw all collected errors?

@gkatsev gkatsev added this to the Captions milestone Mar 9, 2015
@gkatsev
Copy link
Member

gkatsev commented Mar 9, 2015

I think we can use the dev tool's groupBy functionality so everything gets grouped together.

@gkatsev
Copy link
Member

gkatsev commented Apr 19, 2016

Fixed by #3259

@gkatsev gkatsev closed this as completed Apr 19, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants