Other Languages - Problem with DoVMalloc - returns 00000000 then infinite loop

Asked By Pawel on 13-Oct-11 09:54 AM

Hi

Currently I'm trying to run Windows CE 6.0 (Debug Version) on Digi ConnectCore 9M Wi-9M 2443. Everything is fine, Visual Studio 2005 connects with the device and starting to boot up debug version on windows. But at some point it stops at 

4294776596 PID:400002 TID:f10002 OHCD: ioPhysicalBase 0x49000000, IoSpace 0x0
4294776596 PID:400002 TID:f10002 OHCD: ioPortBase 0xD0870000, portBase 0x49000000
4294776597 PID:400002 TID:f10002 PageFreeCount == 0x12
4294776597 PID:400002 TID:f10002 GetContiguousPages failed, PageFreeCount = 0x00000012
4294776597 PID:400002 TID:f10002 HalAllocateCommonBuffer: memory allocation failed (error = 0x8).
4294776598 PID:400002 TID:f10002 [USB Host]: Loading USB Host driver... ERROR
4294776598 PID:400002 TID:f10002 DEVICE!LaunchDevice: Init() failed for device 0xd052b360
4294776598 PID:400002 TID:f10002 DEVICE!I_ActivateDeviceEx: couldn't activate: prefix HCD, index 1, dll ohci2.dll, context 0xd03de684
4294776598 PID:400002 TID:f10002 OSAXST1: <<< Unloading Module 'ohci2.dll' (0x83AD679C) at address 0xC1030000-0xC106E000 in Process 'NK.EXE' (0x83838AA0)
PB Debugger Unloaded symbols for 'C:\SIEC\OSDESIGN1\OSDESIGN1\RELDIR\CCX9M2443_ARMV4I_DEBUG\OHCI2.DLL'
4294776600 PID:400002 TID:f10002 DeviceFolder::LoadDevice(Drivers\BuiltIn\OHCI) last 229 Ticks
4294776601 PID:400002 TID:f10002 DEVICE!RegReadActivationValues RegQueryValueEx(Drivers\BuiltIn\credsvc\BusPrefix) returned 2
4294776603 PID:400002 TID:f10002 NKCreateProcess exit: dwErr = 0000000e
4294776603 PID:400002 TID:f10002 Unknown: DEBUGCHK failed in file C:\ymzki\private\winceos\COREOS\device\devcore\.\promgr.cpp at line 338
4294776605 PID:400002 TID:f10002 Unknown: DEBUGCHK failed in file C:\ymzki\private\winceos\COREOS\device\devcore\.\promgr.cpp at line 204

I've already installed shared folders so Visual Studio can see C:\ymzki folder as my C:\Wince600 folder.

I tried to "push" boot further (F5 key) but then there are another problems with:

4294779619 PID:400002 TID:f10002 CreateReflector : failed to create refelctor object
4294779619 PID:400002 TID:f10002 DEVICE!CreateDevice: couldn't load(credsvc.dll) to user mode!!
4294779619 PID:400002 TID:f10002 CreateDevice: creation of type 'CRD', index 0, lib 'credsvc.dll' returning 0x00000000, error code 2
4294779619 PID:400002 TID:f10002 DEVICE!I_ActivateDeviceEx: couldn't activate: prefix CRD, index 0, dll credsvc.dll, context 0xd03de684
4294779620 PID:400002 TID:f10002 DeviceFolder::LoadDevice(Drivers\BuiltIn\credsvc) last 3020 Ticks
4294779620 PID:400002 TID:f10002 DEVICE!RegReadActivationValues RegQueryValueEx(Drivers\BuiltIn\CameraDriver\BusPrefix) returned 2
4294779625 PID:400002 TID:f10002 DoVMAlloc - returns 00000000
4294779625 PID:400002 TID:f10002 VMCommit failed to commit addr 0xc1261000, of size 0x00005aa4
4294779625 PID:400002 TID:f10002 DEVICE!CreateDevice: couldn't load 'camera.dll' -- error 14
4294779626 PID:400002 TID:f10002 CreateDevice: creation of type 'CAM', index 1, lib 'camera.dll' returning 0x00000000, error code 2
4294779626 PID:400002 TID:f10002 DEVICE!I_ActivateDeviceEx: couldn't activate: prefix CAM, index 1, dll camera.dll, context 0xd03de684
4294779626 PID:400002 TID:f10002 DeviceFolder::LoadDevice(Drivers\BuiltIn\CameraDriver) last 6 Ticks
4294779627 PID:400002 TID:f10002 DEVICE!RegReadActivationValues RegQueryValueEx(Drivers\BuiltIn\SDBusDriver\BusPrefix) returned 2
4294779641 PID:400002 TID:f10002 OSAXST1: >>> Loading Module 'sdbus.dll' (0x83AD679C) at address 0xC0CA0000-0xC0CD2000 in Process 'NK.EXE' (0x83838AA0)
PB Debugger Loaded symbols for 'C:\SIEC\OSDESIGN1\OSDESIGN1\RELDIR\CCX9M2443_ARMV4I_DEBUG\SDBUS.DLL'
4294779643 PID:400002 TID:f10002 SDBusDriver: PROCESS_ATTACH
4294779644 PID:400002 TID:410002 CompactAllHeaps: starting
4294779646 PID:400002 TID:410002 CompactAllHeaps: done
4294779646 PID:400002 TID:410002 CompactAllHeaps: starting
4294779646 PID:400002 TID:410002 CompactAllHeaps: done
4294779950 PID:400002 TID:f10002 SDBusDriver: +SDC_Init
4294779952 PID:400002 TID:f10002 SDBusDriver: Bus Driver instance created : 0xD052B7E0 ! -SDC_Init
4294779955 PID:400002 TID:f10002 DeviceFolder::LoadDevice(Drivers\BuiltIn\SDBusDriver) last 329 Ticks
4294779955 PID:400002 TID:f10002 DEVICE!RegReadActivationValues RegQueryValueEx(Drivers\BuiltIn\NDIS\BusPrefix) returned 2
4294779960 PID:400002 TID:f10002 OSAXST1: >>> Loading Module 'ndis.dll' (0x83AD6C88) at address 0xC0970000-0xC09D4000 in Process 'NK.EXE' (0x83838AA0)
PB Debugger Loaded symbols for 'C:\SIEC\OSDESIGN1\OSDESIGN1\RELDIR\CCX9M2443_ARMV4I_DEBUG\NDIS.DLL'
4294779969 PID:400002 TID:f10002 OSAXST1: >>> Loading Module 'cxport.dll' (0x83AD6E5C) at address 0xC0800000-0xC0810000 in Process 'NK.EXE' (0x83838AA0)
PB Debugger Loaded symbols for 'C:\SIEC\OSDESIGN1\OSDESIGN1\RELDIR\CCX9M2443_ARMV4I_DEBUG\CXPORT.DLL'
4294779997 PID:1ec0002 TID:f80002 [NOTIFY] HandleSystemEvent 7 /ADD SDC1:
4294780215 PID:400002 TID:f10002 HNDLAlloc failed, out of memory
4294780215 PID:400002 TID:f10002 InitializeCriticalSection failed, lpcs = d08807d8
4294780215 PID:400002 TID:f10002 Coredll: DEBUGCHK failed in file d:\yzkiqfe\private\winceos\coreos\core\dll\cscode.c at line 72
4294780216 PID:400002 TID:f10002 HNDLAlloc failed, out of memory
4294780216 PID:400002 TID:f10002 InitializeCriticalSection failed, lpcs = d0880840
4294780216 PID:400002 TID:f10002 Coredll: DEBUGCHK failed in file d:\yzkiqfe\private\winceos\coreos\core\dll\cscode.c at line 72
4294780217 PID:400002 TID:f10002 HNDLAlloc failed, out of memory

Last 4 lines repeats several times (i'm continuing booting up with F5) and then it stops at:

4294784697 PID:400002 TID:f10002 DoVMAlloc - returns 00000000
4294784948 PID:400002 TID:f10002 DoVMAlloc - returns 00000000
4294785199 PID:400002 TID:f10002 DoVMAlloc - returns 00000000
4294785450 PID:400002 TID:f10002 VMProcessPageFault: still looping

And from this place it's infinite loop.

If anyone does have any idea what can be a problem and possible solution? I can paste/send in email full log.

Thanks everyone for any kind of help.

Sreenath Kalahasti replied to Pawel on 18-Oct-11 12:50 PM
Hi

Have you tried using the "Application Verifier" Tool for Windows CE 6.0 which gives you details of the heap?
According to the log you provided, looks like you are running out of memory( Virtual Space).

Regards,
Sree
Pawel replied to Sreenath Kalahasti on 20-Oct-11 03:08 AM

Yes, You were right. Hardware I work with doesn't have too much memory. I've made new and "clean" image of WinCE without any custom drivers, apps etc and it works. 

VMalloc throws me an errors during debug when I try to run some bigger programs from SD Card. It asks me to free some memory in order to run application. But I can handle my debugging without it. 

Thank you very much for reply.