Strange Error in diagnostics CHeap::New - Insufficient memory for alloc!
syslock
Posts: 45
in AMX Hardware
Some times when I reboot an NI3000 that I'm re-programming for a client the NI crashes flooding diagnostics with the message below.
(0000192435) CHeap::New - Insufficient memory for alloc! Task=tInterpreter)
(0000192440) CHeap::New - Error (Task=tInterpreter)
(0000192444) RunCode - DevUnion Allocation failed
If anyone can shed some light on this message that would be great.
NI Firmware 3.0.453
mem
The largest free block of memory is 179088 bytes.
(0000192435) CHeap::New - Insufficient memory for alloc! Task=tInterpreter)
(0000192440) CHeap::New - Error (Task=tInterpreter)
(0000192444) RunCode - DevUnion Allocation failed
If anyone can shed some light on this message that would be great.
NI Firmware 3.0.453
mem
The largest free block of memory is 179088 bytes.
0
Comments
We see it occasionally on a boot, even on older systems running code that worked for years, and another reboot typically corrects it with no changes of any kind.
AMX hasn't been able to help.
I always specify variables as volatile, I've also removed the one duet module I was using and cooked my own and set duet memory from 8M to 4M. So we will see if any of this helps thanks.
>get duet memory
Duet Memory: 4M
>show mem
Display Memory
Volatile Free : 4366980/33554432 (largest free block in bytes/max physical)
NonVolatile Free: 1030250/1047536 (bytes free/max physical)
Disk Free : 19912704/31954944 (bytes of free space/max physical)
Duet Memory Free : 1193032 (bytes)
Partition 1 - 1193032 (bytes)
Total Collections - 4
Average Time Between Collections - 5667ms
Partition 2 - <UNKNOWN>