Consistent crash after n scenes: Error: bad_alloc (out of memory) exception caught in LApplication::

  • Dear @mark_m,

    After a quick look at your .izz file, one question: I see several pictures that are PSD (Photoshop) files. Do those files have layers? If so, my immediate suggestion is that you output all of these as single layer TIFF files and replace the PSD files in Isadora.
    Also, I need to know:
    1) Codec and resolution of your movie files. I noticed you had several .mp4 files. Playback of these files under Windows may not be optimum. Better to use Apple Pro Res if you have an SSD drive.
    2) Resolution of the picture files. 
    Best Wishes,

  • Hi @mark
    The PSD files do not have layers as such, but they have transparent 'holes' in them which is necessary for the project to work (I am placing a live camera feed behind these 'holes'). So the file format has to have a transparency ability. I have replaced all the PSD files with PNGs,  but I get the same issue. I have sent an updated crash report.
    The picture files are 1920 x 1080px @ 72dpi

    Since it's most awkward to produce ProRes files on the PC I have been using MP4. These files are only being played forwards, not manipulated in any way. I get playback speed at 24.4 fps and 170cps in Isadora. That's OK isn't it?



  • Tech Staff

    MP4 is the container (similar to .MOV) do you know what the codec is, such as H.264 for example?

  • Hi @skulpture

    Greetings from Sheffield!

    It's H264

  • Tech Staff


    Regarding mp4 on Windows. These video containers 'can' be fine. The issue is that they may contain nearly anything, and mp4 is played on PC by QuickTime (although Direct Show support is available from the OS, but very limited). 
    So if you are exporting the mp4 file/s on your Windows machine, you are likely using a codec/settings that are not optimal for QuickTime playback.  My experience has been that 4 times out of 5, mp4 files are related to user issues.
    Eg: I have been able to create 4 versions of a video, in a mp4 wrapper with h264 compression on my pc all using slight variations of the standard. Playback is not consistent between them, and can lead to a crash.
    Are you specifically trying to create the project to be cross platform? 
    If so I might suggest Hap. (HapQ for higher quality, and the latest Hap beta codec offers HapQ alpha)
    If not, wmv as a container provides the best DirectShow support, and Hap offers the best interactive playback.

  • @DusX

    Thanks, Ryan.
    I did try telling Isadora to play back the H264/MP4s via Direct Show and things didn't improve.

    Am now re-encoding the video as HAP and as WMV. Let's see what happens :-)

  • Tech Staff


    I think this will help you a great deal.
    Direct Show playback of mp4 in Isadora is not supported. I think you may have miss understood me when I mentioned its OS support.

  • @DusX

    With an H264 .mp4 loaded in Isadora's movie player I can choose DS from the playback engine. Is that not using Direct Show?

    Anyhow, I have just tried replacing the H264 files with HAP files and the project is still crashing. So I don't think that's the problem here.

    (I notice on the automatically generated bug report that Isadora sees my computer as having 2GB of RAM rather than the 16GB installed. Is Isadora a 32bit program, and thus only able to address 2GB or 3.6GB of RAM?)

  • Here's the resolution to this problem (thanks to @DusX 's eagle eyes and detective skills).
    The issue was that I was using the Textdraw actor, and the text that I was putting into it - copied and pasted from a provided script - contained non-ASCII characters. Something that the Mac didn't have a problem with, but that the Windows machines couldn't cope with.

    Once I'd replaced the offending characters everything worked as it ought: so the video formats and the picture resolutions were red herrings in this case, but none the less good to learn more about good practice.

    @mark, thanks for your help too: hope this makes sense.

  • Tech Staff


    Just to clarify the 'pb engine' output setting. 
    This is not settable. This is an output provided, that shows the currently active playback engine. It can only be controlled ( to a degree ) by the 'optimize' input. Where 'Performance' will use AVfoundation or DirectShow if available for the media type, and 'Interactive' will use QuickTime for playback.
    The fact that you can physically alter an output has no effect on the actor since no setting is input.