1

Topic: Latest version (from nuget) does not always work on Linux/dotnet

I have a simple program that talks to an HID device
It runs fine on Windows/.NET, Linux/Mono, Windows/dotnet but not so much on Linux/dotnet

Basically it crashes when enumerating the HID devices:

AvailableDevices = DeviceList.Local.GetHidDevices(VID, PID).Select(d => new HidDeviceUI(d)).ToList();

     
Sometimes this works and returns the list of devices, but most of the times it results in the following error:

double free or corruption (out)

(this happens as both a normal user and as root user)

Please note that all OS/Framework combinations have been tested on two distinct computers.

Dotnet version on Linux: 2.2.103
Ubuntu 18.0.4.1

2

Re: Latest version (from nuget) does not always work on Linux/dotnet

Did the earlier version 2.0.5 have this same problem for you? Also, is it possible to get a stack trace for the error?

3

Re: Latest version (from nuget) does not always work on Linux/dotnet

I will give that version a try and get back to you

4

Re: Latest version (from nuget) does not always work on Linux/dotnet

2.0.5 gives the same result.
I am unable to catch it as an exception as the error occurs at the native level.

What else can  provide that might help you?

5

Re: Latest version (from nuget) does not always work on Linux/dotnet

Any update on this?
Anything else I can do?