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

Allowed memory size exhausted - RuneList.php #207

Open
kodirovshchik opened this issue Nov 22, 2022 · 4 comments
Open

Allowed memory size exhausted - RuneList.php #207

kodirovshchik opened this issue Nov 22, 2022 · 4 comments

Comments

@kodirovshchik
Copy link

kodirovshchik commented Nov 22, 2022

Command:
m4b-tool merge -vvv --jobs=8 --output-file="output/" --batch-pattern="input/%g/%a/%s/%p - %n/" "input/" --no-chapter-reindexing

Error:

==> trying improver ChaptersFromOverdrive 
'ffmpeg' '-hide_banner' '-i' 'input/Audiobook/Author/Series/01 - Series 01. Book 01/01-01.mp3' '-f' 'ffmetadata' '-'
PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16777224 bytes) in phar:///usr/local/bin/m4b-tool-pre/vendor/sandreas/php-strings/src/Sandreas/Strings/RuneList.php on line 247
an error occured, that has not been caught:
Array
(
    [type] => 1
    [message] => Allowed memory size of 134217728 bytes exhausted (tried to allocate 16777224 bytes)
    [file] => phar:///usr/local/bin/m4b-tool-pre/vendor/sandreas/php-strings/src/Sandreas/Strings/RuneList.php
    [line] => 247
)

Debian 11 Bullseye, m4b-tool latest-178-gaeb8b2b

log.txt
m4b-tool.log

@sandreas
Copy link
Owner

Could you please run:

php -r 'echo ini_get("memory_limit");'

and provide the output of the command?

@kodirovshchik
Copy link
Author

kodirovshchik commented Nov 22, 2022

I don't have php installed. Does official docker image requires it?

upd: php installed =)

~ $ php -r 'echo ini_get("memory_limit");'
-1⏎
~ $

@sandreas
Copy link
Owner

I don't have php installed. Does official docker image requires it?

Ah, you are using docker - no then you don't need php installed on the host os, all dependencies are in the container.

It is pretty likely that you have HUGE metadata string in your audio file or something goes completely wrong. I have to investigate this further, but maybe I have to give you access to a private repo, so that you can provide the files where this is happening.

May take a while, these out of memory stuff might be hard to solve. I try my best.

@kodirovshchik
Copy link
Author

Ok. I figured it out a little. It's something with tags. After I removed and then returned the tags to their places, the book was successfully merged. I still have the original files. I can upload files somewhere, but it's 1.6 gigabytes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants