What to do when gfx device and OpenGL support are missing?

Questions about Wine on Linux
Locked
sclin
Newbie
Newbie
Posts: 2
Joined: Sat Aug 26, 2023 1:18 pm

What to do when gfx device and OpenGL support are missing?

Post by sclin »

The LnxSpectrum worked with older WINE 6.x.
In its portable version (from https://www.ilnx.cz/downl/ ) are included two obligatory "prerequisities": XNA Framework and DotNET.
However, after installing them I get only app window and menu, the area of the window screen is black with a message box...
Installing xna package and dx and dotnet libraries manually, via winetricks (instead of official prerequisities) did not help.
Image
Tested in several linux distributions with ALL, stable, development and staging version, also with older Wine7, result is the same. It seems that this issue is common in Ubuntu, Mint but also in MX Linux.

Note: This app did not work with the pure Wine-Mono, needs original dotnet libraries 4.0 and XNA 4.0.
Here are packages installed in Wine:
Image

Here are CLI listings from my machine running on the MX Linux.

Code: Select all

$ wine LnxSpectrum.exe 
002c:fixme:winediag:LdrInitializeThunk wine-staging 8.14 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
009c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
009c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
009c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
009c:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0118:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0074:fixme:nsi:ipv6_forward_enumerate_all not implemented
0074:fixme:nsi:ipv6_forward_enumerate_all not implemented
0074:fixme:nsi:ipv6_forward_enumerate_all not implemented
0074:fixme:nsi:ipv6_forward_enumerate_all not implemented
0118:fixme:font:find_matching_face Untranslated charset 255
0118:fixme:font:get_nearest_charset returning DEFAULT_CHARSET face->fs.fsCsb[0] = 00000000 file = L"\\??\\Z:\\usr\\share\\fonts\\truetype\\noto\\NotoKufiArabic-Regular.ttf"
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 0065DD58, 00B6B810, 0065DD5C, 0065DD50
0118:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 0065DD58, 00B6B810, 0065DD5C, 0065DD50
0118:fixme:nls:GetFileMUIPath stub: 0x10, L"C:\\windows\\system32\\tzres.dll", (null), 0065DD58, 00B6B810, 0065DD5C, 0065DD50
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:err:mscoree:LoadLibraryShim error reading registry key for installroot
0148:err:mscoree:LoadLibraryShim error reading registry key for installroot
0118:fixme:system:NtUserQueryDisplayConfig flags 0x2, paths_count 0x65ee68, paths 0xbf310f0, modes_count 0x65ee7c, modes 0x4c315b0, topology_id (nil) semi-stub
0118:fixme:win:RegisterTouchWindow hwnd 000200A4, flags 0x3 stub!
0118:fixme:wgl:X11DRV_wglChoosePixelFormatARB unused pfAttribFList

Code: Select all

$ wine --version
wine-8.14 (Staging)

Code: Select all

System:
  Kernel: 6.1.0-11-amd64 [6.1.38-4] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-11-amd64 root=UUID=<filter> ro quiet splash
    init=/lib/systemd/systemd
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm v: 4.18.0 vt: 7
    dm: LightDM v: 1.26.0 Distro: MX-23_x64 Libretto July 31  2023 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Desktop System: Gigabyte product: Z390 I AORUS PRO WIFI v: N/A serial: <superuser required>
  Mobo: Gigabyte model: Z390 I AORUS PRO WIFI-CF serial: <superuser required>
    UEFI: American Megatrends v: F8 date: 11/05/2021
CPU:
  Info: model: Intel Core i5-9500 bits: 64 type: MCP arch: Coffee Lake gen: core 9 level: v3
    note: check built: 2018 process: Intel 14nm family: 6 model-id: 0x9E (158) stepping: 0xA (10)
    microcode: 0xF4
  Topology: cpus: 1x cores: 6 smt: <unsupported> cache: L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB
    L2: 1.5 MiB desc: 6x256 KiB L3: 9 MiB desc: 1x9 MiB
  Speed (MHz): avg: 3300 min/max: 800/4400 scaling: driver: intel_pstate governor: powersave
    cores: 1: 3300 2: 3300 3: 3300 4: 3300 5: 3300 6: 3300 bogomips: 36000
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling mitigation: Microcode
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
  Type: mds mitigation: Clear CPU buffers; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data mitigation: Clear CPU buffers; SMT disabled
  Type: retbleed mitigation: IBRS
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: IBRS, IBPB: conditional, STIBP: disabled, RSB filling,
    PBRSB-eIBRS: Not affected
  Type: srbds mitigation: Microcode
  Type: tsx_async_abort mitigation: TSX disabled
Graphics:
  Device-1: Intel CoffeeLake-S GT2 [UHD Graphics 630] vendor: Gigabyte driver: i915 v: kernel
    arch: Gen-9.5 process: Intel 14nm built: 2016-20 ports: active: DP-2 empty: DP-1,HDMI-A-1
    bus-ID: 00:02.0 chip-ID: 8086:3e92 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: iris gpu: i915 display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 2560x1440 s-dpi: 96 s-size: 677x381mm (26.65x15.00") s-diag: 777mm (30.58")
  Monitor-1: DP-2 model: Fujitsu Siemens B27-9 TS QHD serial: <filter> built: 2020 res: 2560x1440
    hz: 60 dpi: 109 gamma: 1.2 size: 597x336mm (23.5x13.23") diag: 685mm (27") ratio: 16:9 modes:
    max: 2560x1440 min: 720x400
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel UHD Graphics 630 (CFL GT2)
    direct-render: Yes
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Gigabyte driver: snd_hda_intel v: kernel
    alternate: snd_soc_skl,snd_sof_pci_intel_cnl bus-ID: 00:1f.3 chip-ID: 8086:a348 class-ID: 0403
  API: ALSA v: k6.1.0-11-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 0.3.65 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Intel Ethernet I219-V vendor: Gigabyte driver: e1000e v: kernel port: N/A
    bus-ID: 00:1f.6 chip-ID: 8086:15bc class-ID: 0200
  IF: eth0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 465.76 GiB used: 139.22 GiB (29.9%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WDS500G2B0A size: 465.76 GiB
    block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 90WD
    scheme: GPT
Partition:
  ID-1: / raw-size: 256.03 GiB size: 250.95 GiB (98.02%) used: 19.42 GiB (7.7%) fs: ext4
    dev: /dev/sda2 maj-min: 8:2
  ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat
    dev: /dev/sda1 maj-min: 8:1
  ID-3: /home raw-size: 209.48 GiB size: 205.13 GiB (97.93%) used: 119.8 GiB (58.4%) fs: ext4
    dev: /dev/sda3 maj-min: 8:3
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 6 GiB used: 0 KiB (0.0%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 42.0 C pch: 47.0 C mobo: 42.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 2560 libs: 1459 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://mirror.karneval.cz/pub/linux/mxlinux-packages/mxlinux/mx/repo/ bookworm main non-free
  Active apt repos in: /etc/apt/sources.list.d/winehq-bookworm.sources
    1: deb [arch=amd64 i386] https://dl.winehq.org/wine-builds/debian bookworm main
Info:
  Processes: 257 Uptime: 12m wakeups: 0 Memory: 31.01 GiB used: 2.65 GiB (8.5%) Init: systemd
  v: 252 target: graphical (5) default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
  Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI

Code: Select all

$ glxinfo | grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.3.6
OpenGL core profile shading language version string: 4.60
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.3.6
OpenGL shading language version string: 4.60
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    GL_EXT_shader_implicit_conversions, GL_EXT_shader_integer_mix, 

Code: Select all

==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.239


Instance Extensions: count = 20
===============================
	VK_EXT_acquire_drm_display             : extension revision 1
	VK_EXT_acquire_xlib_display            : extension revision 1
	VK_EXT_debug_report                    : extension revision 10
	VK_EXT_debug_utils                     : extension revision 2
	VK_EXT_direct_mode_display             : extension revision 1
	VK_EXT_display_surface_counter         : extension revision 1
	VK_KHR_device_group_creation           : extension revision 1
	VK_KHR_display                         : extension revision 23
	VK_KHR_external_fence_capabilities     : extension revision 1
	VK_KHR_external_memory_capabilities    : extension revision 1
	VK_KHR_external_semaphore_capabilities : extension revision 1
	VK_KHR_get_display_properties2         : extension revision 1
	VK_KHR_get_physical_device_properties2 : extension revision 2
	VK_KHR_get_surface_capabilities2       : extension revision 1
	VK_KHR_portability_enumeration         : extension revision 1
	VK_KHR_surface                         : extension revision 25
	VK_KHR_surface_protected_capabilities  : extension revision 1$ glxinfo | grep version
server glx version string: 1.4
client glx version string: 1.4
GLX version: 1.4
    Max core profile version: 4.6
    Max compat profile version: 4.6
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
OpenGL core profile version string: 4.6 (Core Profile) Mesa 22.3.6
OpenGL core profile shading language version string: 4.60
OpenGL version string: 4.6 (Compatibility Profile) Mesa 22.3.6
OpenGL shading language version string: 4.60
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 22.3.6
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
    GL_EXT_shader_implicit_conversions, GL_EXT_shader_integer_mix, 

	VK_KHR_wayland_surface                 : extension revision 6
	VK_KHR_xcb_surface                     : extension revision 6
	VK_KHR_xlib_surface                    : extension revision 6

Layers: count = 5
=================
VK_LAYER_INTEL_nullhw (INTEL NULL HW) Vulkan version 1.1.73, layer version 1:
	Layer Extensions: count = 0
	Devices: count = 2
		GPU id = 0 (Intel(R) UHD Graphics 630 (CFL GT2))
		Layer-Device Extensions: count = 0

		GPU id = 1 (llvmpipe (LLVM 15.0.6, 256 bits))
		Layer-Device Extensions: count = 0

VK_LAYER_KHRONOS_validation (Khronos Validation Layer) Vulkan version 1.3.239, layer version 1:
	Layer Extensions: count = 3
		VK_EXT_debug_report        : extension revision 9
		VK_EXT_debug_utils         : extension revision 1
		VK_EXT_validation_features : extension revision 2
	Devices: count = 2
		GPU id = 0 (Intel(R) UHD Graphics 630 (CFL GT2))
		Layer-Device Extensions: count = 3
			VK_EXT_debug_marker     : extension revision 4
			VK_EXT_tooling_info     : extension revision 1
			VK_EXT_validation_cache : extension revision 1

		GPU id = 1 (llvmpipe (LLVM 15.0.6, 256 bits))
		Layer-Device Extensions: count = 3
			VK_EXT_debug_marker     : extension revision 4
			VK_EXT_tooling_info     : extension revision 1
			VK_EXT_validation_cache : extension revision 1

VK_LAYER_MESA_device_select (Linux device selection layer) Vulkan version 1.3.211, layer version 1:
	Layer Extensions: count = 0
	Devices: count = 2
		GPU id = 0 (Intel(R) UHD Graphics 630 (CFL GT2))
		Layer-Device Extensions: count = 0

		GPU id = 1 (llvmpipe (LLVM 15.0.6, 256 bits))
		Layer-Device Extensions: count = 0

VK_LAYER_MESA_overlay (Mesa Overlay layer) Vulkan version 1.3.211, layer version 1:
	Layer Extensions: count = 0
	Devices: count = 2
		GPU id = 0 (Intel(R) UHD Graphics 630 (CFL GT2))
		Layer-Device Extensions: count = 0

		GPU id = 1 (llvmpipe (LLVM 15.0.6, 256 bits))
		Layer-Device Extensions: count = 0

VK_LAYER_VKBASALT_post_processing (a post processing layer) Vulkan version 1.3.223, layer version 1:
	Layer Extensions: count = 0
	Devices: count = 2
		GPU id = 0 (Intel(R) UHD Graphics 630 (CFL GT2))
		Layer-Device Extensions: count = 0

		GPU id = 1 (llvmpipe (LLVM 15.0.6, 256 bits))
		Layer-Device Extensions: count = 0

Presentable Surfaces:
=====================
GPU id : 0 (Intel(R) UHD Graphics 630 (CFL GT2)):
	Surface types: count = 2
		VK_KHR_xcb_surface
		VK_KHR_xlib_surface
	Formats: count = 2
		SurfaceFormat[0]:
			format = FORMAT_B8G8R8A8_SRGB
			colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
		SurfaceFormat[1]:
			format = FORMAT_B8G8R8A8_UNORM
			colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
	Present Modes: count = 4
		PRESENT_MODE_IMMEDIATE_KHR
		PRESENT_MODE_MAILBOX_KHR
		PRESENT_MODE_FIFO_KHR
		PRESENT_MODE_FIFO_RELAXED_KHR
	VkSurfaceCapabilitiesKHR:
	-------------------------
		minImageCount = 3
		maxImageCount = 0
		currentExtent:
			width  = 256
			height = 256
		minImageExtent:
			width  = 256
			height = 256
		maxImageExtent:
			width  = 256
			height = 256
		maxImageArrayLayers = 1
		supportedTransforms: count = 1
			SURFACE_TRANSFORM_IDENTITY_BIT_KHR
		currentTransform = SURFACE_TRANSFORM_IDENTITY_BIT_KHR
		supportedCompositeAlpha: count = 2
			COMPOSITE_ALPHA_OPAQUE_BIT_KHR
			COMPOSITE_ALPHA_INHERIT_BIT_KHR
		supportedUsageFlags: count = 6
			IMAGE_USAGE_TRANSFER_SRC_BIT
			IMAGE_USAGE_TRANSFER_DST_BIT
			IMAGE_USAGE_SAMPLED_BIT
			IMAGE_USAGE_STORAGE_BIT
			IMAGE_USAGE_COLOR_ATTACHMENT_BIT
			IMAGE_USAGE_INPUT_ATTACHMENT_BIT
	VkSurfaceCapabilities2EXT:
	--------------------------
		supportedSurfaceCounters:
			None
	VkSurfaceProtectedCapabilitiesKHR:
	----------------------------------
		supportsProtected = false
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: What to do when gfx device and OpenGL support are missing?

Post by jkfloris »

Probably something went wrong during the installation of .Net 4.0. Wine still uses the built-in Wine-Mono.
Maybe you can repair the installation with:

Code: Select all

winetricks --force -q xna40
"Wine Mono Runtime" should no longer appear in wine uninstaller, and winecfg should show "*mscoree" as a DLL override.
sclin
Newbie
Newbie
Posts: 2
Joined: Sat Aug 26, 2023 1:18 pm

Re: What to do when gfx device and OpenGL support are missing?

Post by sclin »

jkfloris wrote: Sun Aug 27, 2023 4:46 pm Maybe you can repair the installation with...
Thank you so much... 8)
I tried to rip off the "native" Mono on several ways and also somehow "overinstall" dotnet and xna, over and over again, but without success.
Your guide now helped!!!
jkfloris wrote: Sun Aug 27, 2023 4:46 pm "Wine Mono Runtime" should no longer appear in wine uninstaller, and winecfg should show "*mscoree" as a DLL override.
Exactly, everything is set as you said. LnxSpectrum, and all its working windows (assembler and its debugger as well) are running now perfectly.

Image
Last edited by sclin on Mon Aug 28, 2023 12:28 pm, edited 3 times in total.
Locked