Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] QTKitMovieMBS.addImage crashes with many images (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] [ANN] 12.2pr6
Next thread: [MBS] installing a font in Windows and Mac OSX


Re: [MBS] AuthorizationMBS   -   Garth Hjelte
  [MBS] QTKitMovieMBS.addImage crashes with many images   -   Pencil Software
   Re: [MBS] QTKitMovieMBS.addImage crashes with many images   -   Arnaud Nicolet
   Re: [MBS] QTKitMovieMBS.addImage crashes with many images   -   Pencil Software
   Re: [MBS] QTKitMovieMBS.addImage crashes with many images   -   Glenn L. Austin
   Re: [MBS] QTKitMovieMBS.addImage crashes with many images   -   Christian Schmitz
   Re: [MBS] QTKitMovieMBS.addImage crashes with many images   -   Arnaud Nicolet
   Re: [MBS] QTKitMovieMBS.addImage crashes with many images   -   Christian Schmitz
   Re: [MBS] QTKitMovieMBS.addImage crashes with many images   -   Pencil Software

[MBS] QTKitMovieMBS.addImage crashes with many images
Date: 29.04.12 06:43 (Sun, 29 Apr 2012 14:43:39 +0900)
From: Pencil Software
Hi.
It seems that QTKitMovieMBS.addImage crashes with some measure of images.
The number of images is about 1500. Sometimes crashes with 1400 images and sometimes 1550. I think it's not so huge number.
I think you can see the issue with modifying "QTKit Create Movie.rbp" example in the QTKit examples as bellow.

// frames must be 501*10P10
for j as integer = 0 to 500
for i as IntegerP to 500 step 50 // 10 lines must be drawn
// draw something. e.g. a line
g.ForeColor = &cFF0000
g.drawline i,0,i,j

// add the image
dim image as new NSImageMBS(p)
q.addImage image, duration, "tiff", QTKitModuleMBS.codecHighQuality
next
next

Can you improve it or any workaround?

-------------------------
Hazime Gushi
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] QTKitMovieMBS.addImage crashes with many images
Date: 29.04.12 19:21 (Sun, 29 Apr 2012 20:21:44 +0200)
From: Arnaud Nicolet
Le 29 avr. 2012 à 15:13 Soir, Christian Schmitz a écrit:

> Am 29.04.2012 um 15:12 schrieb Arnaud Nicolet:
>
>> I thought once the memory is full, the OS uses virtual memory instead. Why does the app crash then?
>
> A 32 bit app crashes once the virtual address space of 4 GB per app is full.
>
> That is independent of what physical memory is installed.

Right. Thanks for the reminder!
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] QTKitMovieMBS.addImage crashes with many images
Date: 29.04.12 19:05 (Mon, 30 Apr 2012 03:05:12 +0900)
From: Pencil Software
> I fixed it today for next prerelease.
>

Thank you Christian. I'm looking forward to next release.

----------------------
Hazime Gushi
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] QTKitMovieMBS.addImage crashes with many images
Date: 29.04.12 17:14 (Sun, 29 Apr 2012 09:14:36 -0700)
From: Glenn L. Austin
On Apr 29, 2012, at 6:13 AM, Christian Schmitz wrote:

>
> Am 29.04.2012 um 15:12 schrieb Arnaud Nicolet:
>
>>
>> I thought once the memory is full, the OS uses virtual memory instead. Why does the app crash then?
>
> A 32 bit app crashes once the virtual address space of 4 GB per app is full.
>
> That is independent of what physical memory is installed.

And don't forget that included in that 4GB is the memory for the application code and the code for all system frameworks referenced by your code.

Often that means that your application has about 3GB of available address space for your own data. Once we can build 64-bit applications, then it's likely that only a few applications will run out of address space.

This is why I now prefer the term "out of address space" instead of "out of memory."

Re: [MBS] QTKitMovieMBS.addImage crashes with many images
Date: 29.04.12 14:13 (Sun, 29 Apr 2012 15:13:22 +0200)
From: Christian Schmitz

Am 29.04.2012 um 15:12 schrieb Arnaud Nicolet:

>
> I thought once the memory is full, the OS uses virtual memory instead. Why does the app crash then?

A 32 bit app crashes once the virtual address space of 4 GB per app is full.

That is independent of what physical memory is installed.

Greetings
Christian

Re: [MBS] QTKitMovieMBS.addImage crashes with many images
Date: 29.04.12 14:12 (Sun, 29 Apr 2012 15:12:06 +0200)
From: Arnaud Nicolet
Le 29 avr. 2012 à 14:44 Soir, Christian Schmitz a écrit:

> Am 29.04.2012 um 07:43 schrieb Pencil Software:
>
>> It seems that QTKitMovieMBS.addImage crashes with some measure of images.
>
> Seems like we have a memory leak there and images are not released properly. So once memory is full, the app crashes.

I thought once the memory is full, the OS uses virtual memory instead. Why does the app crash then?
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] QTKitMovieMBS.addImage crashes with many images
Date: 29.04.12 13:44 (Sun, 29 Apr 2012 14:44:10 +0200)
From: Christian Schmitz

Am 29.04.2012 um 07:43 schrieb Pencil Software:

> Hi.
> It seems that QTKitMovieMBS.addImage crashes with some measure of images.

Seems like we have a memory leak there and images are not released properly. So once memory is full, the app crashes.

I fixed it today for next prerelease.

Greetings
Christian

Re: [MBS] QTKitMovieMBS.addImage crashes with many images
Date: 29.04.12 06:55 (Sun, 29 Apr 2012 14:55:23 +0900)
From: Pencil Software
Sorry, additional info about it.
It occurs with both Cocoa and Cabon build on OS X Lion 10.7.3
I use RS2011 r4.3 with MBS 12.1
I tried it with my MacBook Pro 8GB memory.
Thanks.

-------------------
Hazime Gushi

On 2012/04/29, at 14:43, Pencil Software wrote:

> Hi.
> It seems that QTKitMovieMBS.addImage crashes with some measure of images.
> The number of images is about 1500. Sometimes crashes with 1400 images and sometimes 1550. I think it's not so huge number.
> I think you can see the issue with modifying "QTKit Create Movie.rbp" example in the QTKit examples as bellow.
>
> // frames must be 501*10P10
> for j as integer = 0 to 500
> for i as IntegerP to 500 step 50 // 10 lines must be drawn
> // draw something. e.g. a line
> g.ForeColor = &cFF0000
> g.drawline i,0,i,j
>
> // add the image
> dim image as new NSImageMBS(p)
> q.addImage image, duration, "tiff", QTKitModuleMBS.codecHighQuality
> next
> next
>
> Can you improve it or any workaround?
>
> -------------------------
> Hazime Gushi
> _______________________________________________
> Mbsplugins_monkeybreadsoftware.info mailing list
> <email address removed>
> https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info