[RESOLVED] SharpCap 4.1/4.0 fails to start. No errors are shown, and /dump option produces no .dmp or log files.

A place to report problems and bugs in SharpCap
Forum rules
‍

If you have a problem or question, please check the FAQ to see if it already has an answer : https://www.sharpcap.co.uk/sharpcap-faqs

Please also read about Troubleshooting USB Issues before posting.

*** Please do not post license keys - please report any problems with licensing to 'admin' by private message ***

Please include the following details in any bug report:

* Version of SharpCap
* Camera and other hardware being user
* Operating system version
* Contents of the SharpCap log after the problem has occurred.
[If SharpCap crashes, please send the bug report when prompted instead of including the log]
Post Reply
TodoInTX
Posts: 5
Joined: Wed May 15, 2024 9:19 pm

[RESOLVED] SharpCap 4.1/4.0 fails to start. No errors are shown, and /dump option produces no .dmp or log files.

#1

Post by TodoInTX »

I have attempted run multiple versions of SharpCap but none ever successfully start. Installing and uninstalling appears to complete normally but
any time I execute SharpCap.exe or run it from the Start menu an hourglass appears on the mouse pointer for a few seconds then disappears. No log files, dump files, splash screen or application windows are ever created. The result is exactly the same for all versions tried with and without holding down Ctrl key. I am using an Svbony SV205 camera. The result is the same with and without the camera being connected to the computer.

Versions attempted:
SharpCap-4.1.12025.0-64bit
SharpCap-4.1.12174.0 (32bit)
SharpCap-4.0.9571.0 (32bit)

Code: Select all

C:\Users\Matthew Montgomery\AppData\Local>"c:\Program Files (x86)\SharpCap 4.1\SharpCap.exe" /dump

C:\Users\Matthew Montgomery\AppData\Local>dir Sharp*
 Volume in drive C is Windows
 Volume Serial Number is 2A21-7251

 Directory of C:\Users\Matthew Montgomery\AppData\Local

File Not Found
System Info:
OS Name Microsoft Windows 11 Home
Version 10.0.22631 Build 22631
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name MSI
System Manufacturer Micro-Star International Co., Ltd.
System Model Modern 15 A11M
System Type x64-based PC
System SKU 1552.1
Processor 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz, 2803 Mhz, 4 Core(s), 8 Logical Processor(s)
BIOS Version/Date American Megatrends International, LLC. E1552IMS.10B, 11/3/2020
SMBIOS Version 3.3
Embedded Controller Version 255.255
BIOS Mode UEFI
BaseBoard Manufacturer Micro-Star International Co., Ltd.
BaseBoard Product MS-1552
BaseBoard Version REV:1.0
Platform Role Mobile
Secure Boot State On
PCR7 Configuration Elevation Required to View
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume1
Locale United States
Hardware Abstraction Layer Version = "10.0.22621.2506"
User Name MSI\Matthew Montgomery
Time Zone Central Daylight Time
Installed Physical Memory (RAM) 16.0 GB
Total Physical Memory 15.7 GB
Available Physical Memory 5.51 GB
Total Virtual Memory 25.7 GB
Available Virtual Memory 10.0 GB
Page File Space 10.0 GB
Page File C:\pagefile.sys
Kernel DMA Protection On
Virtualization-based security Running
Virtualization-based security Required Security Properties
Virtualization-based security Available Security Properties Base Virtualization Support, Secure Boot, DMA Protection, UEFI Code Readonly, SMM Security Mitigations 1.0, Mode Based Execution Control, APIC Virtualization
Virtualization-based security Services Configured Hypervisor enforced Code Integrity
Virtualization-based security Services Running Hypervisor enforced Code Integrity
Windows Defender Application Control policy Enforced
Windows Defender Application Control user mode policy Off
Device Encryption Support Elevation Required to View
A hypervisor has been detected. Features required for Hyper-V will not be displayed.

Any help or guidance will be appreciated.
Last edited by TodoInTX on Fri May 17, 2024 12:23 am, edited 2 times in total.
User avatar
admin
Site Admin
Posts: 17545
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: SharpCap 4.1/4.0 fails to start. No errors are shown, no and /dump option produces no .dmp or log files.

#2

Post by admin »

Hi,

sorry to hear that you are having such an awkward problem. Based on the fact that you are not seeing a dump file created and the way that you see the hourglass briefly then nothing, I think SharpCap may be failing very early in application startup - before things like the crash dumps or the log files get initialized.

Please can you try running SharpCap from the command line with the additional parameter '/debuglaunch'. That enables some message boxes to show during application startup, and from which ones show up and what appears in them, I can work out how far the code got before hitting an error, which then helps narrow down what the error might be (and even, maybe, what is causing it!).

Just take a screenshot (or jot down the text) for each message box that appears, then press OK to move on to the next stage.

cheers,

Robin
TodoInTX
Posts: 5
Joined: Wed May 15, 2024 9:19 pm

Re: SharpCap 4.1/4.0 fails to start. No errors are shown, and /dump option produces no .dmp or log files.

#3

Post by TodoInTX »

Hello Robin,

Thanks for your reply.

When adding /debuglaunch option I get a series of windows.

Stage 3: True
Stage 4: True
Stage 5: True
Full trust?: True
(hourglass mouse)
die.
Last edited by TodoInTX on Thu May 16, 2024 3:01 pm, edited 1 time in total.
TodoInTX
Posts: 5
Joined: Wed May 15, 2024 9:19 pm

Re: SharpCap 4.1/4.0 fails to start. No errors are shown, and /dump option produces no .dmp or log files.

#4

Post by TodoInTX »

Here is some additional detail from the system application log. I hope it is helpful.

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Error 1:
- EventData

.NET Runtime version 4.0.30319.0 - Loading profiler failed. COR_ENABLE_PROFILING was set properly, but COR_PROFILER was not. COR_PROFILER must be set to the CLSID of the profiler to load. Process ID (decimal): 17864. Message ID: [0x2500].
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Error 2:
- EventData

Application: SharpCap.exe CoreCLR Version: 7.0.1824.16914 .NET Version: 7.0.18 Description: The application requested process termination through System.Environment.FailFast. Message: Stack: at System.Environment.FailFast(System.String) at <Module>.‍‫‌‎‬‍‍‬‍‌‌‏‬‬‫‏‭‎‍‮‏‮‎‏‫‮‮() at <Module>..cctor() at System.Delegate.BindToMethodInfo(System.Object, System.IRuntimeMethodInfo, System.RuntimeType, System.DelegateBindingFlags) at System.Delegate.CreateDelegate(System.Type, System.Reflection.MethodInfo, Boolean) at System.Delegate.CreateDelegate(System.Type, System.Reflection.MethodInfo) at SharpCap.Launcher.Program.Main()
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Error 3:
- EventData

AppName SharpCap.exe
AppVersion 4.1.12174.0
AppTimeStamp 65fa0000
ModuleName unknown
ModuleVersion 0.0.0.0
ModuleTimeStamp 00000000
ExceptionCode 80131623
FaultingOffset 074383ed
ProcessId 0x13c4
ProcessCreationTime 0x1daa79d69a38f2e
AppPath c:\Program Files (x86)\SharpCap 4.1\SharpCap.exe
ModulePath unknown
IntegratorReportId a7d6647b-b39c-4697-bd9d-69d119331460
PackageFullName
PackageRelativeAppId
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Info 1:
- EventData

Bucket
BucketType 0
EventName APPCRASH
Response Not available
CabId 0
P1 SharpCap.exe
P2 4.1.12174.0
P3 65fa0000
P4 StackHash_4cfa
P5 0.0.0.0
P6 00000000
P7 80131623
P8 PCH_24_FROM_coreclr+0x0021FAD6
P9
P10
AttachedFiles \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.fcc60a06-9227-4d88-9e93-35cef54bdc50.tmp.mdmp \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.9cae79df-5163-4967-9f49-f4217b8491ae.tmp.WERInternalMetadata.xml \\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_SharpCap.exe_3f6941722e386113a725dff8d34e79fa8834089_d42cadd0_cab_3b889883-c4d3-4e06-8d8f-dbd61825515a\WPR_initiated_DiagTrackMiniLogger_OneTrace_User_Logger_20240514_1_EC_0_inject.etl \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.46d5ff66-6008-434b-a89a-b30a23f0a620.tmp.etl \\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_SharpCap.exe_3f6941722e386113a725dff8d34e79fa8834089_d42cadd0_cab_3b889883-c4d3-4e06-8d8f-dbd61825515a\WPR_initiated_DiagTrackMiniLogger_WPR System Collector_inject.etl \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.7968711d-0d5f-4ca8-b0e5-d7fd1851474e.tmp.etl \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.0e04604d-b2fc-4e7b-8461-5e3b3f032503.tmp.csv \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.1b213543-895f-4f4d-bf1d-354ecfafec81.tmp.txt \\?\C:\Users\Matthew Montgomery\AppData\Local\Temp\WER.29047576-45bd-46ad-beea-9b73156bfff5.tmp.appcompat.txt \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.e31556d0-f5b9-4610-a691-c929e69cc23c.tmp.xml
StorePath \\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_SharpCap.exe_3f6941722e386113a725dff8d34e79fa8834089_d42cadd0_cab_3b889883-c4d3-4e06-8d8f-dbd61825515a
AnalysisSymbol
Rechecking 0
ReportId a7d6647b-b39c-4697-bd9d-69d119331460
ReportStatus 4
HashedBucket
CabGuid 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Info 2:
- EventData

Bucket 1246524071897429563
BucketType 1
EventName APPCRASH
Response Not available
CabId 0
P1 SharpCap.exe
P2 4.1.12174.0
P3 65fa0000
P4 StackHash_4cfa
P5 0.0.0.0
P6 00000000
P7 80131623
P8 PCH_24_FROM_coreclr+0x0021FAD6
P9
P10
AttachedFiles \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.fcc60a06-9227-4d88-9e93-35cef54bdc50.tmp.mdmp \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.9cae79df-5163-4967-9f49-f4217b8491ae.tmp.WERInternalMetadata.xml \\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_SharpCap.exe_3f6941722e386113a725dff8d34e79fa8834089_d42cadd0_cab_3b889883-c4d3-4e06-8d8f-dbd61825515a\WPR_initiated_DiagTrackMiniLogger_OneTrace_User_Logger_20240514_1_EC_0_inject.etl \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.46d5ff66-6008-434b-a89a-b30a23f0a620.tmp.etl \\?\C:\ProgramData\Microsoft\Windows\WER\ReportQueue\AppCrash_SharpCap.exe_3f6941722e386113a725dff8d34e79fa8834089_d42cadd0_cab_3b889883-c4d3-4e06-8d8f-dbd61825515a\WPR_initiated_DiagTrackMiniLogger_WPR System Collector_inject.etl \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.7968711d-0d5f-4ca8-b0e5-d7fd1851474e.tmp.etl \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.0e04604d-b2fc-4e7b-8461-5e3b3f032503.tmp.csv \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.1b213543-895f-4f4d-bf1d-354ecfafec81.tmp.txt \\?\C:\Users\Matthew Montgomery\AppData\Local\Temp\WER.29047576-45bd-46ad-beea-9b73156bfff5.tmp.appcompat.txt \\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER.e31556d0-f5b9-4610-a691-c929e69cc23c.tmp.xml
StorePath \\?\C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_SharpCap.exe_3f6941722e386113a725dff8d34e79fa8834089_d42cadd0_3b889883-c4d3-4e06-8d8f-dbd61825515a
AnalysisSymbol
Rechecking 0
ReportId a7d6647b-b39c-4697-bd9d-69d119331460
ReportStatus 268435456
HashedBucket ec09a64861502190714c8b09fd6b763b
CabGuid 0
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Last edited by TodoInTX on Thu May 16, 2024 3:02 pm, edited 2 times in total.
User avatar
admin
Site Admin
Posts: 17545
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: SharpCap 4.1/4.0 fails to start. No errors are shown, no and /dump option produces no .dmp or log files.

#5

Post by admin »

Hi,

Ok, thanks for that - the place where it stops narrows it down to 2 or 3 lines of code, but no obvious reasons why those lines of code would fail for you but not for everyone else :(

I will add some more diagnostic checks in that area for the next update on Monday that will hopefully detect the error and show something that will help me identify the issue.

cheers,

Robin
TodoInTX
Posts: 5
Joined: Wed May 15, 2024 9:19 pm

Re: SharpCap 4.1/4.0 fails to start. No errors are shown, and /dump option produces no .dmp or log files.

#6

Post by TodoInTX »

I just noticed I have some updates due, including ones for .NET framework.

I'll report back if that has any effect.

Update:
There appears to be no change in the error condition after updating .NET
TodoInTX
Posts: 5
Joined: Wed May 15, 2024 9:19 pm

[RESOLVED] Re: SharpCap 4.1/4.0 fails to start. No errors are shown, and /dump option produces no .dmp or log files.

#7

Post by TodoInTX »

It appears this was a system configuration issue.

I was able to work around it by setting the environment variable COR_ENABLE_PROFILING: 0
Control Panel.png
Control Panel.png (24.49 KiB) Viewed 2066 times
System Properties.png
System Properties.png (23.82 KiB) Viewed 2066 times
Environment Variables.png
Environment Variables.png (36.08 KiB) Viewed 2066 times
Edit System Variable.png
Edit System Variable.png (10.71 KiB) Viewed 2066 times
User avatar
admin
Site Admin
Posts: 17545
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: [RESOLVED] SharpCap 4.1/4.0 fails to start. No errors are shown, and /dump option produces no .dmp or log files.

#8

Post by admin »

Hi,

good to hear that you tracked down the cause, which is definitely a weird one. I would only expect that setting to be altered on a PC used for software development. If you haven't used your PC in this way and have no idea how this has become set, it would be worth doing a full malware scan of the PC, as a quick search reveals that setting and related ones have been used for loading persistent malware (https://redcanary.com/blog/threat-detec ... rsistence/)

cheers,

Robin
Post Reply