Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

预览文件时出现错误 #32

Closed
MsgnKyle opened this issue Jun 19, 2017 · 37 comments
Closed

预览文件时出现错误 #32

MsgnKyle opened this issue Jun 19, 2017 · 37 comments

Comments

@MsgnKyle
Copy link

系统:win7 x86
预览文件时点击空格之后出现如下错误:
image

@MsgnKyle MsgnKyle changed the title 预览文件时出现调用错误 预览文件时出现错误 Jun 19, 2017
@xupefei
Copy link
Member

xupefei commented Jun 19, 2017

你预览什么文件出现的错误?

@MsgnKyle
Copy link
Author

MsgnKyle commented Jun 19, 2017

只要预览文件就会出现错误
现在测试的有word、ppt、excel、pdf、markdown

@xupefei
Copy link
Member

xupefei commented Jun 19, 2017

你下载的是 .zip 包?

@MsgnKyle
Copy link
Author

一直用的是msi文件安装的,上周五出现的这个问题,然后使用的zip文件,也是同样的问题

@xupefei
Copy link
Member

xupefei commented Jun 19, 2017

你有没有装 .net 4.62的框架?https://www.microsoft.com/net/framework/versions/net462?source=dotnet

@MsgnKyle
Copy link
Author

没有,是4.5的框架。

@xupefei
Copy link
Member

xupefei commented Jun 19, 2017

4.5 框架运行似乎会报这个错误。
启动的时候没有提示吗?看来我需要强制提示一下。

@MsgnKyle
Copy link
Author

没有提示,而且原来一直用着挺好的,从上周五才出现的这个问题

@xupefei
Copy link
Member

xupefei commented Jun 19, 2017

是不是 0.2 版才开始报错?
你再装一下 https://github.com/xupefei/QuickLook/releases/tag/0.1.14 ,可以用吗?

@MsgnKyle
Copy link
Author

应该是从0.2.0开始的,我看有更新就装了,然后就这样了,请稍等,我现在下载一下0.1.14,我这边网速比较忙

@MsgnKyle
Copy link
Author

十分感谢!
更新.net框架为4.62解决了问题!

@xupefei
Copy link
Member

xupefei commented Jun 19, 2017 via email

@6e6e6e
Copy link

6e6e6e commented Jun 19, 2017

Win 10 x64 1703版本,.Net 4.7,QuickLook 0.2.1报一样的错误

@xupefei
Copy link
Member

xupefei commented Jun 19, 2017

你系统里只有 4.7?

@xupefei
Copy link
Member

xupefei commented Jun 19, 2017

我用虚拟机装了个win10 1703,没有报任何错误。
新装的系统里 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP 中 Release项的值是460798,是NET 4.7 (https://docs.microsoft.com/en-us/dotnet/framework/migration-guide/how-to-determine-which-versions-are-installed)。

@6e6e6e
Copy link

6e6e6e commented Jun 20, 2017

是只有4.7,之前装的0.2.0版本没有问题,更新到0.2.1版本才报错的

@6e6e6e
Copy link

6e6e6e commented Jun 20, 2017

另外今天试了下卸载重装,看gif/jpg哪怕office都没问题,但预览过markdown就开始崩溃报错

@xupefei
Copy link
Member

xupefei commented Jun 20, 2017

我又试了试,还是没有问题…0.2.1 其实也没改什么东西啊……
你现在再装回 0.2.0 还能用吗?如果能,

1)安装 0.2.1,把 0.2.0 的 QuickLook.Plugin.HtmlViewer.dll 覆盖到 0.2.1 的相同文件上。
如果还是不能用,那么就
2)安装 0.2.1,把 0.2.0 的 QuickLook.Plugin.MarkdownViewer.dll 覆盖到 0.2.1 的相同文件上。
如果还是不能用,那么就
3)安装 0.2.1,把 0.2.0 的 QuickLook.Native32.dllQuickLook.Native64.dllQuickLook.WoW64HookHelper.exe三个文件覆盖到 0.2.1 的文件上。
上面的文件可以从 0.2.0 的 .zip 包里获得。

@6e6e6e
Copy link

6e6e6e commented Jun 21, 2017

试了你说的方法,还是不行,可能是解析markdown哪里有问题吧

@xupefei
Copy link
Member

xupefei commented Jun 21, 2017

随便看一个HTML正常么?

@6e6e6e
Copy link

6e6e6e commented Jun 21, 2017

html正常,但是md和txt会报错

@xupefei
Copy link
Member

xupefei commented Jun 21, 2017

神奇。md 和 txt 完全是两套预览插件。

@6e6e6e
Copy link

6e6e6e commented Jun 21, 2017

简单的txt和md都还好,貌似长一点的就会报错,难不成跟路径有关?

@xupefei
Copy link
Member

xupefei commented Jun 21, 2017

有可能。路径多长?现在的限制是 MAX_PATH=260 个字符。

@6e6e6e
Copy link

6e6e6e commented Jun 21, 2017

经过多次尝试,同样的文件,在桌面就可以预览,在别的文件夹预览就报错,应该是跟路径有关了,并不是路径长短的问题,我同样的文件,在桌面上新建个文件夹里面就预览不了

@xupefei
Copy link
Member

xupefei commented Jun 21, 2017

你系统里有没有网络路径?

@6e6e6e
Copy link

6e6e6e commented Jun 21, 2017

default

default

@xupefei
Copy link
Member

xupefei commented Jun 21, 2017

运行记事本,打开文件,定位到这个文件夹,选中这个css,空格。
能预览吗?

@6e6e6e
Copy link

6e6e6e commented Jun 21, 2017

还是会崩溃 = =
default

@xupefei
Copy link
Member

xupefei commented Jun 21, 2017

不不,我的意思是,在打开对话框中选中(单击)这个文件(不要真的打开),然后在打开对话框中按空格。

@6e6e6e
Copy link

6e6e6e commented Jun 22, 2017

在打开里面空格预览是正常的
default

@xupefei
Copy link
Member

xupefei commented Jun 22, 2017

看来你系统里有个COM组件坏掉了。
稍等我给你个带弹窗的DLL,你试试最多弹窗到哪里。

@6e6e6e
Copy link

6e6e6e commented Jun 22, 2017

= = 重启电脑之后突然好了,现在直接预览也不崩溃了,好神奇

@6e6e6e
Copy link

6e6e6e commented Jun 22, 2017

重启大法好,给微软跪了

@xupefei
Copy link
Member

xupefei commented Jun 22, 2017

m5503 0 ccp w19up 1a
那等下次出问题的时候再说了……

@6e6e6e
Copy link

6e6e6e commented Jun 22, 2017

哭笑不得

@xupefei xupefei closed this as completed Jun 24, 2017
@xupefei xupefei mentioned this issue Jul 1, 2017
@xupefei
Copy link
Member

xupefei commented Jul 27, 2017

@6e6e6e 上次你出问题的时候,是不是在桌面上没问题,在资源管理器窗口里就报错?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants