subscribing to LibVlc.Log crashes the application on Linux
Summary
On Linux, subscribing on the LibVlc.Log
EventHandler crashes the application almost instantly.
Minimal project and steps to reproduce
Based on the NetCoreSample
static void Main(string[] args)
{
Core.Initialize();
var libVLC = new LibVLC();
libVLC.Log += (sender, eventArgs) => Console.WriteLine(eventArgs.Message);
Console.ReadKey();
}
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="LibVLCSharp" Version="3.2.1" />
</ItemGroup>
</Project>
What is the current bug behavior?
The application starts and crashes, most of the time with this log event
free(): invalid next size (normal)
What is the expected correct behavior?
The application doesn't crash
Environment
- OS: Ubuntu 19.04
- LibVLC 3.0.7.1 Vetinari (revision 3.0.7.1-0-gf3940db4af)
- LibVLCSharp 3.2.1