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.

errors thrown for jpg image

See original GitHub issue

optimizt working well on png images and also producing webp and avif format images.

when it is run on png files, it is throwing following error :

Processing. Please wait...events.js:186
      throw er; // Unhandled 'error' event
      ^

Error: spawn /home/zenova/projects/nvm/.nvm/versions/node/v12.9.1/lib/node_modules/@funboxteam/optimizt/node_modules/jpegoptim-bin/vendor/jpegoptim ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:77:11)
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:77:11) {
  errno: 'ENOENT',
  code: 'ENOENT',
  syscall: 'spawn /home/zenova/projects/nvm/.nvm/versions/node/v12.9.1/lib/node_modules/@funboxteam/optimizt/node_modules/jpegoptim-bin/vendor/jpegoptim',
  path: '/home/zenova/projects/nvm/.nvm/versions/node/v12.9.1/lib/node_modules/@funboxteam/optimizt/node_modules/jpegoptim-bin/vendor/jpegoptim',
  spawnargs: [
    '--strip-all',
    '--strip-com',
    '--strip-exif',
    '--strip-iptc',
    '--strip-icc',
    '--strip-xmp',
    '--all-progressive',
    '--max=80',
    '--stdin',
    '--stdout'
  ]
}

(sharp:54196): GLib-CRITICAL **: 12:55:23.511: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(sharp:54196): GLib-CRITICAL **: 12:55:23.511: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(sharp:54196): GLib-CRITICAL **: 12:55:23.511: g_hash_table_lookup: assertion 'hash_table != NULL' failed

(sharp:54196): GLib-CRITICAL **: 12:55:23.511: g_hash_table_insert_internal: assertion 'hash_table != NULL' failed

(sharp:54196): GLib-CRITICAL **: 12:55:23.511: g_hash_table_lookup: assertion 'hash_table != NULL' failed
fish: “optimizt dusk.jpg” terminated by signal SIGSEGV (Address boundary error)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
muralikodalicommented, Feb 2, 2021

it works without errors. Thanks again

0reactions
343devcommented, Feb 2, 2021

You’re welcome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Complete List of JPEG Errors & Their Solutions
Major reasons behind corrupt JPEG files: · Incomplete JPEG scan · Errors in JPEG code and description · Broken or corrupt header files...
Read more >
9 Methods to Fix JPEG Invalid Image Error Message Easily
Download JPG File Again · Rename A JPG File · Convert The JPEG File Extension To Different Image File Format · Rebuild The...
Read more >
Error detection of JPEG files with JHOVE and Bad Peggy
Table: Possible JHOVE errors on JPEG files ; 2, Unexpected end of file, Yes (Example ), 26, corrupt data: premature end of data...
Read more >
Why am I getting the error: "Not a JPEG file: starts with 0x89 ...
Your 'JPEG' file has wrong filename extension 'jpg' or 'jpeg', it's real type is most ...
Read more >
Invalid Value for Registry Error for Jpg, PNG While ... - YouTube
Invalid Value for Registry Error for Jpg, PNG While Viewing Image Files on Windows 10 FIX.Windows Registry is a collection of databases to ......
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