CPU monitor gauge not working in VARA

Questions about Wine on Linux
Locked
WheezyE
Level 1
Level 1
Posts: 6
Joined: Sat Dec 19, 2020 9:53 pm

CPU monitor gauge not working in VARA

Post by WheezyE »

When I run a ham radio program, called VARA, through Wine I'm noticing that the program doesn't properly display CPU usage in its "CPU Gauge". It instead just says "%CPU not available". (See this thread of an image - this forum won't let me repost the image there since it's too large)

I'm assuming it might be an unimplemented function or missing library in Wine, but I don't know how to track down what is missing.

Here's a terminal output of the program running (and then being closed).

Code: Select all

pi@debian:~$ wine ~/.wine/drive_c/VARA/VARA.exe 
002c:fixme:winediag:LdrInitializeThunk wine-staging 6.0 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
0050:err:ole:start_rpcss Failed to start RpcSs service
0024:fixme:olepicture:OleLoadPictureEx (00F41204,7366,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=0,y=0,f=0,0031FB10), partially implemented.
0024:fixme:heap:RtlCompactHeap (00110000, 0x0) stub
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,0889F168), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,0889F5E0), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,0889F680), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,0889F718), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,0889F7B8), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,0889F858), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,0889FA78), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,0889FB18), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,0889FBB8), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,0889FD20), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,0889FDC0), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,0889FE60), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,0889FF00), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,088A0068), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,088A0100), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,088A0198), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,088A0230), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,088A0390), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,088A0430), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,088A04C8), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,088A0628), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,088A0840), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,088A08E0), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,088A0980), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,088A0A18), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,088A0AB8), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,0,0,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=20,y=20,f=0,088A0B58), partially implemented.
0024:fixme:wincodecs:jpeg_decoder_get_metadata_blocks stub
0024:fixme:olepicture:OleLoadPictureEx (00F41204,33362,1,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=0,y=0,f=0,0031FAE0), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,33362,1,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=0,y=0,f=0,0031FAE0), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,33362,1,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=0,y=0,f=0,0031FAE0), partially implemented.
0024:fixme:olepicture:OleLoadPictureEx (00F41204,33362,1,{7bf80980-bf32-101a-8bbb-00aa00300cab},x=0,y=0,f=0,0031FAE0), partially implemented.
0024:fixme:olepicture:OLEPictureImpl_SaveAsFile (0154F528)->(088E26E8,0,00000000): semi-stub
0024:fixme:advapi:RegisterEventSourceW ((null),L"PDH"): stub
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:fixme:winspool:PerfOpen (null): stub
0024:fixme:winspool:PerfCollect L"Global", 0x31ea48, 0x31ea3c, 0x31ea40: stub
0024:fixme:winspool:PerfClose stub
ALSA lib pcm.c:8424:(snd_pcm_recover) overrun occurred
ALSA lib pcm.c:8424:(snd_pcm_recover) overrun occurred
ALSA lib pcm.c:8424:(snd_pcm_recover) overrun occurred
ALSA lib pcm.c:8424:(snd_pcm_recover) overrun occurred
ALSA lib pcm.c:8424:(snd_pcm_recover) overrun occurred
ALSA lib pcm.c:8424:(snd_pcm_recover) overrun occurred
ALSA lib pcm.c:8424:(snd_pcm_recover) overrun occurred
ALSA lib pcm.c:8424:(snd_pcm_recover) underrun occurred
0024:err:ole:TLB_ReadTypeLib Loading of typelib L"msdatsrc.tlb" failed with error 2
0024:err:ole:userdefined_to_variantvt Could not get typeinfo of hreftype 9d for VT_USERDEFINED, hr = 0x80029c4a
0024:err:ole:TLB_ReadTypeLib Loading of typelib L"msdatsrc.tlb" failed with error 2
0024:err:ole:userdefined_to_variantvt Could not get typeinfo of hreftype 9d for VT_USERDEFINED, hr = 0x80029c4a
0024:fixme:msvcrt:__clean_type_info_names_internal (60086D34) stub
0024:fixme:msvcrt:__clean_type_info_names_internal (6032291C) stub
0024:fixme:msvcrt:__clean_type_info_names_internal (0D1F5CA4) stub
0024:fixme:msvcrt:__clean_type_info_names_internal (640E2698) stub
0024:fixme:advapi:DeregisterEventSource (CAFE4242) stub

I'm wondering if this might be a problem with one of these warnings:

Code: Select all

0024:fixme:advapi:RegisterEventSourceW ((null),L"PDH"): stub
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:fixme:winspool:PerfOpen (null): stub
0024:fixme:winspool:PerfCollect L"Global", 0x31ea48, 0x31ea3c, 0x31ea40: stub
0024:fixme:winspool:PerfClose stub
I'm very new to debugging though and assume that this will take more than just dropping in dll's and doing winecfg dll overrides (especially if ntdll is at fault here). Does anybody have any insight into Wine's ability to query system resources - or some ideas for commands I could try to track this bug down and report it to the Wine team for possible request for implementation? There's a whole community of hams who would love to have this program 100% operational (even though this is a minor bug).

To reproduce this behavior, you can install VARA with these commands:

Code: Select all

#### Configure our wineprefix
winetricks -q corefonts dotnet35sp1 vb6run win7 sound=alsa vcrun2015 pdh # run pdh here just for the winecfg dll override
 
# Install an older pdh.dll (the pdh.dll from "winetricks pdh" is too new for VARA)
sudo apt-get install zip -y
cd ~/Downloads && mkdir pdhNT40 && cd pdhNT40
wget http://download.microsoft.com/download/winntsrv40/update/5.0.2195.2668/nt4/en-us/nt4pdhdll.exe
unzip -o nt4pdhdll.exe
cp pdh.dll ~/.wine/drive_c/windows/system32
 

####  Download/extract/install VARA HF (or newer) [https://rosmodem.wordpress.com/]
sudo apt-get install p7zip-full -y
sudo apt-get install megatools -y

cd ~/Downloads
VARALINK=$(curl -s https://rosmodem.wordpress.com/ | grep -oP '(?<=<a href=").*?(?=" target="_blank" rel="noopener noreferrer">VARA HF v)') # Find the mega.nz link from the rosmodem website no matter its version, then store it as a variable
megadl ${VARALINK}
7z x VARA*.zip -o"VARAInstaller" -y
wine ~/Downloads/VARAInstaller/VARA\ setup*.exe /SILENT
 
 
####  Configure VARA
# In winecfg, go to the Audio tab to set up your default in/out soundcards
wine winecfg
 
# In VARA, set up your soundcard input and output (go to Settings ... Soundcard)
wine ~/.wine/drive_c/VARA/VARA.exe
WheezyE
Level 1
Level 1
Posts: 6
Joined: Sat Dec 19, 2020 9:53 pm

Re: CPU monitor gauge not working in VARA

Post by WheezyE »

I've submitted this as a possible bug: https://bugs.winehq.org/show_bug.cgi?id=50728
Locked