YOUR ACCOUNT

Login or Register to post new topics or replies
Biomechanic
Filter Licker

Posts: 122
Hi There

Last night I rendered a 10000 x 5000 image of this filter (one of my favourites)

Kromatism



When I went to save it as a .JPG, this error occured :

<class XFW::Kernel::StdException> bad allocation

After cancelling the error, saving halted, but the save progress dialogue box remained open - after cancelling that, I got this error :

Object <class XFW::IO::File>@0804F6F0 was not released before destruction.

FF does save a partial JPG file which can be opened, but obviously all the image data is not there - also, attempting to save in other file formats gets the same results.

The error doesn't seem to be fatal, as FF remains open, usable and stable

I then re-booted my machine, rendered again and attempted to save again, the same thing happened

I tried with a few other large sizes, i.e. 4000 x 4000, 5000 x 5000, the same thing happened

But, I must say - the render executed perfectly, using all cores available - in fact the very first attempt was at 20,0000 x 10,0000 which rendered on my machine in 17 minutes, only to be lost on saving, which I can assure you was very annoying

Other filters seem fine at hi-res, I rendered Alien Ribs at 20,000 x 10,000 in 4 minutes and it saved without a hitch.

Admittedly, I am running the trial, of which I only have a few days left, so would be grateful if you could tell me why this is happening with this filter and possibly cure the issue ?

Thanks very much for your time

Best

J
  Details E-Mail
onyXMaster
Filter Forge, Inc.
Posts: 350
"bad allocation" means that you ran out of available memory. Please try the following:
1) ensure your paging file size isn't limited by a setting in Control Panel->System->Advanced->Settings(Performance)->Advanced->Change (ideally it should be System Managed and you should have enough space on disk, I recommend several tenths of gigabytes)
2) reduce the amount of memory Filter Forge uses for it's internal computations (go to Tools->Options...->Rendering and set the Maximum RAM usage slider to something like 60 instead of the default 75)
Also please ensure that you have enough disk space for both paging file (you can check it in the same location as 1) ) and Filter Forge temporary files (available in the same location as 2) ).
  Details E-Mail
onyXMaster
Filter Forge, Inc.
Posts: 350
P.S. I will check if there's a specific problem with this filter and such image sizes with properly set up paging file. The fact that other filters render fine makes me think that you're running out of disk space (there are two bitmap-based components in there, with such resolutions the temporary files alone might take from 3 to 6 gigabytes smile:))
  Details E-Mail
onyXMaster
Filter Forge, Inc.
Posts: 350
I did some testing -- was able to properly render and save 10Kx5K image with the filter you used, but I got very close to the memory commit limit. I still would like to hear from you about the recommendations I gave, whether they helped or not.
There _are_ plans to change the large block allocation scheme to reduce the amount of fragmentation leading to possible reaching of the commit barrier (which is almost impossible to determine precisely unless you've already hit it smile:D ), but I cannot say when the change will be implemented.
  Details E-Mail
Biomechanic
Filter Licker

Posts: 122
onyXMaster thanks for your prompt response and help

Following your instructions, I was able to render a 20Kx10K (20000 x 10000) image, which I intend to post on the forum - that was my intention from the start, I haven't seen any posts relating to large format images, so thought this might be cool

Going back to the original problem, it seems that page filing was turned OFF for some reason, I had recently installed Vista SP1 - maybe that has some bearing on it, anyway - turning it on did the trick and reducing FF's RAM usage (as you correctly suggested) to 45% also must have worked

Again, thanks very much for your help

Best

J
  Details E-Mail
onyXMaster
Filter Forge, Inc.
Posts: 350
Running without page file is dangerous stuff in many programs, not only FF smile:))
Glad I could help, good luck to you smile:)
  Details E-Mail
Vladimir Golovin
Administrator
Posts: 3446
Filters: 55
Quote
Biomechanic wrote:
But, I must say - the render executed perfectly, using all cores available - in fact the very first attempt was at 20,0000 x 10,0000 which rendered on my machine in 17 minutes,


Nice to hear that smile:)
  Details E-Mail
SpaceRay
SpaceRay

Posts: 12298
Filters: 35
Is this true what oniXMaster have said ? The error could come fr om the paging file size ??? smile:?:

Quote
oniXMaster wrote:

"bad allocation" means that you ran out of available memory.

Please try the following:

1) ensure your paging file size isn't lim ited by a setting in Control Panel->System->Advanced->Settings(Performance)->Advanced->Change (ideally it should be System Managed and you should have enough space on disk, I recommend several tenths of gigabytes)

2) reduce the amount of memory Filter Forge uses for it's internal computations (go to Tools->Options...->Rendering and set the Maximum RAM usage slider to something like 60 instead of the default 75)

Also please ensure that you have enough disk space for both paging file, you can check it in the same location as 1) ) and Filter Forge temporary files (available in the same location as 2) ).

P.S. Test With 10000 x 5000 image sizes with properly set up paging file. The fact that other filters render fine makes me think that you're running out of disk space (there are two bitmap-based components in there, with such resolutions the temporary files alone might take from 3 to 6 gigabytes
  Details E-Mail
Morgantao
Can't script

Posts: 2185
Filters: 20
Bad allocation in most program relates to memory allocation.

Think of computer memory as a giant library with lots of shelves.
The RAM is the small shelves right next to the librarian. It doesn't take the librarian much time to access these books.
But there's no way to fit a whole library in just those shelves, so you have the Page File, which is a set of very long shelves located somewhere else. Those shelves have much more storage space, but it takes a while for the librarian to come get the books fr om here.
Not only that, to get you these books, he needs to take the books off the near shelves (RAM) and put them in the far shelves (Page File), to make room for the books you want in the near shelves.
Now imagine you don't have enough space in the Page File. Wh ere will the librarian put the books? He can try to jam them between other books, but that will get the pages all wrinkled, and some of the books will fall on the floor or get lost behind other books.... A whole lot of mess... smile:|
That's when you get errors - The librarian can't find the books you're looking for, and get mad at you for asking them, but the librarian can't shout at you for interupting his work and asking him for books he can't find, because it's a library, and you need to keep quiet. That only gets the librarian more angry, smile:evil: and the pressure builds up untill he decides to burn all the books on the subject you asked for. Then the librarian gets taken to the mental hospital because he's had a mental breakdown. smile:hammer:
Now all is lost and you have to start your research all over again, smile:cry: hoping the new librarian won't lose his mind, but unless he's got more room in the library, it's likely it will all happen all over again.

OK, so I got a little carried away smile:D
  Details E-Mail
SpaceRay
SpaceRay

Posts: 12298
Filters: 35
Quote
Morgantao wrote:

Bad allocation in most program relates to memory allocation.

Think of computer memory as a giant library with lots of shelves.

The RAM is the small shelves right next to the librarian.

It doesn't take the librarian much time to access these books.

But there's no way to fit a whole library in just those shelves, so you have the Page File, which is a set of very long shelves located somewhere else.

Those shelves have much more storage space, but it takes a while for the librarian to come get the books fr om here. Not only that, to get you these books, he needs to take the books off the near shelves (RAM) and put them in the far shelves (Page File), to make room for the books you want in the near shelves.

Now imagine you don't have enough space in the Page File. Wh ere will the librarian put the books? He can try to jam them between other books, but that will get the pages all wrinkled, and some of the books will fall on the floor or get lost behind other books.... A whole lot of mess...

That's when you get errors - The librarian can't find the books you're looking for, and get mad at you for asking them, but the librarian can't shout at you for interupting his work and asking him for books he can't find, because it's a library, and you need to keep quiet.

That only gets the librarian more angry,and the pressure builds up untill he decides to burn all the books on the subject you asked for. Then the librarian gets taken to the mental hospital because he's had a mental breakdown.

Now all is lost and you have to start your research all over again,hoping the new librarian won't lose his mind, but unless he's got more room in the library, it's likely it will all happen all over again.

OK, so I got a little carried away




smile:D smile:D smile:D smile:D smile:D smile:D smile:D smile:D Very funny and Excellent comparison smile:D smile:D smile:D you have a great imagination and funny way to make a history to tell it. Love it much !!!!

With all the many FF errors I am getting fr om the "bad allocation" message, the mental hospital must be getting already full of mad librarians smile:D

Well I understand very well it, BUT in my personal case I have 16 GB RAM (a huge lot of shelves), of which is said that FF can ONLY use 1,5 GB as the program is lim ited to that (FF is looking at ALL the other 14,5 GB of huge empty space that could use, but FF INC. have put a fence with a note that say "this part of the library is forbidden for you"

And so it uses those ONLY 1,5 GB BUT is this true ? Because inside the configuration of FF I have put that FF uses as "Memory usage lim it: (percent of total RAM) = 60% of the available RAM.

And as I have 16 GB, the 60% of that would be 9,6 GB, although I have to count all the memory Windows and FF is already consuming so it will be less than that, let´s say it is 12 GB, even then, the 60% of 12 GB would be 7,2 GB and FF can´t use more than 1,5 GB.

So as FF can´t use more than 1,5 GB it uses the paging file, BUT I have 32 GB of paging file size, and 27 GB free space in the C: drive for any temporary file could need.

SO I do not know WHY the librarian does not have enough space to put all the books in the available space ? smile:D
  Details E-Mail
Morgantao
Can't script

Posts: 2185
Filters: 20
Obviously the librarian is senile, or he has Alzheimer's desease, and untill the doctors can find a cure, the librarian is going to missplace books, and go mental.
Thank god it's a librarian and not a postal worker smile:D
  Details E-Mail
SpaceRay
SpaceRay

Posts: 12298
Filters: 35
Quote
Morgantao wrote:

Obviously the librarian is senile, or he has Alzheimer's desease, and untill the doctors can find a cure, the librarian is going to missplace books, and go mental.
Thank god it's a librarian and not a postal worker


As you have said that the Librarian that controls the RAM is senile and so can´t do right his job I decided that was time that he had a retirement and do not keep working, and have replaced him with a new one that is not standalone, he is kept under supervision of a big boss called Photoshop. smile:D

WHY I AM TELLING YOU THIS ?

Because I have found that in my case this ONLY happens in the FF standalone version !! And so replacing the standalone controller for the plugin under Photoshop control seems to solve the problem.

I have got this error many times and with just a 2500x2500 photo smile:evil: smile:cry:

USING FILTER FORGE AS A PLUGIN OF PHOTOSHOP CS5 SOLVES THE PROBLEM !!! smile:)

BUT then I have used the SAME photo with Filter Forge as a plugin inside Photoshop and using the same filter and same settings, AND DO NOT GET ANYMORE this error , So I am happy that at least I know that to fix this undesired and unwanted error I just need to use Filter Forge as plugin and this SOLVES the problem. smile:)

PLEASE MORGANTAO COULD YOU BE SO KIND TO CONFIRM THIS IF POSSIBLE

Could you be so kind to test FF as a plugin of Photoshop (or other host)and confirm if you can use Filter Forge as a plugin of Photoshop (or another host) without the "bad allocation" error ? . You only need to have a 3000x3000 photo, or better higher.

ALSO this is of course and welcomed if any other one wants to make the same test

Thanks very much for your help
  Details E-Mail
Morgantao
Can't script

Posts: 2185
Filters: 20
I can't seem to reproduce the error...
Using the standalonen version I let my copmuter choke on 12MP (and higher) images, using this and other filters.
While my computer totaly froze for periods of 12 minutes at a time (mouse was choppy, numlock took a while to turn on/off), it still produced the results with no errors.
I can even tell you I haven't reboot the computer in a few days, and I have around 15 IE windows open for all that time, Chrome windows open for all that time.
In fact, every other thing I do in IE causes it to crash and reloard the page... But FF did the job.
  Details E-Mail
SpaceRay
SpaceRay

Posts: 12298
Filters: 35
Quote
I can't seem to reproduce the error...

Using the standalonen version I let my copmuter choke on 12MP (and higher) images, using this and other filters.

While my computer totaly froze for periods of 12 minutes at a time (mouse was choppy, numlock took a while to turn on/off), it still produced the results with no errors.


Thanks very much for telling me your experience and know that on your side it works fine and right without any errors, you are very lucky.

I have MANY times the "bad allocation" error and until now I have not realized that if using FF inside Photoshop it did not give the same error

YES, the same as you, also in my Photoshop some few times can be frozen until it renders it all that takes about 20 minutes to make a 4000 x 4000 photo BUT ends well without errors.
  Details E-Mail

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

33,711 Registered Users
+18 new in 30 days!

153,533 Posts
+38 new in 30 days!

15,348 Topics
+73 new in year!

Create an Account

Online Users Last minute:

28 unregistered users.