Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow startup (100% CPU for 15 seconds to 1 minute) when InkScape is installed. #1944

Closed
SeanCline opened this issue Jun 16, 2024 · 2 comments

Comments

@SeanCline
Copy link

System information

  • Windows OS version: Windows 10 Pro N 22H2 19045.4529
  • ImageGlass version: 9.1.6.14
  • ImageGlass release: Classic

To Reproduce

Steps to reproduce the behavior:

  1. Install InkScape.
  2. Install ImageGlass.
  3. Launch ImageGlass.
  4. Observe slow startup with 100% CPU as several instances of inkscape are launched.

Actual behavior

It seems that ImageGlass stores its toolbar icons in SVG format and converts them to a more suitable format for display each time the program is launched. Each icon gets a separate instance of inkscape.exe to perform the conversion, resulting in 53 instances of inkscape.exe, consuming every CPU core for several seconds. This results in a startup time of ~15 seconds on my desktop PC and 1 minute on my laptop (while the fans run full blast).

Ideas for improvement:

  • Perhaps the toolbar icons (and any other themed images) that are stored as an SVG can be rendered using the same method as when InkScape isn't installed. (i.e. Maybe ImageMagick can be to instructed not to use InkScape specifically for the toolbar icons, while still using InkScape for image the user is trying to view.
  • The rendered SVGs could be cached.
  • InkScape.exe could be profiled and optimized, though launching 53 instances of inkscape.exe still seems like a bad idea regardless of how optimized it is.

Expected behavior

I expected ImageGlass to have similar startup performance with or without InkScape installed.

Screenshots / Video / Sample image file

imageglass_slow_startup.mp4
@d2phap
Copy link
Owner

d2phap commented Jun 16, 2024

Probably duplicated of #1935 (comment). The problem happens when adding Inkscape to system PATH

@d2phap
Copy link
Owner

d2phap commented Jun 26, 2024

This issue is fixed in ImageGlass 9.1.7.627

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants