Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1
@ 2022-10-20 18:44 ahesford
  2022-10-20 22:02 ` heittpr
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: ahesford @ 2022-10-20 18:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2713 bytes --]

New issue by ahesford on void-packages repository

https://github.com/void-linux/void-packages/issues/40061

Description:
### Is this a new report?

Yes

### System Info

Void 5.15.63_1 x86_64 GenuineIntel notuptodate rFFFFFFFFFFFFFFFFFFF

### Package(s) Affected

pdf.js-2.16.105_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

None noted

### Expected behaviour

Visiting [a sample PDF](https://raw.githubusercontent.com/mozilla/pdf.js/master/examples/learning/helloworld.pdf) in qutebrowser should show an action dialog that presents `Ctrl+p` as an option to view the PDF with `pdf.js`. Choosing this option should open a new window with the `pdf.js` UI and a "Hello World" document displayed.

cc: @heittpr 

### Actual behaviour

Although the `pdf.js` UI is displayed, the content array is completely empty. Only the dark gray background is visible. Opening the qutebrowser web console with key combination `wIh` shows the following stack trace:

```
pdf.js:4213
Uncaught TypeError: key.split(...).at is not a function
    at new KeyboardManager (pdf.js:4213)
    at Function.<static_fields_initializer> (pdf.js:4369)
    at Array.Object.defineProperty.value (pdf.js:4342)
    at __w_pdfjs_require__ (pdf.js:19477)
    at Array.Object.defineProperty.value (pdf.js:3737)
    at __w_pdfjs_require__ (pdf.js:19477)
    at Array.Object.defineProperty.value (pdf.js:3562)
    at __w_pdfjs_require__ (pdf.js:19477)
    at Array.Object.defineProperty.value (pdf.js:1119)
    at __w_pdfjs_require__ (pdf.js:19477)
    
viewer.js:4333
Uncaught ReferenceError: require is not defined
    at Array.Object.defineProperty.value (viewer.js:4333)
    at __webpack_require__ (viewer.js:16331)
    at Array.pdfjsLib (viewer.js:1499)
    at __webpack_require__ (viewer.js:16331)
    at viewer.js:16367
    at viewer.js:16546
    at viewer.js:16548
    
viewer.html?filename=tmptkbvwf5m_helloworld.pdf&file=&source=https://raw.githubusercontent.com/mozilla/pdf.js/master/examples/learning/helloworld.pdf:466
Uncaught TypeError: Cannot read property 'set' of undefined
    at HTMLDocument.<anonymous> (viewer.html?filename=tmptkbvwf5m_helloworld.pdf&file=&source=https://raw.githubusercontent.com/mozilla/pdf.js/master/examples/learning/helloworld.pdf:466)
```

Downgrading to `pdf.js-2.14.305_1` fixes the problem.

### Steps to reproduce

1. `xbps-install qutebrowser pdf.js`
2. `qutebrowser "https://raw.githubusercontent.com/mozilla/pdf.js/master/examples/learning/helloworld.pdf"`
3. Press `Ctrl+p` to show broken PDF viewer
4. Press `wIh` to open the browser debug view, then choose the `Console` from the tabs to see the stack trace.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1
  2022-10-20 18:44 [ISSUE] Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1 ahesford
@ 2022-10-20 22:02 ` heittpr
  2022-10-20 22:19 ` heittpr
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: heittpr @ 2022-10-20 22:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 650 bytes --]

New comment by heittpr on void-packages repository

https://github.com/void-linux/void-packages/issues/40061#issuecomment-1286206444

Comment:
Relevant issue: https://github.com/qutebrowser/qutebrowser/issues/7335. There's a [workaround](https://github.com/qutebrowser/qutebrowser/issues/7335#issuecomment-1213153686) using a greasemonkey userscript .

pdf.js offers a [legacy build](https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#legacy-build) to support older browsers. We could package it separately ([like arch](https://archlinux.org/packages/community/any/pdfjs-legacy/)) or add it as a build option to the current package.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1
  2022-10-20 18:44 [ISSUE] Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1 ahesford
  2022-10-20 22:02 ` heittpr
@ 2022-10-20 22:19 ` heittpr
  2022-10-20 22:19 ` heittpr
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: heittpr @ 2022-10-20 22:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 228 bytes --]

New comment by heittpr on void-packages repository

https://github.com/void-linux/void-packages/issues/40061#issuecomment-1286220949

Comment:
We could also add it as a subpackage, not sure what the best approach would be here.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1
  2022-10-20 18:44 [ISSUE] Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1 ahesford
  2022-10-20 22:02 ` heittpr
  2022-10-20 22:19 ` heittpr
@ 2022-10-20 22:19 ` heittpr
  2022-10-20 22:25 ` ahesford
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: heittpr @ 2022-10-20 22:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 649 bytes --]

New comment by heittpr on void-packages repository

https://github.com/void-linux/void-packages/issues/40061#issuecomment-1286206444

Comment:
Relevant issue: https://github.com/qutebrowser/qutebrowser/issues/7335. There's a [workaround](https://github.com/qutebrowser/qutebrowser/issues/7335#issuecomment-1213153686) using a greasemonkey userscript.

pdf.js offers a [legacy build](https://github.com/mozilla/pdf.js/wiki/Frequently-Asked-Questions#legacy-build) to support older browsers. We could package it separately ([like arch](https://archlinux.org/packages/community/any/pdfjs-legacy/)) or add it as a build option to the current package.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1
  2022-10-20 18:44 [ISSUE] Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1 ahesford
                   ` (2 preceding siblings ...)
  2022-10-20 22:19 ` heittpr
@ 2022-10-20 22:25 ` ahesford
  2022-10-20 22:43 ` ahesford
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ahesford @ 2022-10-20 22:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 227 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/issues/40061#issuecomment-1286225927

Comment:
Is there significant value in the new version? What does it offer beyond 2.14.305?

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1
  2022-10-20 18:44 [ISSUE] Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1 ahesford
                   ` (3 preceding siblings ...)
  2022-10-20 22:25 ` ahesford
@ 2022-10-20 22:43 ` ahesford
  2022-10-20 22:48 ` heittpr
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: ahesford @ 2022-10-20 22:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 360 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/issues/40061#issuecomment-1286239237

Comment:
After reading more about this, I suppose the more appropriate question is what value the non-legacy build offers over the legacy one. If there is a reason for the non-legacy build, two packages might be appropriate.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1
  2022-10-20 18:44 [ISSUE] Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1 ahesford
                   ` (4 preceding siblings ...)
  2022-10-20 22:43 ` ahesford
@ 2022-10-20 22:48 ` heittpr
  2022-10-21  2:29 ` ahesford
  2022-10-24  1:09 ` [ISSUE] [CLOSED] " ahesford
  7 siblings, 0 replies; 9+ messages in thread
From: heittpr @ 2022-10-20 22:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 388 bytes --]

New comment by heittpr on void-packages repository

https://github.com/void-linux/void-packages/issues/40061#issuecomment-1286244116

Comment:
`2.16.105` has quite a lot of bugfixes ([changelog](https://github.com/mozilla/pdf.js/releases)) since we skipped `2.15.349`. According to https://github.com/mozilla/pdf.js/issues/15457#issuecomment-1250369604 `2.14.305` is no longer supported.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1
  2022-10-20 18:44 [ISSUE] Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1 ahesford
                   ` (5 preceding siblings ...)
  2022-10-20 22:48 ` heittpr
@ 2022-10-21  2:29 ` ahesford
  2022-10-24  1:09 ` [ISSUE] [CLOSED] " ahesford
  7 siblings, 0 replies; 9+ messages in thread
From: ahesford @ 2022-10-21  2:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 196 bytes --]

New comment by ahesford on void-packages repository

https://github.com/void-linux/void-packages/issues/40061#issuecomment-1286377491

Comment:
Let's move discussion about a resolution to #40078.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [ISSUE] [CLOSED] Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1
  2022-10-20 18:44 [ISSUE] Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1 ahesford
                   ` (6 preceding siblings ...)
  2022-10-21  2:29 ` ahesford
@ 2022-10-24  1:09 ` ahesford
  7 siblings, 0 replies; 9+ messages in thread
From: ahesford @ 2022-10-24  1:09 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2716 bytes --]

Closed issue by ahesford on void-packages repository

https://github.com/void-linux/void-packages/issues/40061

Description:
### Is this a new report?

Yes

### System Info

Void 5.15.63_1 x86_64 GenuineIntel notuptodate rFFFFFFFFFFFFFFFFFFF

### Package(s) Affected

pdf.js-2.16.105_1

### Does a report exist for this bug with the project's home (upstream) and/or another distro?

None noted

### Expected behaviour

Visiting [a sample PDF](https://raw.githubusercontent.com/mozilla/pdf.js/master/examples/learning/helloworld.pdf) in qutebrowser should show an action dialog that presents `Ctrl+p` as an option to view the PDF with `pdf.js`. Choosing this option should open a new window with the `pdf.js` UI and a "Hello World" document displayed.

cc: @heittpr 

### Actual behaviour

Although the `pdf.js` UI is displayed, the content array is completely empty. Only the dark gray background is visible. Opening the qutebrowser web console with key combination `wIh` shows the following stack trace:

```
pdf.js:4213
Uncaught TypeError: key.split(...).at is not a function
    at new KeyboardManager (pdf.js:4213)
    at Function.<static_fields_initializer> (pdf.js:4369)
    at Array.Object.defineProperty.value (pdf.js:4342)
    at __w_pdfjs_require__ (pdf.js:19477)
    at Array.Object.defineProperty.value (pdf.js:3737)
    at __w_pdfjs_require__ (pdf.js:19477)
    at Array.Object.defineProperty.value (pdf.js:3562)
    at __w_pdfjs_require__ (pdf.js:19477)
    at Array.Object.defineProperty.value (pdf.js:1119)
    at __w_pdfjs_require__ (pdf.js:19477)
    
viewer.js:4333
Uncaught ReferenceError: require is not defined
    at Array.Object.defineProperty.value (viewer.js:4333)
    at __webpack_require__ (viewer.js:16331)
    at Array.pdfjsLib (viewer.js:1499)
    at __webpack_require__ (viewer.js:16331)
    at viewer.js:16367
    at viewer.js:16546
    at viewer.js:16548
    
viewer.html?filename=tmptkbvwf5m_helloworld.pdf&file=&source=https://raw.githubusercontent.com/mozilla/pdf.js/master/examples/learning/helloworld.pdf:466
Uncaught TypeError: Cannot read property 'set' of undefined
    at HTMLDocument.<anonymous> (viewer.html?filename=tmptkbvwf5m_helloworld.pdf&file=&source=https://raw.githubusercontent.com/mozilla/pdf.js/master/examples/learning/helloworld.pdf:466)
```

Downgrading to `pdf.js-2.14.305_1` fixes the problem.

### Steps to reproduce

1. `xbps-install qutebrowser pdf.js`
2. `qutebrowser "https://raw.githubusercontent.com/mozilla/pdf.js/master/examples/learning/helloworld.pdf"`
3. Press `Ctrl+p` to show broken PDF viewer
4. Press `wIh` to open the browser debug view, then choose the `Console` from the tabs to see the stack trace.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-10-24  1:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-20 18:44 [ISSUE] Regression: pdf.js-2.16.105_1 broken with qutebrowser-2.5.2_1 ahesford
2022-10-20 22:02 ` heittpr
2022-10-20 22:19 ` heittpr
2022-10-20 22:19 ` heittpr
2022-10-20 22:25 ` ahesford
2022-10-20 22:43 ` ahesford
2022-10-20 22:48 ` heittpr
2022-10-21  2:29 ` ahesford
2022-10-24  1:09 ` [ISSUE] [CLOSED] " ahesford

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).