Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

real time image processing: RT crashes intermittently

Hi Wei,

 

The other forum post you referenced is discussing a crash in RT, but the two look completely unrelated. The other crash is something inside of LabVIEW in a LabVIEW thread that is crashing.

 

In your crash it appears to be something related to shared variables. Since the support in the shared variable engine for images is brand new, I am suspecting there might be something related to the image transfer over shared variables. Could you try running it with the string datatype and the flatten/unflatten on either end so we can confirm if this is the case? This will allow us to properly assign the bug to the correct group to investigate.

 

Thanks,

Eric

0 Kudos
Message 11 of 15
(1,808 Views)

Hi, Eric,

 

Really thank you for your timely response.

 

Actually when you look at the attached error log you will find out there are two errors. One is labview error associated with PH_EXEC_SMP and each time I restart the RT PC, this error is logged but this error never crashes the RT PC-- Remote PC system.   The other error as you can see is the crash error log. And this error is the one crashes the system each time and this error, in my understanding, is the RT crash error and it is exactly the same error experienced by the other guy Tavi before image shared variable is released.  So this is why I think the image shared variable is not the reason for RT crash. 

 

But I will try what you suggested about the string, flatten/unflatten.  Do you have any example on that?

 

Regards,

 

Wei

0 Kudos
Message 12 of 15
(1,804 Views)

Hi, Eric,

 

I did a close look at Tavi's error log and mine, you will notice they are almost the same.

 

Tavi's error log:

 
*** BEGIN SYSTEM EXCEPTION LOG ***

Target type: Generic Desktop PC
Target code: 719C

System time (UTC): 2009-05-28 09:02:05
System tick count: 51001398 ms

Exception code: 0x80000003

Register contents:
EAX = 0x0000000A  EBX = 0x7EC81A10  ECX = 0x00000000
EDX = 0x7ED7E5AC  ESI = 0x00000001  EDI = 0x00000000
EBP = 0x07C53A44  ESP = 0x07C53A38  EIP = 0x0011ED61

CS = 0x0018  DS = 0x0020  SS = 0x150020
ES = 0x0020  FS = 0x6180028  GS = 0x100020

Thread name: LabVIEW Execution System 2 Thread 1
Thread stack base: 0x07C34000  stack size: 131072

Call Stack:
Level  1:  Code pointer: 0x0011ED61  Stack Base: 0x07C53A44
Level  2:  Code pointer: 0x06948D04  Stack Base: 0x07C53A7C
Level  3:  Code pointer: 0x06948D11  Stack Base: 0x07C53CB4
Level  4:  Code pointer: 0x06651E8C  Stack Base: 0x07C53CD0
Level  5:  Code pointer: 0x067A039D  Stack Base: 0x07C53E14
Level  6:  Code pointer: 0x065DFBF7  Stack Base: 0x07C53E38
Level  7:  Code pointer: 0x065DD7BA  Stack Base: 0x07C53F8C
Level  8:  Code pointer: 0x065DDB7A  Stack Base: 0x07C53FA0
Level  9:  Code pointer: 0x067B3118  Stack Base: 0x07C53FB0
Level 10:  Code pointer: 0x00101A48  Stack Base: 0x07C53FE4
Level 11:  Code pointer: 0x001078B4  Stack Base: 0x00000000

Loaded Modules:
00100000-002629AF PH_EXEC_SMP.EXE (C:\PH_EXEC_SMP.EXE) 2008-12-17 17:44:58
06450000-06454FFF WSOCK32.dll (C:\ni-rt\system\WSOCK32.dll) 2008-12-17 17:52:50
06456000-064A3FFF i8254x.dll (C:\ni-rt\system\ethernet\i8254x.dll) 2008-05-27 18:36:41
06442000-0644DFFF ftpserve.dll (C:\ni-rt\system\ftpserve.dll) 2008-10-08 19:14:48
06564000-0656AFFF emblview.exe (C:\ni-rt\system\emblview.exe) 2007-11-27 22:15:37
0656C000-06926FFF lvrt.dll (C:\ni-rt\system\lvrt.dll) 2008-12-10 19:41:37
06928000-0693EFFF LIBEXPAT.dll (C:\ni-rt\system\LIBEXPAT.dll) 2008-09-24 21:05:50
06940000-06995FFF MSVCR71.dll (C:\ni-rt\system\MSVCR71.dll) 2003-02-21 12:42:20
06997000-06A11FFF MSVCP71.dll (C:\ni-rt\system\MSVCP71.dll) 2003-03-19 04:14:51
06A45000-06AC9FFF lvuste.dll (C:\ni-rt\system\lvuste.dll) 2008-12-17 17:37:14
06C9E000-06CB6FFF tsengine.dll (C:\ni-rt\system\tsengine.dll) 2007-03-05 15:53:36
06CB8000-06CBDFFF nisl_emb.dll (C:\ni-rt\system\nisl_emb.dll) 2007-08-22 18:19:38
06CBF000-06CC6FFF nisvcloc.dll (C:\ni-rt\system\nisvcloc.dll) 2008-04-24 20:32:15
06D63000-06D76FFF VESA.dll (c:\ni-rt\system\VESA.dll) 2008-06-24 04:26:47
06DA5000-071F4FFF nivision.dll (c:\ni-rt\system\nivision.dll) 2008-08-07 22:52:12
071F6000-07205FFF nirpc.dll (C:\ni-rt\system\nirpc.dll) 2008-06-13 14:50:09
07207000-076AAFFF nivissvc.dll (C:\ni-rt\system\nivissvc.dll) 2008-08-07 22:48:18
06D78000-06D7EFFF nivismgr.dll (C:\ni-rt\system\nivismgr.dll) 2008-08-07 22:47:34
076AC000-076B8FFF tbbmalloc.dll (C:\ni-rt\system\tbbmalloc.dll) 2007-09-20 18:02:21
076BA000-076E6FFF nivisemb.dll (C:\ni-rt\system\nivisemb.dll) 2008-08-07 22:47:28
076E8000-0784CFFF imaq.dll (c:\ni-rt\system\imaq.dll) 2008-06-26 21:41:55
0784E000-078B4FFF NIPALP.dll (C:\ni-rt\system\NIPALP.dll) 2008-12-15 23:36:54
0644F000-0644FDBF nipalpg.dll (C:\ni-rt\system\nipalpg.dll) 2007-05-17 21:35:07
078B6000-078F4FFF niimaqk.dll (C:\ni-rt\system\niimaqk.dll) 2008-06-26 21:37:27
078F6000-07900FFF registry.dll (C:\ni-rt\system\registry.dll) 2007-08-20 21:45:34
07B6E000-07BA8FFF imaqcfgs.dll (c:\ni-rt\system\imaqcfgs.dll) 2008-06-23 18:05:35
07BCB000-07BFFFFF lvalarms.dll (C:\ni-rt\system\lvalarms.dll) 2008-12-17 17:38:17
0804B000-081E4FFF lvanlys.dll (C:\ni-rt\system\lvanlys.dll) 2008-04-09 05:43:47
08024000-0802DFFF nbfifo.dll (C:\ni-rt\system\nbfifo.dll) 2008-12-01 22:41:36
0803A000-0803FFFF settime.dll (C:\ni-rt\system\settime.dll) 2007-12-03 19:05:50

Memory statistics:
Total system memory:           2137041920 bytes
Free memory:                   1866101376 bytes
Largest free block:            1859973072 bytes
Free RTOS heap memory:         9888 bytes
Largest free RTOS heap block:  2048 bytes

*** END SYSTEM EXCEPTION LOG ***

 

 

My error log expecially at the begining part is the same as Tavi's, so do you have any thoughts on that?

 

Regards,

 

Wei

 

 

 

0 Kudos
Message 13 of 15
(1,801 Views)

Hi, Eric,

 

I tried to flatten/unflatten the image to string and transfer the images through this way. Great news is that so far it works without crash.  I don't know if this finally works out since I still need to take some time to test the stability of the system.

 

Thank you very much for your great suggestions and help.

 

Regards,

 

Wei 

0 Kudos
Message 14 of 15
(1,791 Views)

Hi ,i meet a problem about configurating haikang gige camera with NImax in RTsystem, In the NI max configuration tree -> remote system -> device and interfaces, i cannot find my remote device camera, why ? this problem have disturbed me for a long time, thank you very much

0 Kudos
Message 15 of 15
(436 Views)