mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-26 07:35:54 +03:00
[GH-ISSUE #957] Access violation when opening a WebCam #732
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#732
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @d0vgan on GitHub (Jul 27, 2021).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/957
ScreenToGif 2.32 and 2.33.1 under Windows 8.1 64-bit and under Windows 10 64-bit.
ScreenToGif silently crashes once the "WebCam" button is pressed.
I've built ScreenToGif from the sources and see the following call stack under debugging:
System.AccessViolationException
What might be the reason and how to fix that?
@pawlos commented on GitHub (Jul 27, 2021):
Isn't this the same as #150? The stack trace is similar but not exactly the same (different capture mode?)
@d0vgan commented on GitHub (Jul 27, 2021):
Yes, seems to be pretty similat. The WebCam is Logitech C310.
@d0vgan commented on GitHub (Jul 28, 2021):
Closing as duplicate of #150.
If anything else is needed from me or if I could help with further investigations, please let me know.
@pawlos commented on GitHub (Aug 1, 2021):
@d0vgan I was thinking maybe I could start looking into this issue. Would you be willing to provide a crash dump from this situation? ProcDump can be used for that (I can provide the command-line params if needed)
@d0vgan commented on GitHub (Aug 2, 2021):
Attaching a minidump file (zipped). Please let me know if something else is needed.
ScreenToGif.exe_210802_092631.dmp.zip
@pawlos commented on GitHub (Aug 2, 2021):
@d0vgan thx. This is dump when the AccessViolation exception happens and Screen2Gif closes?
@d0vgan commented on GitHub (Aug 2, 2021):
Yes. At least I've run ProcDump when an exception was being shown in Visual Studio under debugging.
I was not able to dump it without debugging because ScreenToGif just silently crashed.
@pawlos commented on GitHub (Aug 2, 2021):
@d0vgan hmm, what
procdumpcommand did you run?@d0vgan commented on GitHub (Aug 2, 2021):
@pawlos commented on GitHub (Aug 2, 2021):
@d0vgan could you try
procdump -ma -e ScreenToGif.exe- and then repro the AccessViolation case? It should create the dump exactly in the moment when the unhandled exception occurs (-e).mawill create the full dump (might not be needed) but I always prefer to have the full pciture.@d0vgan commented on GitHub (Aug 2, 2021):
Please find the full dump here (124 MB in a .zip archive):
https://drive.google.com/drive/folders/1MZ0qshwPu0y8P8xJLspKYsI3L2gOFzzE
@pawlos commented on GitHub (Aug 2, 2021):
thx. With this one I can see the crash is in lvcod64.dll, now I will try to figure out why
@pawlos commented on GitHub (Aug 5, 2021):
Ok, tried to analyze to see if Screen2Gif can do anything to make this bug go away, but it looks like the problem is in fact in lvcod64.dll as it's from ~2012 and not updated since then. Seen some reports that it doesn't work well when camera is attached to USB3 port - not sure how much it's valid. The analysis is not an easy one as there are 18 frames between Screen2Gif and the faulty call - the problem might be in some calls prior to the one we see an exception. I found numerous similar reports in other programs in relations to this lib and the results were pretty similar.
I think one of the solution (what was also mentioned in some places) is just to not add a source that is handled by this lib - not sure how/if that's possible, that would at least not cause a crash when picking such faulty driver for camera
Ps. I can also see that OBS virtual camera is also not working with Screen2gif.
cc: @NickeManarin