Menu

#278 Quicklook plugin and Sierra.

djview
closed
None
5
2021-10-06
2016-11-15
Calc
No

Is anyone else having the following problem? I updated from the pre-retina DjView version to the latest version, and Finder has become really slow when displaying a folder with .djvu files. I also use Quicksilver, and it slows down particularly when the search result is a .djvu file. I feel that this has to do with the quicklook and spotlight plugins in the new app.

Related

Bugs: #278

Discussion

1 2 > >> (Page 1 of 2)
  • Leon Bottou

    Leon Bottou - 2016-11-16

    Can you confirm that pre-retina version of DjView worked well on the same OS?

    Alternatively, you can check the file "Info.plist" that is located inside the DjView.app directory.
    The last lines should read
    <key>NSHighResolutionCapable</key>
    <string>True</string>

    You can try replacing "True" by "False" to disable the retina code.
    Does this fix the problem?

    • L.

    On Tuesday, November 15, 2016 16:35:55 Calc wrote:


    [bugs:#278][1] Quicklook plugin and Sierra.
    Status: open

    Group: djview

    Created: Tue Nov 15, 2016 04:35 PM UTC by Calc

    Last Updated: Tue Nov 15, 2016 04:35 PM UTC

    Owner: nobody
    Is anyone else having the following problem? I updated from the pre-retina DjView version to the latest version, and Finder has become really slow when displaying a folder with .djvu files. I also use Quicksilver, and it slows down particularly when the search result is a .djvu file. I feel that this has to do with the quicklook and spotlight plugins in the new app.


    Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/djvu/bugs/278/
    To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/[2]


    [1] https://sourceforge.net/p/djvu/bugs/278/
    [2] https://sourceforge.net/auth/subscriptions/

     

    Related

    Bugs: #278

  • Calc

    Calc - 2016-11-16

    I tried modifying the info.plist, but that did not help.

    I did not back up the old non-retina version from a few years ago before updating (a few days back); could you please point me to where I can download a compiled app of the non-retina version from, and what that version should be?

    Here is another test to illustrate the problem I am facing. Place a couple of djvu files in your download folder stack on the Dock, along with other files (PDFs, say). Then open the stack from the Dock, I am finding that the previews of the djvu files take a while to generate, while all other files display instantaneously. Also, when I double click to open a djvu file, there is a lag before DjView starts up, which I think wasn't there before.

    Incidentally, another new problem is that DjView displays the first file on the right hand side of the screen, about a quarter of the screen height below the men bar, instead of at the left upper corner.

    I am using Sierra on a 2012 retina macbook pro.

     
    • Leon Bottou

      Leon Bottou - 2016-11-16

      Try the 4.10.5 version in https://sourceforge.net/projects/djvu/files/DjVuLibre_MacOS/3.5.27%2B4.10/

      • L.

      From: Calc icalc@users.sf.net
      Reply-To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
      Date: Wednesday, November 16, 2016 at 8:47 AM
      To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
      Subject: [djvu:bugs] #278 Quicklook plugin and Sierra.

      Incidentally, another new problem is that DjView displays the first file on the right hand side of the screen, about a quarter of the screen height below the men bar, instead of at the left upper corner.

       
      • Leon Bottou

        Leon Bottou - 2016-11-16

        You can also try this version, compiled with Qt-5.7 instead of 5.5.

        http://leon.bottou.org/morefiles/DjVuLibre-3.5.27+DjView-4.10.6-qt57-intel64.dmg

        • L.

        From: Leon Bottou leonb@users.sf.net
        Reply-To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
        Date: Wednesday, November 16, 2016 at 9:17 AM
        To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
        Subject: [djvu:bugs] Re: #278 Quicklook plugin and Sierra.

        Try the 4.10.5 version in https://sourceforge.net/projects/djvu/files/DjVuLibre_MacOS/3.5.27%2B4.10/
        L.
        From: Calc icalc@users.sf.net
        Reply-To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
        Date: Wednesday, November 16, 2016 at 8:47 AM
        To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
        Subject: [djvu:bugs] #278 Quicklook plugin and Sierra.

        Incidentally, another new problem is that DjView displays the first file on the right hand side of the screen, about a quarter of the screen height below the men bar, instead of at the left upper corner.

        [bugs:#278] Quicklook plugin and Sierra.

        Status: open
        Group: djview
        Created: Tue Nov 15, 2016 04:35 PM UTC by Calc
        Last Updated: Wed Nov 16, 2016 01:47 PM UTC
        Owner: nobody

        Is anyone else having the following problem? I updated from the pre-retina DjView version to the latest version, and Finder has become really slow when displaying a folder with .djvu files. I also use Quicksilver, and it slows down particularly when the search result is a .djvu file. I feel that this has to do with the quicklook and spotlight plugins in the new app.

        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/djvu/bugs/278/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #278

  • Calc

    Calc - 2016-11-16

    Thanks, but that did not work. However, I was able to go back and redownload DjView 4.5 and all my problems have been solved now. It is superfast, and I even used the 'Retinizer' app to make the interface look good on screen. Spotlight, Finder and Quicksilver all list djvu files superfast now.

    I suggest you guys take a look at this problem, at what changed post version 4.5 that could cause this sluggishness.

     
    • Leon Bottou

      Leon Bottou - 2016-11-16

      Which one did not work?  

      4.10.5   

      4.10.6+qt57   

      both?

      • L.

      From: Calc icalc@users.sf.net
      Reply-To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
      Date: Wednesday, November 16, 2016 at 11:34 AM
      To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
      Subject: [djvu:bugs] #278 Quicklook plugin and Sierra.

      Thanks, but that did not work. However, I was able to go back and redownload DjView 4.5 and all my problems have been solved now. It is superfast, and I even used the 'Retinizer' app to make the interface look good on screen. Spotlight, Finder and Quicksilver all list djvu files superfast now.

      I suggest you guys take a look at this problem, at what changed post version 4.5 that could cause this sluggishness.

      [bugs:#278] Quicklook plugin and Sierra.

      Status: open
      Group: djview
      Created: Tue Nov 15, 2016 04:35 PM UTC by Calc
      Last Updated: Wed Nov 16, 2016 01:47 PM UTC
      Owner: nobody

      Is anyone else having the following problem? I updated from the pre-retina DjView version to the latest version, and Finder has become really slow when displaying a folder with .djvu files. I also use Quicksilver, and it slows down particularly when the search result is a .djvu file. I feel that this has to do with the quicklook and spotlight plugins in the new app.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/djvu/bugs/278/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #278

  • Calc

    Calc - 2016-11-16

    Both!

     
  • J. Bilmes

    J. Bilmes - 2017-01-08

    Hi Leon, I seem to be having this exact same problem.

     
    • Leon Bottou

      Leon Bottou - 2017-01-09

      Hello Jeff,

      This problem frustrates me quite a lot too. Nothing has changed in djview in that respect.  What used to be fast is now slow.  There are lots of hits on the web about slow quicklook. See http://wccftech.com/how-to-fix-quick-look-in-os-x-mavericks/, http://apple.stackexchange.com/questions/263309/quick-look-of-image-files-very-slow-on-macos-sierra, http://forums.macrumors.com/threads/quick-look-being-very-slow.1653397/.  But none of them is super-convincing…

      What I found is that the commands

      $ qlmanage –r

      $ qlmanage –r cache

      get my machine to go into heavy computation mode.  Quicklookd now takes 85% cpu.  Will see tomorrow whether things are improved once this background task is done.

      • L.

      From: "J. Bilmes" jbilmes@users.sf.net
      Reply-To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
      Date: Sunday, January 8, 2017 at 5:03 PM
      To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
      Subject: [djvu:bugs] #278 Quicklook plugin and Sierra.

      Hi Leon, I seem to be having this exact same problem.

      [bugs:#278] Quicklook plugin and Sierra.

      Status: open
      Group: djview
      Created: Tue Nov 15, 2016 04:35 PM UTC by Calc
      Last Updated: Wed Nov 16, 2016 04:44 PM UTC
      Owner: nobody

      Is anyone else having the following problem? I updated from the pre-retina DjView version to the latest version, and Finder has become really slow when displaying a folder with .djvu files. I also use Quicksilver, and it slows down particularly when the search result is a .djvu file. I feel that this has to do with the quicklook and spotlight plugins in the new app.

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/djvu/bugs/278/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #278

      • Leon Bottou

        Leon Bottou - 2017-01-10

        Seems that the thumbnail caching does not work anymore for some unknown reason.

        I will try to revamp this very old code to make it work better.

        Two workarounds.

        • I had success editing the file “/Applications/DjView.app/Contents/Library/QuickLook/DjVu.qlgenerator/Contents/Info.plist”, changing all the 1.1 version numbers as 1.2, then typing

        $ qlmanage -r  && qlmanage -r cache

        This seems to reset the caching. The first view of a directory is slow but the subsequent views are fast. I also had to reboot before that worked…

        • Otherwise you can completely disable djvu thumbnail generation with

        $ defaults write org.djvu.qlgenerator thumbnail -bool false

        You can re-enable it with:

        $ defaults delete org.djvu.qlgenerator

        • Leon

        From: Leon Bottou leonb@users.sf.net
        Reply-To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
        Date: Monday, January 9, 2017 at 5:49 PM
        To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
        Subject: [djvu:bugs] Re: #278 Quicklook plugin and Sierra.

        Hello Jeff,

        This problem frustrates me quite a lot too. Nothing has changed in djview in that respect. What used to be fast is now slow. There are lots of hits on the web about slow quicklook. See http://wccftech.com/how-to-fix-quick-look-in-os-x-mavericks/, http://apple.stackexchange.com/questions/263309/quick-look-of-image-files-very-slow-on-macos-sierra, http://forums.macrumors.com/threads/quick-look-being-very-slow.1653397/. But none of them is super-convincing…

        What I found is that the commands

        $ qlmanage –r

        $ qlmanage –r cache

        get my machine to go into heavy computation mode. Quicklookd now takes 85% cpu. Will see tomorrow whether things are improved once this background task is done.
        L.
        From: "J. Bilmes" jbilmes@users.sf.net
        Reply-To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
        Date: Sunday, January 8, 2017 at 5:03 PM
        To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
        Subject: [djvu:bugs] #278 Quicklook plugin and Sierra.

        Hi Leon, I seem to be having this exact same problem.

        [bugs:#278] Quicklook plugin and Sierra.

        Status: open
        Group: djview
        Created: Tue Nov 15, 2016 04:35 PM UTC by Calc
        Last Updated: Wed Nov 16, 2016 04:44 PM UTC
        Owner: nobody

        Is anyone else having the following problem? I updated from the pre-retina DjView version to the latest version, and Finder has become really slow when displaying a folder with .djvu files. I also use Quicksilver, and it slows down particularly when the search result is a .djvu file. I feel that this has to do with the quicklook and spotlight plugins in the new app.

        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/djvu/bugs/278/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

        [bugs:#278] Quicklook plugin and Sierra.

        Status: open
        Group: djview
        Created: Tue Nov 15, 2016 04:35 PM UTC by Calc
        Last Updated: Sun Jan 08, 2017 10:03 PM UTC
        Owner: nobody

        Is anyone else having the following problem? I updated from the pre-retina DjView version to the latest version, and Finder has become really slow when displaying a folder with .djvu files. I also use Quicksilver, and it slows down particularly when the search result is a .djvu file. I feel that this has to do with the quicklook and spotlight plugins in the new app.

        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/djvu/bugs/278/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #278

  • Leon Bottou

    Leon Bottou - 2017-01-13
    • status: open --> closed
    • assigned_to: Leon Bottou
     
  • Leon Bottou

    Leon Bottou - 2017-01-13

    I believe this is fixed in the latest binary release (DjVuLibre-3.5.27+DjView-4.10.6-qt57-intel64.dmg) which includes a resigned quicklook plugin. In fact I am not certain at all the djvu quicklook plugin was responsible for this. Googgling for "quicklookd eating cpu" reveals that lots of users had such problems without having djview installed whatsoever.

    After installing the new version and running djview at least once, it may be useful to cleanup the thumbnail cache with command:
    $ sudo find /var/folders/ -name com.apple.QuickLook.thumbnailcache -exec rm -rf {} \; -print -prune
    followed by a reboot. Things seem to work better after that. The first time one use the Finder to display a directory full of djvus, it takes some time to generate the thumbnails. But they it gets fast because they are cached.

    So in the end, why was it slow before? I doubled the performance of the djvu quicklook plugin, but I also believe that the very slow performance people reports is due to some other bug that makes the quicklook system loop...

     
    • J. Bilmes

      J. Bilmes - 2017-01-13

      Very nice Leon! I'll give it a try soon ...

       
    • xfacter

      xfacter - 2017-05-03

      This didn't help me, after using your command and rebooting, and browsing to a few djvu directories to allow caching, it still takes around 7 seconds to view a folder with ~10 djvu files.

       
    • Jean-Paul Roy

      Jean-Paul Roy - 2017-06-21

      Oh please fix that problem, it's almost impossible to work with djvu files. I am obliged to put all the djvu files in a folder never opend, and work with only aliases. It's such a pain... Thanks for us :-)
      Sierra + DjVuLibre-3.5.27, Qt-5.7.0 (but the title in the About dialog is "DjVuLibre DjView 4.10.6" ?).

       
  • Jens Østergaard Petersen

    This problem has also been bothering me for quite some time now, but following Calc's advice and installing DjView 4.5 made everything run smoothly as well. I tried DjVuLibre-3.5.27+DjView-4.10.6-qt57b-intel64, but it was of no help.

     
  • Leon Bottou

    Leon Bottou - 2017-07-17

    Try removing the directory /Applications/DjView.app/Contents/Library/QuickLook and all its contents.
    Then reboot, Does it improve the situation?

     
    • Jean-Paul Roy

      Jean-Paul Roy - 2017-07-17

      Sorry, not at all for me :-(
      MacOS 10.12.5, DJView 4.10.6,

       
      • Leon Bottou

        Leon Bottou - 2017-07-17

        In principle, there should not be a djvu quicklook plugin anymore (you just deleted it.)

        Therefore, if the machine is still slow, who’s the culprit?
        L.

        From: Jean-Paul Roy wissme@users.sf.net
        Reply-To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
        Date: Monday, July 17, 2017 at 12:55 PM
        To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
        Subject: [djvu:bugs] Re: #278 Quicklook plugin and Sierra.

        Sorry, not at all for me :-(
        MacOS 10.12.5, DJView 4.10.6,

        [bugs:#278] Quicklook plugin and Sierra.

        Status: closed
        Group: djview
        Created: Tue Nov 15, 2016 04:35 PM UTC by Calc
        Last Updated: Mon Jul 17, 2017 03:00 PM UTC
        Owner: Leon Bottou

        Is anyone else having the following problem? I updated from the pre-retina DjView version to the latest version, and Finder has become really slow when displaying a folder with .djvu files. I also use Quicksilver, and it slows down particularly when the search result is a .djvu file. I feel that this has to do with the quicklook and spotlight plugins in the new app.

        Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/djvu/bugs/278/

        To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #278

        • Leon Bottou

          Leon Bottou - 2017-07-17

          You could try:

          $ qlmanage -m plugins | grep -i djvu

          to check whether there is still a djvu plugin somewhere else…

          L.

          From: Leon Bottou leonb@users.sf.net
          Reply-To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
          Date: Monday, July 17, 2017 at 12:58 PM
          To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
          Subject: [djvu:bugs] Re: #278 Quicklook plugin and Sierra.

          In principle, there should not be a djvu quicklook plugin anymore (you just deleted it.)

          Therefore, if the machine is still slow, who’s the culprit?
          L.

          From: Jean-Paul Roy wissme@users.sf.net
          Reply-To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
          Date: Monday, July 17, 2017 at 12:55 PM
          To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
          Subject: [djvu:bugs] Re: #278 Quicklook plugin and Sierra.

          Sorry, not at all for me :-(
          MacOS 10.12.5, DJView 4.10.6,

          [bugs:#278] Quicklook plugin and Sierra.

          Status: closed
          Group: djview
          Created: Tue Nov 15, 2016 04:35 PM UTC by Calc
          Last Updated: Mon Jul 17, 2017 03:00 PM UTC
          Owner: Leon Bottou

          Is anyone else having the following problem? I updated from the pre-retina DjView version to the latest version, and Finder has become really slow when displaying a folder with .djvu files. I also use Quicksilver, and it slows down particularly when the search result is a .djvu file. I feel that this has to do with the quicklook and spotlight plugins in the new app.

          Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/djvu/bugs/278/

          To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

          [bugs:#278] Quicklook plugin and Sierra.

          Status: closed
          Group: djview
          Created: Tue Nov 15, 2016 04:35 PM UTC by Calc
          Last Updated: Mon Jul 17, 2017 03:00 PM UTC
          Owner: Leon Bottou

          Is anyone else having the following problem? I updated from the pre-retina DjView version to the latest version, and Finder has become really slow when displaying a folder with .djvu files. I also use Quicksilver, and it slows down particularly when the search result is a .djvu file. I feel that this has to do with the quicklook and spotlight plugins in the new app.

          Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/djvu/bugs/278/

          To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

           

          Related

          Bugs: #278

          • Jean-Paul Roy

            Jean-Paul Roy - 2017-07-18

            qlmanage -m plugins | grep -i djvu
            gets no answer.

             
            • Leon Bottou

              Leon Bottou - 2017-07-18

              Therefore it is slow despite not calling any djvu code?
              L.

              From: Jean-Paul Roy wissme@users.sf.net
              Reply-To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
              Date: Tuesday, July 18, 2017 at 10:49 AM
              To: "[djvu:bugs]" 278@bugs.djvu.p.re.sf.net
              Subject: [djvu:bugs] Re: #278 Quicklook plugin and Sierra.

              qlmanage -m plugins | grep -i djvu
              gets no answer.

              [bugs:#278] Quicklook plugin and Sierra.

              Status: closed
              Group: djview
              Created: Tue Nov 15, 2016 04:35 PM UTC by Calc
              Last Updated: Mon Jul 17, 2017 09:11 PM UTC
              Owner: Leon Bottou

              Is anyone else having the following problem? I updated from the pre-retina DjView version to the latest version, and Finder has become really slow when displaying a folder with .djvu files. I also use Quicksilver, and it slows down particularly when the search result is a .djvu file. I feel that this has to do with the quicklook and spotlight plugins in the new app.

              Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/djvu/bugs/278/

              To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

               
              • Jean-Paul Roy

                Jean-Paul Roy - 2017-07-18

                I don't know it it calls or not djvu code, but yes, it's slow only on djvu files. So I guess something should go wrong on the djvu side ? My 2 cents.

                 
  • xfacter

    xfacter - 2017-07-17

    I tried the command to completely disable thumbnail generation for djvu files,

    defaults write org.djvu.qlgenerator thumbnail -bool false
    

    but it's still making them and taking forever to load. Also tried reinstalling the old version 4.5 and it still was slow. I made sure to reboot and everything. I have no idea what my problem is at this point. Would believe it was a deeper issue with the OS except that it only happens with djvu files. Really frustrating, let me know if you have any more ideas..

     
  • Leon Bottou

    Leon Bottou - 2017-07-19

    xfacter: this is about my conclusion as well. This appeared with Sierra. The same thumbnail generation code in djview4.5 and djview4.10 gives different results.

    xfactor: it may not be generating thumbnails but simply using those already present in the cache. Is something faulty with these thumbnails? I tried clearing the cache with

    qlmanage -r cache
    

    This makes the system slow for a while because all thumbnails (not just djvus) need to be regenerated. But after this, you sould no longer see djvu thumbnails anymore.

     
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB