Menu

#559 Slow performance on Ubuntu

_FreeMind_0.9.0
closed-invalid
Eric L.
Linux (68)
5
2008-03-31
2008-01-20
No

I'm using Ubuntu 7.10 with latest updates.
Running
java version "1.6.0_03"
Java(TM) SE Runtime Environment (build 1.6.0_03-b05)
Java HotSpot(TM) Server VM (build 1.6.0_03-b05, mixed mode)

The entire application feels slow. Moving the sliders, adding stuff on an empty canvas is a lot slower then it is on Windows.

Every action I do spams following in console:
(<unknown>:8818): Gtk-CRITICAL **: gtk_paint_box: assertion `style->depth == gdk_drawable_get_depth (window)' failed

Maybe this helps.

Discussion

  • Eric L.

    Eric L. - 2008-01-25

    Logged In: YES
    user_id=318488
    Originator: NO

    Hi,

    first thing you should do is shut off the Gtk Look&Feel (see http://freemind.sourceforge.net/wiki/index.php/FreeMind_on_Linux#FreeMind_seems_broken_and_I_have_the_Gtk_Look.26Feel\) and the 3D acceleration (http://freemind.sourceforge.net/wiki/index.php/FreeMind_on_Linux#When_resizing_the_FreeMind_window.2C_the_inner_field_doesn.27t_resize_properly_.28or_other_GUI_strangeness.29), and check if you still have the said issues.

    Eric

     
  • Eric L.

    Eric L. - 2008-01-25
    • labels: --> Linux
     
  • Eric L.

    Eric L. - 2008-01-25
    • assigned_to: nobody --> ewl
     
  • Andries Inze

    Andries Inze - 2008-02-08

    Logged In: YES
    user_id=938235
    Originator: YES

    This is indeed fixed when I cut the 3d acceleration.

    Andries

     
  • Eric L.

    Eric L. - 2008-02-10

    Logged In: YES
    user_id=318488
    Originator: NO

    Hi,

    I found the following article:
    http://weblogs.java.net/blog/campbell/archive/2005/07/strcrazier_perf.html

    Does it solve your problem if you edit freemind.sh and add *one* of the following parameters to the java call at the end of the script:
    -Dsun.java2d.opengl=False
    -Dsun.java2d.opengl=True
    (I assume setting it to False is the right thing, but I'm not sure)

    It would be also interesting to know if you get the same symptoms with another Java program like http://jedit.sf.net/

    Cheers, Eric

    PS: interestingly enough there are similar issues under Windows, see http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6392553

     
  • Andries Inze

    Andries Inze - 2008-02-13

    Logged In: YES
    user_id=938235
    Originator: YES

    Adding the parameter does not change anything. Still feels slow.

    Wasn't quite sure, did it like following:
    "${JAVACMD}" -Dfreemind.base.dir="${freedir}" -cp "${CLASSPATH}" -Dsun.java2d.opengl=False freemind.main.FreeMindStarter "$@"
    "${JAVACMD}" -Dfreemind.base.dir="${freedir}" -cp "${CLASSPATH}" -Dsun.java2d.opengl=True freemind.main.FreeMindStarter "$@"

    In jedit:
    Could not find any slowlyness in this program, with 3d effects.
    In the plugin manager there is a similar horizontal slider, which works very fast.

    Greetz

     
  • Eric L.

    Eric L. - 2008-02-24

    Logged In: YES
    user_id=318488
    Originator: NO

    Hi,

    I found the following link: http://java.sun.com/j2se/1.5.0/docs/guide/2d/flags.html

    You could try to play around with it.

    Two ideas for now:
    - set -Dsun.java2d.opengl=True and start FreeMind from the console in order to check "whether the OpenGL-based pipeline is initialized successfully".
    - try the trace function, and see if something meaningful comes out of it.

    And do you get the same symptoms if you use Java 5?

    Eric

     
  • Eric L.

    Eric L. - 2008-02-24

    Logged In: YES
    user_id=318488
    Originator: NO

    While I'm at it, which graphic driver are you using? (check xdriinfo if you have doubts)

    Eric

     
  • Eric L.

    Eric L. - 2008-03-31
    • status: open --> closed-invalid
     
  • Eric L.

    Eric L. - 2008-03-31

    Logged In: YES
    user_id=318488
    Originator: NO

    Hi,

    I got my hand on a system with 3D acceleration (Ubuntu Gutsy 7.10, java version "1.5.0_13", GNOME and Normal/Extra visual effects in the Appearance preferences) and FreeMind does only show an empty window though it reacts to keyboard commands (e.g. Ctrl-N for new map). I tried all of the parameters without any effect.
    One workaround is to shutoff the visual effects, start FreeMind, shut on the visual effects again (and start again if you close FreeMind in the mean time).
    More practicable is to set the variable AWT_TOOLKIT=MToolkit before starting FreeMind as described under http://freemind.sourceforge.net/wiki/index.php/FreeMind_on_Linux#When_resizing_the_FreeMind_window.2C_the_inner_field_doesn.27t_resize_properly_.28or_other_GUI_strangeness.29

    Conclusion: it's definitely a Java issue and I close the bug.

    Eric

     

Log in to post a comment.