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.

  • Version: 22.8.0
  • Electron Version: 9.2.0
  • Electron Type (current, beta, nightly): current
  • Target: Linux

Hi I have an Electron app with an icon in the mainWindow and I build it but then the icon can’t be loaded. I have tried everything and search for everything but can’t find something that can help.

(node:27353) UnhandledPromiseRejectionWarning: Error: Image could not be created from /tmp/.mount_FW-DesKIkK8v/resources/app.asar/build/icon.png
    at createWindow (/tmp/.mount_FW-DesKIkK8v/resources/app.asar/main.js:17:16)
    at /tmp/.mount_FW-DesKIkK8v/resources/app.asar/main.js:88:3
(node:27353) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:27353) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

tray = new Tray(path.join(__dirname, "/build/icon.png"));

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
pranavwanicommented, Aug 15, 2020

Hi, @xRealNeon issue can be fixed via https://github.com/electron/electron/issues/24221#issuecomment-651320602

It comes in electron@9.x.x. electron-builder works perfactly

0reactions
xRealNeoncommented, Aug 16, 2020

Please put it into your documentation

Read more comments on GitHub >

github_iconTop Results From Across the Web

Not able to use icons on taskbar, - Microsoft Community
1. Go to settings> Update and Security> troubleshoot > Additional troubleshooter> Then click Windows Store apps · 2. Temporarily Disable the Anti ......
Read more >
Can't move desktop icons in Windows 11/10
If you are unable to or cannot move desktop icons in Windows 11/10 then this post is sure to help you. We have...
Read more >
How to Change App Icons on iPhone (No Shortcuts Banner!)
In this tutorial I'll show you how to replace a boring App Icon with an ... Banner Notification running each time you use...
Read more >
Troubleshooting | Font Awesome Docs
Is the icon you're trying to use available in the version of Font Awesome you are using on your project? - We release...
Read more >
my phone doesnt let me click on app icons… - Apple Community
a hacker did something to my iphone to were i cant turn off my phone or click on any of my apps what...
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