Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Quicklook in FreeMind v1 RC 4 on Mac OS X -- Not Working

Help
2013-06-03
2014-01-17
  • Mike Petonic
    Mike Petonic
    2013-06-03

    Hi All -- I have RC4 installed on my MacBook Air running MountainLion 10.8.3.

    I've installed the App binary into the /Applications directory, and I've installed the FreemindQL.qlgenerator into /Library/QuickLook.

    And, I've run "qlmanage -r" both as my normal user and under SUDO.

    Finder doesn't show me previews.

    I went into the /Library/QuickLook directory and changed all the permissions/owner/group of the new directory to match the other ones. I'm stumped.

    Has anyone gotten this to work, or more helpful to me, does anyone have any fix suggestions?

    Thanks in Advance!

     
  • I have the same problem. Here comes some output from /var/log/system.log. Maybe it helps to find the error:
    Jul 11 15:00:26 quicklookd[5222]: ++ GeneratePreviewForURL
    Jul 11 15:00:26 quicklookd[5222]: Input file is /Users/X/Y/Z.mm
    Jul 11 15:00:26 quicklookd[5222]: main bundle:NSBundle </Library> (loaded)
    Jul 11 15:00:26 quicklookd[5222]: freemind location is:/Applications/FreeMind.app
    Jul 11 15:00:26 quicklookd[5222]: freemind jar is:/Applications/FreeMind.app/Contents/Resources/Java/lib/freemind.jar
    Jul 11 15:00:26 quicklookd[5222]: JVM options is:-Xmx256m
    Jul 11 15:00:26 quicklookd[5222]: FreemindQL: failed with exit code 1.
    Jul 11 15:00:26 quicklookd[5222]: About to release pool
    Jul 11 15:00:26 quicklookd[5222]: -- GeneratePreviewForURL

     
  • Also note: There is no freemind.jar under the given path:

    ls /Applications/FreeMind.app/Contents/Resources/Java/lib/freemind.jar
    ls: /Applications/FreeMind.app/Contents/Resources/Java/lib/freemind.jar: No such file or directory

    freemind.jar is under /Applications/FreeMind.app/Contents/Java

     
    Last edit: Dominik Fischer 2013-07-11
  • Linking or Copying of /Applications/FreeMind.app/Contents/Java to /Applications/FreeMind.app/Contents/Resources/Java/lib

    Does not work. But it seems that quick look takes slightly more time before the error (exit code 1) occurs.

     
  • Next I tried generating a preview on the command line this shows some more details:

    $ qlmanage -p /Users/dominik/Desktop/Linux\ Bootvorgang.mm
    Testing Quick Look preview with files:
    /Users/X/Y/Z.mm
    2013-07-11 15:35:45.681 qlmanage[5519:2103] ++ GeneratePreviewForURL
    2013-07-11 15:35:45.682 qlmanage[5519:2103] Input file is /Users/dominik/Desktop/Linux Bootvorgang.mm
    2013-07-11 15:35:45.682 qlmanage[5519:2103] main bundle:NSBundle </Library> (loaded)
    2013-07-11 15:35:45.683 qlmanage[5519:2103] freemind location is:/Applications/FreeMind.app
    2013-07-11 15:35:45.683 qlmanage[5519:2103] freemind jar is:/Applications/FreeMind.app/Contents/Resources/Java/lib/freemind.jar
    2013-07-11 15:35:45.683 qlmanage[5519:2103] JVM options is:-Xmx256m
    Exception in thread "main" java.lang.NoClassDefFoundError: org/jibx/runtime/IUnmarshallable
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at freemind.view.mindmapview.IndependantMapViewCreator$1.createModeController(IndependantMapViewCreator.java:90)
    at freemind.modes.mindmapmode.MindMapMode.init(MindMapMode.java:51)
    at freemind.view.mindmapview.IndependantMapViewCreator.createMapViewForFile(IndependantMapViewCreator.java:96)
    at freemind.view.mindmapview.IndependantMapViewCreator.exportFileToPng(IndependantMapViewCreator.java:116)
    at freemind.view.mindmapview.IndependantMapViewCreator.main(IndependantMapViewCreator.java:63)
    Caused by: java.lang.ClassNotFoundException: org.jibx.runtime.IUnmarshallable
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    ... 17 more
    2013-07-11 15:35:47.714 qlmanage[5519:2103] FreemindQL: failed with exit code 1.
    2013-07-11 15:35:47.714 qlmanage[5519:2103] About to release pool
    2013-07-11 15:35:47.714 qlmanage[5519:2103] -- GeneratePreviewForURL

     
  • Yes! I nailed it down:

    There's a wrong path in the MANIFEST.MF:

    cat MANIFEST.MF
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.8.4
    Created-By: Joerg Mueller, Daniel Polansky, Christian Foltin, Dimitry
    Polivaev, and others.
    Built-By: foltin
    Built-Number: 0
    Main-Class: freemind.main.FreeMindStarter
    Class-Path: freemind.jar .. commons-lang-2.0.jar forms-1.0.5.jar jibx/
    jibx-run.jar jibx/xpp3.jar bindings.jar jortho.jar xalan.jar serializ
    er.jar xml-apis.jar xercesImpl.jar SimplyHTML/gnu-regexp-1.1.4.jar Si
    mplyHTML/SimplyHTML.jar

    After a clean installation I will come back with a workaround!

     
  • OK, let's summarize: There are two bugs:
    Path of freemind.jar in FreemindQL is wrong
    Wrong path in MANIFEST.MF for jibx-run.jar and xpp3.jar

    Workaround (at least for 1.0.0-RC4):

    In a Terminal run these commands:

    ln -s /Applications/FreeMind.app/Contents/Java /Applications/FreeMind.app/Contents/Java/jibx

    ln -s /Applications/FreeMind.app/Contents/Java /Applications/FreeMind.app/Contents/Resources/Java/lib

    Maybe a qlmanage -r after that is needed...

    Voila! Should be easy to fix for the Java developers! Would like to get credits from them :-)

     
  • Hi, finally fixed in git (sorry, after RC5 release).

    Thanks! Chris

     
  • Erwin Panen
    Erwin Panen
    2014-01-17

    Hi, I'm trying to get quicklook to work on OS X 10.9.1.
    I have installed Freemind 1.0.0.
    For completeness sake I have to mention that I also have Freeplane and Docear installed. In Finder I have set .mm extension to open with FreeMind.app and pressed Changed All.

    This snippet from /var/log/system.log:

    Jan 17 19:50:40 --- last message repeated 1 time ---
    Jan 17 19:50:40 mbpi7.ipanini.com com.apple.quicklook.satellite[2308]: ++ GeneratePreviewForURL
    Jan 17 19:50:40 mbpi7.ipanini.com com.apple.quicklook.satellite[2308]: Input file is /Users/erwin/Dropbox/mindmaps/index.mm
    Jan 17 19:50:40 mbpi7.ipanini.com com.apple.quicklook.satellite[2308]: main bundle:NSBundle </Library> (loaded)
    Jan 17 19:50:40 mbpi7.ipanini.com com.apple.quicklook.satellite[2308]: freemind location is:/Applications/FreeMind.app
    Jan 17 19:50:40 mbpi7.ipanini.com com.apple.quicklook.satellite[2308]: freemind jar is:/Applications/FreeMind.app/Contents/Java/freemind.jar
    Jan 17 19:50:40 mbpi7.ipanini.com com.apple.quicklook.satellite[2308]: JVM options is:-Xmx256m
    Jan 17 19:50:42 mbpi7.ipanini.com firefox[1888]: CGSCopyDisplayUUID: Invalid display 0x042412a5
    Jan 17 19:50:44 --- last message repeated 2 times ---


    indicates path to be /ApplicationsFreemind.app/Contents/Java/freemind.jar

    but there is no freemind.jar on that location:

    mbpi7:Java erwin$ pwd
    /Applications/FreeMind.app/Contents/Resources/Java
    mbpi7:Java erwin$ ls -l
    total 17616
    -rw-r--r--@ 1 erwin admin 65 Oct 16 21:45 dictionaries.properties
    -rw-r--r--@ 1 erwin admin 1026636 Oct 16 21:45 dictionary_de.ortho
    -rw-r--r--@ 1 erwin admin 1697459 Oct 16 21:45 dictionary_en.ortho
    -rw-r--r--@ 1 erwin admin 625036 Oct 16 21:45 dictionary_es.ortho
    -rw-r--r--@ 1 erwin admin 3055308 Oct 16 21:45 dictionary_fr.ortho
    -rw-r--r--@ 1 erwin admin 501830 Oct 16 21:45 dictionary_nl.ortho
    -rw-r--r--@ 1 erwin admin 2097327 Oct 16 21:45 dictionary_ru.ortho
    drwxr-xr-x@ 25 erwin admin 850 Oct 16 21:45 doc
    mbpi7:Java erwin$


    Thanks for any help!

    Erwin