[Solved] Java program was stopped unexpectedly

Java, C++, C#, Delphi, ??? - Using the UNO bridges

[Solved] Java program was stopped unexpectedly

Postby VV_RIP » Tue Oct 08, 2013 8:30 pm

Hi! I'm using OO API (Open Ofiice v3.2) to create reports (OO Writer). But ... when OpenOffice process took about 260 MB of RAM, it stopped and wasn't work! If I stop the process, It will start working. Then it works some time, and stop again! What is it? And why OpenOffice takes very many memory? :(
P.s. I'm sorry for mistakes, my knowlarge of English is bad :( ... I want to believe, that you can understand me :) .
Last edited by Hagar Delest on Sat Nov 02, 2013 11:29 pm, edited 1 time in total.
Reason: tagged solved.
OpenOffice 3.4.1 on Windows 7
VV_RIP
 
Posts: 11
Joined: Sun May 19, 2013 1:58 pm

Re: Java program was stopped unexpectedly

Postby VV_RIP » Thu Oct 10, 2013 5:14 pm

Oh, I'm sorry, I mistake. My OO version is 3.4.1, if this will help.
OpenOffice 3.4.1 on Windows 7
VV_RIP
 
Posts: 11
Joined: Sun May 19, 2013 1:58 pm

Re: Java program was stopped unexpectedly

Postby RoryOF » Thu Oct 10, 2013 5:34 pm

Try increasing memory options in /Tools /Options/ OpenOffice.org : Memory, then restart OpenOffice to apply this change. It may help. I doubt it will do any harm.
Apache OpenOffice 4.1.7 on Xubuntu 18.04.3 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 29866
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Java program was stopped unexpectedly

Postby VV_RIP » Thu Oct 10, 2013 6:37 pm

Yes! Thanks!
I installed OO 4.0.1. But ... unfortunately, it has limit 256MB of RAM :( It takes 210-220MB in real, and after this, sometimes I can't open OO Writer, while OO process is working.
Also it has one setting which clear RAM with 1 minute interval, but it isn't work ... So, it's bad, I need kill process from time to time ...
OpenOffice 3.4.1 on Windows 7
VV_RIP
 
Posts: 11
Joined: Sun May 19, 2013 1:58 pm

Re: Java program was stopped unexpectedly

Postby RoryOF » Thu Oct 10, 2013 6:48 pm

The solution may be to compile a version of OpenOffice for yourself, which uses more RAM allocation. The code is available at
[url]svn co https://svn.apache.org/repos/asf/openoffice/trunk[/url]
with compile notes at
http://wiki.openoffice.org/wiki/Documentation/Building_Guide_AOO

As far as I know there is about 300MB of source code, so I've never looked into customisation or compiling.
Apache OpenOffice 4.1.7 on Xubuntu 18.04.3 (mostly 64 bit version) and very infrequently on Win2K/XP
User avatar
RoryOF
Moderator
 
Posts: 29866
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Java program was stopped unexpectedly

Postby VV_RIP » Fri Oct 11, 2013 2:56 pm

Oh ... It's bad solution for me ... I do open source library ...
OpenOffice 3.4.1 on Windows 7
VV_RIP
 
Posts: 11
Joined: Sun May 19, 2013 1:58 pm

Re: Java program was stopped unexpectedly

Postby VV_RIP » Sat Nov 02, 2013 7:27 pm

Omg ... I mistake! I forgot close documents after saving ... :lol: I found this on one of topics:

Code: Select all   Expand viewCollapse view
        XCloseable xclosable =
                (XCloseable)UnoRuntime.queryInterface(XCloseable.class, doc);
        xclosable.close(true);


But i didn't see this nowhere. It's strange ... May be I need read documentation more and mindfully. :)
OpenOffice 3.4.1 on Windows 7
VV_RIP
 
Posts: 11
Joined: Sun May 19, 2013 1:58 pm


Return to External Programs

Who is online

Users browsing this forum: No registered users and 2 guests