Home > Forum > Sometimes Getting ntdll.dll error code 0xc0000374 with MediaBlocks sdk

Sometimes Getting ntdll.dll error code 0xc0000374 with MediaBlocks sdk

Oct 10 (21 days ago)
Nikola Bjelobaba wrote
Hi,

I've integrated your MediaBlocks SDK in my wpf app using the example you provided in your previous response, and so far, that worked well. But after porting that project to another pc, it sometimes crashes on startup with the error code shown above. (It crashes roughly once every 10 or 20 app executions). This only happens on this device, the same app on 2 other pcs runs without problems. Do you know what might cause this? I've tried using common fixes for ntdll found on the internet, but none of those seem to work.

I should also note that all 3 pcs use different rtsp Ip cameras as a source for the video. Could that be the cause of this issue?

I've attached the camera logs from an execution attempt where the app crashed because of the problem described above. I've also attached an example of how I startup and shutdown the camera for reference, in case the error happens due to my implementation.

Do you know what might cause this error?

Kind regards,
Nikola Bjelobaba
Reply
7 Answers
Oct 10 (21 days ago)
Roman Miniailov agent wrote
Hi

I have two suggestions.

1. Check that audio is available for the camera before adding the audio renderer and connecting the audio part. You can use the RTSPSourceSettings information API for this.
2. Set latency to some higher but normal value like 100-200 ms, or use the default value for tests. If you have a 25 fps video, the duration of one frame is 40 ms. So, if you've set 20 ms, it's an incorrect value because it's less than one frame. It can be theoretically normal for 60fps and higher frame rates, but I suggest using a minimum of 100ms.
Oct 10 (21 days ago)
Nikola Bjelobaba wrote
Hi,

Thanks for the advice.

I'll try them out and report back on wether they fixed the problem or not.
Oct 13 (18 days ago)
Nikola Bjelobaba wrote
Hi,

Unfortunately, the problem still remains after implementing these changes. Do you have any other idea on why this might happen? Also, can I ask if you have encountered similar issues in the past, as I'm still unsure if the problem is caused by the sdk itself, or the windows libraries that communicate with your sdk.

I've also attached the system information of the pc, and would like to ask if there is anything there that is incompatible with your sdk. For further context, the app I' making is a wpf app in .net 4.8.
Oct 13 (18 days ago)
Roman Miniailov agent wrote
Oct 14 (17 days ago)
Nikola Bjelobaba wrote
Yes, I have tried the given sample on that pc, and I get the same issue as the one in my app. The sample app crashes once every 10-20 times, and it crashes eighter on load, or after clicking the "start" button.
Oct 14 (17 days ago)
Roman Miniailov agent wrote
Can you give me crash screenshot? Can you see any errors in VS debug output?
Oct 15 (16 days ago)
Nikola Bjelobaba wrote
Here is the crash screenshot, as well as a screenshot of the error shown in event viewer. I didn't see any error in the debug output. All I see is the app loading some dlls before suddenly exiting with the shown error code.