Sequencer hangs up: Possible dispatcher overload

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
StarFlea
Posts: 66
Joined: Wed Dec 21, 2022 12:22 pm

Sequencer hangs up: Possible dispatcher overload

#1

Post by StarFlea »

Hi Robin,

SharpCap hung several times during an evening of observing at the start of relatively simple sequences.
A restart brought no improvement.
The log file mentions a "Possible dispatcher overload"...

An example as attachment...

Cheers!
StarFlea
Attachments
Log_2023-09-05T00_12_51-444.log
(68.63 KiB) Downloaded 31 times
User avatar
admin
Site Admin
Posts: 13362
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Sequencer hangs up: Possible dispatcher overload

#2

Post by admin »

Hi,

as far as I can see, SharpCap stopped responding to the keyboard/mouse and stopped updating the display at roughly the moment you started the final sequence (the one with capture 10000 frames after a prompt). The 'overload' warning goes along with stopping responding - basically it's recording that there are 63 things that it needs to do to update the UI and process input and nothing has been processed for 5s.

Unfortunately the log cuts off once it gets to the warning about not responding for 10s, so no idea if it comes back to life and no diagnostic info either :(

Can you try the same sequences using 'Test camera 2 (High Speed)' - I am just wondering if it is something odd perhaps in the webcam driver for the veLOX178C camera that is causing this - I have tested the same script with a PlayerOne IMX462 and had no issues.

cheers,

Robin
StarFlea
Posts: 66
Joined: Wed Dec 21, 2022 12:22 pm

Re: Sequencer hangs up: Possible dispatcher overload

#3

Post by StarFlea »

Hi,

unfortunately I can't reproduce the behavior with the test cam, but I've now attached a few logs from which you might be able to get some more information. All document the same type of hang at the start of a sequence...

cheers,
StarFlea
Attachments
Log_2023-09-05T00_11_00-19044.log
(108.94 KiB) Downloaded 24 times
Log_2023-09-04T23_49_23-18112.log
(116.05 KiB) Downloaded 30 times
Log_2023-09-04T23_18_27-15612.log
(208.05 KiB) Downloaded 30 times
User avatar
admin
Site Admin
Posts: 13362
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Sequencer hangs up: Possible dispatcher overload

#4

Post by admin »

Hi,

OK, those logs point to the problem - it looks like the graphics layer that SharpCap uses for display is freezing up. The key to that (for anyone coming here later and looking in their own logs) is finding this entry in the log

Code: Select all

at System.Windows.Media.Composition.DUCE+Channel.SyncFlush()
In this case, the underlying framework that SharpCap uses for graphics has requested a display update and the system has frozen trying to do it.

The two options here are

* Update your graphics card drivers to the latest version (from Intel/Nvidia/AMD - depending on graphics device type) and then make sure the 'Use graphics card acceleration' option in the settings is on

* Alternatively, turn *off* the setting to use graphics card acceleration in the settings and restart.

I am trying to find a better solution for this issue, but since it is not happening in SharpCap code, it's hard to deal with unless i can find a way to break it repeatedly on my system here :(

cheers,

Robin
StarFlea
Posts: 66
Joined: Wed Dec 21, 2022 12:22 pm

Re: Sequencer hangs up: Possible dispatcher overload

#5

Post by StarFlea »

Ah, understand, thx!

However, it's not entirely clear to me which of my GPUs SharpCap uses. The Windows Device Manager shows me an onboard Intel UHD and a dedicated NVIDIA GeForce GTX1660 Ti.

However, both drivers are up to date. What are the effects of disabling graphics acceleration in SharpCap?

StarFlea
StarFlea
Posts: 66
Joined: Wed Dec 21, 2022 12:22 pm

Re: Sequencer hangs up: Possible dispatcher overload

#6

Post by StarFlea »

When I look at the logs, SharpCap only seems to use the Intel UHD. I tried to explicitly assign the GeForce in the Windows settings, but according to the log, SharpCap remains with the Intel UHD:
Info 22:03:03.027571 #12 Graphics Card: Intel(R) UHD Graphics, v31.0.101.2121

Is there any chance of changing this?
User avatar
admin
Site Admin
Posts: 13362
Joined: Sat Feb 11, 2017 3:52 pm
Location: Vale of the White Horse, UK
Contact:

Re: Sequencer hangs up: Possible dispatcher overload

#7

Post by admin »

Hi,

I don't have control over the GPU used - as far as I am aware the whole display switches between the two, rather than some apps using one and some using the other. I'm not even sure if the log information is accurate in the case of two video controllers - SharpCap only records the first video controller listed by the system in the log (fine for 99% of PCs).

Switching to the software only rendering will bump up the CPU usage a bit (when using high speed cameras), as some work is transferred back to the CPU rather than being put on the GPU.

cheers,

Robin
Post Reply