Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
View Bug Activity | Format For Printing | XML | Clone This Bug
When I run freemind-0.8.0-r1 I get the following error "Looking for user properties: /home/peter/.freemind/user.properties User properties not found. It will be automatically created. Done. Default (System) Look & Feel: com.sun.java.swing.plaf.gtk.GTKLookAndFeel /usr/share/themes/Clearlooks/gtk-2.0/gtkrc:49: Engine "clearlooks" is unsupported, ignoring Warning: the font you have set as standard - null - is not available. [Freemind-Developer-Internal-Warning (do not write a bug report, please)]: Tried to get view without being able to get map module. Jul 30, 2006 4:02:51 AM freemind.modes.ModesCreator getAllModes INFO: Modes:[freemind.modes.browsemode.BrowseMode, freemind.modes.filemode.FileMode, freemind.modes.mindmapmode.MindMapMode] Jul 30, 2006 4:02:51 AM freemind.modes.ModesCreator getMode INFO: Initializing mode MindMap User patterns file /home/peter/.freemind/patterns.xml not found. Jul 30, 2006 4:02:51 AM freemind.modes.mindmapmode.MindMapController <init> INFO: createIconActions Jul 30, 2006 4:02:51 AM freemind.modes.mindmapmode.MindMapController <init> INFO: createNodeHookActions" It seems to be a font error. I will attach the relevant emerge --info and package.env, java-config-2 output files below.
Created an attachment (id=93040) [edit] Freemind Package.env
Created an attachment (id=93042) [edit] emerge --info
I removed the following line from the ebuild and it has the following message, difference being, it starts up this time: "=virtual/jdk-1.5*" The console messages are as below: "Looking for user properties: /home/peter/.freemind/user.properties User properties found. Default (System) Look & Feel: com.sun.java.swing.plaf.gtk.GTKLookAndFeel /usr/share/themes/Clearlooks/gtk-2.0/gtkrc:49: Engine "clearlooks" is unsupported, ignoring Warning: the font you have set as standard - null - is not available. [Freemind-Developer-Internal-Warning (do not write a bug report, please)]: Tried to get view without being able to get map module. Jul 30, 2006 4:51:51 AM freemind.modes.ModesCreator getAllModes INFO: Modes:[freemind.modes.browsemode.BrowseMode, freemind.modes.filemode.FileMode, freemind.modes.mindmapmode.MindMapMode] Jul 30, 2006 4:51:51 AM freemind.modes.ModesCreator getMode INFO: Initializing mode MindMap User patterns file /home/peter/.freemind/patterns.xml not found. Jul 30, 2006 4:51:52 AM freemind.modes.mindmapmode.MindMapController <init> INFO: createIconActions Jul 30, 2006 4:51:52 AM freemind.modes.mindmapmode.MindMapController <init> INFO: createNodeHookActions Jul 30, 2006 4:52:39 AM freemind.modes.mindmapmode.MindMapController <init> INFO: mindmap_menus Jul 30, 2006 4:52:39 AM freemind.modes.mindmapmode.MindMapController <init> INFO: MindMapPopupMenu Jul 30, 2006 4:52:39 AM freemind.modes.mindmapmode.MindMapController <init> INFO: MindMapToolBar Jul 30, 2006 4:52:39 AM freemind.modes.mindmapmode.MindMapController <init> INFO: setAllActions Jul 30, 2006 4:52:39 AM freemind.modes.ModesCreator getMode INFO: Done: Initializing mode MindMap [Freemind-Developer-Internal-Warning (do not write a bug report, please)]: Tried to get view without being able to get map module. [Freemind-Developer-Internal-Warning (do not write a bug report, please)]: Tried to get view without being able to get map module." Still looks like an error with a font setting but the program works now. The java-config-2 output is as below: "1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2] (/usr/share/java-config-2/vm/blackdown-jdk-1.4.2) 2) Blackdown JRE 1.4.2.03 [blackdown-jre-1.4.2] (/usr/share/java-config-2/vm/blackdown-jre-1.4.2) 3) Sun JDK 1.4.2.12 [sun-jdk-1.4] (/usr/share/java-config-2/vm/sun-jdk-1.4) *) Sun JDK 1.5.0.07 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5) 5) Sun JDK 1.6_beta2 [sun-jdk-1.6] (/usr/share/java-config-2/vm/sun-jdk-1.6) 6) Sun JRE 1.5.0.07 [sun-jre-bin-1.5] (/usr/share/java-config-2/vm/sun-jre-bin-1.5) 7) Sun JRE 1.6.0_beta2 [sun-jre-bin-1.6] (/usr/share/java-config-2/vm/sun-jre-bin-1.6)"
Tried to reproduce it in a way to get the same package.env (same jdk, javac) and it works for me (x86)... What does the env file look like after you edited the ebuild?
Created an attachment (id=93095) [edit] Package.env after updating ebuild This is the package.env after updating the ebuild by removing the 1.5 jdk line.
Looks like I have the same bug. It hangs for about 2 minutes while loading. Then it comes up with a error "Mode not available: MindMap." The console shows a NullPointerException in and a long stack trace: java.lang.NullPointerException at freemind.extensions.ImportWizard.addClassesFromDir(ImportWizard.java:128) at freemind.extensions.ImportWizard.addClassesFromDir(ImportWizard.java:164) ... snip (last line repeats several hundred times) ... at freemind.extensions.ImportWizard.buildClassList(ImportWizard.java:76) at freemind.extensions.HookFactory.actualizePlugins(HookFactory.java:148) at freemind.extensions.HookFactory.searchFor(HookFactory.java:111) at freemind.extensions.HookFactory.getPossibleNodeHooks(HookFactory.java:95) at freemind.modes.mindmapmode.MindMapController.createNodeHookActions(MindMapController.java:238) at freemind.modes.mindmapmode.MindMapController.<init>(MindMapController.java:149) at freemind.modes.mindmapmode.MindMapMode.init(MindMapMode.java:43) at freemind.modes.ModesCreator.getMode(ModesCreator.java:89) at freemind.controller.Controller.changeToMode(Controller.java:441) at freemind.main.FreeMind.<init>(FreeMind.java:300) at freemind.main.FreeMind.main(FreeMind.java:647)
So basically, in ImportWizard.java, they have a addClassesFromDir(). On line 164, they recurse if a File is a directory. On line 128, calling the recursed File.list() returns null for some reason causing the for loop to die. Java API documentation 1.5 says "Returns null if this abstract pathname does not denote a directory, or if an I/O error occurs." See http://java.sun.com/j2se/1.5.0/docs/api/java/io/File.html#list()
same problem here as reported into the comment #7 below my emerge info: Portage 2.1-r2 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.4-r3, 2.6.17-gentoo-r5 i686) ================================================================= System uname: 2.6.17-gentoo-r5 i686 VIA Samuel 2 Gentoo Base System version 1.12.4 app-admin/eselect-compiler: [Not Present] dev-lang/python: 2.4.3-r2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: 0.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.16.1-r3 sys-devel/gcc-config: 1.3.13-r3 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=c3 -O2 -pipe -fno-ident -fomit-frame-pointer -momit-leaf-frame-pointer -fforce-addr -fweb -ftracer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=c3 -O2 -pipe -fno-ident -fomit-frame-pointer -momit-leaf-frame-pointer -fforce-addr -fweb -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="it" MAKEOPTS="-j2 -s" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/wrobel /usr/portage/local/layman/ecatmur /usr/portage/local/layman/WTK-Testing" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X a52 aac acpi aim alsa apache2 asf async avi bash-completion berkdb bitmap-fonts bzip2 bzlib cairo cdr chroot cli crypt css cups dbus divx4linux dlloader dri dvd dvdr eds emboss encode exif fftw flac foomaticdb ftp gd gif gimp gpg gtk2 hal icq imap imlib isdnlog java jpeg kde ldap libg++ libwww mad memlimit mikmod mime ming mmap mmx mng motif mozsvg mozxmlterm mp3 mpeg msn musepack ncurses nls nptl nptlonly nsplugin objc ogg oggvorbis openal openexr opengl pam pam_chroot pcntl pcre pdflib perl png posix pppd pwdb python qmail qt3 qt4 quicktime readline reflection samba sasl scanner sdl session sftplogging simplexml socket spamassassin spell spl ssl svg symlink tiff truetype truetype-fonts type1-fonts udev unicode utf8 vorbis win32codecs wmf x86 xcomposite xine xml xml2 xmlrpc xorg xprint xv xvid yahoo zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_it userland_GNU video_cards_sis" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS java-config -L 1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2] (/usr/share/java-config-2/vm/blackdown-jdk-1.4.2) *) Sun JDK 1.5.0.08 [sun-jdk-1.5] (/usr/share/java-config-2/vm/sun-jdk-1.5)
(In reply to comment #0) > When I run freemind-0.8.0-r1 I get the following error > Same problem for me. I can get this to work by going back to freemind-0.8.0 in case anyone wanted a quick fix workaround.
Created an attachment (id=101037) [edit] fixed startup script copy the fixed script to /usr/bin/ to overwrite the old one. Don't forget chmod or chown, if needed.
(From update of attachment 101037 [edit]) I found out, that freemind must be started from java in the freemind directory /opt/freemind so I added a cd /opt/freemind to the startup script /usr/bin/freemind
(From update of attachment 101037 [edit]) copy the fixed script to /usr/bin/ to overwrite the old one. Don't forget chmod or chown, if needed.
I found out, that freemind must be started from java in the freemind directory /opt/freemind so I added a cd /opt/freemind to the startup script /usr/bin/freemind
Could someone remove and merge those double postings, please?
Created an attachment (id=102574) [edit] Patch to ebuild fixing starting directory problem. Here is a patch for the ebuild that solves the starting directory problem (by adding parameter -pw to java-pkg_dolauncher)
Fixed in freemind-0.8.0-r2, thanks everyone!