vicro / BlenderQuickLook

A Quick Look Plugin for generating Blender3D file thumbnails.
MIT License
45 stars 2 forks source link

Nothing shows on osx 10.11.6 #3

Open schroef opened 6 years ago

schroef commented 6 years ago

Hi there and thanks for making such cool thing. I just tried it but nothing is generated.

This is the code i got using qlmanage in Terminal

Testing Quick Look preview with files:
    desktop/carpet.blend
[DEBUG] Preview test for desktop/carpet.blend -- file:///Users/romboutversluijs/. Content type UTI: org.blender.blend
[DEBUG] file:///Applications/MAXON/CINEMA%204D%20R17/CINEMA%204D.app/Contents/Library/QuickLook/CINEMA%204D.qlgenerator/ might shadow a plug-in with the same identifier and version (<QLGenerator /Applications/Adobe After Effects CC 2015/Plug-ins/MAXON CINEWARE AE/(CINEWARE Support)/lite/CINEMA 4D Lite.app/Contents/Library/QuickLook/CINEMA 4D.qlgenerator>)
[DEBUG] Previewing file:///Users/romboutversluijs/Desktop/carpet.blend. Content type UTI: org.blender.blend. Generator used: <QLGenerator /Library/QuickLook/BlenderQuickLook.qlgenerator>
[DEBUG] Loading <QLGenerator /Library/QuickLook/BlenderQuickLook.qlgenerator>
[DEBUG] Previewing file:///Users/romboutversluijs/Desktop/carpet.blend did not produce anything
[DEBUG] Thumbnailing desktop/carpet.blend -- file:///Users/romboutversluijs/ - type: org.blender.blend - generator: <QLGenerator /Library/QuickLook/BlenderQuickLook.qlgenerator> (try #1)
[DEBUG] Thumbnailing file:///Users/romboutversluijs/Desktop/carpet.blend. Content type UTI: org.blender.blend. Generator used: <QLGenerator /Library/QuickLook/BlenderQuickLook.qlgenerator>
[DEBUG] Thumbnailing file:///Users/romboutversluijs/Desktop/carpet.blend did not produce anything
2017-12-14 14:32:43.610 qlmanage[8626:273468] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xa30b, name = 'com.apple.coredrag'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-12-14 14:32:43.648 qlmanage[8626:273468] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xc83f, name = 'com.apple.tsm.portname'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-12-14 14:32:43.649 qlmanage[8626:273468] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xcb13, name = 'com.apple.CFPasteboardClient'
See /usr/include/servers/bootstrap_defs.h for the error codes.
2017-12-14 14:32:43.649 qlmanage[8626:273468] void __CFPasteboardSetup() : Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions
MBP-Schroef:~ Admin$ 

I had this ql sketchup thing today and was testing that immense, it worked for a while and stopped as well??

Ive taken out all other ql plugins and also did qlmanage -r and qlmanage -r cache and killall Finder

Still nothing

Plugins needs to go in /library/quicklook/ right?

vicro commented 6 years ago

It should go to ~/Library/QuickLook/

The code is a bit old. Maybe need to rebuild for latest OS?

Can you provide a sample file to test on my machine?

Have you also tried building from source?

schroef commented 6 years ago

It does work, but should add that you need to save files without compression. Otherwise it doesnt work. But the preview is super crappy and alle files get 2/3 times bigger now. So not sure its really usefull. Also it seems to take own approach on what to render. black background and i think only layer 1 is rendered

vicro commented 6 years ago

Blender files come with a thumbnail preview of the scene rendered with the default camera. This is the image that is shown by the quicklook plugin. For files with compression maybe it needs to decompress before being able to read the thumbnail?

Also I am not sure how Blender decides what layers/settings to use for rendering the preview thumbnail.

schroef commented 6 years ago

Well in blender the preview looks of much better quality and also show more when you use "add previews"

screen shot 2017-12-16 at 20 50 28 screen shot 2017-12-16 at 20 49 57
vicro commented 6 years ago

Hmm interesting, need to check the source code of the preview in blender. I won't have much time to check that for a few months.

Thanks for the feedback.

schroef commented 6 years ago

I noticed it stopped working again... still using osx 10.11.6 tried both bl 2.78c and 2.79 nothing shows. Have previews on, saveing without compression. Still nothing.

Ill try debuggin again if can remember it

schroef commented 6 years ago

I know see these errors when i debug it

Testing Quick Look preview with files: /Desktop/BLender-Quicklook-test.blend [WARNING] Unable to determine UTI for file:///Desktop/BLender-Quicklook-test.blend: Error Domain=NSCocoaErrorDomain Code=260 "The file “BLender-Quicklook-test.blend” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Desktop/BLender-Quicklook-test.blend, NSFilePath=/Desktop/BLender-Quicklook-test.blend, NSUnderlyingError=0x7f9fe0c02b50 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} [WARNING] Unable to determine UTI for file:///Desktop/BLender-Quicklook-test.blend: Error Domain=NSCocoaErrorDomain Code=260 "The file “BLender-Quicklook-test.blend” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Desktop/BLender-Quicklook-test.blend, NSFilePath=/Desktop/BLender-Quicklook-test.blend, NSUnderlyingError=0x7f9fe3005cd0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} [ERROR] Can't access file:///Desktop/BLender-Quicklook-test.blend: Error Domain=NSCocoaErrorDomain Code=260 "The file “BLender-Quicklook-test.blend” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Desktop/BLender-Quicklook-test.blend, NSFilePath=/Desktop/BLender-Quicklook-test.blend, NSUnderlyingError=0x7f9fe3154a50 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} [ERROR] Can't access file:///Desktop/BLender-Quicklook-test.blend: Error Domain=NSCocoaErrorDomain Code=260 "The file “BLender-Quicklook-test.blend” couldn’t be opened because there is no such file." UserInfo={NSURL=file:///Desktop/BLender-Quicklook-test.blend, NSFilePath=/Desktop/BLender-Quicklook-test.blend, NSUnderlyingError=0x7f9fe0fd0fc0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}} [WARNING] LSCopyDefaultApplicationURLForURL for file:///Desktop/BLender-Quicklook-test.blend returned error Error Domain=NSOSStatusErrorDomain Code=-10814 "kLSApplicationNotFoundErr: E.g. no application claims the file" 2018-07-17 21:08:36.945 qlmanage[6382:2470958] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x9403, name = 'com.apple.coredrag' See /usr/include/servers/bootstrap_defs.h for the error codes. 2018-07-17 21:08:37.027 qlmanage[6382:2470958] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0xb93f, name = 'com.apple.tsm.portname' See /usr/include/servers/bootstrap_defs.h for the error codes. 2018-07-17 21:08:37.028 qlmanage[6382:2470958] *** CFMessagePort: bootstrap_register(): failed 1100 (0x44c) 'Permission denied', port = 0x4707, name = 'com.apple.CFPasteboardClient' See /usr/include/servers/bootstrap_defs.h for the error codes. 2018-07-17 21:08:37.028 qlmanage[6382:2470958] void __CFPasteboardSetup() : Failed to allocate communication port for com.apple.CFPasteboardClient; this is likely due to sandbox restrictions MBP-Schroef:~ Admin$

vicro commented 4 years ago

So there are problems with sandbox and code signing with QuickLook plugins.

Others with the same problem

https://stackoverflow.com/q/23058657 https://apple.stackexchange.com/q/323854

Possible solution?

https://github.com/whomwah/qlstephen#permissions-quarantine

I tried moving the file from ~/Library/QuickLook to /Library/QuickLook and it seemed to work. But need to do it with sudo because that is a system directory.

meermanr commented 1 year ago

Copying to /Library/QuickLook/, and then running qlmanage -r && qlmanage -r cache on macOS 13.0.1 (Ventura) and relaunching Finder worked for me.

dz86 commented 1 year ago

Copying to /Library/QuickLook/, and then running qlmanage -r && qlmanage -r cache on macOS 13.0.1 (Ventura) and relaunching Finder worked for me.

What chip on you machine, apple Silicon or Intel? thanks for answer

meermanr commented 1 year ago

What chip on you machine, apple Silicon or Intel? thanks for answer

Intel (i9)