PDF.js会随机崩溃Google Chrome选项卡 [英] PDF.js is randomly crashing the Google Chrome tab

查看:840
本文介绍了PDF.js会随机崩溃Google Chrome选项卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题可能看起来有点模糊(这对我也是),但这里是我对此的解释。



几个月前,我实施了<在我的web应用程序中使用href =http://mozilla.github.io/pdf.js/ =nofollow> PDF.js 。这是非常有用的,我用它来与我的客户进行交互。



突然,上周,我的客户在Google Chrome中向我报告Aw,Snap消息在他们的PC上尝试启动PDF.js时我在家里有一台iMac和两台电脑,所以我决定测试一下。



当我在iMac上使用Google Chrome启动PDF.js时,发现它



当我在第一台PC上使用Google Chrome启动PDF.js时,我发现它运行良好。



当我在第二台个人电脑上使用谷歌浏览器启动PDF.js时,即使它曾经工作过,它仍会崩溃并向我显示Aw,Snap消息。



这很奇怪。我尝试删除所有扩展名,清除缓存,清除LocalStorage,但没有任何东西可以解决问题。

然后,我在与客户进行一些通信之后意识到,启动任何操作系统上的Safari,Torch,Opera或Firefox中的PDF.js都可以工作。

为什么会发生这种情况?我正在使用PDF.js中的Web查看器。我也尝试过使用基本的 hello world 例子,但是也破坏了(现在我发现它真的很奇怪),所以我怀疑渲染引擎有什么问题。 p>

在构建源代码之后,我也尝试过包括 compatibility.js 文件,但没有成功。 b
$ b

是否有任何已知的导致Google Chrome标签崩溃的错误?

是的,我现在明白了。



https://github.com/mozilla/pdf.js/issues/4104 ,我找到了答案(感谢Rob和PDF.js开发团队!)。看看你自己!



我只是在这里发布这个信息,以便任何人在类似问题上碰到这个帖子都可以得到帮助(因为这个错误让我颇为不满同时弄清楚)。


My problem may seem a bit vague (it is to me too), but here is my attempted explanation of it.

A few months ago, I implemented PDF.js in my web application. It was really useful, and I am using it for interactions with my clients.

Suddenly, last week, my clients reported to me "Aw, Snap" messages in Google Chrome on their PCs when they try to launch PDF.js. I have an iMac and two PCs at home, so I decided to test this out.

When I used Google Chrome on my iMac to launch PDF.js, I found it worked fine.

When I used Google Chrome on my first PC to launch PDF.js, I found it worked fine.

When I used Google Chrome on my second PC to launch PDF.js, even though it previously worked, it kept crashing and showing me "Aw, Snap" messages.

This was weird. I tried removing all the extensions, clearing the cache, clearing the LocalStorage, but nothing seemed to fix the problem.

I then realised, after some communication with my clients, launching PDF.js in Safari, Torch, Opera or Firefox on any operating system worked perfectly fine.

Why would this happen? I am using the web viewer in PDF.js. I also tried with the basic hello world example, but that broke as well (which I now find really weird), so I suspect there's something wrong with the rendering engine.

I also tried including the compatibility.js file after building the source, but with no avail.

Is there any known bug which causes Google Chrome tabs to crash?

解决方案

Yes, I got it now.

From https://github.com/mozilla/pdf.js/issues/4104, I found the answer (thanks Rob and PDF.js dev team!). Take a look yourself!

I'm only posting this here so that anyone who stumbles upon this post with a similar problem can be helped (as this error took me quite a while to figure out).

这篇关于PDF.js会随机崩溃Google Chrome选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆