erikas-taroza / audiotags

Read and write audio metadata in Flutter. Supports multiple formats.
https://pub.dev/packages/audiotags
MIT License
9 stars 4 forks source link

Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libaudiotags.so' #2

Closed sanihaq closed 1 year ago

sanihaq commented 1 year ago
build/linux/x64/debug/bundle/lib/libaudiotags.so: file too short
#0      _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43)
#1      new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12)
#2      api
ffi.dart:22
#3      api (package:audiotags/src/ffi.dart)
ffi.dart:1
#4      AudioTags.read
audiotags.dart:9
#5      _MyHomePageState.build.<anonymous closure>.<anonymous closure>
main.dart:90
#6      _InkResponseState.handleTap
ink_well.dart:1096
#7      GestureRecognizer.invokeCallback
recognizer.dart:253
#8      TapGestureRecognizer.handleTapUp
tap.dart:627
#9      BaseTapGestureRecognizer._checkUp
tap.dart:306

I'm on ubuntu 20.04

erikas-taroza commented 1 year ago

Sorry, the CMakeLists.txt for Linux had a typo in the download URL for the library. Published to pub.dev as v1.0.1.

sanihaq commented 1 year ago

still not fixed new logs...

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libaudiotags.so': /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /path-to-project/build/linux/x64/debug/bundle/lib/libaudiotags.so)
#0      _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43)
#1      new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12)
#2      api
ffi.dart:22
#3      api (package:audiotags/src/ffi.dart)
ffi.dart:1
#4      AudioTags.read
audiotags.dart:9
#5      _FilesListState.build.<anonymous closure>.<anonymous closure>
main.dart:123
#6      _InkResponseState.handleTap
ink_well.dart:1096
#7      GestureRecognizer.invokeCallback
recognizer.dart:253
#8      TapGestureRecognizer.handleTapUp
tap.dart:627
#9      BaseTapGestureRecognizer._checkUp
tap.dart:306
erikas-taroza commented 1 year ago

Fixed in v1.0.2

sheikhhaziq commented 7 months ago

Error is showing again in v1..1.3

erikas-taroza commented 7 months ago

Error is showing again in v1..1.3

Can you create a new issue with the error you are getting?

marcoxmediran commented 7 months ago

Can you create a new issue with the error you are getting?

This is on v1.1.3, building for Android, and it's showing something like this. Are there any error logs I should be sending?

E/flutter (23439): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libaudiotags.so': dlopen failed: library "libaudiotags.so" not found
E/flutter (23439): #0      _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43)
E/flutter (23439): #1      new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12)
E/flutter (23439): #2      api (package:audiotags/src/ffi.dart:22:22)
E/flutter (23439): #3      api (package:audiotags/src/ffi.dart)
E/flutter (23439): #4      AudioTags.write (package:audiotags/src/audiotags.dart:24:18)
E/flutter (23439): #5      Downloader.playground (package:ytm_downloader_gui/downloader.dart:44:21)
E/flutter (23439): <asynchronous suspension>
erikas-taroza commented 7 months ago

Can you create a new issue with the error you are getting?

This is on v1.1.3, building for Android, and it's showing something like this. Are there any error logs I should be sending?

E/flutter (23439): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Invalid argument(s): Failed to load dynamic library 'libaudiotags.so': dlopen failed: library "libaudiotags.so" not found
E/flutter (23439): #0      _open (dart:ffi-patch/ffi_dynamic_library_patch.dart:11:43)
E/flutter (23439): #1      new DynamicLibrary.open (dart:ffi-patch/ffi_dynamic_library_patch.dart:22:12)
E/flutter (23439): #2      api (package:audiotags/src/ffi.dart:22:22)
E/flutter (23439): #3      api (package:audiotags/src/ffi.dart)
E/flutter (23439): #4      AudioTags.write (package:audiotags/src/audiotags.dart:24:18)
E/flutter (23439): #5      Downloader.playground (package:ytm_downloader_gui/downloader.dart:44:21)
E/flutter (23439): <asynchronous suspension>

I have fixed this issue in 73657e0