Menu

#6 Problem with large files

_PovClipse_v1.0.1
open
7
2007-12-14
2007-12-13
No

I often have very large files (tens of MB) in my POV project (meshes exported from some other application). PovClipse is very slouw then, when I try to open any file (even the small ones) from the project, whole Eclipse stucks for a long period of time. I also got out of memory error (on machine with 2GB RAM). When I remove all large files from project dir, it works good.

Discussion

  • Vaclav Cermak

    Vaclav Cermak - 2007-12-13

    Logged In: YES
    user_id=97178
    Originator: YES

    Follow-up information: I moved large file out of project directory (this helped), but the problem is back when I included it into other project file. I have all "Typing" and "Syntax checking" helpers turned off.

     
  • Vaclav Cermak

    Vaclav Cermak - 2007-12-14

    Logged In: YES
    user_id=97178
    Originator: YES

    Now the error evolved: I get out of memory error when I try to start Eclipse :(

    Part of eclipse .log file attached
    File Added: .log

     
  • Vaclav Cermak

    Vaclav Cermak - 2007-12-14
     
  • Vaclav Cermak

    Vaclav Cermak - 2007-12-14
    • priority: 5 --> 7
     
  • Wolfgang Moestl

    Wolfgang Moestl - 2007-12-14
    • assigned_to: nobody --> wolf_m
     
  • Wolfgang Moestl

    Wolfgang Moestl - 2007-12-14

    Logged In: YES
    user_id=1552782
    Originator: NO

    I guess the file is too large for the Outline View processing.

    For now you can do two things:
    1. tell Java to use more heap space by including the -Xmx and -Xms flags to the comandline starting Eclipse (type 'java -X' in order to get the help screen for these options)
    2. Rename your large data files. If they are not having the extension '.pov' or '.inc' PovClipse is not treating them as Povray SDL files, thus no Outline View is generated for the file.

    I think I have to implement an option for disabling the Outline view on a per-file base.

    Would you please send me one of these large files for testing reasons?
    I drop you a seperate mail with my email address.

    - Wolf

     
  • Vaclav Cermak

    Vaclav Cermak - 2008-01-03

    Logged In: YES
    user_id=97178
    Originator: YES

    Tried following hack: renamed files to *.povmesh, as you mentioned in 2., and including them with concat function:

    #include concat("data/", "model01.povmesh")

    Simpler version

    #include concat("data/model01.povmesh")

    does not work.

    Now I can have all functions on and it works (with some incorrect errors about undefined objects from PovClipse, of course).

     
  • Wolfgang Moestl

    Wolfgang Moestl - 2008-01-03

    Logged In: YES
    user_id=1552782
    Originator: NO

    In the next PovClipse Version (later than 1.0.1) you can add annotations to SDL files:
    1. no-outline-view (disables the outline view)
    2. no-keyword-check (disables the keyword & declaration check)

    That helps a lot, but the file has still to be processed in oder to do the syntax coloring.

    I'm going to profile the file editor, let's see how I can speed up things further more.

    Why are you using concat? Is '#include "data/model01.povmesh"' not working?

     
  • Nobody/Anonymous

    Logged In: NO

    When I use concat in mentioned way, PovClipse don't reach theese large files and don't try even syntax highliting.

    Annotations are good idea.

     

Log in to post a comment.