Log callback interop for Android simulator
Summary
Xamarin Forms app, running _libVLC.Log += LibVLC_Log; overload which contains nothing will crash. private void LibVLC_Log(object sender, LogEventArgs e) {} The overload contains no code.
Minimal project and steps to reproduce
https://github.com/winkmichael/LogTestlibVLC
Immediately crashes once initialized, no errors. Remove _libVLC.Log += LibVLC_Log; and there is no crash.
Same issue occurs with; private void OnLogReceived(object sender, LogEventArgs e)
What is the current bug behavior?
Crashes the Android App.
What is the expected correct behavior?
Log overload should allow log handling by application.
Does it work on other plaforms? Does it work with the official VLC apps?
[libc] Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x30 in tid 23185 (e.logtestlibvlc), pid 23185 (e.logtestlibvlc)
That is the only log.
Relevant LibVLC logs and/or screenshots
N/A
Environment
Android Pixel 5 - API 30 Emulator LibVLCSharp.Forms 3.7.0 VideoLAN.LibVLC.Android 3.5.3
Possible fixes
No idea