Bug Report Guild Wars 2 crashes on exit while still recording with OBS

koala

Active Member
I'm using OBS mainly to record my Guild Wars 2 sessions to the local disk.

If I close Guild Wars 2 with the regular "exit game" functionality from within Guild Wars 2 (ALT-F4 also works), and if I'm still recording with OBS, Guild Wars 2 displays an error message that says it has crashed. The expected behavior is that Guild Wars 2 silently exits.

OBS continues recording. It records a black screen from that point on, of course. I'm able to stop recording after that in OBS, and the movie file is usable.

If I first stop recording from within OBS and exit GW2 after that, everything is fine - GW2 isn't crashing on exit. Never.

Here is the OBS log file:
Code:
22:00:57: Open Broadcaster Software v0.571b - 64bit ( ^ω^)
22:00:57: -------------------------------
22:00:57: CPU Name: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
22:00:57: CPU Speed: 3400MHz
22:00:57: Physical Memory:  8077MB Total, 2748MB Free
22:00:57: stepping id: 9, model 10, family 6, type 0, extmodel 1, extfamily 0, HTT 1, logical cores 4, total cores 4
22:00:57: monitor 1: pos={0, 0}, size={1920, 1200}
22:00:57: monitor 2: pos={-1280, 110}, size={1280, 1024}
22:00:57: monitor 3: pos={-1280, -914}, size={1280, 1024}
22:00:57: Windows Version: 6.1 Build 7601 S
22:00:57: Aero is Enabled
22:00:57: -------------------------------
22:00:57: OBS Modules:
22:00:57: Base Address     Module
22:00:57: 000000003F8D0000 OBS.exe
22:00:57: 00000000EBAF0000 OBSApi.dll
22:00:57: 00000000F9D00000 DShowPlugin.dll
22:00:57: 00000000F9F30000 GraphicsCapture.dll
22:00:57: 00000000FA220000 NoiseGate.dll
22:00:57: 00000000F65C0000 PSVPlugin.dll
22:00:57: ------------------------------------------
22:00:57: Adapter 1
22:00:57:   Video Adapter: NVIDIA GeForce GTX 670
22:00:57:   Video Adapter Dedicated Video Memory: 2087387136
22:00:57:   Video Adapter Shared System Memory: 2147807232
22:00:57: ------------------------------------------
22:00:57: Adapter 2
22:00:57:   Video Adapter: Intel(R) HD Graphics 4000
22:00:57:   Video Adapter Dedicated Video Memory: 67108864
22:00:57:   Video Adapter Shared System Memory: 1711276032
22:00:57: =====Stream Start: 2013-10-16, 22:00:57===============================================
22:00:57:   Multithreaded optimizations: On
22:00:57:   Base resolution: 1920x1200
22:00:57:   Output resolution: 1920x1200
22:00:57: ------------------------------------------
22:00:57: Loading up D3D10 on NVIDIA GeForce GTX 670...
22:00:57: ------------------------------------------
22:00:57: Audio Format: 44100hz
22:00:57: Playback device {0.0.0.00000000}.{a9d526ee-8be5-4477-9c40-b4d1fa15400d}
22:00:57: ------------------------------------------
22:00:57: Using desktop audio input: CABLE Input (VB-Audio Virtual Cable)
22:00:57: ------------------------------------------
22:00:57: Audio Encoding: AAC
22:00:57:     bitrate: 128
22:00:57: Using graphics capture
22:00:57: Found QSV hardware support
22:00:57: ------------------------------------------
22:00:57: QSV version 1.4 using MFX_IMPL_HARDWARE_ANY | MFX_IMPL_VIA_D3D9 (actual: MFX_IMPL_HARDWARE3 | MFX_IMPL_VIA_D3D9)
22:00:57: Using 13 encode tasks
22:00:57: ------------------------------------------
22:00:57: Video Encoding: QSV
22:00:57:     fps: 30
22:00:57:     width: 1920, height: 1200
22:00:57:     target-usage: MFX_TARGETUSAGE_BEST_QUALITY
22:00:57:     CBR: no
22:00:57:     CFR: yes
22:00:57:     max bitrate: 30000
22:00:57:     buffer size: 30000
22:00:57: ------------------------------------------
22:00:57: MMDeviceAudioSource: Frequency for device 'CABLE Input (VB-Audio Virtual Cable)' is 352800, samples per sec is 44100
22:00:58: SharedTexCapture hooked
22:01:01: Error: all encode tasks in use, stalling pipeline
22:01:01: Error: all encode tasks in use, stalling pipeline
22:01:01: Error: all encode tasks in use, stalling pipeline
22:01:02: GraphicsCaptureSource::NewCapture:  eliminating old capture
22:01:02: SharedTexCapture hooked
23:30:50: Error: all encode tasks in use, stalling pipeline
23:30:50: Error: all encode tasks in use, stalling pipeline
23:30:50: Error: all encode tasks in use, stalling pipeline
23:30:50: Error: all encode tasks in use, stalling pipeline
23:30:50: Error: all encode tasks in use, stalling pipeline
23:30:51: GraphicsCaptureSource::NewCapture:  eliminating old capture
23:30:51: SharedTexCapture hooked
23:30:52: Capture window 0x004C074C invalid or changing, terminating capture
23:31:01: Total frames encoded: 162087, total frames duplicated: 386 (0.24%)
23:31:01: Total frames rendered: 162087, number of late frames: 10 (0.01%) (it's okay for some frames to be late)
23:31:02: 
23:31:02: Profiler time results:
23:31:02: 
23:31:02: ==============================================================
23:31:02: video thread frame - [100%] [avg time: 0.762 ms] [children: 0.262%] [unaccounted: 99.7%]
23:31:02: | scene->Preprocess - [0.262%] [avg time: 0.002 ms]
23:31:02: GPU download and conversion - [100%] [avg time: 0.066 ms] [children: 81.8%] [unaccounted: 18.2%]
23:31:02: | flush - [56.1%] [avg time: 0.037 ms]
23:31:02: | CopyResource - [21.2%] [avg time: 0.014 ms]
23:31:02: | conversion to 4:2:0 - [4.55%] [avg time: 0.003 ms]
23:31:02: Convert444Threads - [100%] [avg time: 1.395 ms] [children: 99.5%] [unaccounted: 0.502%]
23:31:02: | Convert444toNV12 - [99.5%] [avg time: 1.388 ms]
23:31:02: encoder thread frame - [100%] [avg time: 0.557 ms] [children: 52.6%] [unaccounted: 47.4%]
23:31:02: | ProcessEncodedFrame - [37%] [avg time: 0.206 ms]
23:31:02: | EncodeFrameAsync - [15.6%] [avg time: 0.087 ms]
23:31:02: ==============================================================
23:31:02: 
23:31:02: 
23:31:02: Profiler CPU results:
23:31:02: 
23:31:02: ==============================================================
23:31:02: video thread frame - [cpu time: avg 0.162 ms, total 26301.8 ms] [avg calls per frame: 1]
23:31:02: | scene->Preprocess - [cpu time: avg 0 ms, total 15.6 ms] [avg calls per frame: 1]
23:31:02: GPU download and conversion - [cpu time: avg 0.023 ms, total 3728.42 ms] [avg calls per frame: 1]
23:31:02: | flush - [cpu time: avg 0.012 ms, total 2012.41 ms] [avg calls per frame: 1]
23:31:02: | CopyResource - [cpu time: avg 0.006 ms, total 1123.21 ms] [avg calls per frame: 1]
23:31:02: | conversion to 4:2:0 - [cpu time: avg 0.001 ms, total 249.604 ms] [avg calls per frame: 1]
23:31:02: Convert444Threads - [cpu time: avg 1.126 ms, total 365105 ms] [avg calls per frame: 2]
23:31:02: | Convert444toNV12 - [cpu time: avg 1.123 ms, total 364294 ms] [avg calls per frame: 2]
23:31:02: encoder thread frame - [cpu time: avg 0.135 ms, total 21996.1 ms] [avg calls per frame: 1]
23:31:02: | ProcessEncodedFrame - [cpu time: avg 0.025 ms, total 4196.43 ms] [avg calls per frame: 1]
23:31:02: | EncodeFrameAsync - [cpu time: avg 0.005 ms, total 842.404 ms] [avg calls per frame: 1]
23:31:02: ==============================================================
23:31:02: 
23:31:02: =====Stream End: 2013-10-16, 23:31:02=================================================


Last game capture log:
2013-10-16, 22:00:57: we're booting up: 
22:00:57: D3D9 Present
22:00:57: (half life scientist) everything..  seems to be in order
22:00:57: D3D9EndScene called
22:00:57: D3DPRESENT_PARAMETERS {
22:00:57: 	BackBufferWidth: 1912
22:00:57: 	BackBufferHeight: 1140
22:00:57: 	BackBufferFormat: D3DFMT_X8R8G8B8
22:00:57: 	BackBufferCount: 1
22:00:57: 	MultiSampleType: D3DMULTISAMPLE_NONE
22:00:57: 	MultiSampleQuality: 0
22:00:57: 	SwapEffect: D3DSWAPEFFECT_DISCARD
22:00:57: 	hDeviceWindow: 4982604
22:00:57: 	Windowed: true
22:00:57: 	EnableAutoDepthStencil: true
22:00:57: 	AutoDepthStencilFormat: D3DFMT_D24S8
22:00:57: 	Flags: None
22:00:57: 	FullScreen_RefreshRateInHz: 0
22:00:57: 	PresentationInterval: 1
22:00:57: };
22:00:57: successfully set up d3d9 hooks
22:00:57: D3D9Present called
22:00:57: DoD3D9GPUHook: success
22:00:58: D3DSURFACE_DESC {
22:00:58: 	Format: D3DFMT_X8R8G8B8
22:00:58: 	Type: D3DRTYPE_SURFACE
22:00:58: 	Usage: D3DUSAGE_RENDERTARGET 
22:00:58: 	Pool: D3DPOOL_DEFAULT
22:00:58: 	MultiSampleType: D3DMULTISAMPLE_NONE
22:00:58: 	MultiSampleQuality: 0
22:00:58: 	Width: 1912
22:00:58: 	Height: 1140
22:00:58: };
22:00:58: successfully capturing d3d9 frames via GPU
22:01:01: D3D9Reset called
22:01:01: ---------------------- Cleared D3D9 Capture ----------------------
22:01:01: D3DPRESENT_PARAMETERS {
22:01:01: 	BackBufferWidth: 1920
22:01:01: 	BackBufferHeight: 1200
22:01:01: 	BackBufferFormat: D3DFMT_X8R8G8B8
22:01:01: 	BackBufferCount: 1
22:01:01: 	MultiSampleType: D3DMULTISAMPLE_NONE
22:01:01: 	MultiSampleQuality: 0
22:01:01: 	SwapEffect: D3DSWAPEFFECT_DISCARD
22:01:01: 	hDeviceWindow: 4982604
22:01:01: 	Windowed: false
22:01:01: 	EnableAutoDepthStencil: true
22:01:01: 	AutoDepthStencilFormat: D3DFMT_D24S8
22:01:01: 	Flags: None
22:01:01: 	FullScreen_RefreshRateInHz: 59
22:01:01: 	PresentationInterval: 1
22:01:01: };
22:01:01: successfully set up d3d9 hooks
22:01:01: D3D9EndScene called
22:01:02: D3D9Present called
22:01:02: DoD3D9GPUHook: success
22:01:02: D3DSURFACE_DESC {
22:01:02: 	Format: D3DFMT_X8R8G8B8
22:01:02: 	Type: D3DRTYPE_SURFACE
22:01:02: 	Usage: D3DUSAGE_RENDERTARGET 
22:01:02: 	Pool: D3DPOOL_DEFAULT
22:01:02: 	MultiSampleType: D3DMULTISAMPLE_NONE
22:01:02: 	MultiSampleQuality: 0
22:01:02: 	Width: 1920
22:01:02: 	Height: 1200
22:01:02: };
22:01:02: successfully capturing d3d9 frames via GPU
23:30:49: D3D9Reset called
23:30:49: ---------------------- Cleared D3D9 Capture ----------------------
23:30:49: D3DPRESENT_PARAMETERS {
23:30:49: 	BackBufferWidth: 1912
23:30:49: 	BackBufferHeight: 1140
23:30:49: 	BackBufferFormat: D3DFMT_X8R8G8B8
23:30:49: 	BackBufferCount: 1
23:30:49: 	MultiSampleType: D3DMULTISAMPLE_NONE
23:30:49: 	MultiSampleQuality: 0
23:30:49: 	SwapEffect: D3DSWAPEFFECT_DISCARD
23:30:49: 	hDeviceWindow: 4982604
23:30:49: 	Windowed: true
23:30:49: 	EnableAutoDepthStencil: true
23:30:49: 	AutoDepthStencilFormat: D3DFMT_D24S8
23:30:49: 	Flags: None
23:30:49: 	FullScreen_RefreshRateInHz: 0
23:30:49: 	PresentationInterval: 1
23:30:49: };
23:30:49: successfully set up d3d9 hooks
23:30:49: D3D9Reset called
23:30:49: ---------------------- Cleared D3D9 Capture ----------------------
23:30:50: successfully set up d3d9 hooks
23:30:50: D3D9EndScene called
23:30:51: D3D9Present called
23:30:51: DoD3D9GPUHook: success
23:30:51: D3DSURFACE_DESC {
23:30:51: 	Format: D3DFMT_X8R8G8B8
23:30:51: 	Type: D3DRTYPE_SURFACE
23:30:51: 	Usage: D3DUSAGE_RENDERTARGET 
23:30:51: 	Pool: D3DPOOL_DEFAULT
23:30:51: 	MultiSampleType: D3DMULTISAMPLE_NONE
23:30:51: 	MultiSampleQuality: 0
23:30:51: 	Width: 1912
23:30:51: 	Height: 1140
23:30:51: };
23:30:51: successfully capturing d3d9 frames via GPU

At 22:01:01, I switched GW2 from windowed to full screen.
At 23:30:49, I probably exited Guild Wars 2
At 23:31:01, I probably stopped recording with OBS.

It's not a very serious problem, but an error nonetheless.
 

Lain

Forum Admin
Lain
Forum Moderator
Developer
Re: Guild Wars 2 crashes on exit while still recording with

Ah, thank you for pointing that out, not entirely sure what's going on yet though. This has been known to happen in some cases.
 
Top