DEWESoft 7 DCOM - Intermittent COMException: Catestrophic failure on StartStoring

  • Software
  • DEWESoft 7 DCOM - Intermittent COMException: Catestrophic failure on StartStoring
rob spilker

Posted on 29.09.2017 22:52

I wrote a CSharp application to automate data acquisition via remote commands from another application. We're seeing intermittent COMExceptions when using the IApp.StartStoring command. The following formatted DEWESoft log entries corresponds with the same time the exception occurred. Any assistance would be appreciated.

003 #Error: [9/29/2017 9:43:58 AM] Undefined {} Access violation at address 00BF380E in module 'DEWESoft.exe'. Read of address 00000030 {
	[00BF380E] VirtualGPS.TVirtualGPS.GetData (Unit: VirtualGPS, Line 147);
	[00516462] ;
	[00BF37F8] VirtualGPS.TVirtualGPS.GetData (Unit: VirtualGPS, Line 145);
	[00BF3C74] VirtualGPS.TVirtualGPS.GetData (Unit: VirtualGPS, Line 227);
	[00A70226] CommonGPS.TGPSControllerEnumerator.Create (Unit: CommonGPS, Line 862);
	[00A6F917] CommonGPS.TGPSController.GetData (Unit: CommonGPS, Line 607);
	[0146418F] GlobalObjectsUnit.AcquireData (Unit: GlobalObjectsUnit, Line 2415);
	[00D3C55B] ControllerTimer.TControllerThread.Execute (Unit: ControllerTimer, Line 780);
	[00D3E716] ControllerTimer.TTimerEx.WndProcEx (Unit: ControllerTimer, Line 1585);
	[00D3E18F] ControllerTimer.TControllerThread.WndProcEx (Unit: ControllerTimer, Line 1363);
	[00D3E6B6] ControllerTimer.TTimerEx.WndProc (Unit: ControllerTimer, Line 1576);
	[004D5594] ;
	[0067185F] ;
	[006718A2] ;
	[00671BDD] ;
	[014D336E] } 
001 #Error: [9/29/2017 9:43:58 AM] Undefined {} Access violation at address 036EE99B. Read of address 036EE99B {
	[036EE99B] ;
	[0040F70D] ;
	[0069CEF6] ComUtils.TStaticAutoIntfObject._AddRef (Unit: ComUtils, Line 208);
	[0040F70D] ;
	[0139FD9F] AppIMPL.TApp.Get_Data (Unit: AppIMPL, Line 256);
	[00BF380E] VirtualGPS.TVirtualGPS.GetData (Unit: VirtualGPS, Line 147);
	[00BF3C74] VirtualGPS.TVirtualGPS.GetData (Unit: VirtualGPS, Line 227);
	[00A70226] CommonGPS.TGPSControllerEnumerator.Create (Unit: CommonGPS, Line 862);
	[00A6F917] CommonGPS.TGPSController.GetData (Unit: CommonGPS, Line 607);
	[0146418F] GlobalObjectsUnit.AcquireData (Unit: GlobalObjectsUnit, Line 2415);
	[00D3C55B] ControllerTimer.TControllerThread.Execute (Unit: ControllerTimer, Line 780);
	[00D3E716] ControllerTimer.TTimerEx.WndProcEx (Unit: ControllerTimer, Line 1585);
	[00D3E18F] ControllerTimer.TControllerThread.WndProcEx (Unit: ControllerTimer, Line 1363);
	[00D3E6B6] ControllerTimer.TTimerEx.WndProc (Unit: ControllerTimer, Line 1576);
	[004D5594] ;
	[0067185F] ;
	[006718A2] ;
	[00671BDD] ;
	[014D336E] } 
>99 #Error: [9/29/2017 9:43:58 AM] Undefined {} Access violation at address 00000000. Read of address 00000000 {
	[0040F70D] ;
	[0069CEF6] ComUtils.TStaticAutoIntfObject._AddRef (Unit: ComUtils, Line 208);
	[0040F70D] ;[0139FD9F] AppIMPL.TApp.Get_Data (Unit: AppIMPL, Line 256);
	[00BF380E] VirtualGPS.TVirtualGPS.GetData (Unit: VirtualGPS, Line 147);
	[00BF3C74] VirtualGPS.TVirtualGPS.GetData (Unit: VirtualGPS, Line 227);
	[00A70226] CommonGPS.TGPSControllerEnumerator.Create (Unit: CommonGPS, Line 862);
	[00A6F917] CommonGPS.TGPSController.GetData (Unit: CommonGPS, Line 607);
	[0146418F] GlobalObjectsUnit.AcquireData (Unit: GlobalObjectsUnit, Line 2415);
	[00D3C55B] ControllerTimer.TControllerThread.Execute (Unit: ControllerTimer, Line 780);
	[00D3E716] ControllerTimer.TTimerEx.WndProcEx (Unit: ControllerTimer, Line 1585);
	[00D3E18F] ControllerTimer.TControllerThread.WndProcEx (Unit: ControllerTimer, Line 1363);
	[00D3E6B6] ControllerTimer.TTimerEx.WndProc (Unit: ControllerTimer, Line 1576);
	[004D5594] ;
	[0067185F] ;
	[006718A2] ;
	[00671BDD] ;
	[014D336E] } 
001 #Error: [9/29/2017 9:44:23 AM] Undefined {} Access violation at address 00EBF4FC in module 'DEWESoft.exe'. Read of address 00000030 {
	[00EBF4FC] StoreUnit.TDataStoreEngine.StoreRestOfDB (Unit: StoreUnit, Line 2034);[00406A2B] ;
	[0040DE7C] ;
	[0040DF1D] ;
	[00EBF4EE] StoreUnit.TDataStoreEngine.StoreRestOfDB (Unit: StoreUnit, Line 2033);
	[00EBE791] StoreUnit.TDataStoreEngine.Stop (Unit: StoreUnit, Line 1815);
	[00D3BBB6] ControllerTimer.TControllerThread.ResetTest (Unit: ControllerTimer, Line 597);
	[013664E6] MainUnit.TMainForm.InternalStopAcq (Unit: MainUnit, Line 2364);
	[01366AE9] MainUnit.TMainForm.ChangeMeasureMenu (Unit: MainUnit, Line 2459);
	[0136F69E] MainUnit.TMainForm.StopAcquisition (Unit: MainUnit, Line 4952);
	[013A0682] AppIMPL.TApp.Stop (Unit: AppIMPL, Line 381);
	[0057FBCE] ;
	[00BF380E] VirtualGPS.TVirtualGPS.GetData (Unit: VirtualGPS, Line 147);
	[00A70226] CommonGPS.TGPSControllerEnumerator.Create (Unit: CommonGPS, Line 862);
	[0066D2C6] ;
	[0067185F] ;
	[006718A2] ;
	[00671BDD] ;
	[014D336E] }


DEWESoft Support
Technical support
Posted on 02.10.2017 14:20

Hi,

I've launched DEWESoft V7 with C# via DCOM and have been able to execute that command without problems. What kind of input did you give the function? Could you share anything else that could help us reproduce this? If you would like to keep your setup file/source code private, you can also paste it to the private forum.

rob spilker

Posted on 02.10.2017 17:25

The unit is a DEWE2-A4 with TRION TIMING and DI-48 modules

The COMException does not always occur. Just sometimes during the acquisition/storing process. The log seems to indicate that it's related to handling GPS. I can send the setup files. Where/what is the private forum?


rob spilker

Posted on 03.10.2017 14:01

Setup file is attached


Attached files:
rob spilker

Posted on 05.10.2017 23:17

This keeps occuring. Today the same error: Access Violation at address 00BF380E as noted above (although without a COMException)

Since there was no COMException, we did not detect a problem until I noticed the red ERROR in the banner and examined the Dewesoft debug log and these 3 stack traces were there.

I could not find in the DEWESoft_DCOM_manual a service or property that would provide an error report so I could at least restart the DEWESoft application when this occurs.

Any help would be appreciated


DEWESoft Support
Technical support
Posted on 11.10.2017 14:24

Hi,

thank you for sharing the files. The private forum is actually located at the bottom of the forum page.

I've ran a couple of iterations of start/stop storing commands but was not able to reproduce the issue. I've shown the logs to the developers here and it looks like the virtual GPS crashes, but they couldn't really tell me much more than that.

I'll keep running the simulation and will try to reproduce the issue. Do you think it would make sense to also try that with your code? Are you doing something out of the ordinary?

mert dog

Posted on 16.11.2017 16:31

hi,

today I am trying to do some tests with IMU 1 and gps module. when I set everything is settings and go to IMU channel setup all warning boxes are green and looks fine. Collected data is correct etc. However, when I go to measurement mode or change to any other screen and return back to ds imu under channel setup, I got the error message saying that the `No gnss fix` and the used channels are all frozen. When I plug and unplug the IMU usb, channels start showing data but error still stays. It seems like the problem discussed in this topic is similar to what I experience. I can only collect data only after usb plug and unplug. It seems like the device shows as not connected. Thanks. Mert


Attached files:
Login to reply to this topic. If you don't have account yet, you can signup for free account .