Skip to content

Empty logs on Android in ARM64

Summary

Empty log statements in Android on ARM64 when subscribed to the log event.

Minimal project and steps to reproduce

Build with IL2CPP and target ARM64

What is the current bug behavior?

empty libvlc log statement.

What is the expected correct behavior?

log should print normally.

Does it work on other plaforms? Does it work with the official VLC apps?

VLC Unity Android only.

Environment

  • LibVLC version and architecture: latest.
  • LibVLCSharp version: latest
  • VLC Unity plugin version: latest
  • Scripting backend used: il2cpp + arm64

Possible fixes

Use cases where logs display correctly.

removing this line.

_libVLC.Log += (s, e) => UnityEngine.Debug.Log(e.FormattedLog);

or building for armv7 with mono.

this might be an interop issue in libvlcsharp, or a bug in the generated cpp from il2cpp from that interop code.