Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cosmos DB Emulator won't start on Windows 10

I’m recieving this error when I try to start Cosmos Emulator 2.7.2.0:

Error

eventlog

Tried it on a fresh win10 machine, and it's working here. Any ideas on what might course this?

I tried all the suggestions in this article.

Looking at the etl file didn't give my anything either.

It's the first time I try to install it on my machine.

-- UPDATE --

I opened the dmp file, and found this:

Loading Dump File [C:\Users\xxx\AppData\Local\CrashDumps\Microsoft.Azure.Cosmos.StartupEntryPoint.exe(1).12596.dmp]
User Mini Dump File: Only registers, stack and portions of memory are available

Symbol search path is: srv*
Executable search path is: 
Windows 10 Version 18363 MP (12 procs) Free x64
Product: WinNt, suite: SingleUserTS
18362.1.amd64fre.19h1_release.190318-1202
Machine Name:
Debug session time: Mon Jan 20 09:35:26.000 2020 (UTC + 1:00)
System Uptime: not available
Process Uptime: 0 days 0:00:02.000
................................................................
..................................
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(3134.41b0): Unknown exception - code c000000d (first/second chance not available)
For analysis of this file, run !analyze -v
ntdll!NtWaitForMultipleObjects+0x14:
00007ff9`562fcc14 c3              ret
0:000> .ecxr
rax=0000000000000000 rbx=0000000000000000 rcx=0000003629dfd270
rdx=00000000e6bc7d4e rsi=0000000000000000 rdi=0000000000000000
rip=000000006748b0ec rsp=0000003629dfd190 rbp=0000000000000000
 r8=000001ba53134730  r9=0000000000000000 r10=0000000000000026
r11=000001ba6d7662e0 r12=0000000000000004 r13=000001ba6d7974d0
r14=0000000000000000 r15=0000000000000000
iopl=0         nv up ei pl zr na po nc
cs=0033  ss=002b  ds=002b  es=002b  fs=0053  gs=002b             efl=00000246
msvcr80!_invalid_parameter+0x6c:
00000000`6748b0ec 488d4c2440      lea     rcx,[rsp+40h]

Seems like something is wrong with my version of msvcr80

like image 710
Zemich Avatar asked Mar 02 '23 21:03

Zemich


1 Answers

This may be caused by corrupted performance counters on your machine.

To fix your performance counters try the following.

  • Open cmd as administrator
  • Run "lodctr /R" (must use capital R)

If this doesn't work, see this link here that shows other options to reset your counters. Older article but works the same on Windows 10.

https://answers.microsoft.com/en-us/insider/forum/insider_wintp-insider_perf/possible-performance-counter-problem-on-win10/3a5c22cb-1425-4d26-99e7-4ec46940b9a1

btw, one more option here, is to run the emulator in a Docker container. The docs on that are in that article you referenced in your question.

Hope this is helpful.

like image 91
Mark Brown Avatar answered Mar 19 '23 01:03

Mark Brown