ERROR WMI [error] : Invalid variant type conversion
› Forums › Desktop Info › ERROR WMI [error] : Invalid variant type conversion
Tagged: wmi
- This topic has 4 replies, 1 voice, and was last updated 1 year, 9 months ago by
webmaster.
-
AuthorPosts
-
-
19 August, 2020 at 9:33 pm #3295
Brad
I am getting the following information in the desktop info error log:
ERROR WMI [error] : Invalid variant type conversionThe offending query seems to be this:
WMI=active:1,interval:0,color:FFFFFF,text:Model:,namespace:root\cimv2,query:Win32_ComputerSystem,display:%model%,text-offset:43I think the issue is that WMI is returning a string and delphi is trying to convert it to a string a second time. At least that’s what I can gather from google. I’m not sure how I avoid the unnecessary conversion though?
The query is returning the text I want, so I am tempted to turn off error logging and ignore the issue but I hate leaving errors 🙂
Thanks
Brad -
20 August, 2020 at 9:33 am #3298
webmaster
KeymasterI can’t reproduce that here. Perhaps you can switch on debug and send me the resulting log.
-
25 August, 2020 at 7:16 pm #3339
Brad
19-08-20 16:50:45:195 ERROR WMI [error] : Invalid variant type conversion
25-08-20 05:14:21:289 INFO Desktop Info version 2.8.0.3616
25-08-20 05:14:21:289 INFO Windows Version 6.2.9200
25-08-20 05:14:21:291 DEBUG AddConfItem: HOST
25-08-20 05:14:21:292 DEBUG AddConfItem: BOOTTIME
25-08-20 05:14:21:293 DEBUG AddConfItem: WMI
25-08-20 05:14:21:293 DEBUG AddConfItem: WMI
25-08-20 05:14:21:294 DEBUG AddConfItem: COMMENT
25-08-20 05:14:21:295 DEBUG AddConfItem: CPU
25-08-20 05:14:21:296 DEBUG AddConfItem: COMMENT
25-08-20 05:14:21:297 DEBUG AddConfItem: PHYSICALRAM
25-08-20 05:14:21:297 DEBUG AddConfItem: COMMENT
25-08-20 05:14:21:298 DEBUG AddConfItem: VIRTUALMEMORY
25-08-20 05:14:21:299 DEBUG AddConfItem: PAGEFILE
25-08-20 05:14:21:299 DEBUG AddConfItem: COMMENT
25-08-20 05:14:21:300 DEBUG AddConfItem: LOGICALDRIVES
25-08-20 05:14:21:301 DEBUG AddConfItem: COMMENT
25-08-20 05:14:21:302 DEBUG AddConfItem: WMI
25-08-20 05:14:21:302 DEBUG AddConfItem: COMMENT
25-08-20 05:14:21:303 DEBUG AddConfItem: TOPPROCESSCPU
25-08-20 05:14:21:303 DEBUG AddConfItem: TOPPROCESSMEM
25-08-20 05:14:21:304 DEBUG AddConfItem: COMMENT
25-08-20 05:14:21:305 DEBUG AddConfItem: NETWORKINTERFACES
25-08-20 05:14:21:305 DEBUG AddConfItem: ALLIPADDRESS
25-08-20 05:14:21:306 DEBUG AddConfItem: ALLIPADDRESS
25-08-20 05:14:21:307 DEBUG AddConfItem: NETWORKINTERFACES
25-08-20 05:14:21:308 DEBUG AddConfItem: COMMENT
25-08-20 05:14:21:308 DEBUG AddConfItem: CMD
25-08-20 05:14:21:309 INFO Items Loaded: 25
25-08-20 05:14:21:310 INFO Thread priority set
25-08-20 05:14:21:315 DEBUG UpdateEntries Complete.
25-08-20 05:14:21:318 DEBUG UpdateEntries Complete.
25-08-20 05:14:21:318 DEBUG HOST run, time: 0ms
25-08-20 05:14:21:332 DEBUG HOST process
25-08-20 05:14:21:346 DATA HOST TS1
25-08-20 05:14:21:359 DATA HOST () True
25-08-20 05:14:21:360 DEBUG BOOTTIME run, time: 0ms
25-08-20 05:14:21:374 DEBUG BOOTTIME process
25-08-20 05:14:21:388 DATA BOOTTIME 8/14/2020 6:48 AM
25-08-20 05:14:21:401 DATA BOOTTIME () True
25-08-20 05:14:21:424 DEBUG WMI run, time: 15ms
25-08-20 05:14:21:449 DEBUG WMI process
25-08-20 05:14:21:463 ERROR WMI [error] : Invalid variant type conversion
25-08-20 05:14:21:477 DATA WMI VMware Virtual Platform
25-08-20 05:14:21:490 DATA WMI () True
25-08-20 05:14:21:525 DEBUG WMI id:os, run, time: 47ms
25-08-20 05:14:21:538 DEBUG WMI id:os, process
25-08-20 05:14:21:552 DATA WMI id:os, Microsoft Windows Server 2012 R2 Datacenter 64-bit
25-08-20 05:14:21:566 DATA WMI () True
25-08-20 05:14:21:833 DATA _GetCpuTimes: : 2
25-08-20 05:14:21:846 DEBUG CPU run, time: 281ms
25-08-20 05:14:21:860 DEBUG CPU process
25-08-20 05:14:21:874 DATA CPU Tot: 2%, Krnl: 1%, Queue: 0|%chart%
25-08-20 05:14:21:889 DATA CPU () True
25-08-20 05:14:21:890 DEBUG PHYSICALRAM run, time: 0ms
25-08-20 05:14:21:904 DEBUG PHYSICALRAM process
25-08-20 05:14:21:917 DATA PHYSICALRAM 7.1GiB / 12.0GiB (58% used)|%chart%
25-08-20 05:14:21:930 DATA PHYSICALRAM () True
25-08-20 05:14:21:931 DEBUG VIRTUALMEMORY run, time: 0ms
25-08-20 05:14:21:944 DEBUG VIRTUALMEMORY process
25-08-20 05:14:21:957 DATA VIRTUALMEMORY 121.1MiB / 2.0GiB (5% used)
25-08-20 05:14:21:970 DATA VIRTUALMEMORY () True
25-08-20 05:14:21:971 DEBUG PAGEFILE run, time: 0ms
25-08-20 05:14:21:985 DEBUG PAGEFILE process
25-08-20 05:14:21:999 DATA PAGEFILE 8.2GiB / 14.5GiB (56% used)
25-08-20 05:14:22:014 DATA PAGEFILE () True
25-08-20 05:14:22:026 DEBUG LOGICALDRIVES run, time: 16ms
25-08-20 05:14:22:040 DEBUG LOGICALDRIVES process
25-08-20 05:14:22:053 DATA LOGICALDRIVES 52GB/64GB (81.9% used)|%chart%
25-08-20 05:14:22:067 DATA LOGICALDRIVES () True
25-08-20 05:14:22:195 DEBUG UpdateEntries Complete.
25-08-20 05:14:22:202 DEBUG UpdateEntries Complete.
25-08-20 05:14:22:338 DEBUG WMI run, time: 281ms
25-08-20 05:14:22:351 DEBUG WMI process
25-08-20 05:14:22:365 DATA WMI Receive: 10.0KiBps, Send: 2.9KiBps
25-08-20 05:14:22:379 DATA WMI () True
25-08-20 05:14:22:385 DEBUG TOPPROCESSCPU run, time: 16ms
25-08-20 05:14:22:398 DEBUG TOPPROCESSCPU process
25-08-20 05:14:22:415 DATA TOPPROCESSCPU taskhostex.exe (pid:3624) 0% CPU
25-08-20 05:14:22:428 DATA TOPPROCESSCPU () True
25-08-20 05:14:22:436 DEBUG TOPPROCESSMEM run, time: 16ms
25-08-20 05:14:22:450 DEBUG TOPPROCESSMEM process
25-08-20 05:14:22:464 DATA TOPPROCESSMEM jp2launcher.exe (pid:6592) 334.4MiB Memory
25-08-20 05:14:22:478 DATA TOPPROCESSMEM () True
25-08-20 05:14:22:487 DEBUG NETWORKINTERFACES run, time: 0ms
25-08-20 05:14:22:504 DEBUG NETWORKINTERFACES process
25-08-20 05:14:22:519 DATA NETWORKINTERFACES Main Connection
25-08-20 05:14:22:533 DATA NETWORKINTERFACES () True
25-08-20 05:14:22:537 DATA All Network IP:
25-08-20 05:14:22:550 DEBUG ALLIPADDRESS run, time: 15ms
25-08-20 05:14:22:562 DEBUG ALLIPADDRESS process
25-08-20 05:14:22:575 DATA ALLIPADDRESS 10.80.45.82
25-08-20 05:14:22:589 DATA ALLIPADDRESS () True
25-08-20 05:14:22:593 DATA All Network IP:
25-08-20 05:14:22:607 DEBUG ALLIPADDRESS run, time: 16ms
25-08-20 05:14:22:620 DEBUG ALLIPADDRESS process
25-08-20 05:14:22:634 DATA ALLIPADDRESS 255.255.255.0
25-08-20 05:14:22:649 DATA ALLIPADDRESS () True
25-08-20 05:14:22:659 DEBUG NETWORKINTERFACES run, time: 0ms
25-08-20 05:14:22:671 DEBUG NETWORKINTERFACES process
25-08-20 05:14:22:684 DATA NETWORKINTERFACES
25-08-20 05:14:22:698 DATA NETWORKINTERFACES
25-08-20 05:14:22:713 DATA NETWORKINTERFACES
25-08-20 05:14:22:728 DATA NETWORKINTERFACES
25-08-20 05:14:22:743 DATA NETWORKINTERFACES 10.80.45.2
25-08-20 05:14:22:756 DATA NETWORKINTERFACES
25-08-20 05:14:22:770 DATA NETWORKINTERFACES
25-08-20 05:14:22:782 DATA NETWORKINTERFACES
25-08-20 05:14:22:796 DATA NETWORKINTERFACES
25-08-20 05:14:22:809 DATA NETWORKINTERFACES
25-08-20 05:14:22:822 DATA NETWORKINTERFACES
25-08-20 05:14:22:835 DATA NETWORKINTERFACES
25-08-20 05:14:22:851 DATA NETWORKINTERFACES
25-08-20 05:14:22:869 DATA NETWORKINTERFACES
25-08-20 05:14:22:886 DATA NETWORKINTERFACES () True
25-08-20 05:14:22:887 DATA CMD .\rdp-users.ps1
25-08-20 05:14:23:101 DEBUG UpdateEntries Complete.
25-08-20 05:14:23:110 DEBUG UpdateEntries Complete.
25-08-20 05:14:24:000 DATA CMD Result {redacted}25-08-20 05:14:24:015 DEBUG CMD run, time: 1125ms
25-08-20 05:14:24:028 DEBUG CMD process
25-08-20 05:14:24:041 DATA CMD {redacted}
25-08-20 05:14:24:054 DATA CMD () True
25-08-20 05:14:24:909 DEBUG UpdateEntries Complete.
25-08-20 05:14:24:919 DEBUG UpdateEntries Complete.
25-08-20 05:14:25:810 DEBUG CheckIniFile -
29 August, 2020 at 11:27 pm #3344
Brad
Glenn any thoughts on the above? I can just disable logging and ignore it but it’d be great not to ignore the problem 🙂
-
30 August, 2020 at 6:47 am #3345
webmaster
KeymasterThere’s an error processing a WMI result set. The item in question is not identified. Do you notice any of the wmi items showing empty results? If not it might be an interesting exercise to put every single result property on the display and see what’s there and what isn’t.
-
-
-
AuthorPosts
- The topic ‘ERROR WMI [error] : Invalid variant type conversion’ is closed to new replies.