Error on large image Gimp 2.4.5 Kubuntu 8.04
Forum » General / Bug reports » Error on large image Gimp 2.4.5 Kubuntu 8.04
Started by: Anonymous (24.203.210.x)
On: 1217294653|%e %b %Y, %H:%M %Z|agohover
Number of posts: 15
rss icon RSS: New posts
Summary:
I'm trying to rescale a large panoramic image, and the liquid rescale plug-in crash !
Error on large image Gimp 2.4.5 Kubuntu 8.04
Anonymous (24.203.210.x) 1217294653|%e %b %Y, %H:%M %Z|agohover

On a Pentium 4 3.2ghz 2g of ram, running under Kubuntu 8.04 with Gimp 2.4.5 I'm trying to rescale a 12815 x 3092 xcf projet with 2 layers
The first layer is the background and the second one is the keep selection.
The scale factor I'm trying to have is height 150% (or 125%) and width 100%. .And Liquid Rescale crash !!! After about an half an hour or so I received this message from Gimp :

Plug-In 'Liquid Rescale ' left image undo in inconsistent state, closing open undo groups.

Just after rescaling the height.
I can see the Background LqR layer but at the same size as the original.

The plug-in work fine with smaller images.

Any hint ?

Gérald Brosseau
La Photo Du Jour
http://gb-photodujour.com
Sur internet depuis juin 1998

Re: Error on large image Gimp 2.4.5 Kubuntu 8.04
UnNeuroneUnNeurone 1217317302|%e %b %Y, %H:%M %Z|agohover

I believe the error to be due to the lack of memory. I also have 2 Gb of RAM and just opening such a big image in Gimp and adding a layer takes almost 1 Gb. Trying to do what you described resulted in a fill up of all the RAM and the swap.
However, the crash shouldn't happen with the last version of the plugin, it should issue a simple error message and exit cleanly (that's what happened to me).
Are you using the version which comes in the Ubuntu repositories? That one is not up to date.

last edited on 1217317384|%e %b %Y, %H:%M %Z|agohover by UnNeurone + show more
unfold Re: Error on large image Gimp 2.4.5 Kubuntu 8.04 by UnNeuroneUnNeurone, 1217317302|%e %b %Y, %H:%M %Z|agohover
Re: Error on large image Gimp 2.4.5 Kubuntu 8.04
Anonymous (24.203.210.x) 1217381930|%e %b %Y, %H:%M %Z|agohover

I know that those huge files are very hard on the memory, but I'm use to handle it. I know that it's not a question of the swap file saturation.

So I have re-install the most recent version of the plug-inn. With the same result. So I try with 110% instead of 125% or 150% and it's working !!!

I've try to open Gimp with the command line so I can see any error message and I received an segmentation fault on the plug-inn if I try with 125% of the height !!!

Re: Error on large image Gimp 2.4.5 Kubuntu 8.04
UnNeuroneUnNeurone 1217393056|%e %b %Y, %H:%M %Z|agohover

This is strange. It really looks lika a memory related problem, since it only happens with large images, but all of the memory calls in the plugin are protected - well, er, almost all, I just discovered one which isn't, but you didn't check the "output the seams" option, did you? :/
That may be the problem.

If not, it may be some failure in a call to the gimp internal functions, which I cannot control.
Anyway, in order to save some memory, you can try to uncheck the "output on a new layer" option (which you seem to have checked, from reading your first post), and also the "resize auxiliry layers" option if you have it on - they all need extra RAM.

If all of this fails, and you want to help me finding out what's going on, and if you installed the plugin and the library from the sources, you could do two extremely simple modifications to the source files:
1) In the library directory tree, find file "lqr_base.h" under the "lqr" directory, and change the zero to a one in lines 39-41:

#if 0
#define __LQR_VERBOSE__
#endif

so that they become:
#if 1
#define __LQR_VERBOSE__
#endif

Then make && make install the library.
2) In the plugin directory tree, find the file "render.c" under the "src" directory, and do the same in lines 39-41:
#if 0
#define __CLOCK_IT__
#endif

Then make && make install the plugn too.
Doing this will give you a verbose output to the command line.
unfold Re: Error on large image Gimp 2.4.5 Kubuntu 8.04 by UnNeuroneUnNeurone, 1217393056|%e %b %Y, %H:%M %Z|agohover
Re: Error on large image Gimp 2.4.5 Kubuntu 8.04
Anonymous (24.203.210.x) 1217458149|%e %b %Y, %H:%M %Z|agohover

Compiling and installing from the tar file for the library went well but for the pluginn :

gerald@gerald-bureau:~/Bureau/Liquid/gimp-lqr-plugin-0.4.0$ make
make  all-recursive
make[1]: entrant dans le répertoire « /home/gerald/Bureau/Liquid/gimp-lqr-plugin-0.4.0 »
Making all in po
make[2]: entrant dans le répertoire « /home/gerald/Bureau/Liquid/gimp-lqr-plugin-0.4.0/po »
file=`echo it | sed 's,.*/,,'`.gmo \
          && rm -f $file &&  -o $file it.po
/bin/sh: -o: not found
make[2]: *** [it.gmo] Erreur 127
make[2]: quittant le répertoire « /home/gerald/Bureau/Liquid/gimp-lqr-plugin-0.4.0/po »
make[1]: *** [all-recursive] Erreur 1
make[1]: quittant le répertoire « /home/gerald/Bureau/Liquid/gimp-lqr-plugin-0.4.0 »
make: *** [all] Erreur 2

You have noted that I'm working in french but I think that you can translate the french words…

So I'm stuck in the make procedure…

I'll give a try with only the library in verbose mode just to see.

Gérald Brosseau
La Photo Du Jour
http://gb-photodujour.com
Sur internet depuis juin 1998

Re: Error on large image Gimp 2.4.5 Kubuntu 8.04
UnNeuroneUnNeurone 1217507316|%e %b %Y, %H:%M %Z|agohover

Uh-oh, two bugs in a row! I'm sorry, I think you need to install the gettext package from the package manager, then configure && make && make install again.
Let me know, I'll add that to the instructions and try to find out why configure doesn't complain about it.

unfold Re: Error on large image Gimp 2.4.5 Kubuntu 8.04 by UnNeuroneUnNeurone, 1217507316|%e %b %Y, %H:%M %Z|agohover
Re: Error on large image Gimp 2.4.5 Kubuntu 8.04
Anonymous (24.203.210.x) 1217542316|%e %b %Y, %H:%M %Z|agohover

No problems I know that systems are becoming more and more complex and the are so many distribution on the Open Source Market. I really appreciate the help that you give me.

Any way this mornig I have successfuly rescale au 7513 x 2144 xcf file to a 7513 x 2572. The difference between the 2 projects is that the second one is with only 1 layer, no preservation mask/selection.

I'll give a try to compile the package with the gettext installed and I'll keep you informed …

Many thaks again.

Gérald Brosseau
La Photo Du Jour
http://gb-photodujour.com
Sur internet depuis juin 1998

Re: Error on large image Gimp 2.4.5 Kubuntu 8.04
UnNeuroneUnNeurone 1217554412|%e %b %Y, %H:%M %Z|agohover

There's still another thing you could try, in order to reduce a bit further the memory requirements, which is to remove the alpha channel from your layers, including the preservation mask (black areas and trasnparent areas are just the same in masks), and also crop it as much as possible.
BTW next plugin version will use a little less RAM, thanks to this report.

last edited on 1217554640|%e %b %Y, %H:%M %Z|agohover by UnNeurone + show more
unfold Re: Error on large image Gimp 2.4.5 Kubuntu 8.04 by UnNeuroneUnNeurone, 1217554412|%e %b %Y, %H:%M %Z|agohover
Re: Error on large image Gimp 2.4.5 Kubuntu 8.04
Anonymous (24.203.210.x) 1217620950|%e %b %Y, %H:%M %Z|agohover

Now back with the first project with the compiled library end plug-inn with the

#if 1
#define __LQR_VERBOSE__
#endif

and

#if 0
#define __CLOCK_IT__
#endif

No crash nor freeze but nothing append since I've unchecked the new layer output I don't know when the plug-inn stop…

Here's the output from the command line :

[ begin: clock: 0.69 ]
    [ flattening (active=1) ]
    [ flattening OK ]
[ read: clock: 11.7 (11.01) ]
[ Rescale from 12815,3092 to 12815,4638 ]
[ transposing (active=1) ]
[ transposing (active=0) ]
[ transpose OK ]
[ transpose OK ]
[ building visibility map ]
  [ inflating (active=1) ]

and the output of the top cmmand :

top - 16:00:33 up  6:42,  2 users,  load average: 0.07, 0.11, 0.07
Tasks: 137 total,   1 running, 136 sleeping,   0 stopped,   0 zombie
Cpu(s):  5.1%us,  1.5%sy,  0.0%ni, 93.3%id,  0.1%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2075432k total,   756160k used,  1319272k free,     3704k buffers
Swap:  3196892k total,   936608k used,  2260284k free,    69868k cached

as you can see there no problem with the swap file…

any other hint ?

Re: Error on large image Gimp 2.4.5 Kubuntu 8.04
UnNeuroneUnNeurone 1217630538|%e %b %Y, %H:%M %Z|agohover

If I got it right, the plugin exits after the "[ inflating (active=1) ]" step. Didn't it give you a segmantation fault, and an error message from gimp?
I ask because I don't understand what you mean by "No crash nor freeze but nothing append". Didn't the plugin crash?!?

Anyway, if this is correct and the plugin actually crashes after the inflate, then at least now I know exactly which area of the code to look at (BTW it's the most memory hungry…).
I already have found a little bug, actually, but, well, if you did catch that it's kind of hilarious, the odds of that event would really be tiny.
If it's not too much to ask, you could also try:

  • to do the same thing but without selecting the "resize auixiliary layers" option (if you didn'already try it - I see it's on form the plugin's output)
  • to go again in the library directory tree, in the file lqr/lqr_base.h, lines 35-37, and set to 1 the debug flag, so that they look like this:
#if 1
#define __LQR_DEBUG__
#endif

then make && make install the library and see what the output is when you do exactly the same steps as for the above report
  • to download the new (shiny!) lqr library beta version from here[removed as new version is out], install it (it shouldn't be necessary to recompile the plugin) and see how it goes
last edited on 1224815041|%e %b %Y, %H:%M %Z|agohover by UnNeurone + show more
unfold Re: Error on large image Gimp 2.4.5 Kubuntu 8.04 by UnNeuroneUnNeurone, 1217630538|%e %b %Y, %H:%M %Z|agohover
Re: Error on large image Gimp 2.4.5 Kubuntu 8.04
Anonymous (24.203.210.x) 1217770493|%e %b %Y, %H:%M %Z|agohover

If I got it right, the plugin exits after the "[ inflating (active=1) ]" step. Didn't it give you a segmantation fault, and an error message from gimp?
I ask because I don't understand what you mean by "No crash nor freeze but nothing append". Didn't the plugin crash?!?

No error message, it's like nothing append …..

I have try with the new library in the debug mode and here's the result of my try…

  • New layer ON
  • Scale canvas ON
  • Scale preservation ask ON
  • Seams lines OFF

width = 100% height = 150%

[ begin: clock: 1.14 ]
[ read: clock: 6.44 (5.3) ]
[ Rescale from 12815,3092 to 12815,4638 ]
[ transposing (active=1) ]
[ transposing (active=0) ]
[ transpose OK ]
[ transpose OK ]
[ building visibility map ]
  [ inflating (active=1) ]
  [ inflating (active=0) ]
  [ inflating OK ]

Plug-inn stop no error, no error in Gimp, the new layer is created but at the same size as the original


  • New layer ON
  • Scale canvas ON
  • Scale preservation ask OFF
  • Seams lines OFF

widht = 100% height = 150%

[ begin: clock: 1.3 ]
[ read: clock: 4.73 (3.43) ]
[ Rescale from 12815,3092 to 12815,4638 ]
[ transposing (active=1) ]
[ transpose OK ]
[ building visibility map ]
  [ inflating (active=1) ]
  [ inflating OK ]
[ visibility map OK ]
[ Rescale OK ]
[ resized: clock : 1748.13 (1743.4) ]
[ finish: clock: 1758.64 (10.51) ]

Works fine a bit of distrotion in the upper part of the picture less in the bottom.


  • New layer OFF
  • Scale canvas ON
  • Scale preservation ask OFF
  • Seams lines OFF

widht = 100% height = 150%

[ begin: clock: 0.78 ]
[ read: clock: 3.74 (2.96) ]
[ Rescale from 12815,3092 to 12815,4638 ]
[ transposing (active=1) ]
[ transpose OK ]
[ building visibility map ]
  [ inflating (active=1) ]
  [ inflating OK ]
[ visibility map OK ]
[ Rescale OK ]
[ resized: clock : 1431.95 (1428.21) ]
[ finish: clock: 1439.95 (8) ]

Works fine a bit of distrotion in the upper part of the picture less in the bottom.


ONLY ONE LAYER NO PRESERVATION MASK

  • New layer ON
  • Scale canvas ON
  • Scale preservation ask —-
  • Seams lines ON

widht = 100% height = 150%

[ begin: clock: 0.54 ]
[ read: clock: 2.29 (1.75) ]
[ Rescale from 12815,3092 to 12815,4638 ]
[ transposing (active=1) ]
[ transpose OK ]
[ building visibility map ]
  [ inflating (active=1) ]
  [ inflating OK ]
[ visibility map OK ]
[ Rescale OK ]
[ resized: clock : 1547.85 (1545.56) ]
[ finish: clock: 1555.5 (7.65) ]

Works fine a bit of distrotion in the upper part of the picture less in the bottom.

If you want to see what I men by a bit of distortion, I can put a sample on line

Re: Error on large image Gimp 2.4.5 Kubuntu 8.04
Anonymous (24.203.210.x) 1217864621|%e %b %Y, %H:%M %Z|agohover

In order to avoid the distortion, since my project is compose of 14 individual images, I have rescale each of the images at 140% of the height and then re-compose my panoramic vue. It went well except for tow on the images, so I have restarted Gimp with the command line and I received this error message plus 2 messages from The Gimp :

[ begin: clock: 1.09 ]
[ read: clock: 2.07 (0.98) ]
[ Rescale from 2504,3340 to 2504,4676 ]
[ transposing (active=1) ]
[ transposing (active=0) ]
[ transpose OK ]
[ transpose OK ]
[ building visibility map ]
  [ inflating (active=1) ]
  [ inflating (active=0) ]
  [ inflating OK ]
  [ inflating OK ]
[ visibility map OK ]
[ Rescale OK ]
[ resized: clock : 178.57 (176.5) ]
gimp-lqr-plugin: lqr_cursor.c :123 : lqr_cursor_next:  L'assertion « c->now < (c->o->w0 * c->o->h0) » a échoué.

I have repeated the same procedure at least three times with the same result and the same error message.

It seams strange to me that the same procedure with 14 images goes well with 12 only and in error with 2 ?

Re: Error on large image Gimp 2.4.5 Kubuntu 8.04
UnNeuroneUnNeurone 1217866544|%e %b %Y, %H:%M %Z|agohover

Thank you for your reports, I don't have much time these days but I'll get on these problems again as soon as possible.
I just didn't understand what was the difference in your settings between the first post, in which you had gimp crash + segmantation fault, and the one in which there were no output at all.
In the meanwhile, about your last problem (which is actually a new one, due to the library being a beta - I hope to have a fix soon), you could try not to scale the preservation mask. (BTW, are all of the 14 images the same size?)

unfold Re: Error on large image Gimp 2.4.5 Kubuntu 8.04 by UnNeuroneUnNeurone, 1217866544|%e %b %Y, %H:%M %Z|agohover
Re: Error on large image Gimp 2.4.5 Kubuntu 8.04
Anonymous (24.203.210.x) 1217870331|%e %b %Y, %H:%M %Z|agohover

There is no rush on those problems, take time you need and don't forget to enjoy the life also !!!

If I remember well the only difference between the 2 posts is that now I open The Gimp from the command line and working with compiled source. And now I'm using The Gimp version 2.4.6.

Yes all the original image are 2504 x 3340 only the preservation mask change …

Anyways the workaround that I use last give me good result, but it's a bit time consuming to rescale each individual image one by one …

Re: Error on large image Gimp 2.4.5 Kubuntu 8.04
UnNeuroneUnNeurone 1217957903|%e %b %Y, %H:%M %Z|agohover

New library beta version here[removed as new version is out] - the last problem you had should be fixed.
About the distorsion, you may try to play around with the rigidity setting in the Advanced tab, but I can't really tell without seeing a sample (a future version of the plugin - out soon - will have an interface for adding rigidity to specific areas, but using a low overall rigidity value may help already).

last edited on 1224814981|%e %b %Y, %H:%M %Z|agohover by UnNeurone + show more
unfold Re: Error on large image Gimp 2.4.5 Kubuntu 8.04 by UnNeuroneUnNeurone, 1217957903|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License