RuntimeError: abort(10). Build with -s ASSERTIONS=1 for more info

WebViewer Version: 11.5.0

Do you have an issue with a specific file(s)?
Can you reproduce using one of our samples or online demos?
Are you using the WebViewer server?
Does the issue only happen on certain browsers?
Is your issue related to a front-end framework?
Is your issue related to annotations?

Please give a brief summary of your issue: RuntimeError: abort(10). Build with -s ASSERTIONS=1 for more info.
(Think of this as an email subject)

Please describe your issue and provide steps to reproduce it:
(The more descriptive your answer, the faster we are able to help you)

I’m in the process of developing on a closed network, and if I use the code below, RuntimeError: abort(10).Build with -s ASSERTIONS=1 for more info. The file is not visible in the viewer as this error is returned. Please check if this is the error caused by the closed network not allowing the firewall to go to pws-collection.pdftron.com .

The time_out error was already returned for https://pws-collection.pdftron.com/api/initialize before loading the file.

const createUsingKeyList = async () => {
    if (!instance || !docFileName || !docFileExtension) return;
    const { documentViewer, createDocument } = instance.Core;

    const doc = documentViewer.getDocument();

    if (doc) {
      const docFile = await doc.getFileData();

      const newDoc = await createDocument(docFile, {
        filename: docFileName,
        extension: docFileExtension,
      });

      try {
        const schemaKeys = (await newDoc.getTemplateKeys(
          "schema"
        )) as Core.TemplateSchema;
        const keys = schemaKeys.keys;

        const metaDataKeys = [];

        if (Object.keys(keys).length === 0) return;

        for (const [key, value] of Object.entries(keys)) {
          if ("itemSchema" in value && value.itemSchema) {
            for (const key2 of Object.keys(value.itemSchema)) {
              metaDataKeys.push(key2);
            }
            metaDataKeys.push(key);
          } else {
            metaDataKeys.push(key);
          }
        }

        setUsingVarList(metaDataKeys);
      } catch (err) {
        console.log(err);
      }
    }
  };

useEffect(() => {
    if (instance) {
      const { documentViewer } = instance.Core;

      documentViewer.addEventListener("finishedRendering", async () => {
        createUsingKeyList();

        documentViewer
          .getDocument()
          .addEventListener("officeDocumentEdited", async () => {
            createUsingKeyList();
          });
      });
    }
  }, [instance]);

Please provide a link to a minimal sample where the issue is reproducible:

1 Like

Hello, I’m AiRon, an automated tech support bot :robot:
While you wait for one of our customer support representatives, I can help you with your question.


The error message “RuntimeError: abort(10). Build with -s ASSERTIONS=1 for more info” typically indicates an issue with the WebAssembly module not loading correctly. This is often due to network restrictions or incorrect configuration.

Some things you can try:

  • Check if your network environment restricts access to external URLs, such as https://pws-collection.apryse.com/api/initialize, which is likely causing the timeout. Ensure that your network allows access to this endpoint.

  • If working in a closed network, consider self-hosting the required WebViewer files and dependencies to avoid relying on external resources.

  • Verify your WebViewer configuration and ensure that all necessary files are correctly loaded and accessible within your environment.

  • Enable assertions in your build environment to get more detailed error messages, which can provide additional insights into what might be going wrong.



Here are some resources that might help you:


Hopefully, this helps you solve your problem while you wait for a human to get back to you.

1 Like

const docFile = await doc.getFileData()

There seems to be an error when running this function.

1 Like

Hello rlaks5757,

I’m not able to reproduce this error with the code provided. Our AI bot suggests that this may be due to your network restricting access to external URLs, such as https://pws-collection.apryse.com/api/initialize. Could you check if this is the case?

Best Regards,
Darian

1 Like

This error doesn’t occur in my personal development environment, but it does occur in a closed network. Is it related?

Regards.

1 Like

Hello,

This sounds like it could potentially be the issue. Are you using a consumption based license key? Could you provide a HAR file so we can take a closer look? You can send it to darian.chen@apryse.com.

See the section about other errors:

Best Regards,
Darian

1 Like

Thank you for your cooperation.

We are currently in the process of purchasing a license, and we are testing it with a demo license.

Also, can you tell me what external APIs (ex.pws-collect.pdftron.com ) we have to allow firewalls only for necessary external internet networks while the external network is closed?

Regards,

1 Like

Hello,

You can review this post:

It looks like it will only need to be this URL:

pws-collect.pdftron.com:443 (HTTPS)

Best Regards,
Darian

1 Like

Thank you for your cooperation.

Even in an online development environment, the same error may occur if you set up the above events and then perform image copy operations in Word Editor.

Regards,

1 Like

Can you reproduce this issue in our online demo? JavaScript Office Document DOCX Web Editor Demo | Apryse WebViewer

If possible, please provide a short video clearly demonstrating the issue.

1 Like