Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some sequences in the doc can cause the import to hang or crash

See original GitHub issue

I had a document containing some fancy spacing characters.

It is hard to really narrow down the issue, i think it was it could also have been i have seen both during my debugging session and i suppose intense copying and pasting between google docs, onenote and various text editors probably transforms these along the way…

At the moment i cannot get the plugin to hang any more, but instead crash, see this at the end of my message.

When the plugin tries to fetch this document, it just hangs on ⠼ source-google-docs — fetching (the little dots on the left stop moving)

I have narrowed it down to this part of the code in utils/google-docs.js:

  const googleDocuments = await Promise.all( (properties) => {
      const document = await fetchDocument(
      //console.log("document is : " + JSON.stringify(document, null, 4))
      const googleDocument = new GoogleDocument({
      console.log("this doc was fetched : " + properties.path)

      if (process.env.NODE_ENV === "DOCS_TO_TESTS") {

      return googleDocument

Note the extra console.log. This allowed me to track down the route cause in a very DIY way, first seeing which doc was the one never being fetched and letting the process hang, then removing parts of the doc until i figured the offending one.

Now making further experiments with this sequence, sometimes the import does not hang but instead crashes with the following error:

source-google-docs:  Cannot read property '1' of null

  TypeError: Cannot read property '1' of null
  - google-document.js:55 GoogleDocument.formatText
  - google-document.js:354 
  - Array.forEach
  - google-document.js:320 GoogleDocument.processParagraph
  - google-document.js:541 
  - Array.forEach
  - google-document.js:515 GoogleDocument.process
  - google-document.js:30 new GoogleDocument
  - google-docs.js:41 
  - task_queues:93 processTicksAndRejections
  - async Promise.all
  - google-docs.js:37 fetchDocuments
  - source-nodes.js:33 Object.exports.sourceNodes
  - api-runner-node.js:434 runAPI

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

cedricdelpouxcommented, May 11, 2021

Great! Thank you

gtnbssncommented, May 10, 2021

I just tested and the document was imported and generated a page with no issue. Thanks!

I will delete the google doc from my google drive after the issue is closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Re: Crashes when importing sequences from another
1) The editor sends me a sequence and I am trying to import it to my own project but it ... For 1)...
Read more >
Importing effects crashes xLights · Issue #3348 - GitHub
I downloaded Rick Harris' Heros sequence. I selected new sequence and traversed to the location of the mp3, it loaded fine.
Read more >
How to Fix a GPU Driver Crash - Unreal Engine Documentation
If the GPU runs out of memory, it could potentially cause a crash. It largely depends on the RHI being used, some are...
Read more >
Troubleshooting Windows Subsystem for Linux | Microsoft Learn
Repro the hang or deadlock. Crash the system using the key sequence from (2). The system will crash and collect the memory dump....
Read more >
The 9 Most Common Crashes in Premiere Pro, and How to Fix ...
In some cases, though, an update to Premiere Pro can be the only way to fix the problem that you're having. In that...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found