You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After stopping a microphone recording in Firefox, it seems some JavaScript function is called over and over again indefinitely, each time triggering the error Invalid URI. Load of media resource failed. This leads to excessive CPU usage even when the web UI is idle after recording audio. It appears that after each recording, another asynchronous function starts calling the problematic function, leading to CPU usage increasing further with each recording, until the web UI becomes laggy and Firefox finally crashes.
The logs below show the browser console after recording two audio clips.
Invalid URI. Load of media resource failed. 4 127.0.0.1:7860
Invalid URI. Load of media resource failed. 127.0.0.1:7860
Invalid URI. Load of media resource failed. 127.0.0.1:7860
Invalid URI. Load of media resource failed. 127.0.0.1:7860
Invalid URI. Load of media resource failed. 127.0.0.1:7860
Invalid URI. Load of media resource failed. 127.0.0.1:7860
Invalid URI. Load of media resource failed. 127.0.0.1:7860
Invalid URI. Load of media resource failed. 127.0.0.1:7860
Invalid URI. Load of media resource failed. 127.0.0.1:7860
Invalid URI. Load of media resource failed. 2 127.0.0.1:7860
Invalid URI. Load of media resource failed. 2 127.0.0.1:7860
Invalid URI. Load of media resource failed. 439 127.0.0.1:7860
Invalid URI. Load of media resource failed. 657 127.0.0.1:7860
Invalid URI. Load of media resource failed. 127.0.0.1:7860
Invalid URI. Load of media resource failed. 127.0.0.1:7860
Invalid URI. Load of media resource failed. 127.0.0.1:7860
Invalid URI. Load of media resource failed. 127.0.0.1:7860
Invalid URI. Load of media resource failed. 2 127.0.0.1:7860
Invalid URI. Load of media resource failed. 2 127.0.0.1:7860
Invalid URI. Load of media resource failed. 2 127.0.0.1:7860
Invalid URI. Load of media resource failed. 2 127.0.0.1:7860
Invalid URI. Load of media resource failed. 2 127.0.0.1:7860
Invalid URI. Load of media resource failed. 2 127.0.0.1:7860
Invalid URI. Load of media resource failed. 2 127.0.0.1:7860
Invalid URI. Load of media resource failed. 1646 127.0.0.1:7860
System Info
Gradio Environment Information:
------------------------------
Operating System: Linux
gradio version: 4.26.0
gradio_client version: 0.15.1
------------------------------------------------
gradio dependencies in your environment:
aiofiles: 23.2.1
altair: 5.3.0
fastapi: 0.110.2
ffmpy: 0.3.2
gradio-client==0.15.1 is not installed.
httpx: 0.27.0
huggingface-hub: 0.22.2
importlib-resources: 6.4.0
jinja2: 3.1.2
markupsafe: 2.1.5
matplotlib: 3.8.4
numpy: 1.26.4
orjson: 3.10.0
packaging: 23.2
pandas: 2.2.2
pillow: 10.3.0
pydantic: 2.7.1
pydub: 0.25.1
python-multipart: 0.0.9
pyyaml: 6.0.1
ruff: 0.4.1
semantic-version: 2.10.0
tomlkit==0.12.0 is not installed.
typer: 0.12.3
typing-extensions: 4.11.0
uvicorn: 0.29.0
authlib; extra == 'oauth' is not installed.
itsdangerous; extra == 'oauth' is not installed.
gradio_client dependencies in your environment:
fsspec: 2024.2.0
httpx: 0.27.0
huggingface-hub: 0.22.2
packaging: 23.2
typing-extensions: 4.11.0
websockets: 11.0.3
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered:
mamei16
changed the title
Repeated "Invalid URI. Load of media resource failed." when recording audio in Firefox
Repeated "Invalid URI. Load of media resource failed." when recording audio in Firefox leads to browser crash
Apr 25, 2024
Describe the bug
After stopping a microphone recording in Firefox, it seems some JavaScript function is called over and over again indefinitely, each time triggering the error
Invalid URI. Load of media resource failed.
This leads to excessive CPU usage even when the web UI is idle after recording audio. It appears that after each recording, another asynchronous function starts calling the problematic function, leading to CPU usage increasing further with each recording, until the web UI becomes laggy and Firefox finally crashes.The logs below show the browser console after recording two audio clips.
Have you searched existing issues? 🔎
Reproduction
Screenshot
No response
Logs
System Info
Severity
Blocking usage of gradio
The text was updated successfully, but these errors were encountered: