JEditorPane crashing( Out of Memory )

I'm trying to display an html document that is about 3MB, everytime I try it crashes, if I cut the size down to about 400KB it loads fine.
Is there some kind of limit to the size of a file the editorpane can handle?
         // load the class the creates the file
         LeadGenerator lg = new LeadGenerator();
        // get the editorPane from the report creator class.
     JScrollPane scrollPane = lg.getReport();
     scrollPane.setBounds(0, 0, dim.width,dim.height);
     jDesktopPane.add(scrollPane);
  // code snippet from the report creator class
public void LeadGenerator{
  // user picks a file name  "f"
  for( loop till the input file is done ){
     out.write("</BODY>"+"\r\n");
     out.write("</HTML>"+"\r\n");
     out.flush();
     out.close();
// method that returns the report in a scroll pane.
public JScrollPane getReport(){
          JScrollPane scrollPane = null;
          JEditorPane htmlWindow = new JEditorPane();
          htmlWindow.setEditable(false);
          try{
               java.net.URL reportPage = new java.net.URL("File:///"+f.toString());
               System.out.println(reportPage);
               if (reportPage != null) {
                    try {
                         htmlWindow.setPage(reportPage);
                    } catch (java.io.IOException e) {
                         javax.swing.JOptionPane.showMessageDialog(null,
                                   e.getLocalizedMessage());
                         e.printStackTrace();
               } else {
                    javax.swing.JOptionPane.showMessageDialog(null, "File not found ");
               scrollPane = new JScrollPane(htmlWindow);
               scrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
               scrollPane.setViewportView(htmlWindow);
               scrollPane.setVisible(true);
          }catch(MalformedURLException mfe){}
          return scrollPane;
     }

Is there some kind of limit to the size of a file the
editorpane can handle?I don't think so.

Similar Messages

  • Sequence-RenderOnly-Mixdown crashes - Out Of Memory

    Out of Memory trying to use FCE Sequence->RenderOnly->Mixdown.
    The video that crashes is 19:30 min in length (and others as well). Plenty of memory (actual=3GB: recognized as 2GB: SysSettings->Memory&Cache shows 1649Mb = 90%); Plenty of disk set as FCE Scratch - external FW400 drive with 228Gb available.
    Deleted the Scratch Audio cache folders before trying the mixdown.
    Suggestions?

    Thanks for your suggestions.
    I am running FCE 3.0.1 and QT 7.1.2.
    Yesterday I tried importing the raw files in two ways: (1)through MackTheRipper and (2)through the linux box/copying across the net. DropDV seems to be the only way to convert the raw files to .dv, so I used it. At that point QT can play the individual .dv files with no problem. FCE can open both sets of .dv files, and the waveform shows sound is present (which dragging the pointer along the timeline confirms.) FCE can play the individual .dv files through the Viewer with no problem.
    I added everything to the Timeline and started an audio mixdown. When FCE gave the OutOfMemory error, I ran vmmap through Terminal, and the process showed 3Gb from malloc (YIKES!), so I guess that it really is Out Of Memory!
    At your suggestion, I downloaded a copy of Cocktail and restarted. FCE again crashes with the same OOM error after ten minutes or so.
    This whole problem started because of audio dropouts in completed QT files. Unfortunately, I have pitched the .dv file sets for the projects that have completed successfully without the Mixdown - it would be informative to know whether Mixdown would work on them.
    I guess the next step seems to be to deepsix FCE and reinstall. (This is beginning to remind me of microsoft products...)

  • Manager keeps crashing - out of memory

    I'm getting tired of restarting oc4j due to it running out of memory. It seems I can work in the manager for a day or two and it crashes. I've increased the MaxPermSize from 512 to 1024, but that still isn't working. I'm sure I'm not the only one running into this since it's happening on more than one OVM environment. What are the typical configuration changes made to the manager either using the manager template or manager installer?

    keithrust wrote:
    Very interesting Avi. How much of the 12 GB of RAM are actually used? I'm using 2 since that's what the documentation called out. I suspect if I increase the RAM it would work better, which means to me the minimum requirements need to be increased.No idea, I'm afraid. We've never had a cause to look at the memory usage of that server, as we've never had any issues with it. I'm at home at the moment (ah, timezones) and it's a long weekend, so I'll only be back onsite next Tuesday.

  • IWeb crashing, Out of Memory

    I can't publish because iWeb is constantly crashing and Out of Memory which isn't true.
    Milan

    Try the following:
    delete the iWeb preference files, com.apple.iWeb.plist and com.apple.iWeb.plist.lockfile, that resides in your Home() /Library/Preferences folder.
    go to your Home()/Library/Caches/com.apple.iWeb folder and delete its contents.
    Click to view full size
    launch iWeb and try again.
    Happy Holidays

  • InDesign CS 6 keeps crashing "out of memory" ???

    Hi
    I am having trouble with InDesign CS 6.
    It does not respond. I can open a document, but as soon as I select a tool it starts hanging. I then have to use Windows task manager to end CS 6.
    After the 5th time of ending CS 6 and receiving the message "Adobe InDesign is out of memory "  I updated InDesign and recieved the following  error code:
    Adobe Extension Manager CS5 5.0 Update
    Update is not applicable. Error Code: U44M1P28.
    InDesign is still hanging and I still have to use Windows task manager to quit the program.
    Would it help if I reinstall InDesign?
    This has never happend to me before.
    Please help me with this, I have extreme amounts of work that needs to be completed this weekend as I am on a tight deadline for Monday morning
    (OS: Windows 8)

    OS? Are you patched to 8.0.2? Have you tried trashing the prefs? See Replace Your Preferences

  • Internet Explorer 5.1.7 Freezing / crashing/ out of memory

    I have regular crashes, randomly from 5 to 120 mins when on the internet.
    I have a G3 blue and white with 350mhz processor running 9.2.2 with 512Mb ram. Internet Explorer 5.1.7.
    I have always had problems with crashing on this machine even from new when it originally ran an earlier Os9 and earlier Internet Explorer software on dial up 56k.I am now on Broadband.
    I cannot explain why i get these crashes so frequently. I have tried giving internet explorer program 50Mb of ram.I have adjusted cache size ranging from zero (broadband) up to 50Mb.I have played around with virtual memory on/off, but still i have crashes. I have all the relevant software updates for my machine also.
    If it does not freeze completely then it exits from Explorer and i get Type 2 or Type 3 errors and have to restart the machine instead.
    Could it be that i have problems with my Ram installed in my machine ?
    I have tried running my machine with only Mac Os base extensions installed but this also crashes regularly.
    I have also wiped my hard drive and done fresh installations but i still have problems.
    Please Help ! before i pull out or my hair or throw my machine out the window and buy a Windows PC ( Insanity setting in ).

    paul1968,
    Welcome to Apple Discussions.
    This may be of some help: http://docs.info.apple.com/article.html?artnum=106874
    Have you tried another browser?
    I found IE 5.1.7 better than earlier versions but still prone to crash so changed to WaMCom from http://wamcom.org/ and got much better results (it is based on Mozilla 1.3.1).
    Some prefer iCab 3.0 from http://www.icab.de/
    Every Mac browser is listed here: http://darrel.knutson.com/mac/www/browsers.html
    Michael
    EDIT and this may be useful if you haven't seen it already: http://discussions.apple.com/thread.jspa?threadID=268561&tstart=0

  • Pcdrcui.exe crashes out of memory

    I've expanded the machine to 12 GB of memory.
    PCDRCUI.EXE consumes all available memory and then crashes. Off hand I do not think this is proper behavior.
    4319-2ru machine Win 7. Patched up to date.
    {^_^}

    Hi, Wizardess
    I did some research and found this thread from Microsoft that may help. This .exe is a part of PC Doctor, which has caused issues like this on other user's machines. The Microsoft thread pretty much recommends uninstalling the program, which, if you do not use it, might not be a bad idea, in my opinion. There are also some other suggestions available on the thread if you would like to try those.
    Hope it helps,
    Adam
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it.

  • Running out of memory - where do I not free objects?

    Hello there,
    I am analyzing data on an Itanium with 1GB of memory using the JSDK 1.4 (Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b19)). I have a lot of memory troubles reading data as small as 120MB and processing it (using the Pattern class and ArrayList or static String array), so I wrote this little program to test the memory:
                   print("Starting memcheck - press key...");
                   int border= 100000;
                   int bCount = border;
                   int limit = 18000000;
                   String tst = new String("Hi, Tester!");
                   System.in.read();
                   print("Key for 1-String-Buffer...");
                   System.in.read();
                   StringBuffer checkSt = new StringBuffer(limit*tst.length());
                   print("1-String-Buffer created. Key for clearance...");
                   System.in.read();
                   checkSt = null;               
                   System.gc();
                   print("Key for Strings...");
                   System.in.read();
                   String [] checkS = new String[limit];
                   for (int i=0; i<limit; i++) {
                        checkS[i] = (new String(tst));
                        if (--bCount == 0) {
                             bCount = border;
                             print("Created: "+i+" strings!");
                   print("Strings created. Key for clearance...");
                   System.in.read();
                   checkS = null;               
                   System.gc();As I originally thought, this only uses about 800MB with the static String array, 471MB with the StringBuffer, and crashes (out of memory) when being permitted up to 1000MB with ArrayList.
    The odd thing is though, that when I put the part with the static String array after the StringBuffer part, it crashes too (out of memory). So I guess, that I have not fully understood how to free memory in java yet and that I am overlooking something here - can someone please help me? I have already tried for more than a week to fix this problem, but I must be overlooking the obvious...
    According to my math, if I read 100MB, it should at most use 2*100MB+overhead (2* because of Java's internal unicode representation). Where am I doing wrong?
    Thanks in advance!

    Double posted,
    http://forum.java.sun.com/thread.jsp?forum=31&thread=409677&tstart=0&trange=15

  • RoboHelp 9 gives an out of memory error and crashes when I try to import or link a Frame 10 file or

    I have Tech Suite 3. If I start a new RoboHelp project and try to import or link Frame files, RoboHelp tries for a while, then I get an Out of Memory error and the program crashes.
    I opened one of the sample projects and was able to link to one of my frame files without any problem, so it seems to be an issue with creating something new.
    Any suggestions?

    It happens when I create a new project and then try to import or link frame docs to make up the content. It starts scanning, then crashes. I did get it to the conversion setting page once, but no further.
    It does not happen if I open one of the supplied example projects and link a file. But then it doesn't let me choose, during import, any style mapping. And I can't delete the sample project fold
    Twice now it has told me when I tried to import (not link, but import) that my .fm file could not be opened, and told me to verify that Frame is installed (it is) and that the file is a valid frame file (it is).
    The docs and project are in separate folders on my C: drive.

  • Crashing and 'out of memory' issues on new system

    having 'out of memory' errors and crashing while rendering on new FCP system. Here are system specs:
    Two ATI Radeon HD 5770 video cards
    Processor Name: Quad-Core Intel Xeon
    Processor Speed: 2.4 GHz
    Number Of Processors: 2
    Total Number Of Cores: 8
    L2 Cache (per core): 256 KB
    L3 Cache (per processor): 12 MB
    Memory: 16 GB

    Pull one of the video cards.
    FCP hates dual card systems.
    x

  • Adobe Illustrator "out of memory" when saving then crashes

    We have a user who uses Illustrator.  Every once and a while she will have the issue where it says that it is out of Memory (RAM).  I checked and at that time she had over 4Gb of physical memory left and the Swap was at 0 of 8.6Gb.  Am I reading the memory wrong or is something else the issue?  Also the CPU was at 5% used and the hard drive has almost 600Gb free.  She is using a USB 3.0 external hdd to open and save to.  When it crashes the below error is given.

    It doesn't happen every time and it is different files.  I can't get the user to only keep stuff on the computer.  Do you think that is the issue?  It used to work fine for months then now it just started doing this on a pretty regular basis, but I can't find anything that I can do to make it repeatable.

  • JEditorPane Out of memory

    Iam having problems with a JEditorPane. I create this object to display a large file with data for my client visualization of the data; nothing else. The file is rather large and I run out of memory. The reason to me seems to be that for every line I create I add a listener that, on cursor on that line makes the line of a different color, and another objet that adds a line number. Of course, when I create a 250000 line JEditorPane with all those other objects added to it, the jvm runs out of memory.
    Now, I think the solution is to create a buffer or truncate the file somehow to display a small percentage of it, say 5000 lines; but don't know how. Any ideas?
    Thanks!

    Is there some kind of limit to the size of a file the
    editorpane can handle?I don't think so.

  • Out of memory error. Throughput zero. Server crashes

    Hi,
    We have this issue about 'java.lang.outofmemory' error, which brings down the
    nodes one at a time. The logs don't help at all.
    At the time of crash follows:
    - Memory shows fine on weblogic console. It cruises flat at approx 160 megs. We
    have ms
    and mx heap of 512megs.
    - jdbc connections on the console show 15 and we have set initial of 15 and max
    of 95.
    - throughput shows zero on the console
    - queue length just spikes and goes like 50+ till the server finally crashes.
    - weglogic.log has an entry of jdbc connection leak, which doesn't make sense.
    - then a large number of out of memory statements are printed out.
    It is our existing application, which worked fine. We put in small additional
    features which don't really do any big thing. We have already checked our connection.close()
    statements. We are closing all the connections to return them back to the pool.
    Our environment is as follows:
    OS: Win2k
    Weblogic: 6.1 sp4
    Clustered with 2 nodes
    Any help would be highly appreciated.
    Abbas

    "siauwea" <[email protected]> wrote in message news:[email protected]...
    >
    HI,
    here i only want to inform that i'm using JRockit java version "1.4.1_03" rather
    than jdk.
    I wonder is it "-XX:MaxPermSize" cannot be set in JRockit??This option is not available for JRockit - may be it uses different heap structure.
    When your server runs out of memory - how much heap is available.
    Regards,
    Slava Imeshev
    "siauwea" <[email protected]> wrote:
    Hi,
    When i added "-XX:MaxPermSize=128m" in startWeblogic.cmd, why ther server
    will
    come out "Unknown option: -XX:MaxPermSize=128m"??
    Here is what i put in startWeblogic.cmd:
    %JAVA_HOME%\bin\java -XX:MaxPermSize=128m %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS%
    -Dweblogic.Name=%SERVER_NAME% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE%
    -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" -DEA_HOME=C:\bea\user_projects\domains\TrekEasy1.0
    -DCONF_MODE=SERVER weblogic.Server
    Cheers,
    Siau Wea
    "siauwea" <[email protected]> wrote:
    Hi Abbas,
    I meet the same problem as you, get the java.lang.OutOfMemory,
    you said that u added -XX:MaxPermSize=128m then problem resolved,
    but i dont know where should i put this info.
    Some say put it in startup parameter, but i dont know where is it.
    Can you please tell me clearly which file i should add this line??
    Is it in startWeblogic.cmd or other file??
    Can you show me all of the setting you did in this jvm option??
    Urgent!!
    Thanks!!
    Siau Wea
    "Abbas" <[email protected]> wrote:
    Slava,
    Thanks for the info. We added -XX:MaxPermSize=128m and it worked. Bingo.
    As you said, the parameter MaxPermSize specifies memory for long lived
    objects.
    Also, what I heard from someone in BEA, that this memory allocationis
    something
    aside from the heap assigned with -ms and -mx parameters. What I would
    really
    appreciate is if anyone can talk about any benchmark for this parameter.
    The jvm
    tuning recommendations for wls 6.1 on BEA's website (http://e-docs.bea.com/wls/docs61/perform/JVMTuning.html#1104200)
    doesn't mention this.
    Thanks in advance.
    Abbas
    "Slava Imeshev" <[email protected]> wrote:
    Abbas,
    Try to add -XMaxPermSize=64M to JVM startup parameters. That will
    increase heap size allocaed for long-living objects. If you don't
    have
    an
    application-caused memory leak, this should fix the problem.
    Regards,
    Slava Imeshev
    "Abbas" <[email protected]> wrote in message news:[email protected]...
    Hi,
    We have this issue about 'java.lang.outofmemory' error, which bringsdown the
    nodes one at a time. The logs don't help at all.
    At the time of crash follows:
    - Memory shows fine on weblogic console. It cruises flat at approx160 megs. We
    have ms
    and mx heap of 512megs.
    - jdbc connections on the console show 15 and we have set initial
    of
    15 and max
    of 95.
    - throughput shows zero on the console
    - queue length just spikes and goes like 50+ till the server finallycrashes.
    - weglogic.log has an entry of jdbc connection leak, which doesn'tmake sense.
    - then a large number of out of memory statements are printed out.
    It is our existing application, which worked fine. We put in smalladditional
    features which don't really do any big thing. We have already checkedour connection.close()
    statements. We are closing all the connections to return them backto the pool.
    Our environment is as follows:
    OS: Win2k
    Weblogic: 6.1 sp4
    Clustered with 2 nodes
    Any help would be highly appreciated.
    Abbas

  • FMLE Out of Memory Crash

    I'm using an AverTV Hybrid Volar Max USB tuner connected to my cable box via composite cables, and my computer is Win7 64bit running in Bootcamp on an iMac (Intel Core2 Duo 2.30GHz with 4GB RAM).  I can select and stream video from the Aver device using FMLE 3.1 fine.  But when I try to select the Aver device as the Audio Input in FMLE, FMLE hesitates for a few seconds and then crashes.  The initial error message that I got when this first happened was ...
    FMLE - out of memory
    And then another Windows error message ...
    Microsoft Visual C++ Runtime Library
    Runtime Error!
    Program: C:\Program Files (x86) \ A...
    R6016
    -Not enough space for thread data
    This sounds like it may be a hardware issue, but I'd like to get any feedback possible on potential software workarounds or machine configuration changes that I might try.  I have looked at the Windows Task Manager when FMLE is running and, during video-only streaming, CPU usage is high (approx 80-90%).  But the FMLE crash occurs even before I've started streaming; it happens right after I simply select the Aver device in the Audio dropdown.  Any ideas?

    No i am saying FMLE 3.2 Win will work properly on Windows based machine since it is not certified and tested on BootCamp Windows OS. And already CPU usage of FMLE on that machine is high. We recommend only 75% CPU power consumption of a system for FMLE to work properly.
    So first of all you need to take high power Windows based Machine to support your encoding.

  • How can I trap Out- of-Memory data with no crash after Crop Tool fails to finish?

    The Photoshop 6 beta program froze while using the crop tool on an image size of 8052x5368. I tried to save a file in another program while waiting for the crop to finish (usually about 1 second) and got an out-of-memory error. I checked the D: driv where the file in the other program was saved. I have a flash C: drive and is not selected in the scratch disk preference. Two scratch disks, E: and G:, are selected with a total of about 800GB free space. After closing PS6Beta, the D: drive recovered about 164GB. The D: drive is not selected in the Scratch Disk list. I work with larger files and anticipate this problem again.How can I trap information for Adobe next time?
    Adobe Photoshop Version: 13.0 (13.0 20120305.m.415 2012/03/05:21:00:00) x32
    Operating System: Windows 7 64-bit
    Version: 6.1 Service Pack 1
    System architecture: Intel CPU Family:6, Model:14, Stepping:5 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Physical processor count: 4
    Logical processor count: 8
    Processor speed: 2664 MHz
    Built-in memory: 16375 MB
    Free memory: 13523 MB
    Memory available to Photoshop: 3255 MB
    Memory used by Photoshop: 60 %
    Image tile size: 128K

    The problem remains for how the c: and d: drives were not selected in the scratch disk list. I tried again with only E: and G: drives and the file completed after 20 minutes with a 27.7G file. It would have been an ovious problem if the "info" diaglog box included the projected file size and/or dimensional units (px or in) because I use the dialog for verifying the size of the image. I wanted to make a 300 x400px image rather than a 300x400inch image( 90000x120000px).
    Thanks for your quick help.

Maybe you are looking for

  • Windows Updater Not Installing and Troubleshooter Wizard Is Not Working???

     I am in need help desperately!         I have tried to install the Windows 7 latest update since late October 2014 and every time that I have tried it has failed, this is messing with certain programs to either not run such as my Troubleshooter, lea

  • Very disappointed customer

    I have recently moved house and had such an awful experience moving my BT service with me. I was on Fibre at my old place and called the house move team and gave them a months notice to switch the service. The only issue I would have would be no fibr

  • IPhoto has stopped running for me.

    When I try to open the iPhoto I get the following message: "Aperture library needs to be upgraded.To open this Aperture library in iPhoto, you need Aperture 3.3 or later. Click Update Aperture to buy the latest version of Aperture from the Mac App St

  • Address in "To" field not auto completing

    When I type a contact name in the "To" field that is in my address book, the e-mail address is not auto completing. I had this happen before and figured it out but this time my memory isn't working. Thanks. Clint

  • Is there a master switch to set all of my media players?

    I can't find any setting that prevents iTunes from opening a CD when I insert it. Is there a way to permanently have X application open a CD the same way I can click on a files Get Info and select Open With? The reason I'm posting here instead of the