Skip to content

failed to create tray icon: error processing argument at index 0, conversion failure #21154

@vladimiry

Description

@vladimiry

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Issue Details

  • Electron Version: 8.0.0-beta2
  • Operating System: Linux, Windows (have not tested on macOS)
  • Last Known Working Electron version: 7.1.1

Expected Behavior

Tray icon with the specified image created.

Actual Behavior

Unhandled error processing argument at index 0, conversion failure error error is occurring. No tray icon created.

To Reproduce

https://github.com/vladimiry-playground/electron-quick-start-tray-issue

Screenshots

8 0 0-beta 2

8 0 0-beta 2-win

Tray icon with the specified image created if used v7.1.1 and below:

7 1 1

Additional Information

If used 8.0.0-beta2 there is no error if I construct the tray using the native image module like new Tray(nativeImage.createFromPath("image path")) but there is no visible tray icon either, but works for v7.1.1 and below.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions