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.

Invalid Icon File Size

See original GitHub issue

I am using electron-builder v=21.2.0 Building for windows.

It just about completes (it gets to ‘building’ step when this happens:

Error while loading icon from "C:\RP1\ArcMages\arcmages-vue-client\dist_electron\.icon-ico\icon.ico": invalid icon file size
Error in macro MUI_INTERFACE on macroline 86
Error in macro MUI_PAGE_INIT on macroline 7
Error in macro MUI_PAGE_INSTFILES on macroline 5
!include: error in script: "oneClick.nsh" on line 8
Error in script "<stdin>" on line 107 -- aborting creation process

    at ChildProcess.childProcess.once.code (C:\RP1\ArcMages\arcmages-vue-client\node_modules\builder-util\src\util.ts:239:14)
    at Object.onceWrapper (events.js:277:13)
    at ChildProcess.emit (events.js:189:13)
    at ChildProcess.EventEmitter.emit (domain.js:441:20)
    at maybeClose (internal/child_process.js:970:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)

This is the properties of the .ico file it is trying to use. image

I am generating my icons with the fllowing:

electron-icon-builder --input=./public/image/branding/ArcMageLogoV2.png --output=build --flatten

Icons are below. icons.zip

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
RacerDeluxcommented, Jan 14, 2021

This would still be an issue within electron-builder then. Sadly the issue got closed.

1reaction
supertommycommented, Jan 4, 2021

@Sakari369 I had used that site too and it didn’t work; I think that site actually produces a bad ICO file.

I used this one instead: https://image.online-convert.com/convert-to-ico

I had to convert the ICNS to PNG first.

Read more comments on GitHub >

github_iconTop Results From Across the Web

invalid icon size - NSIS Forums
invalid icon size. I just upgraded to NSIS 2.4.3 and substituted makensis.exe with the one from the special logging build: ...
Read more >
Icon file invalid in Win7 only with fonts scaled to 125%
A customer has his fonts enlarged to 125% on Windows 7-64. This causes our app to crash with this error: System.ArgumentException: Argument ' ......
Read more >
Icons - electron-builder
Files. Optional icon.icns (macOS app icon) or icon.png . Icon size should be at least 512x512. Optional background.png (macOS DMG background).
Read more >
[Solved] Cannot upload icons - invalid size
Ive tried the icon in different sizes.. at the moment its 10x10pixels.. the size of it is 500bytes (and its a .png). the...
Read more >
Build Failure due to Icon File - Visual Studio Feedback
png extension not valid. When I converted icon to a .jpg file compile still failed for same type reason. So, when I tried...
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