Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

pdf.js can't render fonts from v0.13.0-alpha4 to v0.13.0-alpha5 and above #4618

Closed
neves opened this issue Mar 23, 2016 · 14 comments
Closed
Assignees
Labels

Comments

@neves
Copy link

neves commented Mar 23, 2016

Sample package.json

{
  "name": "pdfjs",
  "main": "https://mozilla.github.io/pdf.js/web/viewer.html"
}

Same problem was reported here:
rhysd/NyaoVim#3

Console logs the follow error message:
[60314:1295:0323/104513:ERROR:gles2_cmd_decoder.cc(6874)] [.Offscreen-MainThread-0x7fe8cad97ca0]GL ERROR :GL_INVALID_OPERATION : glUseProgram: program not linked

OSX 10.11.3

Works till this version: (chromium 45.x)
http://dl.nwjs.io/v0.13.0-alpha4/nwjs-sdk-v0.13.0-alpha4-osx-x64.zip
captura de tela 2016-03-23 as 10 46 31

Stop working here, till v0.13.0 final release: (chromium >= 46.x)
http://dl.nwjs.io/v0.13.0-alpha4/nwjs-sdk-v0.13.0-alpha5-osx-x64.zip
captura de tela 2016-03-23 as 10 43 34

@rogerwang rogerwang added this to the 0.13.1 milestone Mar 23, 2016
@rogerwang rogerwang added the nw13 label Mar 23, 2016
@rogerwang
Copy link
Member

@ghostoy I can't reproduce this on my Mac, can you?

@ghostoy
Copy link
Member

ghostoy commented Mar 25, 2016

Not able to reproduce.

@rogerwang
Copy link
Member

@neves what's your hardware configuration including GPU model?

@neves
Copy link
Author

neves commented Mar 25, 2016

@rogerwang
MacBook Air (13-inch, Mid 2011)
1,7 GHz Intel Core i5
Intel HD Graphics 3000 384 MB
Is there anything I can help you with?

@rogerwang rogerwang self-assigned this Mar 28, 2016
@neves
Copy link
Author

neves commented Mar 31, 2016

Problem persists on v0.13.2 😭

@rogerwang
Copy link
Member

it looks like related to hardware, we'll find a OSX with Intel gfx card to reproduce it.

@rogerwang
Copy link
Member

@neves could you check the url with Chrome 49 in the same system then post the results of the page 'chrome://gpu' and the command line arguments of the Chrome process (ps aux | grep -i chrome); And do the same again for NW. Thanks.

@neves
Copy link
Author

neves commented Apr 1, 2016

The only difference I spotted was NWJS has --no-sandbox

NWJS 0.13.2 (left) vs Chrome 49 (no difference)

captura de tela 2016-03-31 as 23 23 18

Chrome GPU

chrome---gpu 1

NWJS GPU

nwjs2

@rogerwang
Copy link
Member

Can't reproduce this on a MBP with Intel HD 4000 ...
NW should be the same with Chromium on this. We should find what's the difference with Chromium.

@ghostoy
Copy link
Member

ghostoy commented Apr 8, 2016

@neves Did you check if the PDF works with Chromium 49 on your platform?

@neves
Copy link
Author

neves commented Apr 8, 2016

Working fine with chromium

@rogerwang
Copy link
Member

Does 0.14 RC version work for you?

@rogerwang rogerwang removed this from the 0.13.x milestone Apr 11, 2016
@neves
Copy link
Author

neves commented Apr 11, 2016

@rogerwang 0.14 works!
I see it's using Chrome 50, could that be it?

@rogerwang
Copy link
Member

It should be the reason.

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

No branches or pull requests

3 participants