Skip to content

fix: Failed to load dynamic library 'libflutter_soloud_plugin.so': libvorbis.so.0.4.9: cannot open shared object file #325

@filiph

Description

@filiph

Description

Here's a Sentry error that I haven't seen yet.

ArgumentError: Invalid argument(s): Failed to load dynamic library 'libflutter_soloud_plugin.so': libvorbis.so.0.4.9: cannot open shared object file: No such file or directory
  File "soloud_controller_ffi.dart", line 15, in new SoLoudController._
  File "soloud_controller_ffi.dart", line 10, in new SoLoudController
  File "soloud.dart", line 77, in new SoLoud._
  File "soloud.dart", line 169, in SoLoud.instance
  ...

Steps To Reproduce

Unfortunately, this is coming from the wild, so I can't reproduce. I'll add as much context as possible, though.

  • I'm NOT building with OGG_LIB = false (can't remember the correct invocation now but you probably know what I mean) but I thought I don't need to if I'm not actually using any ogg vorbis files?
  • I building using Steam's sniper container, which is supposed to guard against such SO incompatibilities. See giant_robot project's readme ("Linux Steam container")

Expected Behavior

SoLoud initialization proceeds normally.

Additional Context

  • dart: Dart 3.9.2 (stable)
  • dart.name: Dart
  • dist: 83
  • environment: production
  • flutter.name: Flutter
  • flutter0: Flutter 3.35.3 (stable)
  • flutter0.name: Flutter
  • handled: yes
  • level: fatal
  • mechanism: PlatformDispatcher.onError
  • os: Linux
  • os.name: Linux
  • release: giant_robot@0.2.56+83+Fusion Reactor

Exception 1

Type: ArgumentError
Value: Invalid argument(s): Failed to load dynamic library 'libflutter_soloud_plugin.so': libvorbis.so.0.4.9: cannot open shared object file: No such file or directory

Stacktrace

 _open in ffi_dynamic_library_patch.dart [Line 11] (Not in app)
 new DynamicLibrary.open in ffi_dynamic_library_patch.dart [Line 22] (Not in app)
 new SoLoudController._ in soloud_controller_ffi.dart [Line 15] (In app)
 new SoLoudController in soloud_controller_ffi.dart [Line 10] (In app)
 new SoLoud._ in soloud.dart [Line 77] (In app)
 SoLoud.instance in soloud.dart [Line 169] (In app)
 SoLoudAudioController.internalInitialize in soloud_audio_controller.dart [Line null] (In app)
 AudioController.initialize in audio_controller.dart [Line 224] (In app)
 Unknown function in <asynchronous suspension> [Line null] (Not in app)
 _guardedMain.<fn> in main.dart [Line 230] (In app)

Operating system

Build
#1 SMP PREEMPT_DYNAMIC Mon, 22 Sep 2025 22:08:35 +0000

Kernel Version
6.16.8-arch3-1

Name
Linux

Raw Description
Linux 6.16.8-arch3-1 #1 SMP PREEMPT_DYNAMIC Mon, 22 Sep 2025 22:08:35 +0000

Memory Size
31.3 MiB

Processor Count
12

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions