Apitrace is not a Wine component, it's an external tool. Here's a guide: https://github.com/Joshua-Ashton/d9vk/wiki/Making-a-Trace
Driver crash, not really sure what do to about that. Probably also doesn't help that your GPU has 512 MB of VRAM which is roughly what people had in 2008, and definitely will not be enough to run the game anywhere near decently even on Windows with lowest settings.
thank you very much for your input.
i tried with apitrace (dxvk as well as d3d) according to the linked guide, but no *.trace file is being produced (searched the whole drive).
the game runs even on an 12 year old intel integrated chip (exact same configuration) with relatively decent performace, roughly playable (which has no own video mem after all). so i thought this is a game that should run on a graphics-card running gta5, life is strange 2, trailmakers and other current games with good performace (and no 512mb problems so far)? btw: its an imac.
What does the error itself point at? what could i try?
d3d output:
info: GeForce GT 640M:
info: Driver: 460.67.0
info: Vulkan: 1.2.155
info: Memory Heap[0]:
info: Size: 512 MiB
info: Flags: 0x1
info: Memory Type[7]: Property Flags = 0x1
info: Memory Heap[1]:
info: Size: 5920 MiB
info: Flags: 0x0
info: Memory Type[0]: Property Flags = 0x0
info: Memory Type[1]: Property Flags = 0x0
info: Memory Type[2]: Property Flags = 0x0
info: Memory Type[3]: Property Flags = 0x0
info: Memory Type[4]: Property Flags = 0x0
info: Memory Type[5]: Property Flags = 0x0
info: Memory Type[6]: Property Flags = 0x0
info: Memory Type[8]: Property Flags = 0x6
info: Memory Type[9]: Property Flags = 0xe
info: DXGI: NvAPI workaround enabled, reporting AMD GPU
info: DXGI: NvAPI workaround enabled, reporting AMD GPU
info: D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info: D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
info: Device properties:
info: Device name: : GeForce GT 640M
info: Driver version : 460.67.0
info: Enabled device extensions:
info: VK_EXT_4444_formats
info: VK_EXT_custom_border_color
info: VK_EXT_depth_clip_enable
info: VK_EXT_extended_dynamic_state
info: VK_EXT_full_screen_exclusive
info: VK_EXT_host_query_reset
info: VK_EXT_robustness2
info: VK_EXT_shader_demote_to_helper_invocation
info: VK_EXT_transform_feedback
info: VK_EXT_vertex_attribute_divisor
info: VK_KHR_create_renderpass2
info: VK_KHR_depth_stencil_resolve
info: VK_KHR_draw_indirect_count
info: VK_KHR_driver_properties
info: VK_KHR_image_format_list
info: VK_KHR_sampler_mirror_clamp_to_edge
info: VK_KHR_shader_float_controls
info: VK_KHR_swapchain
info: Device features:
info: robustBufferAccess : 1
info: fullDrawIndexUint32 : 1
info: imageCubeArray : 1
info: independentBlend : 1
info: geometryShader : 1
info: tessellationShader : 1
info: sampleRateShading : 1
info: dualSrcBlend : 1
info: logicOp : 1
info: multiDrawIndirect : 1
info: drawIndirectFirstInstance : 1
info: depthClamp : 1
info: depthBiasClamp : 1
info: fillModeNonSolid : 1
info: depthBounds : 1
info: multiViewport : 1
info: samplerAnisotropy : 1
info: textureCompressionBC : 1
info: occlusionQueryPrecise : 1
info: pipelineStatisticsQuery : 1
info: vertexPipelineStoresAndAtomics : 0
info: fragmentStoresAndAtomics : 1
info: shaderImageGatherExtended : 1
info: shaderStorageImageExtendedFormats : 1
info: shaderStorageImageReadWithoutFormat : 0
info: shaderStorageImageWriteWithoutFormat : 1
info: shaderClipDistance : 1
info: shaderCullDistance : 1
info: shaderFloat64 : 1
info: shaderInt64 : 1
info: variableMultisampleRate : 1
info: VK_EXT_4444_formats
info: formatA4R4G4B4 : 1
info: formatA4B4G4R4 : 1
info: VK_EXT_custom_border_color
info: customBorderColors : 1
info: customBorderColorWithoutFormat : 1
info: VK_EXT_depth_clip_enable
info: depthClipEnable : 1
info: VK_EXT_extended_dynamic_state
info: extendedDynamicState : 1
info: VK_EXT_host_query_reset
info: hostQueryReset : 1
info: VK_EXT_memory_priority
info: memoryPriority : 0
info: VK_EXT_robustness2
info: robustBufferAccess2 : 1
info: robustImageAccess2 : 1
info: nullDescriptor : 1
info: VK_EXT_shader_demote_to_helper_invocation
info: shaderDemoteToHelperInvocation : 1
info: VK_EXT_transform_feedback
info: transformFeedback : 1
info: geometryStreams : 1
info: VK_EXT_vertex_attribute_divisor
info: vertexAttributeInstanceRateDivisor : 1
info: vertexAttributeInstanceRateZeroDivisor : 1
info: Queue families:
info: Graphics : 0
info: Transfer : 1
info: DXVK: Read 0 valid state cache entries
info: DXVK: Using 2 compiler threads
warn: winevulkan detected, disabling exclusive fullscreen support
info: Presenter: Actual swap chain properties:
info: Format: VK_FORMAT_B8G8R8A8_SRGB
info: Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
info: Buffer size: 1920x1080
info: Image count: 2
info: Exclusive FS: 1
warn: DXGI: MakeWindowAssociation: Ignoring flags
info: DXGI: NvAPI workaround enabled, reporting AMD GPU
warn: D3D11DXGIDevice::QueryInterface: Unknown interface query
warn: 6543dbb6-1b48-42f5-ab82-e97ec74326f6
info: Presenter: Actual swap chain properties:
info: Format: VK_FORMAT_B8G8R8A8_SRGB
info: Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
info: Buffer size: 1920x1080
info: Image count: 2
info: Exclusive FS: 1
info: Presenter: Actual swap chain properties:
info: Format: VK_FORMAT_B8G8R8A8_SRGB
info: Present mode: VK_PRESENT_MODE_FIFO_KHR
info: Buffer size: 1920x1080
info: Image count: 3
info: Exclusive FS: 1
info: Presenter: Actual swap chain properties:
info: Format: VK_FORMAT_B8G8R8A8_SRGB
info: Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
info: Buffer size: 1920x1080
info: Image count: 2
info: Exclusive FS: 1
info: Presenter: Actual swap chain properties:
info: Format: VK_FORMAT_B8G8R8A8_SRGB
info: Present mode: VK_PRESENT_MODE_FIFO_KHR
info: Buffer size: 1920x1080
info: Image count: 3
info: Exclusive FS: 1
err: D3D11DeviceContext::SetPredication: Stub
err: DxvkSubmissionQueue: Failed to sync fence: VK_ERROR_DEVICE_LOST
err: DxvkDevice: waitForIdle: Operation failed
err: DxvkSubmissionQueue: Failed to sync fence: VK_ERROR_DEVICE_LOST
err: DxvkDevice: waitForIdle: Operation failed
err: DxvkSubmissionQueue: Failed to sync fence: VK_ERROR_DEVICE_LOST
err: DxvkDevice: waitForIdle: Operation failed
err: DxvkSubmissionQueue: Failed to sync fence: VK_ERROR_DEVICE_LOST
err: DxvkDevice: waitForIdle: Operation failed
err: DxvkSubmissionQueue: Failed to sync fence: VK_ERROR_DEVICE_LOST
err: DxvkDevice: waitForIdle: Operation failed
err: DxvkSubmissionQueue: Failed to sync fence: VK_ERROR_DEVICE_LOST
err: DxvkDevice: waitForIdle: Operation failed
err: DxvkSubmissionQueue: Failed to sync fence: VK_ERROR_DEVICE_LOST
err: DxvkDevice: waitForIdle: Operation failed
err: DxvkSubmissionQueue: Failed to sync fence: VK_ERROR_DEVICE_LOST
err: DxvkDevice: waitForIdle: Operation failed
err: DxvkSubmissionQueue: Failed to sync fence: VK_ERROR_DEVICE_LOST
err: DxvkDevice: waitForIdle: Operation failed
err: DxvkSubmissionQueue: Failed to sync fence: VK_ERROR_DEVICE_LOST
err: DxvkDevice: waitForIdle: Operation failed
err: DxvkSubmissionQueue: Failed to sync fence: VK_ERROR_DEVICE_LOST
err: DxvkDevice: waitForIdle: Operation failed
err: DxvkSubmissionQueue: Failed to sync fence: VK_ERROR_DEVICE_LOST
err: DxvkDevice: waitForIdle: Operation failed
err: DxvkSubmissionQueue: Command submission failed: VK_ERROR_DEVICE_LOST
Caught signal 15
to be more specific: with the exact same config watchdogs runs without flaws on intel hd 620 (2016; no dedicated memory) with 8-10 fps – but not on an nvidia dedicated chip (2012; dx 11.1) ?!
I already wrote that your Nvidia driver is crashing for some reason. Probably running out of memory again to do some internal allocations or something, wouldn't be the first time this happens. There's a reason why the game lists 2GB cards as the bare minimum, and with DXVK and especially on Nvidia you usually want at least 1-2GB extra.
Please make a new issue if there's a problem with Battlefield 2. It's a completely different game and probably unrelated.
@slynobody Did newer drivers or dxvk versions fix your issue?
I'm guessing your gpu is a GeForce GT 640M LE and not a GeForce GT 640M as the log says, since from what i can see the 460.67.0 driver doesn't support the latter.
Thanks for testing.
Would you be able to give it a try with the latest dxvk master also?
https://github.com/doitsujin/dxvk/actions/runs/2615690694
When running games with regular Wine one should pay attention to game's d3dx* and d3dcompiler* requirements. Because many functions from that dlls are not fully implemented in Wine's builtin dlls and could easy be a cause of VK_ERROR_DEVICE_LOST on nvidia GPU (see $ dmesg, there's usually more info about a crash).
Either grep game's exe/dll for 'd3dx' and 'd3dcompiler' to figure out which version required and install them, or install all of 'd3dx' and 'd3dcompiler' dlls via e.g. winetricks
IDK if this is the reason of failures for this game, but happened a lot with other games in Wine.
Hmmm. Thanks for the logs and for testing.
I will try to check it out on my Nvidia setup here sometime
Edit: i don't remember whom i wrote this message to since it seems out of place. Dunno if a comment was deleted.
Closing this because we no longer support the GPU used here and it's a driver problem anyway.
game works on intel integrated but nvidia produces following error (tried everything, different wine / proton / dxvk-versions; installed according to lutris epic / uplay installation guide; no more logs, because apitrace is not found in wine 6.6?!)
warn: Skipping Vulkan 1.0 adapter: llvmpipe (LLVM 11.0.1, 256 bits)
info: GeForce GT 640M:
info: Driver: 460.67.0
info: Vulkan: 1.2.155
info: Memory Heap[0]:
info: Size: 512 MiB
info: Flags: 0x1
info: Memory Type[7]: Property Flags = 0x1
info: Memory Heap[1]:
info: Size: 5920 MiB
info: Flags: 0x0
info: Memory Type[0]: Property Flags = 0x0
info: Memory Type[1]: Property Flags = 0x0
info: Memory Type[2]: Property Flags = 0x0
info: Memory Type[3]: Property Flags = 0x0
info: Memory Type[4]: Property Flags = 0x0
info: Memory Type[5]: Property Flags = 0x0
info: Memory Type[6]: Property Flags = 0x0
info: Memory Type[8]: Property Flags = 0x6
info: Memory Type[9]: Property Flags = 0xe
info: D3D11CoreCreateDevice: Probing D3D_FEATURE_LEVEL_11_0
info: D3D11CoreCreateDevice: Using feature level D3D_FEATURE_LEVEL_11_0
info: Device properties:
info: Device name: : GeForce GT 640M
info: Driver version : 460.67.0
info: Enabled device extensions:
info: VK_EXT_4444_formats
info: VK_EXT_custom_border_color
info: VK_EXT_depth_clip_enable
info: VK_EXT_extended_dynamic_state
info: VK_EXT_full_screen_exclusive
info: VK_EXT_host_query_reset
info: VK_EXT_robustness2
info: VK_EXT_shader_demote_to_helper_invocation
info: VK_EXT_transform_feedback
info: VK_EXT_vertex_attribute_divisor
info: VK_KHR_create_renderpass2
info: VK_KHR_depth_stencil_resolve
info: VK_KHR_draw_indirect_count
info: VK_KHR_driver_properties
info: VK_KHR_image_format_list
info: VK_KHR_sampler_mirror_clamp_to_edge
info: VK_KHR_shader_float_controls
info: VK_KHR_swapchain
info: Device features:
info: robustBufferAccess : 1
info: fullDrawIndexUint32 : 1
info: imageCubeArray : 1
info: independentBlend : 1
info: geometryShader : 1
info: tessellationShader : 1
info: sampleRateShading : 1
info: dualSrcBlend : 1
info: logicOp : 1
info: multiDrawIndirect : 1
info: drawIndirectFirstInstance : 1
info: depthClamp : 1
info: depthBiasClamp : 1
info: fillModeNonSolid : 1
info: depthBounds : 1
info: multiViewport : 1
info: samplerAnisotropy : 1
info: textureCompressionBC : 1
info: occlusionQueryPrecise : 1
info: pipelineStatisticsQuery : 1
info: vertexPipelineStoresAndAtomics : 0
info: fragmentStoresAndAtomics : 1
info: shaderImageGatherExtended : 1
info: shaderStorageImageExtendedFormats : 1
info: shaderStorageImageReadWithoutFormat : 0
info: shaderStorageImageWriteWithoutFormat : 1
info: shaderClipDistance : 1
info: shaderCullDistance : 1
info: shaderFloat64 : 1
info: shaderInt64 : 1
info: variableMultisampleRate : 1
info: VK_EXT_4444_formats
info: formatA4R4G4B4 : 1
info: formatA4B4G4R4 : 1
info: VK_EXT_custom_border_color
info: customBorderColors : 1
info: customBorderColorWithoutFormat : 1
info: VK_EXT_depth_clip_enable
info: depthClipEnable : 1
info: VK_EXT_extended_dynamic_state
info: extendedDynamicState : 1
info: VK_EXT_host_query_reset
info: hostQueryReset : 1
info: VK_EXT_memory_priority
info: memoryPriority : 0
info: VK_EXT_robustness2
info: robustBufferAccess2 : 1
info: robustImageAccess2 : 1
info: nullDescriptor : 1
info: VK_EXT_shader_demote_to_helper_invocation
info: shaderDemoteToHelperInvocation : 1
info: VK_EXT_transform_feedback
info: transformFeedback : 1
info: geometryStreams : 1
info: VK_EXT_vertex_attribute_divisor
info: vertexAttributeInstanceRateDivisor : 1
info: vertexAttributeInstanceRateZeroDivisor : 1
info: Queue families:
info: Graphics : 0
info: Transfer : 1
info: DXVK: Read 509 valid state cache entries
info: DXVK: Using 2 compiler threads
warn: D3D11: Apitrace mode enabled, may affect performance!
warn: winevulkan detected, disabling exclusive fullscreen support
info: Presenter: Actual swap chain properties:
info: Format: VK_FORMAT_B8G8R8A8_SRGB
info: Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
info: Buffer size: 1920x1080
info: Image count: 2
info: Exclusive FS: 1
warn: DXGI: MakeWindowAssociation: Ignoring flags
warn: D3D11DXGIDevice::QueryInterface: Unknown interface query
warn: 6543dbb6-1b48-42f5-ab82-e97ec74326f6
info: Presenter: Actual swap chain properties:
info: Format: VK_FORMAT_B8G8R8A8_SRGB
info: Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
info: Buffer size: 1920x1080
info: Image count: 2
info: Exclusive FS: 1
info: Presenter: Actual swap chain properties:
info: Format: VK_FORMAT_B8G8R8A8_SRGB
info: Present mode: VK_PRESENT_MODE_FIFO_KHR
info: Buffer size: 1920x1080
info: Image count: 3
info: Exclusive FS: 1
info: Presenter: Actual swap chain properties:
info: Format: VK_FORMAT_B8G8R8A8_SRGB
info: Present mode: VK_PRESENT_MODE_IMMEDIATE_KHR
info: Buffer size: 1920x1080
info: Image count: 2
info: Exclusive FS: 1
info: Presenter: Actual swap chain properties:
info: Format: VK_FORMAT_B8G8R8A8_SRGB
info: Present mode: VK_PRESENT_MODE_FIFO_KHR
info: Buffer size: 1920x1080
info: Image count: 3
info: Exclusive FS: 1
err: D3D11DeviceContext::SetPredication: Stub
err: DxvkSubmissionQueue: Failed to sync fence: VK_ERROR_DEVICE_LOST
err: DxvkDevice: waitForIdle: Operation failed
err: DxvkSubmissionQueue: Failed to sync fence: VK_ERROR_DEVICE_LOST
err: DxvkSubmissionQueue: Command submission failed: VK_ERROR_DEVICE_LOST
Software information
Watchdogs2 1.017.189.2 (epic games -> uplay (free give away last year))
System information
Apitrace file(s)
Log files