Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAudioRenderThread panics when opening google #26663
Comments
|
This will likely be fixed by #26611. |
|
Nevermind, that's a different panic stack but similar panic message. Maybe it's related to #26271 instead. |
|
After reverting commit servo/media@f5f10c4 I no longer have this problem when opening google. |
|
cc @khodzha |
|
The linear extrapolation looks like it can panic if pos is 0. |
|
I don't have this on the latest Servo build on my Ubuntu VM. Commit hash: bb80eb1da The Google logo is off to the left, but no panics. EDIT: I thought |
|
Aha, it might have been triggered by a special google doodle. That's frustrating. |
|
I don't get the error on my Mac either by the way. |
|
Time to look at the Google Doodle archives! Or I could try archive.org maybe |
|
There doesn't seem to have been a Google Doodle when this bug happened! I tried https://web.archive.org/web/20200526105453/http://www.google.com/ in Servo, which is from the same time as the panic log report, and there was just the regular Google logo. It worked fine aside from a layout bug. The only thing I can think of is that the timezones don't match. |
|
Or, perhaps Archive.org is blocking the audio |
|
Could we add an automated test to check for this? |
|
we would have to work backwards from the code, but it definitely should be possible (also desirable). |
|
Is it possible to have the CI run |
|
We could, but any tests where the content can change at any time are inherently risky and difficult to determine whether a PR is responsible for a new failure or not. |
|
jdm was right, it was doodle that day, so google doesn't crash now. I am able to reproduce same stack trace after manually starting doodle on: https://www.google.com/doodles/mothers-day-2020-nicaragua |
|
Weirdly, when I go to that page, it still doesn't panic. Does yours panic every time or is it random? Commit hash: 5dae012 |
|
Panic occurred every time I tested. Today i tried also testing on VM, same results. |
|
Hmm. What OS are you on? |
|
arch linux |
|
could you try again please compiling with servo-media from master? i (think i) fixed the error in BufferSourceNode |
|
This hasn't been updated in Servo yet. |
|
Servo crashes no more for me on google doodle, after compiling with the most recent servo/media. |
|
It would be really great to create an automated test that reproduces the same issue without the change to servo/media. |
|
What confuses me about this is that the issue was when the position was zero, but shouldn’t that happen at the beginning of every audio clip? Am I missing something? |
|
Only for audiobuffersoucenode when the slow path in this code requires interpolation. |
nightly build from servo.org
~/Downloads/servo$ ./servo https://www.google.com index out of bounds: the len is 1 but the index is 18446744073709551615 (thread AudioRenderThread, at /root/.cargo/git/checkouts/media-c23a3cd5aa97076a/62cd58a/audio/buffer_source_node.rs:405) [2020-05-26T10:54:19Z ERROR servo] index out of bounds: the len is 1 but the index is 18446744073709551615debug build from github (commit 7170a69)