question-mark
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.

Getting error: `NonError: 1`

See original GitHub issue
NonError: 1
     at module.exports.input (/Applications/Kap.app/Contents/Resources/app.asar/node_modules/ensure-error/index.js:14:10)
     at ShareService.showError (/Applications/Kap.app/Contents/Resources/app.asar/dist/main/share-service.js:102:108)
     at /Applications/Kap.app/Contents/Resources/app.asar/dist/main/share-service.js:151:17
     at Generator.throw (<anonymous>)
     at step (/Applications/Kap.app/Contents/Resources/app.asar/dist/main/share-service.js:37:191)
     at /Applications/Kap.app/Contents/Resources/app.asar/dist/main/share-service.js:37:402
     at <anonymous>
     at process._tickDomainCallback (internal/process/next_tick.js:135:7)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
karaggeorgecommented, Feb 27, 2018

After investigating for a whiiile, I managed to pinpoint what causes the error. Apparently, it’s a problem with ffmpeg, and specifically the libx264 library it uses for h264 encoding. The problem is that the library requires both width and height to be divisible by 2. This is why it works half the times. If both your dimensions happen to be even, everything goes fine. If one of them is odd, it breaks. I am almost done writing the PR that fixes it.

https://trac.ffmpeg.org/ticket/309

1reaction
steveharmancommented, Feb 27, 2018

Let me know if I can help test anything. This happens for me all the time when exporting MP4 - always has with 2.x. Yesterday, twice, I managed to export recordings as .MP4 but today it’s back to situation normal.

macOS 10.12.6 . Kap 2.0.0 (681)

NonError: 1 at module.exports.input (/Applications/Kap.app/Contents/Resources/app.asar/node_modules/ensure-error/index.js:14:10) at ShareService.showError (/Applications/Kap.app/Contents/Resources/app.asar/dist/main/share-service.js:102:108) at /Applications/Kap.app/Contents/Resources/app.asar/dist/main/share-service.js:151:17 at Generator.throw (<anonymous>) at step (/Applications/Kap.app/Contents/Resources/app.asar/dist/main/share-service.js:37:191) at /Applications/Kap.app/Contents/Resources/app.asar/dist/main/share-service.js:37:402 at <anonymous> at process._tickDomainCallback (internal/process/next_tick.js:135:7)

I have not, to my knowledge installed any plugins - just installed Kap. As such I’m happy to blow-away anything in a plugins folder or whatever and try exporting again.

editor

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error - JavaScript - MDN Web Docs - Mozilla
Error objects are thrown when runtime errors occur. The Error object can also be used as a base object for user-defined exceptions.
Read more >
15 Common Error Codes in Node.js and How to Fix Them
10. ENOENT ... This error is a straightforward one. It means "Error No Entity" and is raised when a specified path (file or...
Read more >
"Non-Error promise rejection captured with value:" · Issue #3440
TL:DR - We are receiving a copious amount i these errors with no values provided. I can't see anything that sticks out in...
Read more >
Best Practices for Node.js Error-handling - Toptal
Developers working with Node.js sometimes find themselves writing not-so-clean code while handling all sorts of errors. This article will introduce you to ...
Read more >
iOS update and restore errors - Apple Support
Learn how to solve iOS update and restore errors.
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found