Thread Locked This thread is locked - replies are not allowed.


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 20 - Pages: 2 [ Previous | 1 2 ] - Last Post: 10 Aug 21, 14:44 Last Post By: davidekholm
davidekholm

Posts: 3,812
Registered: 18-Oct-2002
Re: "Make Album" completes but still reports "Java heap space" error
Posted: 7 Aug 21, 18:19   in response to: jimberry in response to: jimberry
 
jimberry wrote:
However, I still find it puzzling that "Smooth" scaling method resulted in a memory problem but with "Medium" the problem image was just ignored?

A part of what "medium" scaling does is applying subsampling on reading image, for instance skipping every 2:nd pixel, then it does quick scaling by 2 until a final step of whatever scaling is needed to reach the final size. This subsampling technique only consumes 1/4 of the RAM needed to read every pixel.
jimberry

Posts: 493
Registered: 30-Aug-2004
Re: "Make Album" completes but still reports "Java heap space" error
Posted: 7 Aug 21, 23:01   in response to: davidekholm in response to: davidekholm
 
Aaagh!!
Because it appeared that the finished album didn't contain two versions of the Gimp file I assumed that it was being ignored in the "medium" scaling run, but in fact, because the two input files had the same filename with different suffixes the XCF version was converted to PNG and so overwrote the PNG version in the slides directory.
jimberry

Posts: 493
Registered: 30-Aug-2004
Re: "Make Album" completes but still reports "Java heap space" error
Posted: 9 Aug 21, 11:15   in response to: davidekholm in response to: davidekholm
 
davidekholm wrote:
... ... I suspect that you need to assign more RAM to the jAlbum process. Adjust the -Xmx setting to 4000M.
The jAlbum.desktop file at ~/.local/share/applications$ contains the line

Exec=jAlbum %f

Does this mean that I have to find where the required value for %f is stored and change that to have the correct value for -Xmx ( 4000M) ?

Or should I just change "%f" to the complete parameter list?

Or just always use the command line?
davidekholm

Posts: 3,812
Registered: 18-Oct-2002
Re: "Make Album" completes but still reports "Java heap space" error
Posted: 9 Aug 21, 14:07   in response to: jimberry in response to: jimberry
 
jimberry wrote:
davidekholm wrote:
... ... I suspect that you need to assign more RAM to the jAlbum process. Adjust the -Xmx setting to 4000M.
The jAlbum.desktop file at ~/.local/share/applications$ contains the line

Exec=jAlbum %f

Does this mean that I have to find where the required value for %f is stored and change that to have the correct value for -Xmx ( 4000M) ?

Or should I just change "%f" to the complete parameter list?

Or just always use the command line?

I'd look for some "jAlbum" file that's executable. I'm confused about this as my Mint Linux installation doesn't look like yours. My Exec= line looks like this as you remember:

Exec=/usr/lib/jalbum/jre64/bin/java -Xmx1200m -DuseDesktop=true -jar /usr/lib/jalbum/JAlbum.jar
. Try using the same or try locating some "jAlbum" shell script file that probably contains the -Xmx parameter. What Linux system are you using and what jAlbum archive did you install?
jimberry

Posts: 493
Registered: 30-Aug-2004
Re: "Make Album" completes but still reports "Java heap space" error
Posted: 9 Aug 21, 16:18   in response to: davidekholm in response to: davidekholm
 
davidekholm wrote:
I'd look for some "jAlbum" file that's executable. I'm confused about this as my Mint Linux installation doesn't look like yours. My Exec= line looks like this as you remember:
Exec=/usr/lib/jalbum/jre64/bin/java -Xmx1200m -DuseDesktop=true -jar /usr/lib/jalbum/JAlbum.jar
. Try using the same or try locating some "jAlbum" shell script file that probably contains the -Xmx parameter. What Linux system are you using and what jAlbum archive did you install?
I am using Ubuntu 20 04 LTS which uses the .deb archive.
I am sure I have years ago been able to alter a full "Exec=" line just like you describe, but where is it? If I open the file manager, I can see jAlbum.desktop which contains the "Exec=jAlbum %f" line.
But I thought the file should be "Jalbum.desktop" which I could see if I opened the file manager as Administrator and I think it does have the Exec command with all the parameters present. But although I could type in the intended change to "4000M" I couldn't save the file, and when looking to change the permissions in a Terminal, it "doesn't exist".
It is not a big issue as I don't make many albums these days, but it does provoke my curiosity.
:)
davidekholm

Posts: 3,812
Registered: 18-Oct-2002
Re: "Make Album" completes but still reports "Java heap space" error
Posted: 10 Aug 21, 14:44   in response to: jimberry in response to: jimberry
 
I hope you can get help from some more Linux savvy person than I. You can always try running the start-jAlbum.sh shell script.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums