Hi and thanks for the reply.
-
The error is not reproduced on the demo site. This points toward a different configuration that could trigger the issue.
The device used is an iPad 5th gen running on ios 14.5.1 on safari.
The same happens on the mac os 11.3.1 with safari 14.1
I want to point out that this never occurs on pdf files, only .docx that I can see so far.
The error occurs
We do not use server-side rendering.
-
Unfortunately, our software requires specific access that can’t be granted easily. If I get an access i’ll let you know.
-
While I can’t easily provide a step by step, I can provide our pdftron configuration and response header for the file being served:
WebViewer({
licenseKey: […],
annotationUser: […],
css: […],
path: ‘…/js/lib/WebViewer/lib’,
extension: ‘DOCX’,
filename: ‘601-1100403-2.DOCX’,
initialDoc: Download.srf?Context=General
,
isReadOnly: true,
}, $("#documentViewer")[0]).then( instance => {
console.log('after init This gets hit');
instance.docViewer.on('annotationsLoaded', () => {
console.log('after annot. This is never hit');
});
});
Response
HTTP/1.1 200 OK
Access-Control-Allow-Methods: GET, POST
Content-Type: application/vnd.openxmlformats-officedocument.wordprocessingml.document
Access-Control-Allow-Origin: *
Date: Thu, 13 May 2021 13:57:15 GMT
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept, x-api-version
Content-Disposition: attachment; filename=“601-1100403-2.DOCX”
Content-Length: 17670
Connection: close
- The same works perfectly on PC Chrome/Firefox, Android Chrome.
Lastly, here’s the full error along with a warning coming from OfficeWorker.js (The guid-like thing in the error is a child of OfficeWorker):
[Warning] There may be some degradation of performance. Your server has not been configured to serve .gz. and .br. files with the expected Content-Encoding. See http://www.pdftron.com/kb_content_encoding for instructions on how to resolve this. (OfficeWorker.js, line 43)
[Error] Unhandled Promise Rejection: RangeError: Maximum call stack size exceeded.
eSf (c0e31672-ee64-439c-bf04-818ce079aa1d:23:334331)
func (c0e31672-ee64-439c-bf04-818ce079aa1d:1:29186)
callRuntimeCallbacks (c0e31672-ee64-439c-bf04-818ce079aa1d:1:22083)
ensureInitRuntime (c0e31672-ee64-439c-bf04-818ce079aa1d:1:22599)
doRun (c0e31672-ee64-439c-bf04-818ce079aa1d:36:16033)
run (c0e31672-ee64-439c-bf04-818ce079aa1d:36:16337)
runCaller (c0e31672-ee64-439c-bf04-818ce079aa1d:36:14926)
removeRunDependency (c0e31672-ee64-439c-bf04-818ce079aa1d:1:26173)
applyMemoryInitializer (c0e31672-ee64-439c-bf04-818ce079aa1d:36:13869)
useRequest (c0e31672-ee64-439c-bf04-818ce079aa1d:36:14396)
promiseReactionJob