Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to backup #854

Closed
sethgodin1 opened this issue Feb 21, 2024 · 12 comments
Closed

Fails to backup #854

sethgodin1 opened this issue Feb 21, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@sethgodin1
Copy link

Describe the bug
Running on a Macbook pro under 14.3.1

I'm able to see my library. I hit 'liberate visible books'

it seems to fail.

I might be doing it wrong!
Screenshot 2024-02-21 at 7 56 00 AM

here's the log
libation log.txt

@sethgodin1 sethgodin1 added the bug Something isn't working label Feb 21, 2024
@rmcrackan
Copy link
Owner

Sorry about this. Can you go to Settings > Settings... and click the "Open log folder" at the bottom. That should open the folder which has files like "Log202401.zip" which will hopefully have some more technical details for me. Could you attach that to this ticket?

@sethgodin1
Copy link
Author

I'm super grateful for the work you do and the fast response too. Thank you!
_Log202402.zip

I'm guessing it's user error

@rmcrackan
Copy link
Owner

@sethgodin1 Thank you so much for this log file. This may be a bug with mp3 on mac specifically. Can you try 1 book again not as mp3? You can right click the book to try just that one again.

@Mbucari Would you mind taking a look at this?

System.PlatformNotSupportedException: Could not load ffmpegaac or ffmpegaac.arm64.dylib
   at AAXClean.Codecs.Mp4FileExtensions.DllImportResolver(String libraryName, Assembly assembly, Nullable`1 searchPath) in /home/runner/work/AAXClean.Codecs/AAXClean.Codecs/src/AAXClean.Codecs/Mp4FileExtensions.cs:line 36

@sethgodin1
Copy link
Author

screenshots attached
Screenshot 2024-02-21 at 8 55 47 AM
Screenshot 2024-02-21 at 8 55 27 AM

@Mbucari
Copy link
Collaborator

Mbucari commented Feb 21, 2024

@sethgodin1 Can you please go into the Libation app bundle (right-click it then click "Show Package Contents"). Do you see a file in there named ffmpegaac.arm64.dylib?

@sethgodin1
Copy link
Author

inside the macos folder in the Contents folder, I see as attached

Screenshot 2024-02-21 at 12 07 06 PM

@rmcrackan
Copy link
Owner

@Mbucari you mentioned arm64 and he has x64. I don't know mac -- is this just a matter of using the other download type?

@rmcrackan
Copy link
Owner

Related bug #1020

@Mbucari
Copy link
Collaborator

Mbucari commented Oct 25, 2024

you mentioned arm64 and he has x64. I don't know mac -- is this just a matter of using the other download type?

@rmcrackan
I think you might be onto something. AAXClean.Codecs loads the native libraries at runtime. Here's where it tries to find the dll by name. Notice Line #23 where it determines the architecture to load by getting the OS architecture.

Here's what I think is happening. The users's machines are running on Apple Silicon which is arm64, but they downloaded the x64 packages. x64 will run on apple silicon under Apple's Rosetta translation layer, but AAXClean is trying to load load the library of the System's architecture, not the Libation package's architecture.

A temporary fix is to have the users delete their existing Libation app bundle and download the arm64 bundle.

I edited the macos build script to rename the native lib files, removing the architecture name. This should work because AAXClean tries to load both "ffmpegaac.[ARCH].dylib" AND just "ffmpegaac". Renaming the lib to just "ffmpegaac.dylib" should cause the system's library resolver to find it (and the same goes with the libmp3lame resolver

@rmcrackan
Copy link
Owner

@Mbucari Gracias. I'll create a pre-release soon

@rmcrackan
Copy link
Owner

Please try this pre-release and let me know if it helps your issue : https://github.com/rmcrackan/Libation/releases/tag/v11.5.2

@rmcrackan
Copy link
Owner

This bug seems to be out of date. If you have more information, please reply here and we can look into it further.

Please try the latest version: https://github.com/rmcrackan/Libation/releases/latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants