Main Site Documentation

Fez Cobra II memory leak


#1

Hello,

I have a serious problem with my Fez Cobra II, practically every GC cycle, the memory is not released.

BINARY_BLOB_HEAD never decreases

Do you have any idea?

thanks in advance

Here the output of the GC

GC: 63msec 5560500 bytes used, 1779168 bytes available
Type 0F (STRING ): 57900 bytes
Type 11 (CLASS ): 130224 bytes
Type 12 (VALUETYPE ): 3672 bytes
Type 13 (SZARRAY ): 224640 bytes
Type 03 (U1 ): 128784 bytes
Type 04 (CHAR ): 60564 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1884 bytes
Type 11 (CLASS ): 31920 bytes
Type 15 (FREEBLOCK ): 1779168 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 240 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 5069088 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 7632 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 216 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 55msec 5997732 bytes used, 1341936 bytes available
Type 0F (STRING ): 58080 bytes
Type 11 (CLASS ): 130452 bytes
Type 12 (VALUETYPE ): 3744 bytes
Type 13 (SZARRAY ): 209064 bytes
Type 03 (U1 ): 128784 bytes
Type 04 (CHAR ): 44688 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1932 bytes
Type 11 (CLASS ): 32172 bytes
Type 15 (FREEBLOCK ): 1341936 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 372 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 5519964 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 8952 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 216 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 41msec 6319140 bytes used, 1020528 bytes available
Type 0F (STRING ): 58020 bytes
Type 11 (CLASS ): 125436 bytes
Type 12 (VALUETYPE ): 3720 bytes
Type 13 (SZARRAY ): 174960 bytes
Type 03 (U1 ): 137676 bytes
Type 04 (CHAR ): 5232 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1884 bytes
Type 11 (CLASS ): 28680 bytes
Type 15 (FREEBLOCK ): 1020528 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 372 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 5881236 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 8172 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 336 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 37msec 6497508 bytes used, 842160 bytes available
Type 0F (STRING ): 57984 bytes
Type 11 (CLASS ): 124752 bytes
Type 12 (VALUETYPE ): 3672 bytes
Type 13 (SZARRAY ): 173904 bytes
Type 03 (U1 ): 136992 bytes
Type 04 (CHAR ): 5076 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1884 bytes
Type 11 (CLASS ): 28464 bytes
Type 15 (FREEBLOCK ): 842160 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 240 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6061464 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 8292 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 312 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 33msec 6646572 bytes used, 693096 bytes available
Type 0F (STRING ): 56412 bytes
Type 11 (CLASS ): 122256 bytes
Type 12 (VALUETYPE ): 3672 bytes
Type 13 (SZARRAY ): 168516 bytes
Type 03 (U1 ): 136716 bytes
Type 04 (CHAR ): 912 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1692 bytes
Type 11 (CLASS ): 27708 bytes
Type 15 (FREEBLOCK ): 693096 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 192 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6222300 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 6048 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 288 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 32msec 6762984 bytes used, 576684 bytes available
Type 0F (STRING ): 57936 bytes
Type 11 (CLASS ): 124620 bytes
Type 12 (VALUETYPE ): 3696 bytes
Type 13 (SZARRAY ): 169812 bytes
Type 03 (U1 ): 132888 bytes
Type 04 (CHAR ): 4872 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1884 bytes
Type 11 (CLASS ): 28680 bytes
Type 15 (FREEBLOCK ): 576684 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 372 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6331500 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 7896 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 264 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 31msec 6855228 bytes used, 484440 bytes available
Type 0F (STRING ): 58020 bytes
Type 11 (CLASS ): 125148 bytes
Type 12 (VALUETYPE ): 3720 bytes
Type 13 (SZARRAY ): 170724 bytes
Type 03 (U1 ): 133440 bytes
Type 04 (CHAR ): 5232 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1884 bytes
Type 11 (CLASS ): 28680 bytes
Type 15 (FREEBLOCK ): 484440 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 372 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6421920 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 8172 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 264 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 27msec 6914244 bytes used, 425424 bytes available
Type 0F (STRING ): 56412 bytes
Type 11 (CLASS ): 122064 bytes
Type 12 (VALUETYPE ): 3672 bytes
Type 13 (SZARRAY ): 164964 bytes
Type 03 (U1 ): 133164 bytes
Type 04 (CHAR ): 912 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1692 bytes
Type 11 (CLASS ): 27708 bytes
Type 15 (FREEBLOCK ): 425424 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 192 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6493764 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 6048 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 240 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 26msec 7031316 bytes used, 308352 bytes available
Type 0F (STRING ): 57024 bytes
Type 11 (CLASS ): 122964 bytes
Type 12 (VALUETYPE ): 3912 bytes
Type 13 (SZARRAY ): 164964 bytes
Type 03 (U1 ): 132924 bytes
Type 04 (CHAR ): 912 bytes
Type 07 (I4 ): 888 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1692 bytes
Type 11 (CLASS ): 27924 bytes
Type 15 (FREEBLOCK ): 308352 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 192 bytes
Type 1B (DELEGATE_HEAD ): 972 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6608136 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 6984 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 192 bytes
Type 27 (FINALIZER_HEAD ): 264 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 29msec 7049760 bytes used, 289908 bytes available
Type 0F (STRING ): 59532 bytes
Type 11 (CLASS ): 127728 bytes
Type 12 (VALUETYPE ): 3912 bytes
Type 13 (SZARRAY ): 171108 bytes
Type 03 (U1 ): 129060 bytes
Type 04 (CHAR ): 8952 bytes
Type 07 (I4 ): 888 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 2076 bytes
Type 11 (CLASS ): 29508 bytes
Type 15 (FREEBLOCK ): 289908 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 432 bytes
Type 1B (DELEGATE_HEAD ): 972 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6608136 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 11748 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 192 bytes
Type 27 (FINALIZER_HEAD ): 288 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 25msec 7077336 bytes used, 262332 bytes available
Type 0F (STRING ): 58032 bytes
Type 11 (CLASS ): 124620 bytes
Type 12 (VALUETYPE ): 3720 bytes
Type 13 (SZARRAY ): 167460 bytes
Type 03 (U1 ): 133440 bytes
Type 04 (CHAR ): 1968 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1884 bytes
Type 11 (CLASS ): 28680 bytes
Type 15 (FREEBLOCK ): 262332 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 372 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6648072 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 7908 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 264 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 23msec 7070772 bytes used, 268896 bytes available
Type 0F (STRING ): 56412 bytes
Type 11 (CLASS ): 121968 bytes
Type 12 (VALUETYPE ): 3672 bytes
Type 13 (SZARRAY ): 162636 bytes
Type 03 (U1 ): 130836 bytes
Type 04 (CHAR ): 912 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1692 bytes
Type 11 (CLASS ): 27708 bytes
Type 15 (FREEBLOCK ): 268896 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 192 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6652740 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 6048 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 216 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 25msec 7120536 bytes used, 219132 bytes available
Type 0F (STRING ): 57984 bytes
Type 11 (CLASS ): 124368 bytes
Type 12 (VALUETYPE ): 3672 bytes
Type 13 (SZARRAY ): 165696 bytes
Type 03 (U1 ): 128784 bytes
Type 04 (CHAR ): 5076 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1884 bytes
Type 11 (CLASS ): 28464 bytes
Type 15 (FREEBLOCK ): 219132 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 240 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6693180 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 8292 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 216 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 21msec 7155504 bytes used, 184164 bytes available
Type 0F (STRING ): 56412 bytes
Type 11 (CLASS ): 121968 bytes
Type 12 (VALUETYPE ): 3672 bytes
Type 13 (SZARRAY ): 162636 bytes
Type 03 (U1 ): 130836 bytes
Type 04 (CHAR ): 912 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1692 bytes
Type 11 (CLASS ): 27708 bytes
Type 15 (FREEBLOCK ): 184164 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 192 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6737472 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 6048 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 216 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 24msec 7167516 bytes used, 172152 bytes available
Type 0F (STRING ): 58044 bytes
Type 11 (CLASS ): 124956 bytes
Type 12 (VALUETYPE ): 3720 bytes
Type 13 (SZARRAY ): 165960 bytes
Type 03 (U1 ): 128784 bytes
Type 04 (CHAR ): 5124 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1884 bytes
Type 11 (CLASS ): 28680 bytes
Type 15 (FREEBLOCK ): 172152 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 372 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6738492 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 8868 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 216 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 23msec 7161192 bytes used, 178476 bytes available
Type 0F (STRING ): 56412 bytes
Type 11 (CLASS ): 121968 bytes
Type 12 (VALUETYPE ): 3672 bytes
Type 13 (SZARRAY ): 162636 bytes
Type 03 (U1 ): 130836 bytes
Type 04 (CHAR ): 912 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1692 bytes
Type 11 (CLASS ): 27708 bytes
Type 15 (FREEBLOCK ): 178476 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 192 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6743160 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 6048 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 216 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
#### Exception System.Net.Sockets.SocketException - CLR_E_FAIL (3) ####
#### Message:
#### Microsoft.SPOT.Net.Security.SslNative::SecureAccept [IP: 0000] ####
#### Microsoft.SPOT.Net.Security.SslStream::Authenticate [IP: 0045] ####
#### Microsoft.SPOT.Net.Security.SslStream::AuthenticateAsServer [IP: 000d] ####
#### Microsoft.SPOT.Net.Security.SslStream::AuthenticateAsServer [IP: 0008] ####
#### MFToolkit.Net.Web.HttpProcessor::ProcessRequest [IP: 0065] ####
#### Lsx.MF.Library.Threading.ThreadPoolThread::ThreadProc [IP: 0027] ####
#### SocketException ErrorCode = 5
#### SocketException ErrorCode = 5
A first chance exception of type ‘System.Net.Sockets.SocketException’ occurred in Microsoft.SPOT.Net.Security.dll
#### SocketException ErrorCode = 5
#### SocketException ErrorCode = 5
#### SocketException ErrorCode = 5
#### SocketException ErrorCode = 5
A first chance exception of type ‘System.Net.Sockets.SocketException’ occurred in System.Net.Security.dll
#### SocketException ErrorCode = 5
#### SocketException ErrorCode = 5
GC: 22msec 7244436 bytes used, 95232 bytes available
Type 11 (CLASS ): 122424 bytes
Type 12 (VALUETYPE ): 3696 bytes
Type 13 (SZARRAY ): 161448 bytes
Type 03 (U1 ): 129552 bytes
Type 04 (CHAR ): 936 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1692 bytes
Type 11 (CLASS ): 27780 bytes
Type 15 (FREEBLOCK ): 95232 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 192 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6826632 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 6000 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 216 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 23msec 7251960 bytes used, 87708 bytes available
Type 0F (STRING ): 58008 bytes
Type 11 (CLASS ): 124452 bytes
Type 12 (VALUETYPE ): 3720 bytes
Type 13 (SZARRAY ): 163776 bytes
Type 03 (U1 ): 128784 bytes
Type 04 (CHAR ): 2940 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1884 bytes
Type 11 (CLASS ): 28680 bytes
Type 15 (FREEBLOCK ): 87708 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 372 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6826632 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 7896 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 216 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 23msec 7256808 bytes used, 82860 bytes available
Type 0F (STRING ): 57876 bytes
Type 11 (CLASS ): 124368 bytes
Type 12 (VALUETYPE ): 3672 bytes
Type 13 (SZARRAY ): 169320 bytes
Type 03 (U1 ): 128784 bytes
Type 04 (CHAR ): 8700 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1884 bytes
Type 11 (CLASS ): 28464 bytes
Type 15 (FREEBLOCK ): 82860 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 240 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6826632 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 7596 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 216 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 21msec 7248924 bytes used, 90744 bytes available
Type 0F (STRING ): 56412 bytes
Type 11 (CLASS ): 121968 bytes
Type 12 (VALUETYPE ): 3672 bytes
Type 13 (SZARRAY ): 162636 bytes
Type 03 (U1 ): 130836 bytes
Type 04 (CHAR ): 912 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1692 bytes
Type 11 (CLASS ): 27708 bytes
Type 15 (FREEBLOCK ): 90744 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 192 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6830892 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 6048 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 216 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
GC: 21msec 7271028 bytes used, 68640 bytes available
Type 0F (STRING ): 56412 bytes
Type 11 (CLASS ): 121968 bytes
Type 12 (VALUETYPE ): 3672 bytes
Type 13 (SZARRAY ): 162636 bytes
Type 03 (U1 ): 130836 bytes
Type 04 (CHAR ): 912 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1692 bytes
Type 11 (CLASS ): 27708 bytes
Type 15 (FREEBLOCK ): 68640 bytes
Type 17 (ASSEMBLY ): 54228 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 192 bytes
Type 1B (DELEGATE_HEAD ): 972 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 6852756 bytes
Type 1F (THREAD ): 4608 bytes
Type 20 (SUBTHREAD ): 528 bytes
Type 21 (STACK_FRAME ): 6276 bytes
Type 22 (TIMER_HEAD ): 72 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 240 bytes
Type 27 (FINALIZER_HEAD ): 192 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 144 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4932 bytes
Failed allocation for 1480 blocks, 17760 bytes

#### Exception System.Net.Sockets.SocketException - CLR_E_FAIL (3) ####
#### Message: 
#### Microsoft.SPOT.Net.Security.SslNative::SecureAccept [IP: 0000] ####
#### Microsoft.SPOT.Net.Security.SslStream::Authenticate [IP: 0045] ####
#### Microsoft.SPOT.Net.Security.SslStream::AuthenticateAsServer [IP: 000d] ####
#### Microsoft.SPOT.Net.Security.SslStream::AuthenticateAsServer [IP: 0008] ####
#### MFToolkit.Net.Web.HttpProcessor::ProcessRequest [IP: 0065] ####
#### Lsx.MF.Library.Threading.ThreadPoolThread::ThreadProc [IP: 0027] ####
#### SocketException ErrorCode = 1

GC: performing heap compaction…
#### SocketException ErrorCode = 1
A first chance exception of type ‘System.Net.Sockets.SocketException’ occurred in Microsoft.SPOT.Net.Security.dll
#### SocketException ErrorCode = 1
#### SocketException ErrorCode = 1
#### SocketException ErrorCode = 1
#### SocketException ErrorCode = 1
A first chance exception of type ‘System.Net.Sockets.SocketException’ occurred in System.Net.Security.dll
#### SocketException ErrorCode = 1
#### SocketException ErrorCode = 1


#2

I’m no expert in this area, but it looks like:

http://netmf.codeplex.com/workitem/2005

the example in the workitem appears to be on the client side, your code looks like host side so it may not be same???


#3

Thanks for the reply,
I read the post you reported and I think my problem is the same.
If I understand correctly is a bug of Micro Framework SSL implementation.
But I do not understand why using the emulator does not occur?

Here is the log with the emulator
BINARY_BLOB_HEAD remain 272868 bytes

GC: 1msec 929436 bytes used, 3264648 bytes available
Type 0F (STRING ): 24588 bytes
Type 11 (CLASS ): 62520 bytes
Type 12 (VALUETYPE ): 3612 bytes
Type 13 (SZARRAY ): 490200 bytes
Type 03 (U1 ): 471456 bytes
Type 04 (CHAR ): 1548 bytes
Type 07 (I4 ): 888 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1884 bytes
Type 11 (CLASS ): 13800 bytes
Type 15 (FREEBLOCK ): 3264648 bytes
Type 17 (ASSEMBLY ): 51192 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 372 bytes
Type 1B (DELEGATE_HEAD ): 936 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 272868 bytes
Type 1F (THREAD ): 4836 bytes
Type 20 (SUBTHREAD ): 576 bytes
Type 21 (STACK_FRAME ): 10440 bytes
Type 22 (TIMER_HEAD ): 60 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 288 bytes
Type 27 (FINALIZER_HEAD ): 960 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 72 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4716 bytes
JSon String created in 29 ms
GC: 1msec 919296 bytes used, 3274788 bytes available
Type 0F (STRING ): 23496 bytes
Type 11 (CLASS ): 60144 bytes
Type 12 (VALUETYPE ): 3372 bytes
Type 13 (SZARRAY ): 488400 bytes
Type 03 (U1 ): 470880 bytes
Type 04 (CHAR ): 1224 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1692 bytes
Type 11 (CLASS ): 13116 bytes
Type 15 (FREEBLOCK ): 3274788 bytes
Type 17 (ASSEMBLY ): 51192 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 192 bytes
Type 1B (DELEGATE_HEAD ): 900 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 272868 bytes
Type 1F (THREAD ): 4836 bytes
Type 20 (SUBTHREAD ): 576 bytes
Type 21 (STACK_FRAME ): 6024 bytes
Type 22 (TIMER_HEAD ): 60 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 336 bytes
Type 27 (FINALIZER_HEAD ): 912 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 72 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4716 bytes
GC: 1msec 1027728 bytes used, 3166356 bytes available
Type 0F (STRING ): 36132 bytes
Type 11 (CLASS ): 91536 bytes
Type 12 (VALUETYPE ): 5028 bytes
Type 13 (SZARRAY ): 535428 bytes
Type 03 (U1 ): 489900 bytes
Type 04 (CHAR ): 13560 bytes
Type 07 (I4 ): 984 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 2460 bytes
Type 11 (CLASS ): 27900 bytes
Type 15 (FREEBLOCK ): 3166356 bytes
Type 17 (ASSEMBLY ): 51192 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 1284 bytes
Type 1B (DELEGATE_HEAD ): 1080 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 272868 bytes
Type 1F (THREAD ): 4836 bytes
Type 20 (SUBTHREAD ): 576 bytes
Type 21 (STACK_FRAME ): 21000 bytes
Type 22 (TIMER_HEAD ): 60 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 96 bytes
Type 27 (FINALIZER_HEAD ): 624 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 72 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4716 bytes
GC: 1msec 947424 bytes used, 3246660 bytes available
Type 0F (STRING ): 24336 bytes
Type 11 (CLASS ): 59352 bytes
Type 12 (VALUETYPE ): 3372 bytes
Type 13 (SZARRAY ): 516852 bytes
Type 03 (U1 ): 499032 bytes
Type 04 (CHAR ): 1224 bytes
Type 07 (I4 ): 864 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1692 bytes
Type 11 (CLASS ): 13416 bytes
Type 15 (FREEBLOCK ): 3246660 bytes
Type 17 (ASSEMBLY ): 51192 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 192 bytes
Type 1B (DELEGATE_HEAD ): 900 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 272868 bytes
Type 1F (THREAD ): 4836 bytes
Type 20 (SUBTHREAD ): 576 bytes
Type 21 (STACK_FRAME ): 6060 bytes
Type 22 (TIMER_HEAD ): 60 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 336 bytes
Type 27 (FINALIZER_HEAD ): 504 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 72 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4716 bytes
GC: 1msec 931932 bytes used, 3262152 bytes available
Type 0F (STRING ): 25776 bytes
Type 11 (CLASS ): 63156 bytes
Type 12 (VALUETYPE ): 3948 bytes
Type 13 (SZARRAY ): 491172 bytes
Type 03 (U1 ): 472704 bytes
Type 04 (CHAR ): 1224 bytes
Type 07 (I4 ): 936 bytes
Type 08 (U4 ): 624 bytes
Type 0F (STRING ): 1884 bytes
Type 11 (CLASS ): 13800 bytes
Type 15 (FREEBLOCK ): 3262152 bytes
Type 17 (ASSEMBLY ): 51192 bytes
Type 18 (WEAKCLASS ): 144 bytes
Type 19 (REFLECTION ): 228 bytes
Type 1B (DELEGATE_HEAD ): 1008 bytes
Type 1D (OBJECT_TO_EVENT ): 552 bytes
Type 1E (BINARY_BLOB_HEAD ): 272868 bytes
Type 1F (THREAD ): 4836 bytes
Type 20 (SUBTHREAD ): 576 bytes
Type 21 (STACK_FRAME ): 9876 bytes
Type 22 (TIMER_HEAD ): 60 bytes
Type 26 (WAIT_FOR_OBJECT_HEAD): 192 bytes
Type 27 (FINALIZER_HEAD ): 1056 bytes
Type 28 (MEMORY_STREAM_HEAD ): 36 bytes
Type 29 (MEMORY_STREAM_DATA ): 396 bytes
Type 31 (IO_PORT ): 72 bytes
Type 34 (APPDOMAIN_HEAD ): 72 bytes
Type 36 (APPDOMAIN_ASSEMBLY ): 4716 bytes


#4

@ luca_santoro -

I suspect that the emulator is using the host/PC SSL support not NETMF.


#5

For me it is a big problem, my project without SSL can not be used. :wall: :wall: :wall:


#6

If you are doing a commercial product, I would contact GHI’s consulting service, and see what they would recommend for your project.


#7

Hi,
For memory leak problem in HTTPS, when the application crashes I have no control and I have to reset it manually, is there a way to autorestart on unrecovable error?

try catch seems not to work, when crashes not respond in any way.

Thanks
Luca


#8

The watchdog:

https://www.ghielectronics.com/docs/31/watchdog


#9

Hi,

I entered the watchdog in my code, but unfortunately when it goes out of memory, the thread that resets the counter still works and the reset not run. also after the out of memory the weak reference reset and my configuration is lose.
I am trying to reset before the error testing the free memory with Debug.GC () but I do not know if it is a correct solution.


#10

although I’m not using ssl in my project but I use the forced GC with this statement: Debug.GC(true);

Where true stands for forced garbage collection.


#11

The solution to test the free memory via Debug.GC (false) seems to work, the card restarts before going out of memory.

I entered the watchdog timeout to 16 sec, the thread of control cycles every 8 sec, if free memory > 25000 bytes (I’ve seen that goes into “out of memory” with 15000 bytes free) I reset the watchdog otherwise restart the card.

I do not like this solution(in Italian we say “accrocchio”), but for now I can not think of anything else.