Page 1 of 3

Re: DGDecIM crash on Windows 2012 R2

Posted: Sun Aug 13, 2017 5:05 pm
by admin
I meant the correct version of DGIndexIM.exe.

Anyway, it seems there are some issues with WMI on 2012 Server R2:

https://thwack.solarwinds.com/thread/53940

You can try some of the solutions in there, or this may let you get WMIDiag working to gather data needed to troubleshoot:

http://www.lemonbits.com/2014/11/04/wmi ... r-2012-r2/

Re: DGDecIM crash on Windows 2012 R2

Posted: Sun Aug 13, 2017 5:38 pm
by Nico83500
I'm going to do a WMIDiag 2.2, it supports Windows 2012 R2 without mod.

Re: DGDecIM crash on Windows 2012 R2

Posted: Mon Aug 14, 2017 2:58 am
by Nico83500
You could find report and appcrash screenshot (sorry it's in French) in attachments but problems found for WMI are HP WBEM product related.

Re: DGDecIM crash on Windows 2012 R2

Posted: Mon Aug 14, 2017 7:01 am
by admin
Yup, I agree. You're going to have to get support from HP on this.

If it helps, I can provide you with the source code for a small program that does a simple WMI query. Perhaps it could help in getting support.

Re: DGDecIM crash on Windows 2012 R2

Posted: Mon Aug 14, 2017 7:08 am
by Nico83500
Yes I'm interested by your small program to test, thank you. Do you think appcrash is really related to WMI ?

Re: DGDecIM crash on Windows 2012 R2

Posted: Mon Aug 14, 2017 7:48 am
by admin
I suspect it is a WMI issue and I do not have full error checking for all the WMI calls, causing me to use a null pointer. I'll put together a small program with debug output and we can try to identify the exact call that is failing.

Re: DGDecIM crash on Windows 2012 R2

Posted: Mon Aug 14, 2017 9:28 am
by admin
Run this in a cmd window and post the results:

http://rationalqm.us/misc/nico.exe

Re: DGDecIM crash on Windows 2012 R2

Posted: Mon Aug 14, 2017 4:16 pm
by Nico83500
First attempt : MSVCP120.dll is missing. I'm going to install Visual C++ 2013
Second attempt (after Visual C++2013 install) :
Connected to ROOT\CIMV2 WMI namespace
Get succeeded
Cleaning up...
Cleanup successfull
But DGIndexIM.exe doesn't work anymore
Thank you for your help :)

Re: DGDecIM crash on Windows 2012 R2

Posted: Mon Aug 14, 2017 5:20 pm
by admin
What do you mean by anymore? In English that means it worked previously.

I'll guess you mean it still doesn't work and I'll make a debug build of DGIndexIM for you.

You still did not answer about whether you run 32-bit or 64-bit DGIndexIM.

Re: DGDecIM crash on Windows 2012 R2

Posted: Mon Aug 14, 2017 5:48 pm
by admin
Download this:

http://rationalqm.us/misc/DGIndexIM.exe

Also download DebugView from:

https://docs.microsoft.com/en-us/sysint ... /debugview

Start DebugView. Configure Edit/Filters so that Include is:

DGIndexIM

Then run the DGIndexIM.exe in a command window. Post the output of DebugView here.

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 3:13 am
by Nico83500
Sorry I would like to say no more :roll:
Thank you, I'm going to test and I tell you.

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 3:58 am
by Nico83500
Here is the debug log :
First attempt :
00000001 0.00000000 [17532] DGIndexIM: ref 1
00000002 0.00029308 [17532] DGIndexIM: ref 2
00000003 0.00040139 [17532] DGIndexIM: ref 3
00000004 0.00046785 [17532] DGIndexIM: ref 4
00000005 0.00050741 [17532] DGIndexIM: ref 5
00000006 0.00054313 [17532] DGIndexIM: ref 6
00000007 0.00058423 [17532] DGIndexIM: ref 7
00000008 0.00121417 [17532] DGIndexIM: ref 8
00000009 0.00138971 [17532] DGIndexIM: ref 9
00000010 0.02717305 [17532] DGIndexIM: ref 10
00000011 0.02982955 [17532] DGIndexIM: ref 11
Second attempt :
00000012 88.84491730 [13964] DGIndexIM: ref 1
00000013 88.84504700 [13964] DGIndexIM: ref 2
00000014 88.84510803 [13964] DGIndexIM: ref 3
00000015 88.84513855 [13964] DGIndexIM: ref 4
00000016 88.84516907 [13964] DGIndexIM: ref 5
00000017 88.84520721 [13964] DGIndexIM: ref 6
00000018 88.84524536 [13964] DGIndexIM: ref 7
00000019 88.84589386 [13964] DGIndexIM: ref 8
00000020 88.84620667 [13964] DGIndexIM: ref 9
00000021 88.87058258 [13964] DGIndexIM: ref 10
00000022 88.87286377 [13964] DGIndexIM: ref 11

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 5:27 am
by Nico83500
I've ran that from your previous post : http://rationalqm.us/misc/DGIndexIM.exe
And I've tried both, 32 and 64 bits but same issue.

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 6:26 am
by admin
Email me or PM me with your user ID and email used to donate. I cannot find your forum email in my database so I am unable to determine if you are properly licensed.

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 10:20 am
by Nico83500
PM sent ;)

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 10:40 am
by admin
Thank you.

Please re-download the EXE and gather a new trace.

Also, please re-extract the distribution to a clean directory. The trace you gave suggests the presence of a hidden spurious DLL in the same directory as DGIndexIM.exe.

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 10:53 am
by admin
Woah, I made a mistake in the build. Hang on for a new one...

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 10:57 am
by admin
OK, good to download and run.

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 11:10 am
by Nico83500
Thank you :)
I've downloaded the new EXE, created a new folder and put in it, alone.
Here is the result :
00000001 0.00000000 [11744] DGIndexIM: ref 1
00000002 0.00015364 [11744] DGIndexIM: ref 2
00000003 0.00021702 [11744] DGIndexIM: ref 3
00000004 0.00024621 [11744] DGIndexIM: ref 4
00000005 0.00028309 [11744] DGIndexIM: ref 5
00000006 0.00031497 [11744] DGIndexIM: ref 6
00000007 0.00035876 [11744] DGIndexIM: ref 7
00000008 0.00100598 [11744] DGIndexIM: ref 8
00000009 0.00113927 [11744] DGIndexIM: ref 9
00000010 0.03281293 [11744] DGIndexIM: ref 10
00000011 0.03580821 [11744] DGIndexIM: ref 11
00000012 0.03724094 [11744] DGIndexIM: ref 11a
00000013 0.03894639 [11744] DGIndexIM: ref 11b
00000014 0.04102941 [11744] DGIndexIM: ref 11c
00000015 0.04770447 [11744] DGIndexIM: ref 11d
00000016 0.04777437 [11744] DGIndexIM: ref 11e
00000017 0.04842122 [11744] DGIndexIM: ref 11f
00000018 0.04845233 [11744] DGIndexIM: ref 11h
00000019 0.04847883 [11744] DGIndexIM: ref 12a
00000020 0.06576759 [11744] DGIndexIM: ref 11i

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 11:44 am
by admin
Thank you. Investigating...

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 12:02 pm
by admin
Please re-download and get the new trace.

It's not related to spurious DLLs, something is going wrong with WMI. This new trace will give me some return values from pEnumerator->Next which is used to query the mobo serial number.

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 12:34 pm
by Nico83500
Here is the new log :
00000001 0.00000000 [22348] DGIndexIM: ref 1
00000002 0.00019167 [22348] DGIndexIM: ref 2
00000003 0.00028616 [22348] DGIndexIM: ref 3
00000004 0.00032572 [22348] DGIndexIM: ref 4
00000005 0.00036990 [22348] DGIndexIM: ref 5
00000006 0.00040178 [22348] DGIndexIM: ref 6
00000007 0.00044518 [22348] DGIndexIM: ref 7
00000008 0.00120495 [22348] DGIndexIM: ref 8
00000009 0.00137089 [22348] DGIndexIM: ref 9
00000010 0.02637910 [22348] DGIndexIM: ref 10
00000011 0.02841949 [22348] DGIndexIM: ref 11
00000012 0.02976771 [22348] DGIndexIM: ref 11a
00000013 0.03122464 [22348] DGIndexIM: ref 11b
00000014 0.03318167 [22348] DGIndexIM: ref 11c
00000015 0.03973612 [22348] DGIndexIM: ref 11d
00000016 0.03986556 [22348] DGIndexIM: ref 11e
00000017 0.04048206 [22348] DGIndexIM: ref 11f
00000018 0.04052508 [22348] DGIndexIM: ref 11h
00000019 0.04056810 [22348] DGIndexIM: ref 12a
00000020 0.06235248 [22348] DGIndexIM: pEnumerator->Next returned 1, count 0
00000021 0.06250305 [22348] DGIndexIM: ref 11i

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 12:51 pm
by admin
WMI is giving me a non-NULL enumerator but then telling me there are no objects. Not good.

I have to think about why it could be working in the mbserialnumber.exe but not DGIndexIM.exe. Web search reveals two people with the same WMI problem and no answers.

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 12:59 pm
by Nico83500
Count 0 should be Count 1 or an other value ?
Thank you for your search, but if there is no answer I don't want to take all your time :(

Re: DGDecIM crash on Windows 2012 R2

Posted: Tue Aug 15, 2017 1:35 pm
by admin
It should return 0 with count 1 and then the Get call gets the serial number string. The weird thing is that the same code worked for you with the mbserialnumber.exe. I don't like mysteries.