This project has moved. For the latest updates, please go here.

What's this mean: std::bad_alloc This application has requested the Runtime to terminate it in an unusual way.

May 17, 2014 at 8:43 PM
I started converting files again after taking a brief pause, and it looks like the process is failing towards the end.

I mostly see this error:
2014-05-17T15:19:37 MCEBuddy.AppWrapper.MKVMerge --> terminate called after throwing an instance of 'St9bad_alloc'
2014-05-17T15:19:37 MCEBuddy.AppWrapper.MKVMerge -->   what():  std::bad_alloc
2014-05-17T15:19:37 MCEBuddy.AppWrapper.MKVMerge --> This application has requested the Runtime to terminate it in an unusual way.
2014-05-17T15:19:37 MCEBuddy.AppWrapper.MKVMerge --> Please contact the application's support team for more information.
ERROR> --> MKVMerge adding subtitles failed
ERROR> 2014-05-17T15:19:39 MCEBuddy.Engine.ConversionJob --> Adding subtitles and chapters failed
INFORMATION> 2014-05-17T15:19:40 MCEBuddy.Engine.ConversionJob --> 
But sometimes its preceeded by "Warning: matroska_reader: caught exception":
2014-05-17T14:36:37 MCEBuddy.AppWrapper.MKVMerge --> Progress: 20%
2014-05-17T14:36:48 MCEBuddy.AppWrapper.MKVMerge --> Warning: matroska_reader: caught exception
2014-05-17T14:36:48 MCEBuddy.AppWrapper.MKVMerge --> terminate called after throwing an instance of 'std::bad_alloc'
2014-05-17T14:36:48 MCEBuddy.AppWrapper.MKVMerge -->   what():  std::bad_alloc
2014-05-17T14:36:48 MCEBuddy.AppWrapper.MKVMerge --> This application has requested the Runtime to terminate it in an unusual way.
2014-05-17T14:36:48 MCEBuddy.AppWrapper.MKVMerge --> Please contact the application's support team for more information.
ERROR> --> MKVMerge adding subtitles failed
ERROR> 2014-05-17T14:36:50 MCEBuddy.Engine.ConversionJob --> Adding subtitles and chapters failed
INFORMATION> 2014-05-17T14:36:51 MCEBuddy.Engine.ConversionJob --> 
Is this a system configuration problem or an issue with the video files?
Coordinator
May 17, 2014 at 8:55 PM
Can you upload the whole conversion log to the mcebuddy server and also the original video file (WTV?) - https://mcebuddy2x.codeplex.com/discussions/395631. I would like try to replicate it to determine the issue.
It looks like an issue with MKV Merge, but I need to replicate the issue before proposing a fix for you.
Does this happen with ALL files or just a few?
Coordinator
May 17, 2014 at 8:58 PM
Edited May 17, 2014 at 8:59 PM
This error indicates the MKVMerge is trying to allocate more memory that the system can provide, hence the crash.

On the mkv merge program I see the following bug fix that was recently done:
mkvmerge: bug fix: fixed huge memory usage when probing files (it was reading the whole file into memory for that).
So once you upload the file I'll check it out, likely you just need to download the new version of MKVMerge and it should fix your issue.
Marked as answer by JuliusPIV on 5/18/2014 at 8:18 AM
Coordinator
May 18, 2014 at 1:54 PM
Let me know if you're racing issues with uploading hte file to the server
Coordinator
May 18, 2014 at 2:09 PM
COPY AND PASTE URL in WINDOWS EXPLORER: ftp://mcebuddy:mcebuddy@files.mcebuddy2x.com/upload
You can upload files by dragging and dropping them
May 18, 2014 at 4:18 PM
Apologies for the delayed response!
I went ahead and upgraded mkvmerge (http://www.fosshub.com/MKVToolNix.html) which looks to have corrected the issue. I want to honor your time so the least I could do is upgrade that based on the information you shared with me.

I believe all the videos that were previously failing succeeded after the upgrade.

For what its worth, I did upload logs to: ftp://files.mcebuddy2x.com/upload/discussion_545669/
Marked as answer by JuliusPIV on 5/18/2014 at 8:18 AM
Coordinator
May 18, 2014 at 5:23 PM
Edited May 18, 2014 at 5:27 PM
Good to know, however if you could upload the original video that caused the problem it would be very help as it would add another test case for future releases.

BTW, another option if you're facing an issue with MKVMerge is:
Open profile.conf, goto the profile you're using and change
  1. handbrake-general, change -f mp4 to -f mkv
  2. handbrake-ext=.mkv
  3. ffmpeg-ext=.mkv
This will directly encode to MKV and avoid using mkvmerge.
Marked as answer by rboy1 on 5/18/2014 at 9:27 AM
May 19, 2014 at 11:58 AM
Upload complete!
Coordinator
May 19, 2014 at 2:24 PM
thanks


Coordinator
May 19, 2014 at 4:51 PM
BTW the video you've uploaded is a Copy Protected - Dodgeball- A True Underdog Story_HBOZHD_2014_04_29_17_42_14
I can't play it back or process it