Skip to content

High CPU Usage #128

@giggio

Description

@giggio

Describe the bug/issue
Flow is sometimes using 1 to 5% CPU when it is not being used. It is not clear why this is happening. It stopped after a while.

I have taken a full memory dump from the process and will try to analyze it, if I find more info I'll comment here.

To Reproduce
Steps to reproduce the behavior:
I can't find a way to replicate the behavior, it happens intermittently.

Screenshots
N/A

Your System

Windows build number: Version 10.0.19041.388
Flow Launcher version: 1.1.2

Flow Launcher Error Log

I have found exceptions when that was happening. It seems it was indexing a file at the OneDrive for business folder. I have changed the folder in the logs to <filename>, as the file name and path are sensitive. I don't think this is related (see the dumps later on the comments).

2020-07-27 11:10:15.2840|ERROR|ImageLoader.Load|-------------------------- Begin exception --------------------------
2020-07-27 11:10:15.2840|ERROR|ImageLoader.Load|Failed to get thumbnail for <filename> on second try
2020-07-27 11:10:15.3018|ERROR|ImageLoader.Load|Exception full name:
 <System.Runtime.InteropServices.COMException>
2020-07-27 11:10:15.3018|ERROR|ImageLoader.Load|Exception message:
 <Error while extracting thumbnail for <filename>>
2020-07-27 11:10:15.3212|ERROR|ImageLoader.Load|Exception stack trace:
 <   at Flow.Launcher.Infrastructure.Image.WindowsThumbnailProvider.GetHBitmap(String fileName, Int32 width, Int32 height, ThumbnailOptions options) in C:\Workbench\Git\Flow.Launcher\Flow.Launcher.Infrastructure\Image\ThumbnailReader.cs:line 150
   at Flow.Launcher.Infrastructure.Image.WindowsThumbnailProvider.GetThumbnail(String fileName, Int32 width, Int32 height, ThumbnailOptions options) in C:\Workbench\Git\Flow.Launcher\Flow.Launcher.Infrastructure\Image\ThumbnailReader.cs:line 109
   at Flow.Launcher.Infrastructure.Image.ImageLoader.GetThumbnail(String path, ThumbnailOptions option) in C:\Workbench\Git\Flow.Launcher\Flow.Launcher.Infrastructure\Image\ImageLoader.cs:line 209
   at Flow.Launcher.Infrastructure.Image.ImageLoader.GetThumbnailResult(String& path, Boolean loadFullImage) in C:\Workbench\Git\Flow.Launcher\Flow.Launcher.Infrastructure\Image\ImageLoader.cs:line 184
   at Flow.Launcher.Infrastructure.Image.ImageLoader.LoadInternal(String path, Boolean loadFullImage) in C:\Workbench\Git\Flow.Launcher\Flow.Launcher.Infrastructure\Image\ImageLoader.cs:line 135>
2020-07-27 11:10:15.3376|ERROR|ImageLoader.Load|Exception source:
 <Flow.Launcher.Infrastructure>
2020-07-27 11:10:15.3526|ERROR|ImageLoader.Load|Exception target site:
 <IntPtr GetHBitmap(System.String, Int32, Int32, Flow.Launcher.Infrastructure.Image.ThumbnailOptions)>
2020-07-27 11:10:15.3648|ERROR|ImageLoader.Load|Exception HResult:
 <-2147467259>
2020-07-27 11:10:15.3764|ERROR|ImageLoader.Load|Exception full name:
 <System.Runtime.InteropServices.COMException>
2020-07-27 11:10:15.3764|ERROR|ImageLoader.Load|Exception message:
 <0x8004B205>
2020-07-27 11:10:15.4015|ERROR|ImageLoader.Load|Exception stack trace:
 <>
2020-07-27 11:10:15.4161|ERROR|ImageLoader.Load|Exception source:
 <>
2020-07-27 11:10:15.4306|ERROR|ImageLoader.Load|Exception target site:
 <>
2020-07-27 11:10:15.4447|ERROR|ImageLoader.Load|Exception HResult:
 <-2147175931>
2020-07-27 11:10:15.4572|ERROR|ImageLoader.Load|-------------------------- End exception --------------------------

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions