obsproject / obs-browser

CEF-based OBS Studio browser plugin
GNU General Public License v2.0
776 stars 220 forks source link

Browser gives chromium error ERR_CONNECTION_RESET #326

Closed ggez89 closed 2 years ago

ggez89 commented 2 years ago

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

27.1.3

OBS Studio Version (Other)

No response

OBS Studio Log URL

http://www.sendfailure.connectionwasreset.com

OBS Studio Crash Log URL

No response

Expected Behavior

Browser should open to allow me to log into twitch, use web docks, or upload log file.

Current Behavior

Send failure: Connection was reset

Browser can't connect to the internet. Can still connect to twitch and stream, but nothing involving the browser works. See image attached for what I see.

obs

Steps to Reproduce

  1. Open OBS after completing a clear install
  2. Try to connect app to twitch account via web browser
  3. Fail ...

Anything else we should know?

An obvious work around is to connect to twitch via stream key. This allows me to stream, but does not allow me to use the docks, or upload log files to twitch. functionality is mega broken. I have tried disabling all running Chrome extensions and closing the chrome.exe process. Below is my log file.

09:19:05.457: CPU Name: AMD Ryzen 7 5800X 8-Core Processor             
09:19:05.458: CPU Speed: 3800MHz
09:19:05.458: Physical Cores: 8, Logical Cores: 16
09:19:05.458: Physical Memory: 32693MB Total, 13313MB Free
09:19:05.458: Windows Version: 10.0 Build 19043 (release: 2009; revision: 1083; 64-bit)
09:19:05.458: Running as administrator: true
09:19:05.458: Aero is Enabled (Aero is always on for windows 8 and above)
09:19:05.458: Windows 10 Gaming Features:
09:19:05.458:   Game DVR: On
09:19:05.460: Sec. Software Status:
09:19:05.462: Current Date/Time: 2021-11-01, 09:19:05
09:19:05.462: Browser Hardware Acceleration: true
09:19:05.462: Portable mode: false
09:19:05.722: OBS 27.1.3 (64-bit, windows)
09:19:05.722: ---------------------------------
09:19:05.722: ---------------------------------
09:19:05.722: audio settings reset:
09:19:05.722:   samples per sec: 48000
09:19:05.722:   speakers:        2
09:19:05.725: ---------------------------------
09:19:05.725: Initializing D3D11...
09:19:05.725: Available Video Adapters: 
09:19:05.727:   Adapter 0: AMD Radeon RX 6800 XT
09:19:05.727:     Dedicated VRAM: 3977883648
09:19:05.727:     Shared VRAM:    4256018432
09:19:05.727:     PCI ID:         1002:73bf
09:19:05.727:     Driver Version: 30.0.13025.5005
09:19:05.727:     output 0: pos={0, 0}, size={2560, 1440}, attached=true, refresh=165, name=VG27A
09:19:05.727:     output 1: pos={-1920, 360}, size={1920, 1080}, attached=true, refresh=59, name=BenQ RL2450H
09:19:05.729: Loading up D3D11 on adapter AMD Radeon RX 6800 XT (0)
09:19:05.749: D3D11 loaded successfully, feature level used: b000
09:19:05.749: DXGI increase maximum frame latency success
09:19:05.749: D3D11 GPU priority setup success
09:19:06.061: ---------------------------------
09:19:06.061: video settings reset:
09:19:06.061:   base resolution:   1920x1080
09:19:06.061:   output resolution: 1280x720
09:19:06.061:   downscale filter:  Bicubic
09:19:06.061:   fps:               30/1
09:19:06.061:   format:            NV12
09:19:06.061:   YUV mode:          709/Partial
09:19:06.062: NV12 texture support enabled
09:19:06.064: Audio monitoring device:
09:19:06.064:   name: Default
09:19:06.064:   id: default
09:19:06.064: ---------------------------------
09:19:06.065: Skipping module '../../obs-plugins/64bit/chrome_elf.dll', not an OBS plugin
09:19:06.071: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
09:19:06.072: Failed to load 'en-US' text for module: 'decklink-captions.dll'
09:19:06.074: Failed to load 'en-US' text for module: 'decklink-ouput-ui.dll'
09:19:06.261: [AMF] Version 2.7.0 loaded (Compiled: 1.4.14.0, Runtime: 1.4.22.0, Library: 1;4;22;0;21.30.17.01;202109101438;CL#2355731).
09:19:06.290: [AMF] <Id: 1> Unable to set converter transfer characteristic, error AMF_NOT_FOUND (code 11)
09:19:06.321: [AMF] <Id: 2> Unable to set converter transfer characteristic, error AMF_NOT_FOUND (code 11)
09:19:06.325: [AMF] [Capability Manager] Testing Direct3D 11 Adapter 'AMD Radeon RX 6800 XT (VEN_1002/DEV_73bf/SUB_39511462/REV_00c1)':
09:19:06.325:   H264/AVC: Supported
09:19:06.325:   H265/HEVC: Supported
09:19:06.325: 
09:19:06.337: Skipping module '../../obs-plugins/64bit/libcef.dll', not an OBS plugin
09:19:06.351: Skipping module '../../obs-plugins/64bit/libEGL.dll', not an OBS plugin
09:19:06.353: Skipping module '../../obs-plugins/64bit/libGLESv2.dll', not an OBS plugin
09:19:06.375: [obs-browser]: Version 2.16.3
09:19:06.375: [obs-browser]: CEF Version 75.1.16+g16a67c4+chromium-75.0.3770.100
09:19:06.393: [noise suppress]: NVIDIA RTX denoiser disabled, redistributable not found
09:19:06.794: Couldn't find VLC installation, VLC video source disabled
09:19:06.808: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
09:19:06.808: No blackmagic support
09:19:06.814: ---------------------------------
09:19:06.814:   Loaded Modules:
09:19:06.814:     win-wasapi.dll
09:19:06.814:     win-mf.dll
09:19:06.814:     win-dshow.dll
09:19:06.814:     win-decklink.dll
09:19:06.814:     win-capture.dll
09:19:06.814:     vlc-video.dll
09:19:06.814:     text-freetype2.dll
09:19:06.814:     rtmp-services.dll
09:19:06.814:     obs-x264.dll
09:19:06.814:     obs-vst.dll
09:19:06.814:     obs-transitions.dll
09:19:06.814:     obs-text.dll
09:19:06.814:     obs-qsv11.dll
09:19:06.814:     obs-outputs.dll
09:19:06.814:     obs-filters.dll
09:19:06.814:     obs-ffmpeg.dll
09:19:06.814:     obs-browser.dll
09:19:06.814:     logi_obs_plugin_x64.dll
09:19:06.814:     image-source.dll
09:19:06.814:     frontend-tools.dll
09:19:06.814:     enc-amf.dll
09:19:06.814:     decklink-ouput-ui.dll
09:19:06.814:     decklink-captions.dll
09:19:06.814:     coreaudio-encoder.dll
09:19:06.814: ---------------------------------
09:19:06.820: ==== Startup complete ===============================================
09:19:06.825: All scene data cleared
09:19:06.825: ------------------------------------------------
09:19:06.845: [rtmp-services plugin] Remote update of URL "https://obsproject.com/obs2_update/rtmp-services/v3/package.json" failed: Send failure: Connection was reset
09:19:06.857: WASAPI: Device 'Headphones (3- Arctis 7 Game)' [48000 Hz] initialized
09:19:06.857: [Loaded global audio device]: 'Desktop Audio'
09:19:06.882: WASAPI: Device 'Headset Microphone (3- Arctis 7 Chat)' [48000 Hz] initialized
09:19:06.882: [Loaded global audio device]: 'Mic/Aux'
09:19:06.882: Switched to scene 'Scene'
09:19:06.883: ------------------------------------------------
09:19:06.883: Loaded scenes:
09:19:06.883: - scene 'Scene':
09:19:06.883: ------------------------------------------------
09:19:06.905: AutoUpdateThread::run: Failed to fetch manifest file: Send failure: Connection was reset
09:19:06.928: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds (source: Mic/Aux)
09:19:06.928: 
09:19:06.986: WhatsNewInfoThread::run: Failed to fetch whatsnew file: Send failure: Connection was reset
09:19:24.639: ==== Shutting down ==================================================
09:19:24.642: WASAPI: Device 'Headphones (3- Arctis 7 Game)' Terminated
09:19:24.648: WASAPI: Device 'Headset Microphone (3- Arctis 7 Chat)' Terminated
09:19:24.653: All scene data cleared
09:19:24.653: ------------------------------------------------
09:19:24.917: [Scripting] Total detached callbacks: 0
09:19:24.968: Freeing OBS context data
09:19:24.981: == Profiler Results =============================
09:19:24.981: run_program_init: 1557.06 ms
09:19:24.981:  ┣OBSApp::AppInit: 19.128 ms
09:19:24.981:  ┃ ┗OBSApp::InitLocale: 1.898 ms
09:19:24.981:  ┗OBSApp::OBSInit: 1504.58 ms
09:19:24.981:    ┣obs_startup: 4.91 ms
09:19:24.981:    ┗OBSBasic::OBSInit: 1239.75 ms
09:19:24.981:      ┣OBSBasic::InitBasicConfig: 0.297 ms
09:19:24.981:      ┣OBSBasic::ResetAudio: 0.579 ms
09:19:24.981:      ┣OBSBasic::ResetVideo: 341.068 ms
09:19:24.981:      ┣OBSBasic::InitOBSCallbacks: 0.006 ms
09:19:24.981:      ┣OBSBasic::InitHotkeys: 0.172 ms
09:19:24.981:      ┣obs_load_all_modules: 749.589 ms
09:19:24.981:      ┃ ┣obs_init_module(coreaudio-encoder.dll): 1.106 ms
09:19:24.981:      ┃ ┣obs_init_module(decklink-captions.dll): 0.022 ms
09:19:24.981:      ┃ ┣obs_init_module(decklink-ouput-ui.dll): 0.691 ms
09:19:24.981:      ┃ ┣obs_init_module(enc-amf.dll): 248.709 ms
09:19:24.981:      ┃ ┣obs_init_module(frontend-tools.dll): 4.911 ms
09:19:24.981:      ┃ ┣obs_init_module(image-source.dll): 0.009 ms
09:19:24.981:      ┃ ┣obs_init_module(logi_obs_plugin_x64.dll): 2.119 ms
09:19:24.981:      ┃ ┣obs_init_module(obs-browser.dll): 1.332 ms
09:19:24.981:      ┃ ┣obs_init_module(obs-ffmpeg.dll): 7.817 ms
09:19:24.981:      ┃ ┃ ┗nvenc_check: 7.656 ms
09:19:24.981:      ┃ ┣obs_init_module(obs-filters.dll): 0.062 ms
09:19:24.981:      ┃ ┣obs_init_module(obs-outputs.dll): 0.162 ms
09:19:24.981:      ┃ ┣obs_init_module(obs-qsv11.dll): 382.153 ms
09:19:24.981:      ┃ ┣obs_init_module(obs-text.dll): 0.997 ms
09:19:24.981:      ┃ ┣obs_init_module(obs-transitions.dll): 0.006 ms
09:19:24.981:      ┃ ┣obs_init_module(obs-vst.dll): 0.001 ms
09:19:24.981:      ┃ ┣obs_init_module(obs-x264.dll): 0.002 ms
09:19:24.981:      ┃ ┣obs_init_module(rtmp-services.dll): 2.226 ms
09:19:24.981:      ┃ ┣obs_init_module(text-freetype2.dll): 0.182 ms
09:19:24.981:      ┃ ┣obs_init_module(vlc-video.dll): 0.029 ms
09:19:24.981:      ┃ ┣obs_init_module(win-capture.dll): 3.995 ms
09:19:24.981:      ┃ ┣obs_init_module(win-decklink.dll): 5.98 ms
09:19:24.981:      ┃ ┣obs_init_module(win-dshow.dll): 0.92 ms
09:19:24.981:      ┃ ┣obs_init_module(win-mf.dll): 0 ms
09:19:24.981:      ┃ ┣obs_init_module(win-wasapi.dll): 0.01 ms
09:19:24.981:      ┃ ┗reset_win32_symbol_paths: 0.353 ms
09:19:24.981:      ┣OBSBasic::ResetOutputs: 0.154 ms
09:19:24.981:      ┣OBSBasic::CreateHotkeys: 0.032 ms
09:19:24.981:      ┣OBSBasic::InitService: 1.299 ms
09:19:24.981:      ┣OBSBasic::InitPrimitives: 0.24 ms
09:19:24.981:      ┗OBSBasic::Load: 59.482 ms
09:19:24.981: obs_hotkey_thread(25 ms): min=0.002 ms, median=0.003 ms, max=0.098 ms, 99th percentile=0.03 ms, 100% below 25 ms
09:19:24.981: audio_thread(Audio): min=0 ms, median=0.014 ms, max=0.147 ms, 99th percentile=0.027 ms
09:19:24.981: obs_graphics_thread(33.3333 ms): min=0.021 ms, median=0.195 ms, max=45.216 ms, 99th percentile=0.553 ms, 99.823% below 33.333 ms
09:19:24.981:  ┣tick_sources: min=0 ms, median=0.003 ms, max=0.255 ms, 99th percentile=0.006 ms
09:19:24.981:  ┣output_frame: min=0.017 ms, median=0.033 ms, max=3.673 ms, 99th percentile=0.069 ms
09:19:24.981:  ┃ ┗gs_context(video->graphics): min=0.017 ms, median=0.033 ms, max=3.673 ms, 99th percentile=0.068 ms
09:19:24.981:  ┃   ┣render_video: min=0.002 ms, median=0.004 ms, max=0.012 ms, 99th percentile=0.01 ms
09:19:24.981:  ┃   ┃ ┗render_main_texture: min=0.001 ms, median=0.002 ms, max=0.008 ms, 99th percentile=0.005 ms
09:19:24.981:  ┃   ┗gs_flush: min=0.013 ms, median=0.029 ms, max=3.667 ms, 99th percentile=0.06 ms
09:19:24.981:  ┗render_displays: min=0 ms, median=0.154 ms, max=45.147 ms, 99th percentile=0.48 ms
09:19:24.981: =================================================
09:19:24.981: == Profiler Time Between Calls ==================
09:19:24.981: obs_hotkey_thread(25 ms): min=24.947 ms, median=25.022 ms, max=25.502 ms, 99.7413% within ±2% of 25 ms (0% lower, 0.258732% higher)
09:19:24.981: obs_graphics_thread(33.3333 ms): min=21.446 ms, median=33.333 ms, max=45.22 ms, 99.6454% within ±2% of 33.333 ms (0.177305% lower, 0.177305% higher)
09:19:24.981: =================================================
09:19:24.983: Number of memory leaks: 0
Gol-D-Ace commented 2 years ago

Looking at your OBS log file it looks like you have issues connecting to obsproject.com

Does this also happen when you try to open obsproject.com in your normal Webbrowser?

09:19:06.845: [rtmp-services plugin] Remote update of URL "https://obsproject.com/obs2_update/rtmp-services/v3/package.json" failed: Send failure: Connection was reset

Definitely not a bug in the browser source.

ggez89 commented 2 years ago

Looking at your OBS log file it looks like you have issues connecting to obsproject.com

Does this also happen when you try to open obsproject.com in your normal Webbrowser?

09:19:06.845: [rtmp-services plugin] Remote update of URL "https://obsproject.com/obs2_update/rtmp-services/v3/package.json" failed: Send failure: Connection was reset

Definitely not a bug in the browser source.

I do not have a problem connecting to obsproject.com. I downloaded OBS from there, and furthermore the browser does not connect to www.twitch.tv or anywhere else. Please re-open this issue.

Thanks

Gol-D-Ace commented 2 years ago

This is not something reproducible but rather something specifically to your setup going wrong.

Considering that OBS itself can't connect to anything (see log) you might want to check if something like a Firewall or Antivirus software is interfering with the program.

WizardCM commented 2 years ago

This error is entirely outside of our control. It behaves exactly as the same error as Chrome would, so a guide such as https://www.thewindowsclub.com/err_connection_reset-chrome would help more than we can.

ggez89 commented 2 years ago

I already tried disabling my firewall and antivirus and it didn't work. Spent hours on sites like that last night trying to fix issues on my end and concluded that it might be caused by something else.

Something that is weird is that upon a fresh install, SOMETIMES the twitch login page will load ONCE. Then when I close/restart OBS, I get the connection error issues again. When deleting my user profile/settings, it does not fix the issue. Is there a cache used by CEF somewhere that I can clear?

WizardCM commented 2 years ago

The cache/cookies for OBS Browser are all stored in %appdata%\obs-studio\plugin_config\obs-browser\

ggez89 commented 2 years ago

The cache/cookies for OBS Browser are all stored in %appdata%\obs-studio\plugin_config\obs-browser\

I have been deleting that regularly to try to fix my problem, but no luck. Why would the browser load upon first install sometimes, but never after?

ggez89 commented 2 years ago

obs2

I got this error after deleting cache and trying to upload my log file. I did this before any browser elements were called so no obs-browser cache folder was created. Does this help narrow down the problem?

WizardCM commented 2 years ago

The same reason your log is also full of connection errors. Something between OBS and the internet.

It's worth making absolutely clear: errors visually in the browser panel specifically are from CEF/Chromium. The errors in the log file and the screenshot you've posted are completely unrelated to CEF, they're from curl. If both CEF and curl are erroring, 9 times out of 10 it's a firewall or antivirus. Sometimes it's caused by your system clock being incorrect. Sometimes it's your ISP. Either way, it's not obs-browser related.

mihawk90 commented 2 years ago

This is probably a discussion for the Discord or the Support forums, not a GitHub issue.

But regardless, when the SSL/TLS handshake fails it is often related to outdated/missing certificates on the windows installation, or simply the system time being slightly off. Try to force a refresh on the system time and also check the BIOS/UEFI time so they both match up.

ggez89 commented 2 years ago

Clock syncing in windows and BIOS didn't do anything, they were already fine.

When I download the portable installation, and move it to a new folder, the first opening of OBS works. Then when I close and try to re-open, the browser fails again. So I can rename the root folder and get OBS browser to open once. Then when I close OBS, i have to rename the folder again to make the browser work. Any ideas?