audiamus / AaxAudioConverter

Convert Audible aax files to mp3 and m4a/m4b
GNU General Public License v3.0
1.54k stars 117 forks source link

Conversion Hangs Creating Multiple Files #194

Closed Phiber2000 closed 1 year ago

Phiber2000 commented 1 year ago

I have the same problem here but it seems to be a different issue than #186.

The conversion stops after some files and then stops responding. Changing the configuration parameters or replacing the ffmpeg.exe does not solve the issue.

Loglevel 4 logfile: AaxAudioConverter_2023-10-16_001.log

Phiber2000 commented 1 year ago

Additional information:

audiamus commented 1 year ago

From the log file it seems that writing meta data to chapter 6 hangs, presumably when invoking ATL.

Does it also hang if

The "NonParallel" app setting is really helpful hear to decipher the log file. Please leave it on for these tests.

Phiber2000 commented 1 year ago

AaxAudioConverter_2023-10-16_002.log

audiamus commented 1 year ago

Strange. I don't see any regularities here yet.

Phiber2000 commented 1 year ago

I only see as common factor, that the program freezes in all cases after transcoding the 6th track.

Phiber2000 commented 1 year ago

No issues with v1.17.1. I'm checking the versions between...

Phiber2000 commented 1 year ago

The issue introduced with v1.18.0. It's reproducible and not related to the input AAX file.

audiamus commented 1 year ago

The issue introduced with v1.18.0.

That's helpful. I'll check what changes were made. If it is related to ATL I could revert to an older (or newer) version there. I might build an intermediate version of AaxAudioConverter for you to test. But it will have to wait a few days, this week is going to be rather busy for me.

audiamus commented 1 year ago

Here are two test builds to find out whether the issue is likely to be caused by ATL.

AaxAudioConverter_1.18.2.n.zip

Unpack to C:\Program Files\audiamus\AAX Audio Converter, where all other resources of this app reside.

Phiber2000 commented 1 year ago

No changes with both ATL variants. 😢

audiamus commented 1 year ago

Can you contact me on Reddit? My user name there is also audiamus.

audiamus commented 1 year ago

As discussed on Reddit, here is the next attempt.

AaxAudioConverter_1.18.2.3.zip

In the AaxAudioConverter_1.18.2.3.exe.config file there is a new setting in the applicationSettings group, named MaxParallelThreads. You can play around with that and, for instance, use 4 initially. NonParallel will override it and it can't be higher than the number of CPU cores. The setting will be shown in the log file.

Phiber2000 commented 1 year ago

In fact, still without success. 😢 I tried MaxParallelThreads=4 and MaxParallelThreads=NonParallel (log attached).

AaxAudioConverter_2023-11-13_001.log

audiamus commented 1 year ago

This log file says, NonParallel = True and MaxParallelThreads = 0. NonParallel overrides MaxParallelThreads which means all parallel loops run single-threaded. MaxParallelThreads with default 0 means no restriction but does not come into effect here, because of NonParallel.

So, not really anything new here, unfortunately.

Phiber2000 commented 1 year ago

Sorry, I misunderstood that! Here you go: AaxAudioConverter_2023-11-14_001.log

audiamus commented 1 year ago

Same as before, I'm afraid. But that was to be expected.

What we know so far:

audiamus commented 1 year ago

I close this for now. As said before, as I am not able to reproduce this with my books and my environment.