Skip to content

Missing Format Support in FlashCap.Core/Internal/V4L2/NativeMethods_V4L2_Interop_loongarch64.cs Causes Crash on Hardware Insertion #158

Open
@leihao

Description

@leihao

When specific hardware is inserted, the application crashes due to missing format support in FlashCap.Core/Internal/V4L2/NativeMethods_V4L2_Interop_loongarch64.cs. This issue needs to be addressed to ensure stability and compatibility with the hardware.
Crash Log:

Unhandled exception. System.TypeInitializationException: The type initializer for 'FlashCap.Internal.NativeMethods_V4L2' threw an exception.
 ---> System.NotImplementedException: The method or operation is not implemented.
   at FlashCap.Internal.V4L2.NativeMethods_V4L2_Interop.get_V4L2_PIX_FMT_NV12() in /home/codingSpace/Desktop/git/FlashCap-main/FlashCap-main/FlashCap.Core/Internal/V4L2/NativeMethods_V4L2_Interop.cs:line 112
   at FlashCap.Internal.NativeMethods_V4L2..cctor() in /home/codingSpace/Desktop/git/FlashCap-main/FlashCap-main/FlashCap.Core/Internal/NativeMethods_V4L2.cs:line 64
   --- End of inner exception stack trace ---
   at FlashCap.Internal.NativeMethods_V4L2.open(String pathname, OPENBITS flag)
   at FlashCap.Devices.V4L2Devices.<OnEnumerateDescriptors>b__8_0(String devicePath) in /home/codingSpace/Desktop/git/FlashCap-main/FlashCap-main/FlashCap.Core/Devices/V4L2Devices.cs:line 194
   at System.Linq.EnumerableExtension.Collect[T,U](IEnumerable`1 enumerable, Func`2 selector)+MoveNext() in /home/codingSpace/Desktop/git/FlashCap-main/FlashCap-main/FlashCap.Core/Internal/BackwardCompat.cs:line 72

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions