Memory Allocation Null Pointer Exception during merge

Hello,

I am new to MKVToolNix and encountered an issue trying to merge the extended cut of “Lord of the Rings - Return of the King”.

While the other movies worked just great, this one send an error:

memory.cpp/safemalloc() aus Datei src/common/memory.cpp, Zeile 31 aufgerufen: malloc() hat für eine Größe von 187687 Byte »nullptr« zurückgegeben.

Translated:
memory.cpp/safemalloc() in file src/common/memory.cpp, line 31 called: malloc() has returned a »nullptr« for a size of 187687 Byte.

Is there an issue with my .mkv files?

This error occured in Version 88 and 89.
I am using Windows 10 and MKVToolNix Version 89.

Thanks in advance.

Welcome!

This usually indicates that mkvmerge has used up all available memory, especially as the size it tried to allocate is rather small (if it were a huge number, it would clearly have been a different cause/different kind of bug). This might be due to a bug, or it might be due to how you’ve set things up to merge in combination with how much memory you have.

The only way for me to actually say anything more concrete about it is to have access to the material you’re trying to merge. If willing, you could upload all the source material to my file server. As said above, I’ll also need info about how you’ve set up the merge, so please set it up again just like before, save the settings to a file & upload that file as well. Thanks.

Thanks,

I am currently uploading the files (which will take a while) in a folder named like this post.

Shall I create an Issue and rename the folder after the upload has finished?

Yeah, an issue would definitely be good as we’re in bug triaging territory here, and that’s better kept over on Gitlab. No need to rename the folder though; I’ll have to download it from that server anyway & have my own naming scheme locally. Thanks!

The Issue has the number #3771